Home › Matrix Math › Lesson 11

Nonnegative Matrices, Markov Chains and Perron–Frobenius

Lesson 11 of 12

Key idea of this section

A > 0  ⇒  ρ(A) is a simple eigenvalue with a positive eigenvector, and |λ| < ρ(A) for all other λ
P primitive stochastic  ⇒  Pᵗ → 1π  geometrically, at rate |λ₂|

Positive matrices

Write A ≥ 0 if every entry of A is nonnegative and A > 0 if every entry is positive, and similarly for vectors; |v| denotes the vector of absolute values. The spectral radius is ρ(A) = max |λ| over the eigenvalues of A. Positive matrices arise as transition matrices, population (Leslie) models, input–output models in economics and adjacency matrices of strongly connected graphs, and their spectral theory is remarkably rigid.

Theorem 11.1 (Perron, 1907). Let A ∈ ℝn×n with A > 0 and let r = ρ(A). Then r > 0 is an eigenvalue of A with an eigenvector z > 0; every other eigenvalue satisfies |λ| < r; and r is an algebraically simple eigenvalue.

Proof. Step 1 (a maximizer). For x ≥ 0, x ≠ 0, define the Collatz–Wielandt function f(x) = min over i with xi > 0 of (Ax)i/xi, so f(x) is the largest t with tx ≤ Ax. Let r* = sup f, the supremum over all nonzero x ≥ 0; by scale invariance we may restrict to the simplex Δ = {x ≥ 0 : ∑ xi = 1}. If f(x)x ≤ Ax, then multiplying by A ≥ 0 gives f(x)Ax ≤ A(Ax), so f(Ax) ≥ f(x). Hence r* is also the supremum of f over the set K of normalized vectors Ax/∑(Ax)i with x ∈ Δ. That set is compact and consists of positive vectors, on which f is continuous, so the supremum is attained at some z > 0. Moreover r* ≥ f(1, …, 1) = min row sum > 0.

Step 2 (an eigenvector). We have Az − r*z ≥ 0. If this vector were nonzero, then A(Az − r*z) > 0 because A > 0, so A(Az) > r*Az coordinatewise and f(Az) > r*, contradicting maximality. Hence Az = r*z with z > 0.

Step 3 (dominance). If Av = λv with v ≠ 0, then |λ||v| = |Av| ≤ A|v|, so |λ| ≤ f(|v|) ≤ r*. Thus r* = ρ(A) = r. If |λ| = r, then A|v| − r|v| ≥ 0, and the argument of Step 2 shows A|v| = r|v|, so |Av| = A|v|: for each i, |∑j aij vj| = ∑j aij |vj| with all aij > 0. Equality in the triangle inequality forces all vj to have a common argument, v = eiθ|v|, and then λv = Av = eiθA|v| = rv, so λ = r.

Step 4 (geometric simplicity). If w is a real eigenvector for r that is not a multiple of z, choose t so that y = z − tw ≥ 0 has some zero coordinate but y ≠ 0. Then Ay = ry, but Ay > 0, which is impossible at the zero coordinate. Since A is real, the real and imaginary parts of any complex eigenvector for r are real eigenvectors, so the eigenspace is spanned by z.

Step 5 (algebraic simplicity). Applying Steps 1–4 to Aᵀ > 0 gives y > 0 with yᵀA = ryᵀ. If r had algebraic multiplicity greater than its geometric multiplicity 1, its Jordan block would have size at least 2 and there would be a vector w with (A − rI)w = z. Then yᵀz = yᵀ(A − rI)w = 0, contradicting yᵀz > 0. ∎

Frobenius (1912) extended the theory to irreducible A ≥ 0, those for which the directed graph with an edge i → j whenever aij > 0 is strongly connected. Such A still has a simple eigenvalue ρ(A) with a positive eigenvector, but there may be other eigenvalues of modulus ρ(A): they are exactly ρ(A)e2πik/h for k = 0, …, h − 1, where h is the period, the gcd of the lengths of the closed walks in the graph. A is primitive (some power Am > 0) exactly when h = 1, and Wielandt showed that m = (n − 1)² + 1 always suffices for primitive A.

