PCA & Dimensionality Reduction
Q: What does PCA do? How is it computed?
Find orthogonal directions of maximum variance: eigenvectors of the covariance matrix (or via SVD of the centered data X = UΣVᵀ; components = rows of Vᵀ, explained variance ∝ σ²). Project onto the top-k to compress, denoise or visualize.
- Center (and usually standardize) features first.
- Linear only; for visualization of non-linear structure use t-SNE / UMAP; for learned compression use autoencoders.
- Use cases: speeding up models, removing multicollinearity, visualization, embedding compression.