Dimensionality Reduction
Introduction
Modern datasets often contain hundreds or thousands of variables. A genomics study might measure expression levels of , genes; an image may consist of millions of pixels; a text corpus may track frequencies of tens of thousands of words. Working directly with such high-dimensional data creates both computational and statistical challenges.
Dimensionality reduction addresses these challenges by finding lower-dimensional representations that capture the essential structure of high-dimensional data. The goal is to reduce the number of variables while preserving as much relevant information as possible—retaining variance, preserving distances, or maintaining neighborhood relationships.
Beyond efficiency, dimensionality reduction supports visualization (projecting to two or three dimensions), noise reduction, feature extraction, and mitigation of the curse of dimensionality.
The Curse of Dimensionality
The curse of dimensionality refers to phenomena that arise in high-dimensional spaces.
One manifestation is sparsity. The volume of a space grows exponentially with dimension. In a unit hypercube in dimensions, achieving average spacing requires on the order of points.
Another phenomenon is distance concentration. For independent random vectors , .
Distances become nearly indistinguishable, weakening nearest-neighbor methods.
Dimensionality reduction alleviates these effects by projecting data into lower-dimensional subspaces where structure is more meaningful.
Linear Dimensionality Reduction
Given , a linear projection to (with ) has the form where .
Principal Component Analysis
PCA finds orthogonal directions of maximal variance.
Assume centered data . The first principal component solves where .
Using Lagrange multipliers, .
Thus principal components are eigenvectors of , ordered by eigenvalue magnitude.
Reconstruction View
Projection onto the first components yields reconstruction
with mean squared error
PCA via SVD
Let be the centered data matrix. Its SVD:
.
Columns of are principal components, and eigenvalues satisfy .
The projected data equals .
Variance Explained
.
Singular Value Decomposition
Any matrix satisfies
Truncated SVD: .
Eckart–Young theorem:
.
Other Linear Methods
Factor Analysis
.
Linear Discriminant Analysis
.
Solution: leading eigenvector of .
Nonlinear Methods
Multidimensional Scaling
.
Isomap
Uses geodesic distances and MDS.
Locally Linear Embedding
.
t-SNE
.
.
Minimizes KL divergence.
UMAP
Constructs a fuzzy simplicial complex and optimizes a low-dimensional embedding.
Practical Considerations
Centering is essential for PCA. Scaling is necessary when variables differ in units.
Full SVD costs . Truncated methods reduce cost to .
PCA allows out-of-sample projection via learned components; many nonlinear methods do not.
Applications
PCA supports image compression, genomics population analysis, latent semantic analysis, financial factor modeling, and single-cell visualization.
Summary
Dimensionality reduction maps high-dimensional data to lower-dimensional representations while preserving structure. PCA remains the primary linear method due to simplicity and interpretability. Nonlinear methods such as t-SNE and UMAP reveal manifold structure for visualization. The appropriate method depends on the objective, data geometry, and computational constraints.