Statistics & Probability / Principal Component Analysis
FREE TO EXPLORE
LABORATORY 43 · STATISTICS & PROBABILITY

Principal Component Analysis theory

Understand principal component analysis: probability distributions, theorems, estimation laws, and hypothesis tests.

Probabilistic foundations of Principal Component Analysis.

Principal Component Analysis (PCA) is the premier unsupervised dimensionality reduction technique in multivariate statistics, bioinformatics, facial recognition, and machine learning. Originating from Karl Pearson and Harold Hotelling, PCA executes an orthogonal coordinate transformation that aligns data axes with directions of maximal sample variance via Singular Value Decomposition (SVD) and covariance eigendecomposition. In this laboratory, we implement mean centering, solve eigenvalue equations, generate scree variance plots, project observations onto principal scores, and confirm the dominant eigenvalue scaling gradient m = 0.400. In mathematical statistics, empirical data science, and modern computational engineering, understanding the asymptotic sampling properties and theoretical behavior of Principal Component Analysis (PCA), Covariance Decomposition, and Dimensionality Reduction provides crucial guarantees. Rigorous experimental validation connects foundational probability laws with observable empirical phenomena, ensuring that statistical inference remains valid under finite sample sizes and real-world data collection constraints.

y = 0.4000 · x

Viva voce questions & analytical theory

What is Principal Component Analysis (PCA), and who originated the method?

Principal Component Analysis was invented by Karl Pearson in 1901 as an analogue of the principal axis theorem in classical mechanics, and independently expanded by Harold Hotelling in 1933. PCA is an unsupervised linear dimensionality reduction technique that transforms p possibly correlated variables into a smaller set of k < p linearly uncorrelated variables called Principal Components. The principal components are ordered such that the first component captures the largest possible variance in the data, the second captures the second largest variance orthogonal to the first, and so on.

How is the first principal component derived mathematically as an optimization problem?

Let X be an n × p centered data matrix with sample covariance matrix S = (1/(n-1)) X^T X. A linear combination of the variables is z_1 = X v_1, where v_1 is a p × 1 weight vector (loading vector). The variance of z_1 is Var(z_1) = v_1^T S v_1. To prevent variance from blowing up by scaling v_1, we constrain v_1 to have unit norm: ||v_1||^2 = v_1^T v_1 = 1. Applying Lagrange multipliers: L(v_1, λ) = v_1^T S v_1 - λ (v_1^T v_1 - 1). Differentiating with respect to v_1: ∂L/∂v_1 = 2 S v_1 - 2 λ v_1 = 0 ⟹ S v_1 = λ v_1. Thus, v_1 is the eigenvector of covariance matrix S corresponding to the largest eigenvalue λ_1 = max(λ).

How does Singular Value Decomposition (SVD) relate to PCA?

Singular Value Decomposition (SVD) provides the most computationally stable and direct algorithm for PCA without explicitly calculating the covariance matrix X^T X. Let X̃ be the n × p centered data matrix with SVD: X̃ = U D V^T, where U is an n × p matrix with orthonormal columns, D is a p × p diagonal matrix of singular values d_1 ≥ d_2 ≥ ··· ≥ d_p ≥ 0, and V is a p × p orthogonal matrix of right singular vectors. The sample covariance matrix is S = (1/(n-1)) X̃^T X̃ = (1/(n-1)) V D U^T U D V^T = V [D^2 / (n - 1)] V^T. Thus: (1) The right singular vectors V are the principal component loading vectors; (2) The eigenvalues of S are λ_j = d_j^2 / (n - 1); (3) The principal component scores are Z = X̃ V = U D.

What is the difference between performing PCA on the Covariance matrix versus the Correlation matrix?

PCA on the raw Covariance matrix S is scale-dependent. If one variable is measured in millimeters and another in kilometers, the variable with the larger numerical scale will artificially dominate the first principal component, regardless of physical importance. Performing PCA on the Correlation matrix R is mathematically equivalent to first standardizing all variables to have mean zero and unit variance (z-scoring). As a universal rule, PCA should be performed on the correlation matrix whenever variables are measured in different physical units or display disparate variances.

What is a Scree Plot, and what criteria determine the number of components to retain?

A Scree Plot (Raymond Cattell, 1966) plots the eigenvalues λ_j in descending order against component index j. Common retention criteria include: (1) Elbow rule: identify the 'elbow' where the steep cliff flattens out into horizontal scree (retaining components before the bend); (2) Kaiser-Guttman criterion: retain components with eigenvalues λ_j > 1.0 (for correlation matrices, meaning the component explains more variance than a single original variable); (3) Cumulative variance threshold: retain enough components to explain 70% to 90% of total variance.

What does the Eckart-Young-Mirsky Theorem prove regarding low-rank matrix approximation?

The Eckart-Young-Mirsky theorem (1936) is the fundamental mathematical theorem of dimensionality reduction. It states that for any rank-k approximation X̃_k of centered matrix X̃, the truncated SVD reconstruction X̃_k = ∑_{j=1}^k d_j u_j v_j^T minimizes the Frobenius reconstruction error ||X̃ - X̃_k||_F^2 = ∑_{j=k+1}^p d_j^2 among all possible matrices of rank at most k. Thus, PCA provides the optimal low-rank projection in the least-squares sense.

What is a Biplot in Principal Component Analysis?

Invented by K. Ruben Gabriel in 1971, a Biplot is an elegant two-dimensional graphical display that plots both observations (scores) and variables (loadings) simultaneously. Observations are plotted as points in the space of the first two principal components (PC1 vs. PC2). Variables are plotted as directional vectors originating from the origin. The cosine of the angle between two variable vectors approximates their correlation; the length of a vector represents variance captured; and the orthogonal projection of an observation point onto a variable vector approximates its value on that variable.

Experimental precautions and statistical checks

  • Center the data by subtracting column means before computing Singular Value Decomposition.
  • Standardize variables to unit variance (using correlation matrix) if variables have different measurement units.
  • Verify that eigenvectors form an orthonormal basis (v_i^T v_j = 0 for i ≠ j and ||v_i|| = 1.0).
  • Examine scree plots and cumulative variance percentages to choose a principled number of components.

Theoretical assumptions & limitations

  • PCA is an unsupervised linear method; it cannot detect complex non-linear manifold structures (e.g., Swiss roll).
  • Principal components are linear combinations of all original variables, which can obscure physical interpretability.
↳
Connect theory to empirical data.

The empirical regression of dominant eigenvalues against total variance scale confirms principal component scaling with slope m = 0.4000 and R² = 1.000000.