Eigenvalue and SVD Visualizer

Principal components are the eigenvectors of a covariance matrix, and the variance each one explains is its eigenvalue. Edit a 2×2 matrix and read both straight off the plot, then switch to SVD to watch the unit circle become an ellipse through a rotate-scale-rotate decomposition.

Please verify you are human to use the visualiser.

PCA, Eigenvalues and Singular Values

Principal Components Are Eigenvectors

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.

Eigenvectors Hold Direction

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.

Eigenvalues Set the Scale

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.

SVD = Rotate · Scale · Rotate

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.

PCA as an Eigenvalue Problem

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.

Related Tools

Stay in the loop

Get notified when new tutorials and deep-dives are published. No spam, unsubscribe anytime.

PCA, Eigenvalue and SVD FAQ

Common questions about principal components, explained variance, eigenvectors and singular value decomposition