Back to Principal Component Analysis

Activity 7.3.2

Avg difficulty 2.5

Suppose that we work with a dataset having 100 five-dimensional data points. The demeaned data matrix AA is therefore 5×1005\times100 and leads to the covariance matrix C=1100 AATC=\frac1{100}~AA^T, which is a 5×55\times5 matrix. Because CC is symmetric, the Spectral Theorem tells us it is orthogonally diagonalizable so suppose that C=QDQTC = QDQ^T where Q=[u1u2u3u4u5],D=[130000010000002000000000000].Q = \begin{bmatrix} \uvec_1 & \uvec_2 & \uvec_3 & \uvec_4 & \uvec_5 \end{bmatrix},\hspace{24pt} D = \begin{bmatrix} 13 & 0 & 0 & 0 & 0 \\ 0 & 10 & 0 & 0 & 0 \\ 0 & 0 & 2 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 \end{bmatrix}.

  1. What is Vu2V_{\uvec_2}, the variance in the u2\uvec_2 direction?

  2. Find the variance of the data projected onto the line defined by u4\uvec_4. What does this say about the data?

  3. What is the total variance of the data?

  4. Consider the 2-dimensional subspace spanned by u1\uvec_1 and u2\uvec_2. If we project the data onto this subspace, what fraction of the total variance is represented by the variance of the projected data?

  5. How does this question change if we project onto the 3-dimensional subspace spanned by u1\uvec_1, u2\uvec_2, and u3\uvec_3?

  6. What does this tell us about the data?

Austin, Understanding Linear Algebra, §7.3 Principal Component Analysis, Activity 7.3.2

AI Tutor

Adapted from Understanding Linear Algebra © 2023 David Austin. Licensed under CC BY 4.0. Source: Understanding Linear Algebra. Imported at revision 3e6dced.