Quant Memo
Foundational

Eigenvalues & Eigenvectors

The invariant directions of a linear map, the spectral theorem for symmetric matrices, diagonalization as a change to the natural basis, and power iteration, the algorithm that turns eigen-structure into PCA and PageRank.

Prerequisites: Linear Algebra for Quants

An eigenvector is a direction a matrix does not rotate, it only stretches. Finding these invariant directions is how you discover the natural coordinate system of a linear system, in which a tangled transformation becomes a simple set of independent scalings. For quants this is the whole content of principal component analysis, factor models, covariance structure, and the convergence of Markov Chains: the eigenvalues tell you the risk concentrations and the eigenvectors tell you the directions they live in. It is the payoff of the Linear Algebra for Quants machinery.

Definition and the characteristic equation

For a square matrix ARn×nA \in \mathbb{R}^{n\times n}, a nonzero vector vv is an eigenvector with eigenvalue λ\lambda if Av=λv.Av = \lambda v. Applying AA to vv just rescales it. Rearranging, (AλI)v=0(A - \lambda I)v = 0 has a nonzero solution iff AλIA - \lambda I is singular, i.e. det(AλI)=0.\det(A - \lambda I) = 0. This characteristic polynomial is degree nn, so there are nn eigenvalues (with multiplicity, possibly complex). Two invariants read off the roots without solving: the trace equals the sum of eigenvalues, tr(A)=iλi\operatorname{tr}(A) = \sum_i \lambda_i, and the determinant equals their product, det(A)=iλi\det(A) = \prod_i \lambda_i. These give instant sanity checks and, for a covariance matrix, connect total variance (trace) to the eigenvalues that partition it.

The spectral theorem: symmetry is everything

General matrices can have complex eigenvalues, defective (non-diagonalizable) structure, and non-orthogonal eigenvectors. But the matrices quants care about most, covariance matrices, correlation matrices, Hessians, are symmetric, and symmetry buys the cleanest theorem in linear algebra.

Spectral theorem. A real symmetric matrix A=AA = A^\top has (i) all real eigenvalues and (ii) an orthonormal basis of eigenvectors. Hence it factorises as A=QΛQ=i=1nλiqiqi,A = Q\Lambda Q^\top = \sum_{i=1}^n \lambda_i\, q_i q_i^\top, where Q=[q1,,qn]Q = [q_1,\dots,q_n] is orthogonal (QQ=IQ^\top Q = I) and Λ=diag(λ1,,λn)\Lambda = \operatorname{diag}(\lambda_1,\dots,\lambda_n). The second form, a sum of rank-one projections weighted by eigenvalues, is the one to internalise: a symmetric matrix is a superposition of orthogonal "modes", each a direction qiq_i with a strength λi\lambda_i. For a covariance matrix these are exactly the principal components: qiq_i is the ii-th uncorrelated risk direction and λi\lambda_i is the variance along it. This is why the top eigenvector of an equity covariance matrix is "the market", the direction of greatest common variance.

Diagonalization: computing in the natural basis

Diagonalization is the operational value of eigenvectors. If A=QΛQ1A = Q\Lambda Q^{-1} (with Q1=QQ^{-1} = Q^\top in the symmetric case), then in the eigenbasis AA acts as independent scalings, which makes matrix functions trivial: Ak=QΛkQ1,eA=QeΛQ1,A^k = Q\Lambda^k Q^{-1}, \qquad e^{A} = Q e^{\Lambda} Q^{-1}, because Λk\Lambda^k just raises each diagonal entry to the kk. This is how you compute matrix powers (transition-matrix limits, PnP^n for a Markov Chains chain), matrix exponentials (continuous-time generators), and matrix square roots (A1/2=QΛ1/2QA^{1/2} = Q\Lambda^{1/2}Q^\top, used to generate correlated Gaussians). The dynamics of xk+1=Axkx_{k+1} = Ax_k are governed entirely by the eigenvalues: components along qiq_i evolve as λik\lambda_i^k, so λ>1|\lambda| > 1 directions explode, λ<1|\lambda| < 1 decay, and the spectral radius maxiλi\max_i|\lambda_i| decides stability. The gap between the top two eigenvalues sets the rate, precisely the mixing rate of a Markov chain.

Worked example, the eigenvalues of a 2×2 covariance

