Suppose we want to generate a uniformly random proper q-coloring of a graph G=(V,E). In general, the set Ω of proper colorings can be exponentially large, and even determining whether Ω is nonempty is NP-complete. We cannot hope to enumerate Ω and pick an element at random. Instead, we turn to a local Markov chain: start at an arbitrary valid coloring, repeatedly pick a random vertex and recolor it according to a simple local rule, and run this process until it “forgets” its starting state.
This chapter develops two fundamental perspectives for proving that such a local chain reaches equilibrium quickly. The first is coupling, which tracks two random trajectories simultaneously and gives a concrete, intuitive proof of rapid mixing for graph colorings whenever q>2Δ. The second is spectral analysis, which studies the transition matrix as a self-adjoint operator on a weighted L2 space; for reversible chains, this yields a clean spectral proof of the fundamental convergence theorem, and connects mixing rates to Dirichlet forms, Poincaré inequalities, and the geometry of bottlenecks via Cheeger’s inequality.
Reading guide. Part I (Course Content) is designed for two 120-minute classroom meetings: the first meeting (§§1.1–1.8) develops local Markov chains, detailed balance, the Metropolis rule, and coupling, culminating in the q>2Δ rapid-mixing theorem for graph colorings; the second meeting (§§1.9–1.16) develops the spectral decomposition of reversible chains, the fundamental convergence theorem, Poincaré inequalities, conductance, and Cheeger’s inequality. Part II (Reading Contents) develops essential extensions: path coupling, the general Metropolis–Hastings algorithm, random-to-top card shuffling, coupling from the past, strong stationary times, the complete sweep proof of Cheeger’s inequality, continuous-time variance decay, counting-to-sampling reductions, and canonical paths. Part III (Further Topics) records eight research directions with their main guarantees and literature pointers.
Throughout this chapter, state spaces are finite and chains are time-homogeneous. Distributions are treated as row vectors. For a graph G=(V,E), we write n=∣V∣ and let Δ denote its maximum degree. In the spectral sections, P is an irreducible, reversible transition matrix with stationary distribution π on Ω.
I. Course Content
1.1 From local moves to a sampler
Let G=(V,E) be a finite graph with n vertices and maximum degree Δ. Let Ω be the set of proper q-colorings of G, where a coloring σ:V→[q] is proper if σ(u)=σ(v) for all {u,v}∈E.
The simplest and most direct local random walk on Ω operates by a propose-and-validate rule—a Metropolis chain:
Given the current proper coloring σ∈Ω: 1. Choose a vertex v∈V uniformly at random (with probability 1/n). 2. Choose a candidate color c∈[q] uniformly at random (with probability 1/q). 3. Acceptance check: If assigning color c to vertex v yields a valid proper coloring—that is, if c∈/{σ(u):u∈N(v)}—accept the proposal and update σ(v)←c, leaving all other vertices unchanged. Otherwise, reject the proposal and stay at σ (σ′←σ).
Notice the operational simplicity of this rule: we do not need to compute or count the set of available colors at v; we simply draw a uniform pair (v,c) from V×[q] and perform a purely local validity check against the immediate neighbors N(v).
If the chosen color c happens to match the vertex’s current color σ(v), the move is always accepted and leaves the configuration unchanged. Furthermore, whenever c conflicts with a neighbor, the proposal is rejected, which also leaves the configuration unchanged. Thus, the chain naturally possesses a positive probability of staying put (a self-loop), which immediately rules out periodicity issues.
Every step of this procedure requires only O(deg(v))=O(Δ) time to execute. But to turn it into a provably sound sampling algorithm, we must resolve two fundamental questions:
Correctness: Does this simple propose-and-validate walk converge to the uniform distribution on Ω, or does it subtly favor certain colorings over others?
Efficiency: How many steps must we run before the current state is provably close to uniform?
1.2 Discrete Markov chains and equilibrium
We consider discrete-time Markov chains on a finite state space Ω.
Definition 1 (Discrete Markov chain) A sequence of random variables (Xt)t≥0 taking values in Ω is a Markov chain if, for all t≥0 and all states x0,…,xt+1∈Ω, P(Xt+1=xt+1∣Xt=xt,…,X0=x0)=P(Xt+1=xt+1∣Xt=xt). The chain is time-homogeneous if this transition probability does not depend on t. In that case, its transitions are governed by the matrix P∈RΩ×Ω: P(x,y)=P(Xt+1=y∣Xt=x).
Every row of P is a probability distribution: P(x,y)≥0 and ∑y∈ΩP(x,y)=1. If μt denotes the distribution of Xt (represented as a row vector in RΩ), the law of total probability gives μt+1=μtP,and henceμt=μ0Pt. The transition matrix P and the initial distribution μ0 completely determine the law of the chain at any time t.
Definition 2 (Stationary distribution) A probability distribution π on Ω is stationary for P if πP=π. In other words, if X0∼π, then Xt∼π for all t≥0.
Three fundamental questions immediately arise: - Existence: Does a stationary distribution always exist? - Uniqueness: When is π unique? - Convergence: Under what conditions does μt=μ0Pt converge to π as t→∞ from any initial distribution μ0?
For finite state spaces, Perron–Frobenius ensures that a stationary distribution always exists. It is unique if the chain is irreducible (the transition graph is strongly connected, meaning every state can eventually reach every other state). Convergence from every initial state additionally requires aperiodicity (the chain does not become trapped in a deterministic cycle of length >1). In Section 1.12, we will give a complete spectral proof of this convergence for reversible chains, showing exactly how each of these conditions enters.
1.3 Time reversal and detailed balance
Suppose a chain is running at stationarity: Xt∼π for all t. The quantity π(x)P(x,y) represents the probability that the chain is at x at time t and moves to y at time t+1. We call π(x)P(x,y) the probability flow from x to y at equilibrium.
If we observe this stationary process running backwards in time, Bayes’ rule gives the transition probability of the reversed process: P(y,x)=P(Xt=x∣Xt+1=y)=P(Xt+1=y)P(Xt=x,Xt+1=y)=π(y)π(x)P(x,y).
Definition 3 (Reversibility and detailed balance) A Markov chain P is reversible with respect to a distribution π if the forward process and the time-reversed process have identical transition probabilities: P(x,y)=P(x,y). Equivalently, π(x)P(x,y)=π(y)P(y,x)for all x,y∈Ω. These equations are called the detailed balance conditions.
Detailed balance states that at equilibrium, the flow from x to y exactly balances the reverse flow from y to x along every transition. Summing over all x immediately implies that π is stationary:
Proof
For every state y∈Ω, x∈Ω∑π(x)P(x,y)=x∈Ω∑π(y)P(y,x)=π(y)x∈Ω∑P(y,x)=π(y). Hence πP=π.
Stationary ⇒ reversible. On the directed 3-cycle 1→2→3→1, the uniform law π=(1/3,1/3,1/3) is stationary (inflow equals outflow at each state), yet P(1,2)=1=0=P(2,1). Detailed balance forbids net probability circulation at equilibrium.
Stationarity only requires that the total flow into y equals the total flow out of y (∑xπ(x)P(x,y)=π(y)). Detailed balance is a much stronger condition, but it is vastly easier to verify in practice because it is purely local.
A classic example is a simple random walk on a connected undirected graph G=(V,E). If the walk chooses a neighbor of the current vertex uniformly at random, then P(u,v)=1/deg(u) for every edge {u,v}∈E. Setting π(u)∝deg(u) satisfies detailed balance: π(u)P(u,v)∝deg(u)⋅deg(u)1=1=deg(v)⋅deg(v)1∝π(v)P(v,u). On a regular graph, vertex degrees are equal, so the stationary distribution is uniform.
1.4 The Metropolis algorithm and the coloring chain
Detailed balance (π(x)P(x,y)=π(y)P(y,x)) guarantees that π is stationary. Conversely, given a target distribution π on a large state space Ω, how can we systematically design a local transition matrix P that satisfies detailed balance?
The Metropolis algorithm (Metropolis, Rosenbluth, Rosenbluth, Teller, and Teller, 1953) provides a general recipe. Suppose we start with a symmetric proposal mechanismQ on Ω: for any pair of states x,y∈Ω, Q(x,y)=Q(y,x), where Q(x,y) is the probability of proposing a move to y when currently at x. (For instance, Q might choose a uniform neighbor in an undirected regular graph on Ω, or pick a coordinate and a candidate value uniformly at random.)
From the current state x∈Ω, one step of the Metropolis algorithm proceeds as follows: 1. Proposal: Draw a candidate state y∈Ω according to Q(x,⋅). 2. Acceptance: Accept the move to y with probability α(x,y)=min{1,π(x)π(y)}. If accepted, set Xt+1=y; if rejected, remain at Xt+1=x.
For distinct states x=y, the transition probability is therefore P(x,y)=Q(x,y)α(x,y)=Q(x,y)min{1,π(x)π(y)}, and the self-loop probability is P(x,x)=1−∑y=xP(x,y).
Proposition 1 (Detailed balance of the Metropolis algorithm) Let Q be any symmetric proposal distribution on Ω, and let π be a probability distribution on Ω with π(x)>0 for all x∈Ω. Then the Metropolis chain P satisfies detailed balance with respect to π: π(x)P(x,y)=π(y)P(y,x)for all x,y∈Ω. In particular, π is stationary for P.
Proof. For x=y, the balance equation is trivial. For distinct states x=y, π(x)P(x,y)=π(x)Q(x,y)min{1,π(x)π(y)}=Q(x,y)min{π(x),π(y)}. Since Q(x,y)=Q(y,x) and min{π(x),π(y)} is symmetric in x and y, the right-hand side equals Q(y,x)min{π(y),π(x)}=π(y)P(y,x). Summing over x∈Ω gives πP=π.
Crucially, the Metropolis rule never requires the normalizing constant of π. If π(x)=w(x)/Z where Z=∑z∈Ωw(z) is an intractable partition function, the acceptance ratio depends only on the ratio of unnormalized weights: π(x)π(y)=w(x)/Zw(y)/Z=w(x)w(y).
Justifying the coloring chain as a Metropolis instance
We can now verify that the propose-and-validate coloring walk from Section 1.1 is an instance of the Metropolis algorithm for the uniform distribution π(σ)=∣Ω∣1for all σ∈Ω. Here Ω is the set of proper q-colorings of G. An improper assignment τ∈/Ω is not a state of the chain; when the algorithm proposes an invalid recoloring and rejects it, we fold that event into the self-proposal Q(σ,σ) on Ω.
At each step from σ∈Ω, picking a vertex v∈V (probability 1/n) and a color c∈[q] (probability 1/q) induces a symmetric proposal kernel Q on Ω: - Any two distinct proper colorings σ,τ∈Ω that differ at a single vertex v have proposal probability Q(σ,τ)=n1⋅q1=nq1=Q(τ,σ), corresponding to picking (v,τ(v)) from σ or (v,σ(v)) from τ. - Proper colorings differing at two or more vertices have Q(σ,τ)=Q(τ,σ)=0.
Since π is uniform on Ω, every proposed move to a valid proper coloring τ=σv→c∈Ω has acceptance probability α(σ,τ)=min{1,π(σ)π(τ)}=1, and every invalid proposal σv→c∈/Ω is rejected, leaving the chain at σ. For any two adjacent proper colorings σ=τ, we therefore have P(σ,τ)=Q(σ,τ)=nq1=P(τ,σ), so P is symmetric on Ω and reversible with respect to the uniform distribution π.
Proposition 2 (Stationary distribution of the coloring chain) The coloring Metropolis chain is reversible with respect to the uniform distribution on proper q-colorings. In particular, the uniform distribution on Ω is stationary.
Because proposing the current color c=σ(v) always keeps the chain at σ, every state has a self-loop probability of at least P(σ,σ)≥n1⋅q1⋅n=q1>0, which guarantees that the chain is aperiodic.
Origins of Metropolis and coloring thresholds. Nicholas Metropolis, Arianna Rosenbluth, Marshall Rosenbluth, Augusta Teller, and Edward Teller (Equation of State Calculations by Fast Computing Machines, J. Chem. Phys. 1953) introduced the symmetric propose-and-accept rule on the MANIAC I computer at Los Alamos to simulate hard-sphere fluids, and W. Keith Hastings (Monte Carlo Sampling Methods Using Markov Chains and Their Applications, Biometrika 1970) generalized it to asymmetric proposals (Section 2.2). For graph coloring, Mark Jerrum (A Very Simple Algorithm for Estimating the Number of k-Colorings of a Low-Degree Graph, Random Structures & Algorithms 1995) established O(nlogn) mixing of single-site Glauber dynamics for q>2Δ.
What about irreducibility when q>2Δ? Given any two proper colorings X,Y∈Ω, we can transform X into Y through at most 2n valid single-vertex recolorings in two sweeps across V={v1,…,vn}:
Sweep 1 (move to safe intermediate colors): Visit v1,…,vn in order. At vi, choose a color ci∈[q] that avoids both the current colors of its neighbors N(vi) and their target colors Y(N(vi)). Since ∣N(vi)∣≤Δ, these two constraints forbid at most 2Δ colors, so q>2Δ guarantees at least one valid choice ci. After Sweep 1, the resulting proper coloring Z satisfies Z(u)=Y(v) for every edge {u,v}∈E.
Sweep 2 (move to the target coloring Y): Visit v1,…,vn again and recolor each vi to Y(vi). When vi is updated, each neighbor u∈N(vi) carries either its safe color Z(u) from Sweep 1 (which avoids Y(vi)) or its target color Y(u) (which differs from Y(vi) because Y is proper). Thus every intermediate step remains a proper coloring.
Since every coloring Y is reachable from every coloring X, the chain is irreducible and therefore converges to the uniform distribution as t→∞. We now turn to the efficiency question: how many steps are needed until the coloring is nearly uniform?
1.5 Total variation distance and mixing time
To quantify how close the distribution μt is to stationarity π, we use total variation distance.
Definition 4 (Total variation distance) Let μ and ν be two probability distributions on a finite set Ω. Their total variation distance is dTV(μ,ν)=21x∈Ω∑∣μ(x)−ν(x)∣=B⊆Ωmax∣μ(B)−ν(B)∣.
Recall (ℓ1 norm vs. event supremum). Why does 21∑x∣μ(x)−ν(x)∣ equal maxB⊆Ω∣μ(B)−ν(B)∣? Let B+={x∈Ω:μ(x)≥ν(x)}. Because ∑x∈Ω(μ(x)−ν(x))=0, the excess mass on B+ equals the deficit on (B+)c: μ(B+)−ν(B+)=ν((B+)c)−μ((B+)c)=21x∈Ω∑∣μ(x)−ν(x)∣, and no event B can exceed B+.
Operationally, maxB∣μ(B)−ν(B)∣ is the largest difference in probability that any event B can assign under μ versus ν. If dTV(μ,ν)≤0.01, no statistical test based on a single sample can distinguish μ from ν with success probability better than 0.51.
For a Markov chain with transition matrix P and stationary distribution π, we measure convergence by the worst-case distance from stationarity over all starting states: d(t)=x∈ΩmaxdTV(Pt(x,⋅),π).
Definition 5 (Mixing time) For an error tolerance ε∈(0,1), the mixing time is τmix(ε)=min{t≥0:d(t)≤ε}.
When ε is omitted, one sets ε=1/4 by convention. The constant 1/4 is convenient because 2⋅41=21<1: as shown below using coupling, d(t) satisfies the submultiplicative bound d(s+t)≤2d(s)d(t). Consequently, every additional block of τmix(1/4) steps at least halves the distance to stationarity, and ⌈log2(1/ε)⌉⋅τmix(1/4) steps suffice to reduce the error to any ε>0.
1.6 Coupling: make two chains meet
Computing Pt(x,⋅) directly requires taking powers of an ∣Ω∣×∣Ω∣ matrix, which is intractable when ∣Ω∣ is exponential in n. Coupling bounds total variation distance probabilistically without computing matrix powers.
A coupling of two probability distributions μ and ν on Ω is a pair of random variables (X,Y) defined on a common probability space such that X∼μ and Y∼ν.
Theorem 1 (Coupling lemma) For any coupling (X,Y) of μ and ν, dTV(μ,ν)≤P(X=Y). Furthermore, there exists an optimal (maximal) coupling that achieves equality: dTV(μ,ν)=P(X=Y).
Proof. For any event B⊆Ω, μ(B)−ν(B)=P(X∈B)−P(Y∈B)≤P(X∈B,Y∈/B)≤P(X=Y). Taking the maximum over B⊆Ω yields dTV(μ,ν)≤P(X=Y).
To achieve equality, place mass min{μ(z),ν(z)} on each diagonal pair (z,z). The total diagonal mass is ∑zmin{μ(z),ν(z)}=1−dTV(μ,ν); distributing the remaining mass dTV(μ,ν) across off-diagonal pairs (x,y) with x=y matches the residual marginals and gives P(X=Y)=dTV(μ,ν).
Warm-up: Total variation distance never increases under a Markov step
Before analyzing concrete chains, let us ask a basic structural question: can a Markov step ever push two distributions further apart? Using the coupling lemma, we can see in a few lines that total variation distance is monotonically non-increasing under any Markov transition matrix P.
Proposition 3 (Contraction of total variation under Markov transitions) Let P be a Markov transition matrix on a finite state space Ω with stationary distribution π. For any probability distribution μ on Ω, dTV(μP,π)≤dTV(μ,π). More generally, for any two probability distributions μ and ν on Ω, dTV(μP,νP)≤dTV(μ,ν).
Proof. By Theorem 1, choose an optimal coupling (X0,Y0) of μ and ν so that P(X0=Y0)=dTV(μ,ν). Evolve (X0,Y0) for one step to (X1,Y1) as follows: 1. If X0=Y0=x: draw a shared next state z∼P(x,⋅) and set X1=Y1=z. 2. If X0=Y0: draw X1∼P(X0,⋅) and Y1∼P(Y0,⋅) independently.
By the law of total probability, X1 has marginal ∑xμ(x)P(x,⋅)=μP and Y1 has marginal ∑yν(y)P(y,⋅)=νP, so (X1,Y1) is a valid coupling of μP and νP. Moreover, because X0=Y0 forces X1=Y1, we have {X1=Y1}⊆{X0=Y0}. Applying Theorem 1 to (X1,Y1) gives dTV(μP,νP)≤P(X1=Y1)≤P(X0=Y0)=dTV(μ,ν). Setting ν=π and using πP=π yields dTV(μP,π)≤dTV(μ,π).
Iterating this inequality shows that the distance to stationarity never increases as time progresses: dTV(μ0Pt,π)≤dTV(μ0Pt−1,π)≤⋯≤dTV(μ0,π).
Proof of the error-amplification bound d(s+t)≤2d(s)d(t)
Define the worst-case pairwise distance dˉ(t)=maxx,y∈ΩdTV(Pt(x,⋅),Pt(y,⋅)). By the triangle inequality and convexity, d(t)≤dˉ(t)≤2d(t). Fix x,y∈Ω and let (Xs,Ys) be an optimal coupling of Ps(x,⋅) and Ps(y,⋅), so P(Xs=Ys)≤dˉ(s). Given (Xs,Ys), if Xs=Ys we run the two chains identically for the next t steps so Xs+t=Ys+t; if Xs=Ys we couple Pt(Xs,⋅) and Pt(Ys,⋅) optimally so P(Xs+t=Ys+t∣Xs,Ys)≤dˉ(t). Averaging over (Xs,Ys) gives dˉ(s+t)≤dˉ(s)dˉ(t), and averaging over Y0∼π in the first factor yields d(s+t)≤d(s)dˉ(t)≤2d(s)d(t).
Motivating Markovian coupling: from non-increasing to coalescence
The proof of Proposition 3 highlights the two ingredients needed to bound mixing times via coupling: 1. Staying together is automatic: Once two trajectories meet (Xt=Yt), feeding them identical random choices keeps them equal forever, ensuring {Xt+1=Yt+1}⊆{Xt=Yt}. 2. Mixing requires bringing distant states together: To make P(Xt=Yt) decay to zero, we must replace the independent transitions on {Xt=Yt} with a correlated rule that actively drives Xt and Yt toward coalescence.
Formally, a Markovian coupling is a joint process (Xt,Yt)t≥0 whose marginals each evolve according to P, such that once XT=YT at the coalescence timeT=inf{t≥0:Xt=Yt}, the two chains remain equal for all t≥T. Starting X0=x and Y0∼π (so Yt∼π for all t), Theorem 1 gives dTV(Pt(x,⋅),π)≤P(Xt=Yt)=P(T>t). Bounding the mixing time thus reduces to bounding the tail of the coalescence time T.
1.7 First mixing bound: the hypercube walk
Let us see how a simple coupling drives two trajectories to coalesce on the Boolean hypercube.
Example 1 (The coordinate-refresh walk on the hypercube) Let Ω={−1,+1}n be the n-dimensional hypercube. At each step: 1. Pick a coordinate It∈[n] uniformly at random. 2. Pick a fresh sign Bt∈{−1,+1} uniformly at random. 3. Set the It-th coordinate to Bt, leaving all other coordinates unchanged.
By symmetry, the uniform distribution on {−1,+1}n is stationary. To couple two trajectories (Xt) and (Yt) from arbitrary initial states X0,Y0∈Ω, use the same pair(It,Bt) in both chains at every step: - Whenever coordinate i is picked at step t, both chains set Xt(i)=Yt(i)=Bt, and coordinate i remains agreed at all later steps. - Hence Xt=Yt as soon as all n coordinates have been picked at least once.
By the coupon collector’s bound, coordinate i misses the first t draws with probability (1−1/n)t≤e−t/n. A union bound over the n coordinates yields P(Xt=Yt)≤i=1∑nP(coordinate i not picked by time t)≤n(1−n1)t≤ne−t/n. Setting ne−t/n≤ε gives τmix(ε)≤⌈nlogεn⌉.
Recall (Coupon collector & 1−x≤e−x). Drawing uniformly from n coupons, the time T=∑k=1nGk to collect all n coupons is a sum of independent geometric variables Gk∼Geom(nn−k+1), so E[T]=n∑k=1nk1=nHn=nlogn+Θ(n). Applying (1−1/n)t≤e−t/n and a union bound gives the upper tail P(T>t)≤ne−t/n.
Although ∣Ω∣=2n is exponential, the walk mixes in O(nlogn) steps because its coordinates do not interact: refreshing coordinate i eliminates any disagreement at i and never creates a disagreement elsewhere.
1.8 Rapid mixing of the coloring chain
We now return to the propose-and-validate Metropolis coloring chain from Section 1.4 and track the Hamming distance between two proper colorings X,Y∈Ω: d(X,Y)=∣{u∈V:X(u)=Y(u)}∣. Unlike the hypercube walk, adjacent vertices in a graph coloring interact. Suppose X and Y currently agree at v, and both chains select v and propose the same color c. Color c may be legal in X (accepted) but blocked in Y (rejected) because v has a neighbor w where X(w)=Y(w). Thus disagreements can propagate across edges.
To prove rapid mixing, we need a one-step coupling under which disagreement healing at disagreeing vertices strictly outpaces disagreement creation at their neighbors.
Warm-up: One disagreement and why naive coupling only reaches q>3Δ
Start with the simplest nontrivial case: X and Y differ at a single vertexw, with X(w)=a and Y(w)=b (a=b), so d(X,Y)=1.
Suppose both chains pick the same vertexv∈V (probability 1/n each) and also naively propose the same colorc∈[q]:
Healing at v=w (probability 1/n): Because X and Y agree on N(w), they share the same available color set A(w)=[q]∖X(N(w)) of size ∣A(w)∣≥q−Δ.
If c∈A(w) (probability ∣A(w)∣/q≥(q−Δ)/q), both chains accept c and coalesce (d(X1,Y1)=0).
Otherwise, both reject c and d(X1,Y1)=1.
Creation at a neighbor v∈N(w) (at most Δ vertices, probability 1/n each): Here X(v)=Y(v), and all neighbors of v other than w have identical colors in X and Y.
If c∈/{a,b}, color c has the same validity in X and Y: both chains either accept c or reject c, keeping X1(v)=Y1(v).
If c=a, color a is blocked by X(w)=a in X (rejected) but may be accepted in Y.
Symmetrically, if c=b, color b is blocked by Y(w)=b in Y (rejected) but may be accepted in X.
Caution (Why naive identity coupling stalls at q>3Δ).
Under identical color proposals, two candidate colors (c=a and c=b) can split the chains at each neighbor v∈N(w): c=a is rejected in X while potentially accepted in Y, and c=b is rejected in Y while potentially accepted in X. Across at most Δ neighbors of w, expected disagreement creation can reach nΔ⋅q2, whereas expected healing at w is at least n1⋅qq−Δ. Net one-step contraction therefore requires nqq−Δ>nq2Δ⟺q>3Δ, wasting an entire factor of Δ because the two guaranteed rejections at v occur on separate random draws.
The key idea: Matching rejected proposals cuts creation in half
Under the transposition τ=(ab), the two guaranteed rejections at v∈N(w) happen on the same random draw c=a, halving disagreement creation from 2/q to 1/q.
Why did the naive coupling lose 2/q at each neighbor v∈N(w)? Because X rejected c=a on one draw while Y rejected c=b on a different draw, even though both rejections produce the exact same outcome—staying at the shared color X(v)=Y(v).
A valid coupling only requires each chain’s proposal to be marginally uniform on [q]. When updating v∈N(w), couple the proposals via the transpositionτ=(ab) that swaps a and b and fixes all other colors: draw c∈[q] uniformly, let X propose c, and let Y propose τ(c). On the two exceptional draws c∈{a,b}:
When c=a (so Y proposes τ(a)=b):X proposes a (blocked by X(w)=a) and Y proposes b (blocked by Y(w)=b). Both proposals are rejected, so both chains stay at X(v)=Y(v) and no disagreement is created.
When c=b (so Y proposes τ(b)=a):X proposes b while Y proposes a. This single draw—occurring with probability 1/q—is the only choice that can cause X1(v)=Y1(v).
Pairing the two guaranteed rejections cuts disagreement creation at each neighbor from 2/q to 1/q, improving the contraction threshold from q>3Δ to nqq−Δ>nqΔ⟺q>2Δ.
Coupling arbitrary colorings via updated-color distributions
How do we extend this rejection-matching idea to arbitrary proper colorings X,Y∈Ω at Hamming distance k=d(X,Y), where a vertex v may have several disagreeing neighbors at once?
Instead of designing a custom permutation of proposals at each vertex, look directly at the distribution of the color at v after one Metropolis update, where all rejected proposals have already been merged into the single outcome of keeping the current color.
Fix a vertex v∈V, and let AX(v)=[q]∖{X(u):u∈N(v)} be the set of available colors at v in X. Because X is proper, X(v)∈AX(v). Conditioned on selecting v at state X, the distribution KXv of the updated color X1(v) is:
KXv(c)=1/q for every available new color c∈AX(v)∖{X(v)};
KXv(c)=0 for every forbidden color c∈/AX(v);
KXv(X(v))=1−q∣AX(v)∣−1 at the current color X(v), pooling the proposal c=X(v) together with all q−∣AX(v)∣ rejected proposals.
In compact form, KXv(c)=⎩⎨⎧q1,1−q∣AX(v)∣−1,0,c∈AX(v)∖{X(v)},c=X(v),c∈/AX(v), and KYv is defined analogously for Y. Passing from the proposal law to the updated-color law KXv automatically generalizes the transposition trick by pooling all rejections into the self-loop mass at the current color.
Our one-step coupling for any pair of proper colorings X,Y∈Ω is now simply:
Choose the same vertexv∈V uniformly at random in both chains.
Given v, sample (X1(v),Y1(v)) from a maximal coupling (Theorem 1) of KXv and KYv, leaving all other vertices unchanged: P(X1(v)=Y1(v)∣v chosen)=c∈[q]∑min{KXv(c),KYv(c)}=1−dTV(KXv,KYv).
Let D={u∈V:X(u)=Y(u)} be the set of current disagreements, with k=∣D∣, and let rv=∣N(v)∩D∣ be the number of disagreeing neighbors of v. Counting edges between D and V from their endpoints in D gives v∈V∑rv=u∈D∑deg(u)≤Δk.
We now evaluate the common mass ∑c∈[q]min{KXv(c),KYv(c)} according to whether v∈/D or v∈D:
Case 1: v∈/D (an agreeing vertex, X(v)=Y(v)=c0). Each common available new color c∈(AX(v)∩AY(v))∖{c0} contributes 1/q, while the shared current color c0 contributes min{KXv(c0),KYv(c0)}=1−qmax{∣AX(v)∣,∣AY(v)∣}−1. Summing over c∈[q] gives c∈[q]∑min{KXv(c),KYv(c)}=q∣AX(v)∩AY(v)∣−1+1−qmax{∣AX(v)∣,∣AY(v)∣}−1=1−qmax{∣AX(v)∖AY(v)∣,∣AY(v)∖AX(v)∣}. A color can belong to AX(v)∖AY(v) only if it appears on some neighbor u∈N(v) in Y that carries a different color in X, meaning u∈N(v)∩D. Since there are rv such neighbors, ∣AX(v)∖AY(v)∣≤rv and ∣AY(v)∖AX(v)∣≤rv. Thus updating v∈/D creates a disagreement with probability P(X1(v)=Y1(v)∣v∈/D chosen)=dTV(KXv,KYv)≤qrv.
Case 2: v∈D (a disagreeing vertex, X(v)=Y(v)). Since X(v)∈AX(v) and Y(v)∈AY(v), every color c∈AX(v)∩AY(v) has probability at least 1/q under both KXv and KYv. Hence P(X1(v)=Y1(v)∣v∈D chosen)=c∈[q]∑min{KXv(c),KYv(c)}≥q∣AX(v)∩AY(v)∣. In X, the neighbors of v forbid at most Δ colors; switching from X to Y changes the color of only the rv neighbors in N(v)∩D, forbidding at most rv additional colors. Thus ∣AX(v)∩AY(v)∣≥q−Δ−rv, and the disagreement at v∈D survives the update with probability at most (Δ+rv)/q.
Expected drift and rapid mixing above 2Δ
Averaging over the uniform choice of v∈V and using ∑v∈Vrv≤Δk, we obtain E[d(X1,Y1)∣X,Y]≤v∈D∑n1(k−1+qΔ+rv)+v∈/D∑n1(k+qrv)=k−nk+nq1(kΔ+v∈V∑rv)≤k−nk+nq2Δk=k(1−nqq−2Δ). Whenever q>2Δ, Hamming distance contracts in expectation for every pair of proper colorings.
Theorem 2 (Rapid mixing of the Metropolis coloring chain above 2Δ) Let G=(V,E) have n vertices and maximum degree Δ. If q>2Δ, the propose-and-validate coloring chain satisfies τmix(ε)≤⌈q−2Δnq(logn+logε1)⌉. For q≥(2+c)Δ with fixed c>0, this is O(nlog(n/ε)).
Proof. Put α=(q−2Δ)/(nq)>0. Start one copy from an arbitrary coloring X0 and the other from stationarity, Y0∼π. Since d(X0,Y0)≤n, iterating the one-step conditional drift bound gives E[d(Xt,Yt)]≤n(1−α)t≤ne−αt. Since distinct colorings have distance at least 1, Markov’s inequality and Theorem 1 yield dTV(Pt(X0,⋅),π)≤P(Xt=Yt)≤E[d(Xt,Yt)]≤ne−αt, which is at most ε once t≥α−1(logn+log(1/ε)).
Notice the mechanism: updating a disagreeing vertex v∈D heals the disagreement with probability at least (q−Δ−rv)/q, while each disagreeing neighbor u∈N(v)∩D perturbs the updated-color law at v by at most 1/q in total variation distance. In models where coupling arbitrary configurations directly is harder, path coupling (Section 2.1) lifts contraction on adjacent pairs to the full state space.
1.9 The transition matrix as an operator
Coupling gave us a crisp O(nlogn) upper bound for graph coloring above 2Δ, yet two fundamental questions from the first half of the chapter remain open:
Why does every finite, irreducible, aperiodic Markov chain converge to its stationary distribution π? In Section 1.2 we promised a general proof (Theorem 3); inventing a bespoke coupling for every chain would not explain why convergence is a universal structural property.
How can we prove that a chain mixes slowly, or determine its exact asymptotic convergence rate? By Theorem 1, coupling is an upper-bound tool. When a particular coupling fails to contract—as our single-site coloring coupling fails for q≤2Δ—coupling alone cannot tell whether the chain genuinely mixes slowly or whether our coupling was simply too crude.
To answer both questions, we shift from probabilistic trajectories to linear algebra, studying the transition matrix P as a linear operator.
From distributions to relative densities
Recall that a probability distribution μt on Ω (viewed as a row vector) evolves by P acting from the right: μt+1=μtP,orμt+1(y)=x∈Ω∑μt(x)P(x,y). When π is stationary (π(y)>0 for all y∈Ω), convergence μt→π is equivalent to saying that the relative densityht(x)=π(x)μt(x) converges to the all-ones column vector 1(x)≡1. How does ht evolve in one step when P is reversible with respect to π? Dividing μt+1(y) by π(y) and applying detailed balance π(x)P(x,y)=π(y)P(y,x) gives ht+1(y)=π(y)1x∈Ω∑μt(x)P(x,y)=x∈Ω∑π(x)μt(x)π(y)π(x)P(x,y)=x∈Ω∑ht(x)P(y,x)=(Pht)(y). Thus, for a reversible chain, the relative density ht evolves by P acting from the left: ht+1=Pht,and henceht=Pth0. More generally, P acts on any function f:Ω→R, viewed as a column vector, by computing its one-step conditional expectation: (Pf)(x)=y∈Ω∑P(x,y)f(y)=E[f(Xt+1)∣Xt=x].
The weighted inner product space L2(π)
To analyze the powers Pth0, we want to diagonalize P in an orthonormal basis of eigenvectors. When π is non-uniform, however, a reversible matrix P need not be symmetric in the standard Euclidean inner product, since P(x,y)=π(x)π(y)P(y,x)=P(y,x).
Instead, detailed balance equates the π-weighted flows π(x)P(x,y)=π(y)P(y,x). The natural geometry on RΩ is therefore the π-weighted inner product space L2(π): for functions f,g:Ω→R, define ⟨f,g⟩π=x∈Ω∑π(x)f(x)g(x)=Eπ[f(X)g(X)],∥f∥2,π=⟨f,f⟩π=Eπ[f(X)2]. In L2(π), the inner product with the constant function 1 is the stationary mean ⟨f,1⟩π=Eπ[f], and the squared distance from f to Eπ[f]1 is the stationary variance Varπ(f)=∥f−Eπ[f]1∥2,π2.
Under detailed balance, P is symmetric with respect to ⟨⋅,⋅⟩π: ⟨f,Pg⟩π=x∈Ω∑π(x)f(x)y∈Ω∑P(x,y)g(y)=x,y∈Ω∑π(x)P(x,y)f(x)g(y)=x,y∈Ω∑π(y)P(y,x)f(x)g(y)=⟨Pf,g⟩π. In short, reversibility means that P is a self-adjoint operator on L2(π).
Detailed balance from Boltzmann to Kolmogorov. Ludwig Boltzmann (1872) introduced micro-reversible collision balance in kinetic gas theory, and Andrei Kolmogorov (Zur Theorie der Markoffschen Ketten, Mathematische Annalen 1936) proved that a Markov chain is reversible if and only if the product of transition probabilities around every directed cycle equals that of the reversed cycle. Turning detailed balance into self-adjointness on L2(π) bridges probability theory to Hilbert-space spectral theory and discrete harmonic analysis.
1.10 Symmetrizing a reversible chain
Self-adjointness on L2(π) implies that P has real eigenvalues and an L2(π)-orthonormal basis of real eigenvectors. To see this explicitly via ordinary matrix algebra, define the diagonal matrix Π=diag(π(x):x∈Ω) and the similarity transform S=Π1/2PΠ−1/2,S(x,y)=π(y)π(x)P(x,y). By detailed balance, π(x)P(x,y)=π(y)P(y,x), so S(x,y)=π(x)π(y)P(y,x)=S(y,x). Thus S is a real symmetric matrix. By the spectral theorem, S has:
Real eigenvalues λ1≥λ2≥⋯≥λN, where N=∣Ω∣;
An orthonormal basis of Euclidean eigenvectors u1,…,uN∈RΩ, with ui⊤uj=1{i=j}.
Because P=Π−1/2SΠ1/2 is similar to S, P shares the same eigenvalues λi. Setting φi=Π−1/2ui gives right eigenvectors of P, since Pφi=PΠ−1/2ui=Π−1/2Sui=λiΠ−1/2ui=λiφi, and {φ1,…,φN} is orthonormal in L2(π): ⟨φi,φj⟩π=φi⊤Πφj=ui⊤Π−1/2ΠΠ−1/2uj=ui⊤uj=1{i=j}. Every function f:Ω→R therefore admits the spectral expansion f=i=1∑N⟨f,φi⟩πφi,andPtf=i=1∑Nλit⟨f,φi⟩πφi.
Since every row of P sums to 1, we have P1=1, so the constant function 1 is a unit-norm eigenfunction with eigenvalue 1: λ1=1,φ1=1.
Row vs. column eigenvectors. Why is the top right eigenvector φ1=1, whereas the stationary distribution π is a left eigenvector πP=π? Right eigenvectors Pφi=λiφi live in the space of observables (or relative densities ht), while left eigenvectors ψi⊤P=λiψi⊤ live in the space of signed measures. For a reversible chain, multiplying by Π=diag(π) translates between the two: ψi(x)=π(x)φi(x) satisfies (ψi⊤P)(y)=∑xπ(x)φi(x)P(x,y)=∑xπ(y)P(y,x)φi(x)=λiψi(y), mapping φ1=1 directly to ψ1=π.
Moreover, every eigenvalue of a stochastic matrix satisfies ∣λi∣≤1: if Pf=λf and x∈Ω maximizes ∣f(x)∣, then ∣λ∣⋅∣f(x)∣=∣(Pf)(x)∣≤y∈Ω∑P(x,y)∣f(y)∣≤∣f(x)∣y∈Ω∑P(x,y)=∣f(x)∣. Hence all eigenvalues of a reversible chain lie in [−1,1].
1.11 What irreducibility and aperiodicity do to the spectrum
Separating the stationary mode i=1 (φ1=1) from the remaining modes gives Ptf=⟨f,1⟩π1+i=2∑Nλit⟨f,φi⟩πφi. For Ptf to converge to ⟨f,1⟩π1=Eπ[f]1 from every initial function f, every non-trivial mode i≥2 must decay to zero as t→∞, which happens if and only if ∣λi∣<1 for all i≥2. Since λi∈[−1,1], only two obstructions can occur:
λ2=1 (eigenvalue +1 has multiplicity >1): The state space splits into disconnected components, each supporting its own stationary constant function. Irreducibility rules this out.
λN=−1 (an eigenvalue at −1): The transition graph is bipartite, and a function equal to +1 on one side and −1 on the other oscillates as (−1)t. Aperiodicity rules this out.
Lemma 1 (Peripheral spectrum of an ergodic chain) Let P be a finite irreducible Markov chain.
The eigenvalue 1 has multiplicity 1, and its eigenspace consists of the constant functions.
If P is also aperiodic, then λ=1 is the only eigenvalue on the unit circle: ∣λ∣<1 for all other eigenvalues.
Proof. Let f:Ω→C satisfy Pf=λf with ∣λ∣=1. Let M=maxz∈Ω∣f(z)∣>0, and pick x∈Ω with ∣f(x)∣=M. By the triangle inequality, M=∣λf(x)∣=∣(Pf)(x)∣=y∈Ω∑P(x,y)f(y)≤y∈Ω∑P(x,y)∣f(y)∣≤M. For equality to hold throughout, every y with P(x,y)>0 must have ∣f(y)∣=M and the same complex argument as λf(x), forcing f(y)=λf(x)for all y with P(x,y)>0. By induction along any directed path x=v0,v1,…,vt=y of positive probability, f(y)=λtf(x). By irreducibility, every y∈Ω is reachable from x, so ∣f(y)∣=M>0 for all y∈Ω.
If λ=1, then f(y)=f(x) for all y∈Ω, so f is constant and the eigenspace of 1 is one-dimensional.
Along any closed walk from x to x of length t (Pt(x,x)>0), we have f(x)=λtf(x) and hence λt=1. By aperiodicity, the greatest common divisor of all such return lengths t is 1; writing 1 as an integer linear combination of return lengths (Bézout’s identity) gives λ1=1.
In algorithm design, negative eigenvalues near −1 are easily avoided by making the chain lazy: replace P by Plazy=2I+P. At each step, Plazy stays put with probability 1/2 and takes a step of P with probability 1/2. Laziness preserves the stationary distribution (πPlazy=π) and maps each eigenvalue λi∈[−1,1] to 21+λi∈[0,1], eliminating negative eigenvalues at the cost of a factor of 2 in the spectral gap.
1.12 A spectral proof of the reversible FTMC
Combining the relative-density evolution ht=Pth0 (Section 1.9) with Lemma 1 yields a short spectral proof of the Fundamental Theorem of Markov Chains for reversible chains.
Theorem 3 (Fundamental theorem for finite reversible chains) If a finite reversible Markov chain P is irreducible and aperiodic, then it has a unique stationary distribution π, and for every starting state x∈Ω, t→∞limPt(x,y)=π(y)for all y∈Ω.
Proof. For any initial distribution μ0, let ht(y)=μt(y)/π(y) be the relative density. By Section 1.9, ht=Pth0, and the projection of h0 onto φ1=1 is ⟨h0,1⟩π=y∈Ω∑π(y)π(y)μ0(y)=y∈Ω∑μ0(y)=1. Expanding h0 in the L2(π)-orthonormal eigenbasis {φi} and applying Pt gives ht=Pth0=1+i=2∑Nλit⟨h0,φi⟩πφi. By Lemma 1, ∣λi∣<1 for all i≥2, so every term in the sum vanishes as t→∞. Thus limt→∞ht(y)=1, or limt→∞μt(y)=π(y), for every y∈Ω.
The spectral expansion makes the role of each assumption transparent:
Reversibility supplies the L2(π)-orthonormal eigenbasis that diagonalizes ht=Pth0;
Irreducibility ensures that the λ=1 eigenspace is spanned by φ1=1;
Aperiodicity ensures that ∣λi∣<1 for all i≥2, so every non-stationary mode decays geometrically.
1.13 The second eigenvalue controls the rate
Beyond qualitative convergence, the expansion of ht turns the non-trivial eigenvalues of P into a quantitative bound on total variation distance.
Define the second-largest eigenvalue modulus (SLEM) β=i≥2max∣λi∣=max{λ2,∣λN∣}<1. By Parseval’s identity in L2(π), the L2(π) distance from ht to 1 contracts by at least β per step: ∥ht−1∥2,π2=i=2∑Nλi2t⟨h0,φi⟩π2≤β2ti=2∑N⟨h0,φi⟩π2=β2t∥h0−1∥2,π2. By Cauchy–Schwarz, total variation distance is bounded by half the L2(π) norm of ht−1: dTV(μt,π)=21y∈Ω∑∣μt(y)−π(y)∣=21y∈Ω∑π(y)∣ht(y)−1∣=21Eπ[∣ht−1∣]≤21Eπ[(ht−1)2]=21∥ht−1∥2,π.
Recall (χ2-divergence). The squared L2(π) norm of ht−1 is the Pearson χ2-divergence of μt from π: ∥ht−1∥2,π2=y∈Ω∑π(y)(π(y)μt(y)−1)2=y∈Ω∑π(y)(μt(y)−π(y))2=χ2(μt∥π). Cauchy–Schwarz yields the classical inequality dTV(μt,π)≤21χ2(μt∥π).
When the chain starts at a deterministic state x∈Ω, the initial density h0(y)=π(x)1{y=x} has variance ∥h0−1∥2,π2=y∈Ω∑π(y)(π(x)1{y=x}−1)2=π(x)1−1. Combining these three relations gives the spectral mixing bound: for every starting state x∈Ω, dTV(Pt(x,⋅),π)≤21π(x)1−1βt≤2π(x)βt.
We define the spectral gap and the relaxation time of P by γ=1−λ2,trel=γ1(or 1−β1 if ∣λN∣>λ2). When P has no negative eigenvalues (as for any lazy chain), β=λ2=1−γ≤e−γ, so dTV(Pt(x,⋅),π)≤2π(x)e−γtandτmix(ε)≤⌈γ1(21logπmin1+log2ε1)⌉, where πmin=minx∈Ωπ(x). Let us test this bound on the hypercube walk.
Example 2 (Spectrum of the hypercube coordinate-refresh walk) Recall the coordinate-refresh walk on Ω={−1,+1}n from Section 1.7: at each step, pick i∈[n] uniformly at random and replace x(i) with a uniform sign in {−1,+1}. Its stationary distribution is π(x)=2−n.
Because each step refreshes one coordinate independently, the Walsh–Fourier parity functionsχS(x)=j∈S∏x(j)(S⊆[n]) diagonalize P. Indeed, fix S⊆[n] and condition on the chosen coordinate i∈[n]:
If i∈/S (probability 1−∣S∣/n), no coordinate in S changes, so χS(X1)=χS(x).
If i∈S (probability ∣S∣/n), coordinate i is resampled to ±1 with probability 1/2 each, so the conditional expectation of χS(X1) is 0.
Averaging over i∈[n] shows that every χS is an eigenfunction of P: (PχS)(x)=(1−n∣S∣)χS(x). The 2n parity functions {χS}S⊆[n] form an orthonormal basis of L2(π), with eigenvalues λS=1−n∣S∣∈[0,1]of multiplicity (∣S∣n) for ∣S∣=0,1,…,n. In particular, λ1=λ∅=1, λ2=1−n1 (attained by the n coordinate projections χ{i}(x)=x(i)), and γ=1−λ2=n1,trel=γ1=n.
Comparing the spectral bound with coupling:
A matching lower bound: Take the test function f(y)=χ{1}(y)=y(1)∈{−1,+1}, which has Eπ[f]=0. Starting from x=(+1,…,+1), we have Ex[f(Xt)]=(Ptχ{1})(x)=(1−1/n)t. Since ∣f∣≤1, dTV(Pt(x,⋅),π)≥21Ex[f(Xt)]−Eπ[f]=21(1−n1)t, which proves τmix(ε)=Ω(nlog(1/ε)).
Why the generic L2 upper bound loses a factor of Θ(n/logn): Plugging γ=1/n and π(x)=2−n into the generic bound dTV(Pt(x,⋅),π)≤2π(x)e−γt=22n−1e−t/n gives τmix(ε)≤n(2nlog2+log2ε1)=Θ(n2), whereas coupling (Section 1.7) gave O(nlogn). The extra factor comes from the worst-case step in Parseval’s identity: starting at x=(+1,…,+1), every Fourier coefficient is ⟨h0,χS⟩π=χS(x)=1, so the exact L2(π) norm is ∥ht−1∥2,π2=∅=S⊆[n]∑λS2t=k=1∑n(kn)(1−nk)2t. The generic bound replaces every mode λS2t=(1−k/n)2t by the slowest single-coordinate decay (1−1/n)2t and multiplies it by all 2n−1 modes. Retaining (1−k/n)2t≤e−2kt/n for each degree k=∣S∣ instead gives ∥ht−1∥2,π2≤k=1∑n(kn)e−2kt/n=(1+e−2t/n)n−1≤exp(ne−2t/n)−1, which falls below 4ε2 in t=O(nlog(n/ε)) steps, recovering the O(nlogn) scale.
Caution (The log(1/πmin) overhead of generic L2 spectral bounds).
Comparing dTV(μt,π) to ∥ht−1∥2,π via Cauchy–Schwarz starts from ∥h0−1∥2,π≈π(x)−1/2, which equals 2n/2 on an n-variable product space. Bounding every non-stationary mode in Parseval’s identity by the single slowest eigenvalue λ2=1−γ therefore pays an extra factor of log(1/πmin)=Θ(n) in the mixing time—inflating the hypercube bound from O(nlogn) to Θ(n2). Recovering the true O(nlogn) scale in interacting spin systems where the full spectrum cannot be computed explicitly requires replacing L2(π) variance decay with entropy decay via logarithmic Sobolev inequalities (Section 3.6).
1.14 Dirichlet energy and the Poincaré inequality
On the hypercube {−1,+1}n, product structure let us write down all 2n eigenvectors explicitly. On a combinatorial state space like the proper q-colorings of a graph G, diagonalizing an ∣Ω∣×∣Ω∣ matrix is hopeless. How can we bound the spectral gap γ=1−λ2 without computing eigenvectors?
For the self-adjoint operator P on L2(π) with top eigenvector φ1=1 (λ1=1), the Courant–Fischer theorem expresses λ2 as a Rayleigh quotient over all non-zero functions orthogonal to 1: λ2=f⊥π1f=0max⟨f,f⟩π⟨f,Pf⟩π. Subtracting both sides from 1 turns this maximization for λ2 into a minimization for the spectral gap γ=1−λ2: γ=1−λ2=f⊥π1f=0min∥f∥2,π2⟨f,(I−P)f⟩π=f≡constminVarπ(f)⟨f,(I−P)f⟩π, where the second equality holds because subtracting Eπ[f]1 projects f onto 1⊥ without changing (I−P)f.
Let L=I−P be the Laplacian operator of the chain. For any function f:Ω→R, the Dirichlet form (or Dirichlet energy) is the numerator E(f,f)=⟨f,Lf⟩π=⟨f,(I−P)f⟩π. Using ∑y∈ΩP(x,y)=1 and detailed balance π(x)P(x,y)=π(y)P(y,x), we can rewrite E(f,f) as an average of squared differences across transitions: E(f,f)=x∈Ω∑π(x)f(x)f(x)−y∈Ω∑P(x,y)f(y)=x,y∈Ω∑π(x)P(x,y)f(x)(f(x)−f(y))=21x,y∈Ω∑π(x)P(x,y)(f(x)−f(y))2, where the last step averages the sum with the same sum after swapping x and y. Probabilistically, E(f,f)=21Eπ[(f(X1)−f(X0))2] measures the local roughness of f across a single step of the chain, whereas Varπ(f)=21EX,Y∼π[(f(X)−f(Y))2] measures the global variance of f across independent draws from π.
Theorem 4 (Poincaré inequality) Let P be a finite, irreducible, reversible Markov chain with spectral gap γ=1−λ2. For every function f:Ω→R, Varπ(f)≤γ1E(f,f). Furthermore, this inequality is tight: the optimal constant is 1/γ, achieved when f=φ2.
Proof. Since subtracting Eπ[f]1 leaves both Varπ(f) and E(f,f) unchanged, we may assume Eπ[f]=⟨f,1⟩π=0. Expanding f=∑i=2Naiφi with ai=⟨f,φi⟩π gives Varπ(f)=∥f∥2,π2=i=2∑Nai2andE(f,f)=⟨f,(I−P)f⟩π=i=2∑N(1−λi)ai2. Since 1−λi≥1−λ2=γ for all i≥2, we have E(f,f)≥γVarπ(f), with equality for f=φ2.
Note that Theorem 4 holds for every reversible chain without assuming laziness; laziness was only used in Section 1.13 to ensure λN≥0 so that β=maxi≥2∣λi∣ equals λ2=1−γ. Equivalently, Theorem 4 gives the variational characterization of the spectral gap: γ=f≡constminVarπ(f)E(f,f). To upper-bound γ (proving slow relaxation), it suffices to exhibit a single non-constant test function f whose local roughness E(f,f) is small relative to its variance Varπ(f).
1.15 Conductance and bottlenecks
The simplest non-constant test function to plug into the Rayleigh quotient E(f,f)/Varπ(f) is the indicator functionf=1S of a subset S⊂Ω with 0<π(S)≤1/2:
Numerator (boundary flow): The difference (1S(x)−1S(y))2 equals 1 when (x,y) crosses between S and Sc, and 0 otherwise. By detailed balance, the equilibrium flow from S to Sc equals the flow from Sc to S, so E(1S,1S)=21x,y∈Ω∑π(x)P(x,y)(1S(x)−1S(y))2=x∈S,y∈Sc∑π(x)P(x,y).
Plugging f=1S into Theorem 4 yields γ≤Varπ(1S)E(1S,1S)=π(S)(1−π(S))∑x∈S,y∈Scπ(x)P(x,y). Since 1/2≤1−π(S)<1 for 0<π(S)≤1/2, this ratio is controlled up to a factor of 2 by the equilibrium probability flow leaving S divided by π(S). To formalize this quantity, write Q(A,B)=x∈A,y∈B∑π(x)P(x,y) for the equilibrium flow from A to B.
Definition 6 (Conductance) For any subset S⊂Ω with 0<π(S)≤1/2, the conductance of S is Φ(S)=π(S)Q(S,Sc). The conductance of the Markov chain is the minimum over all such cuts: Φ=S⊂Ω0<π(S)≤1/2minΦ(S).
At stationarity (X0∼π), Q(S,Sc)=Pπ(X0∈S,X1∈Sc), so Φ(S)=Pπ(X0∈S)Pπ(X0∈S,X1∈Sc)=Pπ(X1∈Sc∣X0∈S) is the conditional probability of escaping S in one step from stationarity. A small conductance Φ certifies a bottleneck that forces slow mixing both in spectral gap (γ≤2Φ) and directly in total variation distance:
Proposition 4 (A bottleneck forces slow mixing) For any reversible chain with conductance Φ and any tolerance 0<ε<1/2, τmix(ε)≥2Φ1−2ε.
Proof
Let S⊂Ω achieve Φ(S)=Φ with 0<π(S)≤1/2, and run the stationary chain X0∼π. If X0∈S and Xt∈Sc, the trajectory must cross from S to Sc at some step i∈{0,…,t−1}. By a union bound, Pπ(Xt∈Sc∣X0∈S)≤i=0∑t−1Pπ(Xi∈S,Xi+1∈S