Search

Search papers and lessons

Random Matrix

Level 4 · 12 min read

A random matrix has random entries; its eigenvalues are unpredictable one by one, but for large matrices they settle into a fixed, predictable shape.

On this page

  • Colour = topic mix
  • Probability
  • Linear algebra
  • Discrete math
  • Calculus
  • ReadReady to readNot yet

TL;DR

A random matrix is a matrix whose entries are random numbers, such as independent draws from a bell curve. Each eigenvalue of such a matrix is unpredictable on its own, but when the matrix is large, the eigenvalues as a whole settle into a fixed, predictable shape. Random matrix theory studies that shape, which lets engineers and physicists predict the behaviour of big systems without tracking every entry.

Builds on: Symmetric Matrix, Eigenvalues and Eigenvectors, Gaussian (Normal) Distribution, Law of Large Numbers · Leads to: Johnson–Lindenstrauss Lemma, Restricted Isometry Property, Compressed Sensing, Large-N Limit

Where it's used

Nuclear physics. In the 1950s Eugene Wigner needed a model for the energy levels of heavy atomic nuclei. Those levels cannot be computed from first principles, so he modelled the system as the eigenvalues of a large random symmetric matrix. The spacing pattern of the model matched the patterns seen in measured nuclear data, and the idea spread to many areas of physics.

Wireless communication. A base station with many antennas talks to many devices through a channel matrix whose entries are random fading coefficients. How much data the channel can carry depends on the singular values of that matrix (Singular Value Decomposition (SVD)). For large antenna arrays these values behave predictably, so engineers can design the system without measuring every fading coefficient in advance. See Massive MIMO for Next Generation Wireless Systems.

Compressed sensing. A camera or medical scanner can take fewer measurements than pixels if the measurement matrix is random. Recovery guarantees depend on how that matrix behaves on sparse vectors, and random Gaussian matrices satisfy the needed conditions with high probability. See Compressed Sensing and Restricted Isometry Property.

Multivariate statistics. If you measure 200 variables on 1000 people and the variables are pure noise, the eigenvalues of the sample covariance matrix are still spread out, not all equal to 1. Knowing the shape of that spread tells you how much structure in a real dataset is signal and how much is noise.

How it works

Take one tiny instance and follow it from start to finish. The steps are the same for any size.

  1. Draw the entries. Build a 2 by 2 symmetric matrix WW with three independent entries: the two diagonal entries w11w_{11} and w22w_{22}, and the off-diagonal entry w12w_{12}, which also serves as w21w_{21}. Draw each from a bell curve with mean 0. Suppose the draws are w11=1w_{11} = 1, w22=−1w_{22} = -1, w12=2w_{12} = 2. Then W=(122−1)W = \begin{pmatrix} 1 & 2 \\ 2 & -1 \end{pmatrix}. Check: the matrix is symmetric, since the entries across the diagonal match. The three numbers were drawn independently.

  2. Find the eigenvalues. For a 2 by 2 matrix, the eigenvalues solve a quadratic whose coefficients come from the trace (the sum of the diagonal, 1+(−1)=01 + (-1) = 0) and the determinant (1⋅(−1)−2⋅2=−51 \cdot (-1) - 2 \cdot 2 = -5). The equation is λ2=5\lambda^2 = 5, so the eigenvalues are λ=5≈2.24\lambda = \sqrt{5} \approx 2.24 and −5≈−2.24-\sqrt{5} \approx -2.24. Check: the two eigenvalues add up to 0, the trace. Their product is −5-5, the determinant.

  3. Draw again. Now let w11=−0.5w_{11} = -0.5, w22=0.5w_{22} = 0.5, w12=0w_{12} = 0. The trace is 0 and the determinant is −0.25-0.25, so the eigenvalues are ±0.5\pm 0.5. Check: the sum is 0 and the product is −0.25-0.25. The eigenvalues moved from ±2.24\pm 2.24 to ±0.5\pm 0.5 because the entries changed. A single eigenvalue of a random matrix is random.

  4. Scale the entries for size. For a big matrix of size nn we give each entry variance 1/n1/n, which means the typical entry has size about 1/n1/\sqrt{n}. Without this scaling, the eigenvalues grow like n\sqrt{n} and the picture below would run off to infinity. Check: with variance 1/n1/n, the eigenvalues stay inside a fixed interval as nn increases. The largest one approaches 2.

  5. Look at the whole collection of eigenvalues. Instead of asking where one eigenvalue lands, count what fraction of the nn eigenvalues fall in each interval. Draw a histogram of all nn eigenvalues from one large random matrix. Check: for large nn, the histogram has a smooth outline, and a different random draw gives a very similar outline.

  6. Read off the limit. As nn grows, the histogram approaches a single curve, the semicircle. It is highest at 0, where its height is 1/π≈0.3181/\pi \approx 0.318, and it drops to 0 at −2-2 and 22. Check: the curve is 0 outside [−2,2][-2, 2], and its total area is 1.