Take the correlation-like matrix A=(1ρρ1).A = \begin{pmatrix} 1 & \rho \\ \rho & 1 \end{pmatrix}. The characteristic equation is (1λ)2ρ2=0(1-\lambda)^2 - \rho^2 = 0, so 1λ=±ρ1 - \lambda = \pm\rho and the eigenvalues are λ=1+ρ\lambda = 1+\rho and λ=1ρ\lambda = 1-\rho. The eigenvectors are q1=12(1,1)q_1 = \tfrac{1}{\sqrt2}(1,1) (the "common mode", both assets moving together, variance 1+ρ1+\rho) and q2=12(1,1)q_2 = \tfrac{1}{\sqrt2}(1,-1) (the "spread mode", variance 1ρ1-\rho). Notice: as ρ1\rho \to 1 the spread-mode eigenvalue 0\to 0, the matrix becomes singular and rank-one, meaning the two assets are effectively one risk factor. This tiny example is PCA: the first principal component is the market direction with the larger eigenvalue, and a small second eigenvalue signals redundancy and an ill-conditioned covariance, the seed of unstable optimisation. It also foreshadows Positive Semidefinite Matrices: eigenvalues stay 0\ge 0 only while ρ1|\rho| \le 1.

Power iteration: the algorithm behind PCA and PageRank

You rarely need all nn eigenpairs; often just the dominant one. Power iteration exploits diagonalization directly: start with a random x0x_0 and repeatedly apply and normalise, xk+1=AxkAxk.x_{k+1} = \frac{Ax_k}{\lVert Ax_k\rVert}. Writing x0=ciqix_0 = \sum c_i q_i in the eigenbasis, Akx0=ciλikqiA^k x_0 = \sum c_i \lambda_i^k q_i; the largest λ|\lambda| term dominates as kk grows, so xkq1x_k \to q_1 (the top eigenvector) and the associated Rayleigh quotient xkAxk/xkxkλ1x_k^\top A x_k / x_k^\top x_k \to \lambda_1. Convergence speed is governed by the ratio λ2/λ1|\lambda_2/\lambda_1|, the spectral gap again. This is how the leading principal component of a huge covariance matrix is extracted without a full decomposition, how Google's original PageRank found the dominant eigenvector of the web's link matrix, and (with deflation or shifts) how successive components follow. For symmetric matrices, more robust variants (Lanczos, QR algorithm) are production standard, but power iteration is the conceptual core.

Failure modes and subtleties

  • Non-symmetric matrices misbehave. They can have complex eigenvalues, non-orthogonal eigenvectors, or be defective (fewer independent eigenvectors than nn, so no diagonalization, only Jordan form). Transition matrices of Markov Chains are non-symmetric; their eigenvectors are not orthogonal, so PCA intuition does not transfer directly.
  • Eigenvalues are unstable under noise for close spectra. When two eigenvalues are nearly equal, their individual eigenvectors are extremely sensitive to sampling error, a real problem for estimated covariance matrices where trailing eigenvalues are dominated by noise (random matrix theory / Marchenko–Pastur describes the noise floor).
  • Sign and ordering are conventions. Eigenvectors are defined up to sign (and scale); PCA loadings can flip sign between samples, which is not instability, just convention. Order by eigenvalue explicitly.
  • Multiplicity gives eigen-spaces, not eigen-vectors. A repeated eigenvalue has a whole subspace of eigenvectors; any orthonormal basis of it is valid, so individual directions are not identified.
  • Trace/determinant checks catch errors. If your computed eigenvalues don't sum to the trace or multiply to the determinant, the computation is wrong, a cheap, always-available validation.

In interviews

Expect to compute the eigenvalues of a small (often 2×22\times2) matrix from the characteristic equation, and to use trace-and-determinant as a shortcut. The symmetric-matrix facts are prized: "what do you know about the eigenvalues and eigenvectors of a covariance matrix?", real, non-negative, orthogonal eigenvectors, and they are the principal components. Be ready to explain diagonalization as computing in the eigenbasis and why it makes AkA^k easy, connecting to Markov-chain convergence via the spectral gap. Power iteration is a favourite "how would you find the top principal component of a giant matrix?" answer. The unifying message: eigen-decomposition finds the coordinate system in which risk is a set of independent variances, which is the direct on-ramp to Singular Value Decomposition and PCA (Principal Component Analysis).

Related concepts

Practice in interviews

Further reading

  • Strang, Introduction to Linear Algebra
  • Horn & Johnson, Matrix Analysis
  • Golub & Van Loan, Matrix Computations
ShareTwitterLinkedIn