Covariance and correlation
From Wikipedia, the free encyclopedia
- Main articles: covariance, correlation.
In probability theory and statistics, the mathematical descriptions of covariance and correlation are very similar. Both describe the degree of similarity between two random variables or sets of random variables.
-
correlation matrix ![\phi_{XY}(n,m) =E[ (X_n-E[X_n])(Y_m-E[Y_m])]/(\sigma_X \sigma_Y) \;](../../../../math/c/7/3/c73e1780b239d549ac0be1a550a5a582.png)
covariance matrix Failed to parse (Cannot write to or create math output directory): \gamma_{XY}(n,m) =E[ (X_n-E[X_n])\,(Y_m-E[Y_m])]
where σX and σY are the standard deviations of the {Xi} and {Yi} respectively. Notably, correlation is dimensionless while covariation is in units obtained by multiplying the units of each variable. The correlation and covariance of a variable with itself (i.e. Y = X) is called the autocorrelation and autocovariance, respectively.
In the case of stationarity, the means are constant and the covariance or correlation are functions only of the difference in the indices:
![\phi_{XY}(m) =E[ (X_n-E[X_n])\,(Y_{n+m}-E[Y_{n+m}])]/(\sigma_{X_n}\sigma_{Y_{n+m}})](../../../../math/7/a/d/7ad2ce2fa0c85a017ea58d1fe5b72d76.png)
![\gamma_{XY}(m)=E[ (X_n-E[X])\,(Y_{n+m}-E[Y])]](../../../../math/4/e/4/4e4fcc551c278d346db78bda7447677e.png)