−2−1.5−1−0.500.511.5200.10.20.30.4eigenvaluedensity
  • semicircle density
The limiting shape of the eigenvalues of a large random symmetric matrix with entries of variance 1/n. Most eigenvalues sit between -2 and 2.

The overall flow of the idea:

flowchart LR
  A["Draw random entries"] --> B["Build a symmetric matrix"]
  B --> C["Compute its eigenvalues"]
  C --> D["Repeat for many draws"]
  D --> E["Histogram of eigenvalues"]
  E --> F["Settles into the semicircle as n grows"]

The math

Definition: Wigner matrix

An n×nn \times n real symmetric matrix WW whose entries WijW_{ij} for i≤ji \le j are independent random variables with mean 0 and variance 1/n1/n. The lower entries are copies of the upper ones, Wji=WijW_{ji} = W_{ij}, so that WW is symmetric.

Step 1 in symbols

The 2 by 2 example is W=(w11w12w12w22)W = \begin{pmatrix} w_{11} & w_{12} \\ w_{12} & w_{22} \end{pmatrix}. There are three free entries, one per position on or above the diagonal. For n×nn \times n there are n(n+1)/2n(n+1)/2 free entries.

Step 2 in symbols

An eigenvalue λ\lambda of WW satisfies det⁡(W−λI)=0\det(W - \lambda I) = 0. For the 2 by 2 case this expands to

λ2−(w11+w22) λ+(w11w22−w122)=0.\lambda^2 - (w_{11} + w_{22})\,\lambda + (w_{11} w_{22} - w_{12}^2) = 0.

The coefficient of λ\lambda is minus the trace, and the constant term is the determinant. With the first draw, w11+w22=0w_{11} + w_{22} = 0 and w11w22−w122=−1−4=−5w_{11} w_{22} - w_{12}^2 = -1 - 4 = -5, which gives λ2=5\lambda^2 = 5, as in the walkthrough.

Step 3 in symbols

Because the entries are random, each eigenvalue λi\lambda_i is a random variable. The eigenvalues of a symmetric matrix are always real, so the list λ1,…,λn\lambda_1, \dots, \lambda_n is a list of real random numbers.

Step 4 in symbols

Each entry has variance Var(Wij)=1/n\mathrm{Var}(W_{ij}) = 1/n. If instead the variance were 1, the largest eigenvalue would be about 2n2\sqrt{n}. The factor 1/n1/\sqrt{n} in the entries removes that growth.

Step 5 in symbols

The empirical spectral distribution counts the fraction of eigenvalues in a set BB:

μn(B)=1n #{ i:λi∈B }.\mu_n(B) = \frac{1}{n}\,\#\{\, i : \lambda_i \in B \,\}.

Here #\# means "the number of", and {i:λi∈B}\{ i : \lambda_i \in B \} is the set of indices whose eigenvalue lies in BB.

Step 6 in symbols

Wigner's semicircle law says that for any interval BB,

μn(B)→∫Bρ(x) dx,ρ(x)=12π4−x2 for ∣x∣≤2,ρ(x)=0 otherwise.\mu_n(B) \to \int_B \rho(x)\,dx, \qquad \rho(x) = \frac{1}{2\pi}\sqrt{4 - x^2} \text{ for } |x| \le 2, \quad \rho(x) = 0 \text{ otherwise}.

The total area is 1. The integral of 4−x2\sqrt{4-x^2} over [−2,2][-2, 2] is the area of a half disc of radius 2, which is 12π⋅22=2π\tfrac{1}{2}\pi \cdot 2^2 = 2\pi. Multiplying by 12π\tfrac{1}{2\pi} gives 1.

Worked examples

Example
1. Tiny: a symmetric matrix with zero diagonal

