Let's return to the dataset from the previous activity in which we have demeaned data points: Our goal is to compute the variance in the direction defined by a unit vector .
To begin, form the demeaned data matrix and suppose that is a unit vector.
Write the vector in terms of the dot products .
Explain why .
Apply this proposition to explain why
In general, the matrix is called the covariance matrix of the dataset, and it is useful because the variance , as we have just seen. Find the matrix for our dataset with three points.
Use the covariance matrix to find the variance when .
Use the covariance matrix to find the variance when . Since and are orthogonal, verify that the sum of and gives the total variance.
Explain why the covariance matrix is a symmetric matrix.
Austin, Understanding Linear Algebra, §7.1 Symmetric matrices and variance, Activity 7.1.5