Dimensionality Reduction
Dimensionality reduction maps high-dimensional data into a smaller representation while trying to preserve useful structure.
For PCA, the projection matrix is chosen to preserve maximum variance:
Here is the centered data matrix and contains the projection directions.
The reduced representation is:
where is the number of examples, is the original feature dimension, and is the reduced dimension.
Uses
- Visualization.
- Noise reduction.
- Feature compression.
- Representation analysis.
Common Methods
| Method | Preserves | Use With Care |
|---|---|---|
| PCA | global linear variance directions | high variance may be nuisance variation |
| SVD | low-rank linear structure | scaling and centering change components |
| random projection | approximate distances under dimension reduction | interpretability is limited |
| t-SNE | local neighborhood visualization | global distances and cluster sizes are not reliable |
| UMAP | neighborhood graph visualization | hyperparameters strongly change the map |
| autoencoder | nonlinear reconstruction through a bottleneck | reconstruction quality is not task utility |
For SVD:
where contains the top right singular vectors. PCA can be computed from this decomposition when is centered.
Evaluation Uses
| Use | Correct Interpretation |
|---|---|
| embedding visualization | qualitative inspection only |
| feature compression | compare downstream metric at fixed train/validation/test split |
| denoising | verify that removed components are not task signal |
| representation analysis | inspect spectrum, rank, cluster stability, and nearest neighbors |
| preprocessing step | fit reducer on training data, then apply to validation/test |
Watch For
- A 2D visualization is not proof of separability.
- Neighborhood structure can be distorted.
- Fitting reduction before splitting data can leak information.
- Choosing on the test set is model-selection leakage.
- Color-coded clusters may reflect source, batch, scaffold, or family rather than the intended label.
- UMAP/t-SNE plots should not be used as quantitative evidence without a task metric.