Covariance Matrix & Correlation

Variance & Covariance

The diagonal entries of the covariance matrix are the variances and the other entries are the covariances:

Cov(x,y)=(σ(x,x)σ(x,y)σ(y,x)σ(y,y))

where

  1. σ(x,x) and σ(y,y) are simply same as σx2 and σy2, respectively.
  2. σ(x,y)=σ(y,x)
    which derives:
C=1n1i=1n(XiX¯)(XiX¯)T

Correlation

Corr(x,y)=Cov(x,y)σx2σy2=Cov(x,y)σxσy

Correlation


Reference