Plays from YouTube. Watch on YouTube
How can we compress a dataset into fewer dimensions without losing its most important information?
Meet Principal Component Analysis (PCA): one of the foundational techniques in unsupervised machine learning and dimensionality reduction.
We start with a cloud of data points, then explore how PCA finds the directions that capture the greatest variation in the data.
From there, we break down mean centering, orthogonal projections, reconstruction error, covariance matrices, and eigenvectors including why the principal components correspond to the directions of maximum variance.
Then we explore explained variance, the covariance eigendecomposition, and Singular Value Decomposition (SVD) showing how PCA turns high-dimensional data into compact, lower-dimensional representations.
Finally, we examine low-rank matrix approximations, the connection to linear autoencoders, feature scaling, whitening, and data leakage and why preserving variance doesn't necessarily mean preserving information useful for prediction.
The big idea: PCA doesn't simply remove dimensions. It finds a new coordinate system that captures as much variation as possible using fewer features.
Machine learning explained visually, one concept at a time.