Principal Component Analysis (PCA)

For a data matrix with SVD ,


  1. where is an orthonormal matrix such that , and consists of the first columns of the matrix of principal components .


  2. where , and is the span of the first columns of the matrix of principal components .

Intuition

We can compute the PCA of a data matrix by first centering around the mean of its datapoints () s.t. . Then, . Suppose that the ground truth data matrix (containing the noiseless data) in reality spans an -dimensional subspace , such that . Then, the remaining dimensions of are due to noise. The goal of PCA is to extract the “best” -dimensional subspace from the noisy data such that it minimizes the distance between the real subspace and our approximation. We can see the differences between this optimization approach and least squares optimization below:

We can s