The Covariance Matrix
For a random vector with multiple components, the covariance matrix collects all pairwise variances and covariances into a single symmetric square matrix. This lesson defines the covariance matrix, builds 2x2 and 3x3 examples from given variances and covariances, and reads variances, standard deviations, covariances, and correlation coefficients back out of a given covariance matrix.
Tutorial
Introduction
Often we want to track the variability and pairwise relationships of several random variables at once. The covariance matrix packages all of this information into a single square matrix.
Given a random vector its covariance matrix is the matrix whose entry in row and column is the covariance between and
Written out, this is
Two facts make this matrix easy to read off:
-
Diagonal entries are variances. Since the main diagonal lists the variances
-
The matrix is symmetric. Since the entry in row column equals the entry in row column
For two random variables and with and the covariance matrix is