EasyDeepLearn

PCA via SVD — the connection.

medium

Answer

  • For centered X (n × p), SVD gives X = UΣV'.
  • Principal directions = columns of V (right singular vectors).
  • Principal scores = UΣ.
  • Explained variance ratios ∝ diag(Σ)2\operatorname{diag}({\Sigma})^{2}.
  • More numerically stable than eigendecomposing X'X (which squares condition number).
  • Standard scikit-learn PCA uses SVD internally.
  • Randomized SVD (Halko-Tropp) approximates top-k in O(np log k) — big-data default.
Check yourself — multiple choice
  • Random
  • SVD X = UΣV' → V = principal directions, UΣ = scores; more stable than eigen(X'X); randomized SVD for scale
  • Same as t-SNE
  • Only for small X

PCA via SVD: V = directions, UΣ = scores; randomized SVD at scale.

#dimensionality-reduction#pca

Practise Unsupervised Learning

214 interview questions in this topic.

Related questions