Finding the Orthogonal Axes: How Principal Component Analysis Maximizes Variance to Compress High-Dimensional Data
By calculating the eigenvectors of a covariance matrix, PCA identifies the directions of maximum variance in a dataset, allowing algorithms to discard redundant dimensions without losing critical information.
- Applied Machine Learning
- Utilizes PCA primarily as a preprocessing step to reduce computational load and prevent overfitting.
- Classical Statistics
- Values PCA for exploratory analysis and interpreting latent variables.
- Advanced Data Topology
- Highlights the limitations of linear projections and advocates for non-linear dimensionality reduction.
Perspectives this story doesn't cover
- Domain experts (e.g., geneticists) who must interpret the physical meaning of the resulting components.
- Hardware engineers optimizing matrix multiplication for PCA on specialized silicon.
Key terms
- Eigenvector
- A vector whose direction remains unchanged when a linear transformation is applied to it, serving as an axis in PCA.
- Eigenvalue
- A scalar number that represents the magnitude of variance captured along its corresponding eigenvector.
- Covariance Matrix
- A square grid of numbers that describes how much each variable in a dataset changes in tandem with every other variable.
- Orthogonal
- Intersecting at right angles; in PCA, this ensures that the new principal components are completely uncorrelated with one another.
- Scree Plot
- A line graph showing the eigenvalues of factors or principal components in descending order, used to determine how many components to retain.
Key points
- PCA compresses high-dimensional data by finding the axes that capture the maximum variance.
- The algorithm calculates the eigenvectors and eigenvalues of the dataset's covariance matrix.
- Each new principal component is mathematically constrained to be orthogonal to the previous ones.
- Engineers often use scree plots to determine the optimal number of components to retain.
- PCA is a linear transformation and struggles with complex, curved data manifolds.
The exact moment a high-dimensional dataset is successfully compressed without losing its underlying structure occurs during the eigendecomposition of its covariance matrix. This specific matrix operation determines exactly which axes hold the most information and which are merely statistical noise. By isolating the eigenvectors associated with the largest eigenvalues, an algorithm locks in the optimal lower-dimensional projection before any actual data transformation takes place.[4][6]
Modern machine learning pipelines often treat dimensionality reduction as a black-box preprocessing step, masking the underlying linear algebra. When a 1,000-dimension dataset is fed into a neural network, the computational cost scales exponentially. Principal Component Analysis (PCA) strips away the marketing language of "feature extraction" to reveal a deterministic mathematical process: rotating the coordinate system to align with the data's natural spread.[3][7]
The process begins by centering the data—subtracting the mean of each variable so the entire dataset rests at the origin. From there, the algorithm computes a covariance matrix, a square grid capturing how every single variable fluctuates in relation to every other variable. As noted in the 2022 analysis by Gregory Gundersen, this matrix is symmetric and positive semi-definite, guaranteeing that its subsequent decomposition will yield real, non-negative eigenvalues.[6]
The critical step is extracting the eigenvectors and eigenvalues from this covariance matrix. An eigenvector represents a direction in the high-dimensional space, while its corresponding eigenvalue quantifies the magnitude of the variance along that specific direction. The first principal component is simply the eigenvector with the absolute highest eigenvalue.[4][5]
This is the variance maximization principle in action. By definition, the first principal component captures the maximum possible variance of the projected data. The second principal component is then calculated under a strict constraint: it must be entirely orthogonal—at a 90-degree angle in multi-dimensional space—to the first component, while capturing the maximum remaining variance.[1][2]
This orthogonality constraint ensures that the new axes are completely uncorrelated. If the original dataset contained two features that moved in tandem, such as square footage and house price, PCA collapses them into a single dominant component. The redundant dimension is effectively flattened, removing multicollinearity from the dataset.[3][7]
This orthogonality constraint ensures that the new axes are completely uncorrelated.
In his foundational 2006 text Pattern Recognition and Machine Learning, Christopher Bishop defines this optimization precisely. Bishop writes that PCA can be defined as "the orthogonal projection of the data onto a lower dimensional linear space, known as the principal subspace, such that the variance of the projected data is maximized."[2]
Bishop also notes that this is mathematically equivalent to minimizing the sum of the squared reconstruction errors—the linear distance between the original data points and their new projected locations. Maximizing the spread of the data simultaneously minimizes the information lost during compression.[2]
In enterprise applications, as detailed in IBM's 2024 technical documentation, PCA is routinely deployed to compress image datasets or genomic sequences where dimensions can number in the tens of thousands. The computational bottleneck lies in the eigendecomposition step, which scales at a time complexity of O(p^3), where p is the number of features.[3]
To decide how many dimensions to keep, practitioners rely on the eigenvalue decay curve, commonly called a scree plot. While theoretical texts often recommend retaining enough components to capture 95% of the total variance, the reality of deploying these models in production often dictates a lower threshold.[2][8]
If the scree plot shows a sharp drop-off—an "elbow"—after the third component, engineers will typically truncate the data there, even if those three components only capture 75% or 80% of the variance. The remaining 20% is mathematically classified as noise, and discarding it often improves the performance of downstream clustering algorithms by preventing overfitting.[3][8]
However, PCA is fundamentally a linear transformation. It assumes that the underlying data structure can be captured by straight lines and flat planes. If the data lies on a complex, curved manifold—like a rolled-up Swiss roll in three-dimensional space—PCA will fail to unroll it, simply projecting the overlapping layers onto a flat grid and destroying the topology.[1][5]
The decision to use PCA thus hinges on the assumption that variance equates to signal. When the most critical information in a dataset is hidden in low-variance anomalies, rotating the axes to maximize the spread will actively bury the very patterns the algorithm was deployed to find. The mathematical elegance of the covariance matrix only guarantees an optimal linear projection; it cannot guarantee that the projection is actually useful.[1][8]
Frequently asked
Does PCA change the original data?
Yes. PCA transforms the original variables into entirely new, uncorrelated variables called principal components, which are linear combinations of the original data.
Why must the data be centered before running PCA?
Centering ensures that the first principal component describes the direction of maximum variance rather than just pointing toward the mean of the dataset.
Can PCA be used for feature selection?
Not directly. PCA creates new features (feature extraction) rather than selecting a subset of the original features, making the resulting components harder to interpret than the raw variables.
What happens if the variables are on different scales?
If variables are not standardized (scaled to have a variance of 1), variables with larger numerical ranges will disproportionately dominate the principal components, skewing the results.
Sources
[1]PMCAdvanced Data TopologyPrincipal component analysis: a review and recent developments
Read on PMC →
[2]Academic/TextbookClassical Statistics12.1. Principal Component Analysis
Read on Academic/Textbook →
[3]IBMApplied Machine LearningWhat Is Principal Component Analysis (PCA)?
Read on IBM →
[4]Harvard (CS181)Classical StatisticsChapter 17 The Math of Principal Component Analysis
Read on Harvard (CS181) →
[5]Anna-Lena PopkesApplied Machine LearningPrincipal component analysis (PCA)
Read on Anna-Lena Popkes →
[6]Gregory GundersenAdvanced Data TopologyPrincipal Component Analysis
Read on Gregory Gundersen →
[7]Built InApplied Machine LearningPrincipal Component Analysis (PCA): Explained Step-by-Step
Read on Built In →
[8]Factlen Editorial TeamSynthesis by Factlen editorial team
Read on Factlen Editorial Team →
Comments
More in Content Types
See all →Network Theory
How the Random Surfer Model and Eigenvector Centrality Actually Rank Web Pages
6 sources
Economic Metrics
Measuring the Tails: How the Palma Ratio's Top 10% Focus Compares to the Gini Coefficient and Theil Index
7 sources
Intellectual Property
Function, Source, and Expression: How Intellectual Property Law Separates Patents, Trademarks, and Copyrights
5 sources
Epidemiology
How the Nine Bradford Hill Criteria Separate Causation from Correlation in Observational Data
6 sources
Every angle. Every day.
Get Content Types stories with full source coverage and perspective breakdowns delivered to your inbox.




