MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB基础] 请求帮助:cov函数是如何计算的? (https://www.labfans.com/bbs/showthread.php?t=9107)

bingsmile 2009-06-29 22:59

请求帮助:cov函数是如何计算的?
 
x=[6 9 3 4;5 4 2 1;6 7 7 8;7 8 9 10]
即x =

6 9 3 4
5 4 2 1
6 7 7 8
7 8 9 10

C=cov(x)
C =

0.6667 1.3333 2.3333 3.0000
1.3333 4.6667 3.0000 5.0000
2.3333 3.0000 10.9167 13.0833
3.0000 5.0000 13.0833 16.2500

为什么是4x4阶的矩阵?它是怎么计算的?

slgu 2009-06-29 23:50

回复: 请求帮助:cov函数是如何计算的?
 
cov得到的是变数的方差协方差阵。对角线上是相应列的方差,非对角线是相应列间的协方差。方差为离均差平方和除以自由度,协方差为离均差乘积和除以自由度。


所有时间均为北京时间。现在的时间是 03:06

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.