Covariance
Jump to navigation
Jump to search
The extent of the relationship between two variables. It is an inherently algebraic concept and cannot be defined without reference to algebra. Where variables have been normalized the covariance is equal to the correlation.
The covariance between two jointly distributed numeric random variables, X and Y with expectations is defined as:
- [math]\displaystyle{ Covariance(X,Y) = \operatorname{E}{\big[(X - \operatorname{E}[X])(Y - \operatorname{E}[Y])\big]} }[/math]
Where [math]\displaystyle{ x_i }[/math] and [math]\displaystyle{ y_i }[/math] are the realized values of X and Y in a sample of n observations and [math]\displaystyle{ \bar{x} }[/math] and [math]\displaystyle{ \bar{y} }[/math] are their respective means, the sample covariance is estimated as:
- [math]\displaystyle{ Covariance(x,y) = \frac{1}{n-1}\sum^n_{i=1}(x_i - \bar{x})(y_i - \bar{y}) }[/math]