Markov chains

A finite Markov chain with states 1, …, n is described by a row-stochastic matrix P ≥ 0 whose rows sum to 1, pij being the probability of moving from i to j. A probability distribution is a row vector μ ≥ 0 with μ1 = 1, and it evolves by μt+1 = μtP. Since P1 = 1, the number 1 is an eigenvalue; since ‖P‖∞ = 1, ρ(P) = 1. A stationary distribution is a distribution π with πP = π.

Theorem 11.2 (Convergence theorem). If P is primitive (irreducible and aperiodic), there is a unique stationary distribution π, it is positive, and Pᵗ → 1π as t → ∞. The convergence is geometric: ‖Pᵗ − 1π‖ ≤ C(ε)(|λ₂| + ε)ᵗ for every ε > 0, where |λ₂| < 1 is the largest modulus of an eigenvalue of P other than 1.

Proof. Apply Theorem 11.1 to Pm > 0: the eigenvalue 1 of P is simple, and every other eigenvalue λ satisfies |λm| < 1, hence |λ| < 1. The left Perron vector, normalized to sum 1, is π. Let E = 1π. Then PE = EP = E² = E, and induction gives (P − E)ᵗ = Pᵗ − E. The spectrum of P − E is that of P with the eigenvalue 1 replaced by 0, so ρ(P − E) = |λ₂| < 1, and Gelfand's formula ρ(M) = lim ‖Mᵗ‖1/t (Practice Problem 50) yields the geometric bound. ∎

Worked example: for the two-state chain P = [ 0.9 0.1 ; 0.5 0.5 ], the equation πP = π gives 0.1π₁ = 0.5π₂, so π = (5/6, 1/6). The other eigenvalue is tr P − 1 = 0.4, and in fact Pᵗ = 1π + (0.4)ᵗ [ 1/6 −1/6 ; −5/6 5/6 ] exactly; at t = 1 this reproduces P. The chain forgets its initial state at the rate 0.4ᵗ.

PageRank

The original PageRank algorithm of Brin and Page (1998) ranks web pages by the stationary distribution of the Google matrix G = αS + (1 − α)(1/n)11ᵀ, where S is the row-stochastic matrix of a random walk on the link graph (with dangling pages patched) and α = 0.85 is the damping factor. Since G > 0, Perron's theorem guarantees a unique positive ranking vector, and since every eigenvalue of G other than 1 has modulus at most α, the power iteration πₜ₊₁ = πₜG converges at rate αᵗ independently of the size of the web.

Exercise

  • (a)
    Find the stationary distribution of P = [ 0.5 0.5 0 ; 0.25 0.5 0.25 ; 0 0.5 0.5 ].
  • (b)
    Find the Perron root and a positive eigenvector of A = [ 1 2 ; 3 4 ].
  • (c)
    For P = [ 0 1 ; 1 0 ], find the eigenvalues and the period, and decide whether Pᵗ converges.
Show solution

Answers: (a) The chain moves only between neighbouring states, so the balance equations π₁ · 0.5 = π₂ · 0.25 and π₂ · 0.25 = π₃ · 0.5 hold; hence π₂ = 2π₁, π₃ = π₁, and normalization gives π = (1/4, 1/2, 1/4). (b) p(λ) = λ² − 5λ − 2, so r = (5 + √33)/2 ≈ 5.372; the first row of (A − rI)v = 0 gives v = (2, r − 1) ≈ (2, 4.372) > 0, and the other eigenvalue (5 − √33)/2 ≈ −0.372 has smaller modulus. (c) The eigenvalues are 1 and −1, the period is 2, and Pᵗ alternates between P and I, so it does not converge, although π = (1/2, 1/2) is still the unique stationary distribution.

V.3.1