matlab中有没有canoncorr,有的话怎么用
答案:2 悬赏:0 手机版
解决时间 2021-02-16 04:50
- 提问者网友:自食苦果
- 2021-02-15 13:41
matlab中有没有canoncorr,有的话怎么用
最佳答案
- 五星知识达人网友:酒安江南
- 2021-02-15 14:51
典范相关分析(canoncorr) [a,b,r,u,v,stats] = canoncorr(X, Y)
[A,B,R,U,V,STATS] = CANONCORR(X,Y) returns a structure containing
information relating to the sequence of D null hypotheses H0_K, that
the (K+1)st through Dth correlations are all zero, for K = 0:(D-1).
STATS contains eight fields, each a 1-by-D vector with elements
corresponding to values of K:
Wilks: Wilks' lambda (likelihood ratio) statistic
chisq: Bartlett's approximate chi-squared statistic for H0_K,
with Lawley's modification
pChisq: the right-tail significance level for CHISQ
F: Rao's approximate F statistic for H0_K
pF: the right-tail significance level for F
df1: the degrees of freedom for the chi-squared statistic,
also the numerator degrees of freedom for the F statistic
df2: the denominator degrees of freedom for the F statistic
Example:
load carbig;
X = [Displacement Horsepower Weight Acceleration MPG];
nans = sum(isnan(X),2) > 0;
[A B r U V] = canoncorr(X(~nans,1:3), X(~nans,4:5));
plot(U(:,1),V(:,1),'.');
xlabel('0.0025*Disp + 0.020*HP - 0.000025*Wgt');
ylabel('-0.17*Accel + -0.092*MPG')
[A,B,R,U,V,STATS] = CANONCORR(X,Y) returns a structure containing
information relating to the sequence of D null hypotheses H0_K, that
the (K+1)st through Dth correlations are all zero, for K = 0:(D-1).
STATS contains eight fields, each a 1-by-D vector with elements
corresponding to values of K:
Wilks: Wilks' lambda (likelihood ratio) statistic
chisq: Bartlett's approximate chi-squared statistic for H0_K,
with Lawley's modification
pChisq: the right-tail significance level for CHISQ
F: Rao's approximate F statistic for H0_K
pF: the right-tail significance level for F
df1: the degrees of freedom for the chi-squared statistic,
also the numerator degrees of freedom for the F statistic
df2: the denominator degrees of freedom for the F statistic
Example:
load carbig;
X = [Displacement Horsepower Weight Acceleration MPG];
nans = sum(isnan(X),2) > 0;
[A B r U V] = canoncorr(X(~nans,1:3), X(~nans,4:5));
plot(U(:,1),V(:,1),'.');
xlabel('0.0025*Disp + 0.020*HP - 0.000025*Wgt');
ylabel('-0.17*Accel + -0.092*MPG')
全部回答
- 1楼网友:玩家
- 2021-02-15 16:22
典范相关分析(canoncorr) [a,b,r,u,v,stats] = canoncorr(X, Y)
[A,B,R,U,V,STATS] = CANONCORR(X,Y) returns a structure containing
information relating to the sequence of D null hypotheses H0_K, that
the (K+1)st through Dth correlations are all zero, for K = 0:(D-1).
STATS contains eight fields, each a 1-by-D vector with elements
corresponding to values of K:
Wilks: Wilks' lambda (likelihood ratio) statistic
chisq: Bartlett's approximate chi-squared stati stic for H0_K,
with Lawley's modification
pChisq: the right-tail significance level for CHISQ
F: Rao's approximate F statistic for H0_K
pF: the right-tail significance level for F
df1: the degrees of freedom for the chi-squared statistic,
also the numerator degrees of freedom for the F statistic
df2: the denominator degrees of freedom for the F statistic
Example:
load carbig;
X = [Displacement Horsepower Weight Acceleration MPG];
nans = sum(isnan(X),2) > 0;
[A B r U V] = canoncorr(X(~nans,1:3), X(~nans,4:5));
plot(U(:,1),V(:,1),'.');
xlabel('0.0025*Disp + 0.020*HP - 0.000025*Wgt');
ylabel('-0.17*Accel + -0.092*MPG')
[A,B,R,U,V,STATS] = CANONCORR(X,Y) returns a structure containing
information relating to the sequence of D null hypotheses H0_K, that
the (K+1)st through Dth correlations are all zero, for K = 0:(D-1).
STATS contains eight fields, each a 1-by-D vector with elements
corresponding to values of K:
Wilks: Wilks' lambda (likelihood ratio) statistic
chisq: Bartlett's approximate chi-squared stati stic for H0_K,
with Lawley's modification
pChisq: the right-tail significance level for CHISQ
F: Rao's approximate F statistic for H0_K
pF: the right-tail significance level for F
df1: the degrees of freedom for the chi-squared statistic,
also the numerator degrees of freedom for the F statistic
df2: the denominator degrees of freedom for the F statistic
Example:
load carbig;
X = [Displacement Horsepower Weight Acceleration MPG];
nans = sum(isnan(X),2) > 0;
[A B r U V] = canoncorr(X(~nans,1:3), X(~nans,4:5));
plot(U(:,1),V(:,1),'.');
xlabel('0.0025*Disp + 0.020*HP - 0.000025*Wgt');
ylabel('-0.17*Accel + -0.092*MPG')
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