Principal Components from Centered Data

Derive the first principal direction from projected variance and recover all components through the singular value decomposition.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Centering turns second moments into variation about the mean
  2. The measurement scale defines which variation looks large

Centering turns second moments into variation about the mean

Subtract each feature’s sample mean from the corresponding column of \(X\). The sample variance along a unit vector \(v\) is \(\|Xv\|_2^2/(n-1)\) for the centered matrix and \(n>1\). Maximizing it chooses a right singular vector with largest singular value. Orthogonal directions continue by decreasing singular values. If two largest values tie, the leading subspace can be meaningful without a unique first axis.

The measurement scale defines which variation looks large

A feature measured in large units can dominate unstandardized PCA. Standardizing beforehand changes the geometry and should be fit on training data when used in prediction. Components preserve high-variance directions, not necessarily label-relevant differences. Singular value decomposition describes the truncation norm. Evaluation leakage explains why held-out examples should not fit the transform.[1][2]

References

  1. Gareth James et al., An Introduction to Statistical Learning ↩
  2. Trevor Hastie, Robert Tibshirani and Jerome Friedman, The Elements of Statistical Learning ↩