Please verify you are human to use the visualiser.
A covariance matrix is symmetric, so its eigenvectors come out orthogonal and each eigenvalue is the variance along its direction. Load the Covariance matrix preset and the green lines are PC1 and PC2.
Most vectors get rotated when you multiply them by a matrix. An eigenvector is special: it lands on its own line, only stretched, shrunk, or flipped. Drag the angle slider to find those directions.
The eigenvalue λ is the factor by which its eigenvector stretches. λ > 1 lengthens, 0 < λ < 1 shrinks, and λ < 0 flips the direction. On a covariance matrix the eigenvalues sum to the trace, so each one divided by the trace is an explained variance ratio.
Singular value decomposition writes any matrix as U·Σ·Vᵀ, turning the unit circle into an ellipse. Singular values are the square roots of the eigenvalues of AᵀA, which is why libraries compute PCA this way.
Principal Component Analysis reduces to an eigenvalue problem. Take the covariance matrix of a dataset, find its eigenvectors, and those directions are the principal components; the matching eigenvalues are the variance captured along each one. This page is that calculation in two dimensions, taking the matrix directly. To start from data instead, the PCA visualizer builds the same decomposition from a point cloud and adds a scree plot. The derivation is worked through in Principal Component Analysis, where SVD and eigendecomposition meet, and LDA solves a closely related eigenvalue problem to find directions that separate classes rather than maximise spread.
Away from data, the same eigenvectors describe the directions a transformation leaves invariant, the axes along which it only stretches. They power everything from the stationary distribution of a Markov chain (the dominant eigenvector of the transition matrix) to the long-run behaviour of any repeated linear process.
SVD generalises the idea to every matrix, including rectangular and singular ones. Factoring A = U·Σ·Vᵀ exposes the singular values, the lengths of the ellipse axes you see in the SVD tab, and these square-root to the eigenvalues of AᵀA. Numerical libraries run PCA through the SVD of the centred data matrix for that reason, since it never forms the covariance matrix and so never squares the condition number.
The same machinery shows up across machine learning. The probabilistic view in probabilistic PCA and factor analysis recasts these eigenvectors as a latent-variable model; the normal-equations and SVD solutions to linear regression rely on the singular values to stay numerically stable; and Poincare embeddings show what happens when the space itself is curved rather than linearly transformed, and collaborative-filtering recommenders factor a sparse rating matrix into low-rank embeddings, which is truncated SVD in disguise.
Choosing how many components to keep is a modelling decision with a business consequence, because the directions you discard are the ones every downstream model is then blind to. Judging whether a dataset carries the signal a proposed system needs is part of our AI due diligence work, and for firms building that judgement in-house, our AI consulting for mid-market companies.
Editable transition matrices, stationary distribution computation, and convergence simulation with stacked area charts.
Try itInteractive linear and polynomial regression calculator. Enter data points, fit models, and visualise residuals with live R² and coefficient estimates.
Try itInteractive Gaussian process regression with RBF kernel. Add data points, adjust hyperparameters, and see posterior mean with uncertainty bands.
Try itStep-by-step convolution animation with heatmap grids. Watch a kernel slide across input, see element-wise multiplication, and adjust stride, padding, and dilation.
Try itGet notified when new tutorials and deep-dives are published. No spam, unsubscribe anytime.
Common questions about principal components, explained variance, eigenvectors and singular value decomposition