Back

PCA Factor Decomposition

Run PCA on 8 correlated stock signals. See how many independent factors actually drive the data — eigenvalues, explained variance, and factor loadings.

Feb 23, 2026, Eric

The Core Idea

Principal Component Analysis decomposes a covariance matrix into eigenvalues (how much variance each factor explains) and eigenvectors (the factor loadings — which original signals contribute to each hidden factor). If 8 correlated signals can be explained by 3 principal components, you effectively have only 3 independent sources of information, not 8.

Mathematically: Σ = V Λ Vᵀ, where Λ is a diagonal matrix of eigenvalues and V is the orthogonal matrix of eigenvectors.

Dataset — 8 Signals × 252 Days

SPYQQQIWMTLTMomentumRSIVolTrend

Correlated via Cholesky decomposition: 3 latent drivers (equity factor, rates factor, volatility regime). One year of simulated daily data.

4 principal components explain ≥ 90% of total variance across all 8 signals. You have fewer independent signals than you think.

Scree Plot — Variance Explained per Component

Each bar is the eigenvalue share of that principal component. The line shows cumulative explained variance.

89.1% cumulative

Cumulative Explained Variance

Dashed line = 90% threshold (4 components needed).

Factor Loadings (Top 3 Components)

Each bar shows how much a signal contributes to that principal component. Large absolute values = strong loading. Opposite signs = signals moving in opposite directions on that factor.

PC166.4% of variance
SPY
+0.298
QQQ
+0.388
IWM
+0.316
TLT
-0.097
Momentum
+0.308
RSI
-0.334
Vol
-0.596
Trend
+0.300
PC213.4% of variance
SPY
-0.177
QQQ
-0.368
IWM
-0.508
TLT
-0.015
Momentum
+0.209
RSI
-0.706
Vol
-0.001
Trend
+0.179
PC39.4% of variance
SPY
-0.289
QQQ
-0.357
IWM
-0.116
TLT
-0.338
Momentum
-0.348
RSI
+0.259
Vol
-0.687
Trend
+0.042

Eigenvalue Summary

ComponentEigenvalueVariance %Cumulative %
PC19.29 ×10⁻⁴66.4%66.4%
PC21.87 ×10⁻⁴13.4%79.8%
PC31.31 ×10⁻⁴9.4%89.1%
PC40.59 ×10⁻⁴4.2%93.4%
PC50.42 ×10⁻⁴3.0%96.3%
PC60.27 ×10⁻⁴1.9%98.2%
PC70.19 ×10⁻⁴1.4%99.6%
PC80.05 ×10⁻⁴0.4%100.0%