Skip to main content
Interactive 3D/PCA Explorer
● Points·-- 2σ ellipse·→ PC1·→ PC2
Data Parameters
Correlation ρ0.70
Spread σ1.5
Variance Explained
PC150.0%
PC250.0%
Eigenvalues
λ₁ = 0.000
λ₂ = 0.000
Cov =
[0.00, 0.00]
[0.00, 0.00]
About PCA
PCA finds the eigenvectors of the covariance matrix. PC1 points in the direction of maximum variance. PC2 is perpendicular and captures what is left.
Try ρ near ±0.95: nearly all variance falls on PC1 - one principal component is nearly enough.

PCA Explorer - Interactive Visualization

Principal Component Analysis finds the directions of maximum variance in data. This explorer generates 100 correlated Gaussian points and shows you the covariance ellipse, PC1 and PC2 axes scaled by their eigenvalues, and the variance explained by each component. Adjusting the correlation ρ shows how PCA adapts to the data structure - when ρ approaches ±1, one component captures almost all variance.

  • Generate correlated 2D data with adjustable ρ and spread σ
  • See covariance ellipse and principal component axes emerge
  • Watch variance explained bars update as correlation changes
  • Understand why PCA finds eigenvectors of the covariance matrix
  • See the connection between SVD and PCA

Part of the EngineersOfAI Interactive 3D - free interactive visualizations covering every major concept in machine learning and AI engineering. Hover any element for a plain-English explanation. No code required.