Let W=(0110)W = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}.

  1. The trace is 0+0=00 + 0 = 0.
  2. The determinant is 0⋅0−1⋅1=−10 \cdot 0 - 1 \cdot 1 = -1.
  3. The characteristic equation is λ2−0⋅λ+(−1)=0\lambda^2 - 0 \cdot \lambda + (-1) = 0, that is λ2=1\lambda^2 = 1.
  4. So λ=1\lambda = 1 or λ=−1\lambda = -1.
  5. Check: the sum 1+(−1)=01 + (-1) = 0 equals the trace, and the product −1-1 equals the determinant.

The eigenvalues are symmetric about 0, which is typical of Wigner matrices, since their entries have mean 0.

Example
2. Standard: a positive-leaning symmetric matrix

Let W=(3111)W = \begin{pmatrix} 3 & 1 \\ 1 & 1 \end{pmatrix}.

  1. The trace is 3+1=43 + 1 = 4.
  2. The determinant is 3⋅1−1⋅1=23 \cdot 1 - 1 \cdot 1 = 2.
  3. The equation is λ2−4λ+2=0\lambda^2 - 4\lambda + 2 = 0.
  4. The quadratic formula gives λ=4±16−82=4±82=2±2\lambda = \dfrac{4 \pm \sqrt{16 - 8}}{2} = \dfrac{4 \pm \sqrt{8}}{2} = 2 \pm \sqrt{2}.
  5. So λ≈3.414\lambda \approx 3.414 or λ≈0.586\lambda \approx 0.586.
  6. Check: 3.414+0.586=43.414 + 0.586 = 4, the trace. The product (2+2)(2−2)=4−2=2(2+\sqrt{2})(2-\sqrt{2}) = 4 - 2 = 2 equals the determinant.

The first entry is larger than the others, so one eigenvalue is pulled far from the other. A random Wigner matrix has no such built-in bias.

Example
3. Realistic: how many eigenvalues sit near the middle

A physicist models a heavy nucleus with a Wigner matrix of size n=1000n = 1000, with entries of variance 1/10001/1000. She wants the fraction of eigenvalues in [−1,1][-1, 1]. The semicircle law predicts this fraction, so she computes the integral.

  1. The antiderivative of 4−x2\sqrt{4 - x^2} is x24−x2+2arcsin⁡ ⁣(x2)\dfrac{x}{2}\sqrt{4 - x^2} + 2\arcsin\!\left(\dfrac{x}{2}\right).
  2. Evaluate at x=1x = 1: 123+2⋅π6=32+π3\dfrac{1}{2}\sqrt{3} + 2 \cdot \dfrac{\pi}{6} = \dfrac{\sqrt{3}}{2} + \dfrac{\pi}{3}.
  3. Evaluate at x=−1x = -1: the same expression with a minus sign, −32−π3-\dfrac{\sqrt{3}}{2} - \dfrac{\pi}{3}.
  4. Subtract: 3+2π3\sqrt{3} + \dfrac{2\pi}{3}.
  5. Divide by 2π2\pi to apply the density: 32π+13≈0.276+0.333=0.609\dfrac{\sqrt{3}}{2\pi} + \dfrac{1}{3} \approx 0.276 + 0.333 = 0.609.
  6. Interpretation: about 61 percent of the 1000 eigenvalues, roughly 609 of them, lie in [−1,1][-1, 1]. Her simulated spectrum should show a histogram with about this share in the middle.

The result depends only on nn being large, not on the particular random draw.

Try it: what fraction of the eigenvalues lie in [1,2][1, 2]?

Answer: by symmetry the two outer pieces [−2,−1][-2, -1] and [1,2][1, 2] have equal mass, and together with [−1,1][-1, 1] they add to 1. So each outer piece has mass (1−0.609)/2≈0.196(1 - 0.609)/2 \approx 0.196, which is about 0.20. Exactly, it is 13−34π\tfrac{1}{3} - \tfrac{\sqrt{3}}{4\pi}.

Common mistakes and tradeoffs

It is tempting to think that because the entries are random, the matrix is unpredictable, so its eigenvalues are too. In fact the eigenvalues of one matrix are random, but their collection becomes predictable as the size grows, because the randomness averages out across many entries. This is the same averaging that Law of Large Numbers describes for a single sum.

It is tempting to think the 1/n1/n scaling is a cosmetic choice. In fact it is what keeps the spectrum in a fixed interval. Without it the eigenvalues spread to about ±2n\pm 2\sqrt{n} and no limit shape exists.

It is tempting to think the semicircle needs Gaussian entries, because Gaussians are the common example. In fact the law holds for much more general entries with mean 0 and finite variance, under mild conditions. Gaussian entries are a convenient case that makes proofs easier.

