永发信息网

matlab中有没有canoncorr,有的话怎么用

答案:2  悬赏:0  手机版
解决时间 2021-02-16 04:50
matlab中有没有canoncorr,有的话怎么用
最佳答案
典范相关分析(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')
全部回答
典范相关分析(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')
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
长葛市许昌邦太厨房电器(长葛专卖店)怎么去啊
1876年()发明了世界上第一部电话,从此电话便
茫茫的草原忘不到边 是那首歌的歌词
三年后电池组价格大幅下降,新能源汽车价格也
濮阳县濮阳和平灯饰广场地址是什么,有没有知
我在香港,我刚刚下了qq炫舞,可是里面的字不
18×28加23×28的简便算法
有什么赛车游戏比较好?
造成牙周病的最直接因素是A.牙石B.牙菌斑C.遗
大家给我个办公室节能减排的措施,谢谢
蛇山咀这个地址在什么地方,我要处理点事
18世纪晚期至19世纪末,煤炭在世界能源消费中
蒸湘区鸳鸯金楼(衡阳店)这个地址怎么能查询到
湖镜道/白堤路(路口)这个地址在什么地方,我
博世双开门冰箱 移动后无法通电、跳闸
推荐资讯
会同县怀化中华联合财产保险股份有限公司(将
南岗区哈尔滨茂祥益生大药房哪位知道具体地址
wordpress 如何去掉页面底部连接
【张元】文言文之张元饲弃狗翻译
苹果6点了运营商更新之后出现无服务怎么办
智能电视如何与网络连接,可以用WIFI连接吗?
博杰跆拳道俱乐部在哪里啊,我有事要去这个地
新的热水器要怎么用
小学四年级作文我的家乡___聊城
仙桃市仙桃万家惠超市(沔阳大道店)这个地址怎
求2016.1.4上映的神探夏洛克电影版百度云资源
失败也是一种美丽作文
正方形一边上任一点到这个正方形两条对角线的
阴历怎么看 ?