Lably
Skip to content

Covariance matrix

Measure of covariance of components of a random vector

  • 10 min read
  • 10 chapters

Related on Lably

Through Statistics, Matrix (mathematics) and Symmetric matrix

Intuitively, the covariance matrix generalizes the notion of variance to multiple dimensions. As an example, the variation in a collection of random points in two-dimensional space cannot be characterized fully by a single number, nor would the variances in the x and y directions contain all of the necessary information; a 2×2 matrix would be necessary to fully characterize the two-dimensional variation.

Any covariance matrix is symmetric and positive semi-definite and its main diagonal contains variances (i.e., the covariance of each element with itself).

The covariance matrix of a random vector X is typically denoted by KXX, Σ or S.

Definition

Throughout this article, boldfaced unsubscripted X and Y are used to refer to random vectors, and Roman subscripted Xi and Yi are used to refer to scalar random variables.

If the entries in the column vector X=(X1,X2,…,Xn)T are random variables, each with finite variance and expected value, then the covariance matrix KXX is the matrix whose (i,j) entry is the covariance KXiXj=cov⁡[Xi,Xj]=E⁡[(Xi−E⁡[Xi])(Xj−E⁡[Xj])] where the operator E denotes the expected value (mean) of its argument.

Conflicting nomenclatures and notations

Nomenclatures differ. Some statisticians, following the probabilist William Feller in his two-volume book An Introduction to Probability Theory and Its Applications, call the matrix KXX the variance of the random vector X, because it is the natural generalization to higher dimensions of the 1-dimensional variance. Others call it the covariance matrix, because it is the matrix of covariances between the scalar components of the vector X. var⁡(X)=cov⁡(X,X)=E⁡[(X−E⁡[X])(X−E⁡[X])T].

Both forms are quite standard, and there is no ambiguity between them. The matrix KXX is also often called the variance-covariance matrix, since the diagonal terms are in fact variances.

By comparison, the notation for the cross-covariance matrix between two vectors is cov⁡(X,Y)=KXY=E⁡[(X−E⁡[X])(Y−E⁡[Y])T].

Sign in to keep reading

9 more chapters are free with a Lably account.

More in Statistics