全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
2632 2
2016-05-12
> bb=matrix(1:9,3,3)
> bb
     [,1] [,2] [,3]
[1,]    1    4    7
[2,]    2    5    8
[3,]    3    6    9
> var(bb)
     [,1] [,2] [,3]
[1,]    1    1    1
[2,]    1    1    1
[3,]    1    1    1

如上命令,实在是无法理解,var函数到底什么意思?

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2016-5-13 09:49:26

其实var(x)的格式为var(x, y),默认为x = y。而且,如果x与y是矩阵的话,给出的是x与y的各列之间的协方差(或线性相关系数)。这样就能解释得通了。你可再查一下?var
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2016-5-14 06:41:20

are random variables, each with finite variance, then the covariance matrix Σ is the matrix whose (i, j) entry is the covariance

where

is the expected value of the ith entry in the vector X. In other words,

附件列表
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群