Let be a symmetric positive semi-definite matrix with eigenvalues . How do you prove that over all matrices with orthonormal columns, is maximised by the top eigenvectors, with maximum value (the Ky Fan theorem)? Why does this justify PCA with components?
Unsupervised learning, Principal component analysis
Level L5 Expert. Length Long. Nature Mat Mathematical.
What's being asked
Whether you can prove the key extremal property that sits behind all multi-component PCA statements, not just the one-component case.
Key idea
Write where and ; a linear function with decreasing weights over this set is maximised by putting on the first indices.
Steps
- Diagonalise with orthonormal eigenvectors . Let , an orthogonal projection of rank . By the cyclic property of the trace, .
- Define . Since is a projection, .
- Also .
- So we maximise subject to and . Because is decreasing, the maximum puts all the weight on the largest values: and the rest .
- Formal check (exchange argument): . Since , call this common value . The first sum is at most , the second is at least , so the difference is at most .
- Equality holds when projects onto the span of the top eigenvectors (if ). So .
- This proves the -component maximum-variance form of PCA directly, and, because the average squared reconstruction error of is for centred data, it also proves the minimum-reconstruction-error form. A greedy approach (choose , then the best direction orthogonal to it) happens to reach the same answer, but it needs this argument to justify it.
Common mistakes
- Proving only the case (Rayleigh quotient) and claiming that greedy selection is optimal for all without argument.
- Forgetting the constraint . Without it, you would put all the weight on .
- Assuming distinct eigenvalues. The maximum value is unchanged by ties, but the maximising subspace is then not unique.
How long your answer should be
One page; 8–10 minutes.
Last checked on 4 December 2026.
Read this
Previous in Unsupervised learning: For whitened data (zero mean, identity covariance), FastICA finds one independent component with the update followed by . How do you derive this fixed-point rule from the kurtosis contrast under using Newton's method?
Next in Unsupervised learning: none