The PCA Variance You're Not Capturing
You run PCA on a data matrix (centered, ) and keep only the top principal components, obtaining a rank- approximation .
The reconstruction error is measured by:
Question: Show that this equals the sum of the discarded eigenvalues of the sample covariance matrix . That is, if are the eigenvalues of , then:
Bonus: What does this tell you about the optimal rank- approximation to ?
Answer: PCA Reconstruction Error and Discarded Eigenvalues
Key Idea / Intuition
The Frobenius norm of a matrix is just the sum of squared singular values, and singular values of are directly related to eigenvalues of . PCA throws away the directions corresponding to the smallest singular values, so the reconstruction error is precisely the total "energy" in those discarded directions. This is also the content of the Eckart–Young theorem: PCA gives the best possible rank- approximation in Frobenius norm.
Formal Proof / Solution
Setup via SVD. Write the thin SVD of the centered matrix: where has orthonormal columns, with , and is orthogonal.
Relating singular values to covariance eigenvalues. The sample covariance is: So the eigenvalues of are , i.e., .
The rank- PCA approximation. Keeping the top principal components means: where the subscript denotes the first columns/rows. This is exactly the best rank- approximation by the Eckart–Young theorem.
Computing the reconstruction error. The error matrix is:
Taking the Frobenius norm and using orthonormality of :
since and cross terms vanish by orthogonality. Substituting :
Bonus — Optimality. The Eckart–Young theorem states that among all rank- matrices :
So PCA doesn't just minimize reconstruction error in some heuristic sense—it is provably the optimal rank- approximation. The proportion of variance retained is: which is exactly the "explained variance ratio" reported by every PCA implementation. The reconstruction error formula makes this precise: you're losing exactly the variance in the dropped directions, nothing more and nothing less.
Source: The Elements of Statistical Learning, Ch. 3 & 14; standard linear algebra / ML folklore