Covariance
Covariance is a measure of how much two random variables change together. For random variables X and Y with finite expected values, the population covariance is defined as Cov(X,Y) = E[(X - E[X])(Y - E[Y])] = E[XY] - E[X]E[Y].
Properties include symmetry (Cov(X,Y) = Cov(Y,X)) and linearity in each argument: Cov(aX + b, cY + d) = ac Cov(X,Y)
The sample covariance between observed pairs (xi, yi), i = 1,...,n, is Sxy = (1/(n-1)) Σ (xi - x̄)(yi - ȳ). This
Relation to correlation: Corr(X,Y) = Cov(X,Y) / (σ_X σ_Y), where σ_X and σ_Y are the standard deviations of
Applications and interpretation: covariance is fundamental in multivariate statistics and finance, underpinning the covariance matrix used