The Variance That Vanishes: Why PCA Features Are Uncorrelated
You fit PCA to a data matrix (columns centered). Let be the principal components (eigenvectors of the sample covariance matrix , ordered by decreasing eigenvalue ).
Define the scores for each .
(a) Show that the sample variance of the scores equals .
(b) Show that the scores and are sample-uncorrelated for , i.e., .
(c) Here is the conceptual puzzle: the original features (columns of ) may be highly correlated. PCA produces perfectly uncorrelated scores. Where did the correlation go? Give a one-paragraph intuitive explanation without formulas.
Answer: The Variance That Vanishes: Why PCA Features Are Uncorrelated
Key Idea / Intuition
The sample covariance matrix captures all pairwise correlations among features. PCA finds an orthogonal change of basis that simultaneously diagonalizes โ this is just the spectral theorem for symmetric matrices. In the new basis, the "variance budget" of the data is redistributed along directions of maximal spread, and the off-diagonal correlations literally become zero because the eigenvectors are orthogonal. The correlation didn't disappear โ it was rotated into pure variance along each principal axis.
Formal Proof / Solution
Setup
The sample covariance matrix is . Since is real symmetric, the spectral theorem gives
Part (a): Sample variance of scores equals
The score vector is .
The sample mean of : since columns of are centered, , so . The scores are automatically mean-zero.
The sample variance is:
Since and :
Part (b): Scores are sample-uncorrelated
For :
Now use :
since eigenvectors of a symmetric matrix for distinct eigenvalues are orthogonal (and even when , we choose an orthonormal basis within each eigenspace).
Note: This calculation is exactly the statement that is diagonalized by :
Part (c): Where did the correlation go?
The original features correlate because they share underlying "directions of variation" โ e.g., two financial stocks both driven by a common market factor. PCA identifies those directions explicitly: the first principal component points along the axis of maximum joint variation, the second along the next most, and so on, all forced to be mutually perpendicular. By projecting onto these axes, we decompose the total variance cleanly โ each score captures one "pure" source of variation and is blind to the others. The correlations weren't destroyed; they were reorganized: what appeared as cross-feature covariance is now concentrated entirely on the diagonal (the eigenvalues), while the off-diagonal entries vanish by orthogonality. Think of it as rotating the data cloud so its principal axes align with the coordinate axes โ a tilted ellipse becomes an axis-aligned one, and axis-aligned ellipses have uncorrelated coordinates.
Summary Table
| Quantity | Value | |---|---| | | | | , | | | Total variance preserved | |
The last row is the trace invariance: rotation preserves total variance, just redistributes it.
Source: The Elements of Statistical Learning, Ch. 3 & 14 (Hastie, Tibshirani, Friedman)