Tested tool guide
Tested browser tools
Checked August 16, 2026
What PCA Dimensionality Reduction Visualizer does, with a checked example
This tool centers a set of 2D or 3D points on their mean, builds the covariance matrix, and solves for its eigenvectors and eigenvalues to find the directions along which the data spreads out most. Those eigenvectors are drawn as axes through the centroid, ranked by the percentage of total variance each explains, and the original points are re-expressed as coordinates along them. The thing people get wrong most often: eigenvector direction is arbitrary (pointing one way or its exact opposite is equally valid), and if points are nearly collinear, one component can end up explaining almost all the variance while the other explains almost none.
Worked example
A concrete input and expected output from the current implementation.
Input
(0,0), (1,1), (2,2), (3,3)
->
Expected output
Mean (1.5, 1.5). Eigenvalues: 10/3 (~3.333) and 0. PC1 direction (0.7071, 0.7071) explains 100% of variance; PC2 direction (0.7071, -0.7071) explains 0%. Projected PC1 scores: -2.121, -0.707, 0.707, 2.121.
All four points sit exactly on the line y = x, so every bit of spread lies along the (1,1) direction and none is left over for the perpendicular direction, which is why one eigenvalue is 10/3 and the other is exactly 0.