It is tempting to think this is just the Central Limit Theorem again, since both produce a bell-like shape. In fact the CLT is about the distribution of a sum of random numbers, while the semicircle is about the distribution of eigenvalues of a matrix. Its shape is a half-ellipse, not a bell.

Use random matrix theory when you care about the bulk of the spectrum of a large matrix, or about the typical size of its norm. Do not use it for a small matrix, where the limit is too rough, or when you need the exact eigenvalues of one specific matrix. For bounds on a single random matrix at finite size, use matrix concentration inequalities, which are a standard tool in Concentration Inequalities applied to matrices. Other tools for the same problems include direct computation of the eigenvalues and simulation.

History

In the 1950s nuclear physicists could measure the spacings between energy levels of heavy nuclei but could not compute them. Wigner proposed that the levels behaved like the eigenvalues of a large random symmetric matrix, and his papers from the 1950s established the semicircle law for this kind of matrix. The idea caught on because the statistics of the model matched the measured data.

In the 1960s Freeman Dyson and Madan Lal Mehta developed the theory further, studying the spacing statistics of eigenvalues, and Mehta's book became a standard reference. In 1967 Vladimir Marchenko and Leonid Pastur found the limiting spectrum of sample covariance matrices, the next most important case, which appears in statistics and signal processing.

In 1981 Zoltán Füredi and János Komlós showed that the largest eigenvalue of a Wigner matrix stays near the edge of the semicircle, 2 in the normalisation used here. In the 2010s Joel Tropp and others developed matrix concentration inequalities, which gave bounds on the norms of random matrices that are easy to apply in algorithms and in compressed sensing.

Recap

  • A random matrix has random entries, and each eigenvalue is random, but the collection of eigenvalues is predictable for large matrices.
  • A Wigner matrix is symmetric, with independent mean-0 entries of variance 1/n1/n. The 1/n1/n scaling keeps the eigenvalues in a fixed range.
  • The empirical spectral distribution counts the fraction of eigenvalues in each interval.
  • As nn grows, that distribution converges to the semicircle ρ(x)=12π4−x2\rho(x) = \frac{1}{2\pi}\sqrt{4 - x^2} on [−2,2][-2, 2].
  • The same idea shows up in compressed sensing, wireless channels, and statistics.

Read next: Johnson–Lindenstrauss Lemma for random projections that preserve distances, Restricted Isometry Property and Compressed Sensing for recovery from random measurements, and Large-N Limit for the same large-size behaviour in physics.

Check yourself

QuestionRecall: what does the semicircle law say about the eigenvalues of a large Wigner matrix?Show answer

As the matrix size nn grows, the fraction of eigenvalues in any interval BB converges to the integral of ρ(x)=12π4−x2\rho(x) = \frac{1}{2\pi}\sqrt{4 - x^2} over BB, where ρ\rho is zero outside [−2,2][-2, 2]. The eigenvalues form a fixed, predictable shape even though each one is random.

QuestionComputation: find both eigenvalues of (3113)\begin{pmatrix} 3 & 1 \\ 1 & 3 \end{pmatrix}.Show answer

The trace is 6 and the determinant is 9−1=89 - 1 = 8. The equation is λ2−6λ+8=0\lambda^2 - 6\lambda + 8 = 0, which factors as (λ−4)(λ−2)=0(\lambda - 4)(\lambda - 2) = 0. The eigenvalues are 4 and 2. Check: 4+2=64 + 2 = 6 and 4⋅2=84 \cdot 2 = 8.

QuestionWhy: a simulation of a symmetric matrix with entries of variance 1 (no 1/n1/n factor) gives eigenvalues far outside [−2,2][-2, 2]. Why, and what fixes it?Show answer

Without the factor, the largest eigenvalue grows like 2n2\sqrt{n}, so for large nn it leaves [−2,2][-2, 2] entirely. Dividing every entry by n\sqrt{n} gives each entry variance 1/n1/n, which keeps the eigenvalues in a fixed range so the semicircle limit applies.

QuestionApplied: a team builds a Wigner matrix of size 4000 with entries of variance 1 and finds its largest eigenvalue near 126. Explain the number and what they should change.Show answer

The edge of the spectrum is about 24000≈2⋅63.2=126.52\sqrt{4000} \approx 2 \cdot 63.2 = 126.5, which matches the observed value. They should divide every entry by 4000≈63.2\sqrt{4000} \approx 63.2. After that the entries have variance 1/40001/4000, and the largest eigenvalue should sit near 2, with the bulk following the semicircle.

Sources