协方差矩阵

在这里插入图片描述
For this data, we could calculate the variance σ ( x , x ) \sigma(x,x) σ(x,x) in the x-direction and the variance σ ( y , y ) \sigma(y,y) σ(y,y)in the y-direction.
对于上面的数据,我们可以计算出数据沿x轴方向的方差 σ ( x , x ) \sigma(x,x) σ(x,x),和数据沿y轴方向的方差 σ ( y , y ) \sigma(y,y) σ(y,y)

However, the horizontal spread and the vertical spread of the data does not explain the clear diagonal correlation.
然而,数据沿着平行于坐标轴方向扩展的方向并不能够解释数据在对角方向上的信息。

Figure 2 clearly shows that on average, if the x-value of a data point increases, then also the y-value increases, resulting in a positive correlation.
如上图所示,随着x增大,y值也增大,我们称二者是正相关的。

This correlation can be captured by extending the notion of variance to what is called the ‘covariance’ of the data:
为了进一步地描述数据之间的相关性,我们由方差引出了协方差。
σ ( x , y ) = E [ ( x − E ( x ) ) ( y − E ( y ) ) ] \sigma(x,y) = \mathbb{E}[ (x - \mathbb{E}(x)) (y - \mathbb{E}(y))] σ(x,y)=E[(xE(x))(yE(y))]
For 2D data, we thus obtain σ ( x , x ) \sigma(x,x) σ(x,x), σ ( y , y ) \sigma(y,y) σ(y,y), σ ( x , y ) \sigma(x,y) σ(x,y) and σ ( y , x ) \sigma(y,x) σ(y,x).
对于二维的数据,我们能够分别得到 σ ( x , x ) \sigma(x,x) σ(x,x), σ ( y , y ) \sigma(y,y) σ(y,y), σ ( x , y ) \sigma(x,y) σ(x,y) and σ ( y , x ) \sigma(y,x) σ(y,x).

These four values can be summarized in a matrix, called the covariance matrix:
上面四个值,我们可以把它放在同一个矩阵里,叫作协方差矩阵。

Σ = [ σ ( x , x ) σ ( x , y ) σ ( y , x ) σ ( y , y ) ] \Sigma = \begin{bmatrix} \sigma(x,x) & \sigma(x,y) \\[0.3em] \sigma(y,x) & \sigma(y,y) \\[0.3em] \end {bmatrix} Σ=[σ(x,x)σ(y,x)σ(x,y)σ(y,y)]
If x is positively correlated with y, y is also positively correlated with x. In other words, we can state that σ ( x , y ) = σ ( y , x ) \sigma(x,y) = \sigma(y,x) σ(x,y)=σ(y,x).

Therefore, the covariance matrix is always a symmetric matrix with the variances on its diagonal and the covariances off-diagonal.

Two-dimensional normally distributed data is explained completely by its mean and its 2 × 2 2\times 2 2×2 covariance matrix. Similarly, a 3 × 3 3 \times 3 3×3covariance matrix is used to capture the spread of three-dimensional data, and a N × N N \times N N×N covariance matrix captures the spread of N-dimensional data.

Figure 3 illustrates how the overall shape of the data defines the covariance matrix:
在这里插入图片描述

参考

《A geometric interpretation of the covariance matrix》
https://www.visiondummy.com/2014/04/geometric-interpretation-covariance-matrix/
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值