Abstract: This tutorial paper provides a comprehensive mathematical roadmap for Principal Component Analysis (PCA) and its extensions. We explore standard PCA through both projection and reconstruction frameworks, establishing its mathematical equivalence to linear autoencoders. The tutorial further delves into Dual PCA for high-dimensional data, Kernel PCA for non-linear manifolds, and Supervised PCA (SPCA) using the Hilbert-Schmidt Independence Criterion (HSIC) to incorporate label information. We conclude with practical applications on face datasets to validate the theoretical frameworks.
Introduction
Principal Component Analysis (PCA) is a cornerstone of data science, yet standard linear PCA faces significant hurdles in modern machine learning. It struggles with non-linear data structures, ignores class labels during feature extraction, and faces computational bottlenecks when the number of features ($d$) greatly exceeds the number of samples ($n$). This tutorial addresses these gaps by providing a unified mathematical framework for PCA and its supervised and non-linear variants.
Standard PCA and Geometric Intuition
Standard PCA can be viewed through two lenses: maximizing the variance of projected data or minimizing the reconstruction error. Geometrically, PCA finds a principal direction that minimizes the orthogonal distance between the original data points and their projections onto a lower-dimensional subspace. This differs fundamentally from linear regression, which minimizes vertical distance relative to a dependent variable.
Advanced Variants: Dual, Kernel, and Supervised PCA
When dealing with high-dimensional data where $d \gg n$, Dual PCA shifts the computational burden from a $d \times d$ covariance matrix to an $n \times n$ matrix, significantly improving efficiency. Kernel PCA extends this by using the "kernel trick" to map data into an implicit high-dimensional feature space, allowing for the capture of non-linear manifolds like the "Swiss roll."
Supervised PCA (SPCA) incorporates class labels by maximizing the statistical dependence between the projected data and labels using the Hilbert-Schmidt Independence Criterion (HSIC). This ensures that the extracted features are not just high-variance, but also discriminative for classification tasks.
The Autoencoder Connection
A pivotal insight in modern dimensionality reduction is the link between PCA and neural networks. A linear undercomplete autoencoder with a single hidden layer and no non-linear activations is mathematically equivalent to PCA. As shown in the figure below, complex multi-layer linear structures can be collapsed into single weight matrices that perform the same projection and reconstruction operations as PCA.
Key Results and Practical Applications
Simulations on the AT&T Face Dataset demonstrate that SPCA captures different features than standard PCA. While standard PCA focuses on global lighting and face shape, SPCA can isolate discriminative features like the presence of glasses. Furthermore, the tutorial provides robust formulas for out-of-sample projection, ensuring these models can generalize to unseen data in real-world deployments.
Conclusion
By bridging the gap between unsupervised linear projection and supervised non-linear manifold learning, this tutorial provides the necessary tools for sophisticated feature extraction. While challenges remain in kernel selection and scaling to massive datasets, techniques like Supervised Random Projection offer promising paths for future research.
Summary updated