Topics in Advanced AlgorithmsFall 2026

Chapter 2

Sampling and Markov Chains

Coupling, Spectrum, and Cheeger’s Inequality

Suppose we want to generate a uniformly random proper qq-coloring of a graph G=(V,E)G=(V,E). In general, the set Ω\Omega of proper colorings can be exponentially large, and even determining whether Ω\Omega is nonempty is NP-complete. We cannot hope to enumerate Ω\Omega 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Δq > 2\Delta. The second is spectral analysis, which studies the transition matrix as a self-adjoint operator on a weighted L2L^2 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 120120-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Δq>2\Delta 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)G=(V,E), we write n=∣V∣n=|V| and let Δ\Delta denote its maximum degree. In the spectral sections, PP is an irreducible, reversible transition matrix with stationary distribution π\pi on Ω\Omega.

I. Course Content

1.1 From local moves to a sampler

Let G=(V,E)G=(V,E) be a finite graph with nn vertices and maximum degree Δ\Delta. Let Ω\Omega be the set of proper qq-colorings of GG, where a coloring σ:V→[q]\sigma:V\to[q] is proper if σ(u)≠σ(v)\sigma(u)\ne\sigma(v) for all {u,v}∈E\{u,v\}\in E.

The simplest and most direct local random walk on Ω\Omega operates by a propose-and-validate rule—a Metropolis chain:

Given the current proper coloring σ∈Ω\sigma\in\Omega: 1. Choose a vertex v∈Vv\in V uniformly at random (with probability 1/n1/n). 2. Choose a candidate color c∈[q]c\in[q] uniformly at random (with probability 1/q1/q). 3. Acceptance check: If assigning color cc to vertex vv yields a valid proper coloring—that is, if c∉{σ(u):u∈N(v)}c\notin\{\sigma(u):u\in N(v)\}—accept the proposal and update σ(v)←c\sigma(v)\leftarrow c, leaving all other vertices unchanged. Otherwise, reject the proposal and stay at σ\sigma (σ′←σ\sigma'\leftarrow\sigma).

Notice the operational simplicity of this rule: we do not need to compute or count the set of available colors at vv; we simply draw a uniform pair (v,c)(v,c) from V×[q]V\times[q] and perform a purely local validity check against the immediate neighbors N(v)N(v).

If the chosen color cc happens to match the vertex’s current color σ(v)\sigma(v), the move is always accepted and leaves the configuration unchanged. Furthermore, whenever cc 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(Δ)O(\deg(v))=O(\Delta) time to execute. But to turn it into a provably sound sampling algorithm, we must resolve two fundamental questions:

  1. Correctness: Does this simple propose-and-validate walk converge to the uniform distribution on Ω\Omega, or does it subtly favor certain colorings over others?
  2. 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 Ω\Omega.

Definition 1 (Discrete Markov chain) A sequence of random variables (Xt)t≥0(X_t)_{t\ge0} taking values in Ω\Omega is a Markov chain if, for all t≥0t\ge0 and all states x0,…,xt+1∈Ωx_0,\ldots,x_{t+1}\in\Omega, P(Xt+1=xt+1∣Xt=xt,…,X0=x0)=P(Xt+1=xt+1∣Xt=xt). \mathbb P(X_{t+1}=x_{t+1}\mid X_t=x_t,\ldots,X_0=x_0) =\mathbb P(X_{t+1}=x_{t+1}\mid X_t=x_t). The chain is time-homogeneous if this transition probability does not depend on tt. In that case, its transitions are governed by the matrix P∈RΩ×ΩP\in\mathbb R^{\Omega\times\Omega}: P(x,y)=P(Xt+1=y∣Xt=x). P(x,y)=\mathbb P(X_{t+1}=y\mid X_t=x).

Every row of PP is a probability distribution: P(x,y)≥0P(x,y)\ge0 and ∑y∈ΩP(x,y)=1\sum_{y\in\Omega}P(x,y)=1. If μt\mu_t denotes the distribution of XtX_t (represented as a row vector in RΩ\mathbb R^\Omega), the law of total probability gives μt+1=μtP,and henceμt=μ0Pt. \mu_{t+1}=\mu_tP, \qquad\text{and hence}\qquad \mu_t=\mu_0P^t. The transition matrix PP and the initial distribution μ0\mu_0 completely determine the law of the chain at any time tt.

Definition 2 (Stationary distribution) A probability distribution π\pi on Ω\Omega is stationary for PP if πP=π. \pi P=\pi. In other words, if X0∼πX_0\sim\pi, then Xt∼πX_t\sim\pi for all t≥0t\ge0.

Three fundamental questions immediately arise: - Existence: Does a stationary distribution always exist? - Uniqueness: When is π\pi unique? - Convergence: Under what conditions does μt=μ0Pt\mu_t=\mu_0P^t converge to π\pi as t→∞t\to\infty from any initial distribution μ0\mu_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>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∼πX_t\sim\pi for all tt. The quantity π(x)P(x,y)\pi(x)P(x,y) represents the probability that the chain is at xx at time tt and moves to yy at time t+1t+1. We call π(x)P(x,y)\pi(x)P(x,y) the probability flow from xx to yy 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=x,Xt+1=y)P(Xt+1=y)=π(x)P(x,y)π(y). \widehat P(y,x) =\mathbb P(X_t=x\mid X_{t+1}=y) =\frac{\mathbb P(X_t=x,X_{t+1}=y)}{\mathbb P(X_{t+1}=y)} =\frac{\pi(x)P(x,y)}{\pi(y)}.

Definition 3 (Reversibility and detailed balance) A Markov chain PP is reversible with respect to a distribution π\pi if the forward process and the time-reversed process have identical transition probabilities: P^(x,y)=P(x,y)\widehat P(x,y)=P(x,y). Equivalently, π(x)P(x,y)=π(y)P(y,x)for all x,y∈Ω. \pi(x)P(x,y)=\pi(y)P(y,x) \qquad\text{for all }x,y\in\Omega. These equations are called the detailed balance conditions.

Detailed balance states that at equilibrium, the flow from xx to yy exactly balances the reverse flow from yy to xx along every transition. Summing over all xx immediately implies that π\pi is stationary:

Proof

For every state y∈Ωy\in\Omega, ∑x∈Ωπ(x)P(x,y)=∑x∈Ωπ(y)P(y,x)=π(y)∑x∈ΩP(y,x)=π(y). \sum_{x\in\Omega}\pi(x)P(x,y) =\sum_{x\in\Omega}\pi(y)P(y,x) =\pi(y)\sum_{x\in\Omega}P(y,x) =\pi(y). Hence πP=π\pi P=\pi.

Stationary only 1 2 3 π(1)P(1,2) ≠ π(2)P(2,1) Detailed balance x y π(x)P(x,y) = π(y)P(y,x)

Stationary ⇏\not\Rightarrow reversible. On the directed 33-cycle 1→2→3→11\to 2\to 3\to 1, the uniform law π=(1/3,1/3,1/3)\pi=(1/3,1/3,1/3) is stationary (inflow equals outflow at each state), yet P(1,2)=1≠0=P(2,1)P(1,2)=1\ne 0=P(2,1). Detailed balance forbids net probability circulation at equilibrium.

Stationarity only requires that the total flow into yy equals the total flow out of yy (∑xπ(x)P(x,y)=π(y)\sum_x \pi(x)P(x,y) = \pi(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)G=(V,E). If the walk chooses a neighbor of the current vertex uniformly at random, then P(u,v)=1/deg⁡(u)P(u,v)=1/\deg(u) for every edge {u,v}∈E\{u,v\}\in E. Setting π(u)∝deg⁡(u)\pi(u)\propto\deg(u) satisfies detailed balance: π(u)P(u,v)∝deg⁡(u)⋅1deg⁡(u)=1=deg⁡(v)⋅1deg⁡(v)∝π(v)P(v,u). \pi(u)P(u,v)\propto\deg(u)\cdot\frac{1}{\deg(u)}=1=\deg(v)\cdot\frac{1}{\deg(v)}\propto\pi(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)\pi(x)P(x,y)=\pi(y)P(y,x)) guarantees that π\pi is stationary. Conversely, given a target distribution π\pi on a large state space Ω\Omega, how can we systematically design a local transition matrix PP 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 mechanism QQ on Ω\Omega: for any pair of states x,y∈Ωx,y\in\Omega, Q(x,y)=Q(y,x), Q(x,y)=Q(y,x), where Q(x,y)Q(x,y) is the probability of proposing a move to yy when currently at xx. (For instance, QQ might choose a uniform neighbor in an undirected regular graph on Ω\Omega, or pick a coordinate and a candidate value uniformly at random.)

From the current state x∈Ωx\in\Omega, one step of the Metropolis algorithm proceeds as follows: 1. Proposal: Draw a candidate state y∈Ωy\in\Omega according to Q(x,⋅)Q(x,\cdot). 2. Acceptance: Accept the move to yy with probability α(x,y)=min⁡{1,π(y)π(x)}. \alpha(x,y)=\min\left\{1,\frac{\pi(y)}{\pi(x)}\right\}. If accepted, set Xt+1=yX_{t+1}=y; if rejected, remain at Xt+1=xX_{t+1}=x.

For distinct states x≠yx\ne y, the transition probability is therefore P(x,y)=Q(x,y)α(x,y)=Q(x,y)min⁡{1,π(y)π(x)}, P(x,y)=Q(x,y)\alpha(x,y)=Q(x,y)\min\left\{1,\frac{\pi(y)}{\pi(x)}\right\}, and the self-loop probability is P(x,x)=1−∑y≠xP(x,y)P(x,x)=1-\sum_{y\ne x}P(x,y).

Proposition 1 (Detailed balance of the Metropolis algorithm) Let QQ be any symmetric proposal distribution on Ω\Omega, and let π\pi be a probability distribution on Ω\Omega with π(x)>0\pi(x)>0 for all x∈Ωx\in\Omega. Then the Metropolis chain PP satisfies detailed balance with respect to π\pi: π(x)P(x,y)=π(y)P(y,x)for all x,y∈Ω. \pi(x)P(x,y)=\pi(y)P(y,x) \qquad\text{for all }x,y\in\Omega. In particular, π\pi is stationary for PP.

Proof. For x=yx=y, the balance equation is trivial. For distinct states x≠yx\ne y, π(x)P(x,y)=π(x)Q(x,y)min⁡{1,π(y)π(x)}=Q(x,y)min⁡{π(x),π(y)}. \begin{aligned} \pi(x)P(x,y) &=\pi(x)Q(x,y)\min\left\{1,\frac{\pi(y)}{\pi(x)}\right\}\\ &=Q(x,y)\min\{\pi(x),\pi(y)\}. \end{aligned} Since Q(x,y)=Q(y,x)Q(x,y)=Q(y,x) and min⁡{π(x),π(y)}\min\{\pi(x),\pi(y)\} is symmetric in xx and yy, the right-hand side equals Q(y,x)min⁡{π(y),π(x)}=π(y)P(y,x)Q(y,x)\min\{\pi(y),\pi(x)\}=\pi(y)P(y,x). Summing over x∈Ωx\in\Omega gives πP=π\pi P=\pi.

Crucially, the Metropolis rule never requires the normalizing constant of π\pi. If π(x)=w(x)/Z\pi(x)=w(x)/Z where Z=∑z∈Ωw(z)Z=\sum_{z\in\Omega}w(z) is an intractable partition function, the acceptance ratio depends only on the ratio of unnormalized weights: π(y)π(x)=w(y)/Zw(x)/Z=w(y)w(x). \frac{\pi(y)}{\pi(x)}=\frac{w(y)/Z}{w(x)/Z}=\frac{w(y)}{w(x)}.

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 π(σ)=1∣Ω∣for all σ∈Ω. \pi(\sigma)=\frac{1}{|\Omega|} \qquad\text{for all }\sigma\in\Omega. Here Ω\Omega is the set of proper qq-colorings of GG. An improper assignment τ∉Ω\tau\notin\Omega 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(σ,σ)Q(\sigma,\sigma) on Ω\Omega.

At each step from σ∈Ω\sigma\in\Omega, picking a vertex v∈Vv\in V (probability 1/n1/n) and a color c∈[q]c\in[q] (probability 1/q1/q) induces a symmetric proposal kernel QQ on Ω\Omega: - Any two distinct proper colorings σ,τ∈Ω\sigma,\tau\in\Omega that differ at a single vertex vv have proposal probability Q(σ,τ)=1n⋅1q=1nq=Q(τ,σ), Q(\sigma,\tau)=\frac{1}{n}\cdot\frac{1}{q}=\frac{1}{nq}=Q(\tau,\sigma), corresponding to picking (v,τ(v))(v,\tau(v)) from σ\sigma or (v,σ(v))(v,\sigma(v)) from τ\tau. - Proper colorings differing at two or more vertices have Q(σ,τ)=Q(τ,σ)=0Q(\sigma,\tau)=Q(\tau,\sigma)=0.

Since π\pi is uniform on Ω\Omega, every proposed move to a valid proper coloring τ=σv→c∈Ω\tau=\sigma^{v\to c}\in\Omega has acceptance probability α(σ,τ)=min⁡{1,π(τ)π(σ)}=1, \alpha(\sigma,\tau)=\min\left\{1,\frac{\pi(\tau)}{\pi(\sigma)}\right\}=1, and every invalid proposal σv→c∉Ω\sigma^{v\to c}\notin\Omega is rejected, leaving the chain at σ\sigma. For any two adjacent proper colorings σ≠τ\sigma\ne\tau, we therefore have P(σ,τ)=Q(σ,τ)=1nq=P(τ,σ), P(\sigma,\tau)=Q(\sigma,\tau)=\frac{1}{nq}=P(\tau,\sigma), so PP is symmetric on Ω\Omega and reversible with respect to the uniform distribution π\pi.

Proposition 2 (Stationary distribution of the coloring chain) The coloring Metropolis chain is reversible with respect to the uniform distribution on proper qq-colorings. In particular, the uniform distribution on Ω\Omega is stationary.

Because proposing the current color c=σ(v)c=\sigma(v) always keeps the chain at σ\sigma, every state has a self-loop probability of at least P(σ,σ)≥1n⋅1q⋅n=1q>0, P(\sigma,\sigma)\ge\frac{1}{n}\cdot\frac{1}{q}\cdot n=\frac{1}{q}>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 kk-Colorings of a Low-Degree Graph, Random Structures & Algorithms 1995) established O(nlog⁡n)O(n\log n) mixing of single-site Glauber dynamics for q>2Δq>2\Delta.

What about irreducibility when q>2Δq>2\Delta? Given any two proper colorings X,Y∈ΩX,Y\in\Omega, we can transform XX into YY through at most 2n2n valid single-vertex recolorings in two sweeps across V={v1,…,vn}V=\{v_1,\ldots,v_n\}:

  1. Sweep 1 (move to safe intermediate colors): Visit v1,…,vnv_1,\ldots,v_n in order. At viv_i, choose a color ci∈[q]c_i\in[q] that avoids both the current colors of its neighbors N(vi)N(v_i) and their target colors Y(N(vi))Y(N(v_i)). Since ∣N(vi)∣≤Δ|N(v_i)|\le\Delta, these two constraints forbid at most 2Δ2\Delta colors, so q>2Δq>2\Delta guarantees at least one valid choice cic_i. After Sweep 1, the resulting proper coloring ZZ satisfies Z(u)≠Y(v)Z(u)\ne Y(v) for every edge {u,v}∈E\{u,v\}\in E.
  2. Sweep 2 (move to the target coloring YY): Visit v1,…,vnv_1,\ldots,v_n again and recolor each viv_i to Y(vi)Y(v_i). When viv_i is updated, each neighbor u∈N(vi)u\in N(v_i) carries either its safe color Z(u)Z(u) from Sweep 1 (which avoids Y(vi)Y(v_i)) or its target color Y(u)Y(u) (which differs from Y(vi)Y(v_i) because YY is proper). Thus every intermediate step remains a proper coloring.

Since every coloring YY is reachable from every coloring XX, the chain is irreducible and therefore converges to the uniform distribution as t→∞t\to\infty. 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\mu_t is to stationarity π\pi, we use total variation distance.

Definition 4 (Total variation distance) Let μ\mu and ν\nu be two probability distributions on a finite set Ω\Omega. Their total variation distance is dTV(μ,ν)=12∑x∈Ω∣μ(x)−ν(x)∣=max⁡B⊆Ω∣μ(B)−ν(B)∣. d_{\mathrm{TV}}(\mu,\nu) =\frac12\sum_{x\in\Omega}|\mu(x)-\nu(x)| =\max_{B\subseteq\Omega}|\mu(B)-\nu(B)|.

Recall (ℓ1\ell_1 norm vs. event supremum). Why does 12∑x∣μ(x)−ν(x)∣\frac12\sum_{x}|\mu(x)-\nu(x)| equal max⁡B⊆Ω∣μ(B)−ν(B)∣\max_{B\subseteq\Omega}|\mu(B)-\nu(B)|? Let B+={x∈Ω:μ(x)≥ν(x)}B^+=\{x\in\Omega:\mu(x)\ge\nu(x)\}. Because ∑x∈Ω(μ(x)−ν(x))=0\sum_{x\in\Omega}(\mu(x)-\nu(x))=0, the excess mass on B+B^+ equals the deficit on (B+)c(B^+)^c: μ(B+)−ν(B+)=ν((B+)c)−μ((B+)c)=12∑x∈Ω∣μ(x)−ν(x)∣,\mu(B^+)-\nu(B^+)=\nu((B^+)^c)-\mu((B^+)^c)=\frac12\sum_{x\in\Omega}|\mu(x)-\nu(x)|, and no event BB can exceed B+B^+.

Operationally, max⁡B∣μ(B)−ν(B)∣\max_{B}|\mu(B)-\nu(B)| is the largest difference in probability that any event BB can assign under μ\mu versus ν\nu. If dTV(μ,ν)≤0.01d_{\mathrm{TV}}(\mu,\nu)\le0.01, no statistical test based on a single sample can distinguish μ\mu from ν\nu with success probability better than 0.510.51.

For a Markov chain with transition matrix PP and stationary distribution π\pi, we measure convergence by the worst-case distance from stationarity over all starting states: d(t)=max⁡x∈ΩdTV(Pt(x,⋅),π). d(t)=\max_{x\in\Omega}d_{\mathrm{TV}}(P^t(x,\cdot),\pi).

Definition 5 (Mixing time) For an error tolerance ε∈(0,1)\varepsilon\in(0,1), the mixing time is τmix(ε)=min⁡{t≥0:d(t)≤ε}. \tau_{\mathrm{mix}}(\varepsilon) =\min\{t\ge0:d(t)\le\varepsilon\}.

When ε\varepsilon is omitted, one sets ε=1/4\varepsilon=1/4 by convention. The constant 1/41/4 is convenient because 2⋅14=12<12\cdot\frac14=\frac12<1: as shown below using coupling, d(t)d(t) satisfies the submultiplicative bound d(s+t)≤2d(s)d(t)d(s+t)\le2d(s)d(t). Consequently, every additional block of τmix(1/4)\tau_{\mathrm{mix}}(1/4) steps at least halves the distance to stationarity, and ⌈log⁡2(1/ε)⌉⋅τmix(1/4)\lceil\log_2(1/\varepsilon)\rceil\cdot\tau_{\mathrm{mix}}(1/4) steps suffice to reduce the error to any ε>0\varepsilon>0.

1.6 Coupling: make two chains meet

Computing Pt(x,⋅)P^t(x,\cdot) directly requires taking powers of an ∣Ω∣×∣Ω∣|\Omega|\times|\Omega| matrix, which is intractable when ∣Ω∣|\Omega| is exponential in nn. Coupling bounds total variation distance probabilistically without computing matrix powers.

A coupling of two probability distributions μ\mu and ν\nu on Ω\Omega is a pair of random variables (X,Y)(X,Y) defined on a common probability space such that X∼μX\sim\mu and Y∼νY\sim\nu.

Theorem 1 (Coupling lemma) For any coupling (X,Y)(X,Y) of μ\mu and ν\nu, dTV(μ,ν)≤P(X≠Y). d_{\mathrm{TV}}(\mu,\nu)\le\mathbb P(X\ne Y). Furthermore, there exists an optimal (maximal) coupling that achieves equality: dTV(μ,ν)=P(X≠Y)d_{\mathrm{TV}}(\mu,\nu)=\mathbb P(X\ne Y).

Proof. For any event B⊆ΩB\subseteq\Omega, μ(B)−ν(B)=P(X∈B)−P(Y∈B)≤P(X∈B,Y∉B)≤P(X≠Y). \mu(B)-\nu(B) =\mathbb P(X\in B)-\mathbb P(Y\in B) \le\mathbb P(X\in B,Y\notin B) \le\mathbb P(X\ne Y). Taking the maximum over B⊆ΩB\subseteq\Omega yields dTV(μ,ν)≤P(X≠Y)d_{\mathrm{TV}}(\mu,\nu)\le\mathbb P(X\ne Y).

To achieve equality, place mass min⁡{μ(z),ν(z)}\min\{\mu(z),\nu(z)\} on each diagonal pair (z,z)(z,z). The total diagonal mass is ∑zmin⁡{μ(z),ν(z)}=1−dTV(μ,ν)\sum_z\min\{\mu(z),\nu(z)\}=1-d_{\mathrm{TV}}(\mu,\nu); distributing the remaining mass dTV(μ,ν)d_{\mathrm{TV}}(\mu,\nu) across off-diagonal pairs (x,y)(x,y) with x≠yx\ne y matches the residual marginals and gives P(X≠Y)=dTV(μ,ν)\mathbb P(X\ne Y)=d_{\mathrm{TV}}(\mu,\nu).

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 PP.

Proposition 3 (Contraction of total variation under Markov transitions) Let PP be a Markov transition matrix on a finite state space Ω\Omega with stationary distribution π\pi. For any probability distribution μ\mu on Ω\Omega, dTV(μP,π)≤dTV(μ,π). d_{\mathrm{TV}}(\mu P,\pi)\le d_{\mathrm{TV}}(\mu,\pi). More generally, for any two probability distributions μ\mu and ν\nu on Ω\Omega, dTV(μP,νP)≤dTV(μ,ν). d_{\mathrm{TV}}(\mu P,\nu P)\le d_{\mathrm{TV}}(\mu,\nu).

Proof. By Theorem 1, choose an optimal coupling (X0,Y0)(X_0,Y_0) of μ\mu and ν\nu so that P(X0≠Y0)=dTV(μ,ν)\mathbb P(X_0\ne Y_0)=d_{\mathrm{TV}}(\mu,\nu). Evolve (X0,Y0)(X_0,Y_0) for one step to (X1,Y1)(X_1,Y_1) as follows: 1. If X0=Y0=xX_0=Y_0=x: draw a shared next state z∼P(x,⋅)z\sim P(x,\cdot) and set X1=Y1=zX_1=Y_1=z. 2. If X0≠Y0X_0\ne Y_0: draw X1∼P(X0,⋅)X_1\sim P(X_0,\cdot) and Y1∼P(Y0,⋅)Y_1\sim P(Y_0,\cdot) independently.

By the law of total probability, X1X_1 has marginal ∑xμ(x)P(x,⋅)=μP\sum_x\mu(x)P(x,\cdot)=\mu P and Y1Y_1 has marginal ∑yν(y)P(y,⋅)=νP\sum_y\nu(y)P(y,\cdot)=\nu P, so (X1,Y1)(X_1,Y_1) is a valid coupling of μP\mu P and νP\nu P. Moreover, because X0=Y0X_0=Y_0 forces X1=Y1X_1=Y_1, we have {X1≠Y1}⊆{X0≠Y0}\{X_1\ne Y_1\}\subseteq\{X_0\ne Y_0\}. Applying Theorem 1 to (X1,Y1)(X_1,Y_1) gives dTV(μP,νP)≤P(X1≠Y1)≤P(X0≠Y0)=dTV(μ,ν). d_{\mathrm{TV}}(\mu P,\nu P)\le\mathbb P(X_1\ne Y_1)\le\mathbb P(X_0\ne Y_0)=d_{\mathrm{TV}}(\mu,\nu). Setting ν=π\nu=\pi and using πP=π\pi P=\pi yields dTV(μP,π)≤dTV(μ,π)d_{\mathrm{TV}}(\mu P,\pi)\le d_{\mathrm{TV}}(\mu,\pi).

Iterating this inequality shows that the distance to stationarity never increases as time progresses: dTV(μ0Pt,π)≤dTV(μ0Pt−1,π)≤⋯≤dTV(μ0,π). d_{\mathrm{TV}}(\mu_0 P^t,\pi)\le d_{\mathrm{TV}}(\mu_0 P^{t-1},\pi)\le\cdots\le d_{\mathrm{TV}}(\mu_0,\pi).

Proof of the error-amplification bound d(s+t)≤2d(s)d(t)d(s+t)\le2d(s)d(t)

Define the worst-case pairwise distance dˉ(t)=max⁡x,y∈ΩdTV(Pt(x,⋅),Pt(y,⋅))\bar d(t)=\max_{x,y\in\Omega}d_{\mathrm{TV}}(P^t(x,\cdot),P^t(y,\cdot)). By the triangle inequality and convexity, d(t)≤dˉ(t)≤2d(t)d(t)\le\bar d(t)\le2d(t). Fix x,y∈Ωx,y\in\Omega and let (Xs,Ys)(X_s,Y_s) be an optimal coupling of Ps(x,⋅)P^s(x,\cdot) and Ps(y,⋅)P^s(y,\cdot), so P(Xs≠Ys)≤dˉ(s)\mathbb P(X_s\ne Y_s)\le\bar d(s). Given (Xs,Ys)(X_s,Y_s), if Xs=YsX_s=Y_s we run the two chains identically for the next tt steps so Xs+t=Ys+tX_{s+t}=Y_{s+t}; if Xs≠YsX_s\ne Y_s we couple Pt(Xs,⋅)P^t(X_s,\cdot) and Pt(Ys,⋅)P^t(Y_s,\cdot) optimally so P(Xs+t≠Ys+t∣Xs,Ys)≤dˉ(t)\mathbb P(X_{s+t}\ne Y_{s+t}\mid X_s,Y_s)\le\bar d(t). Averaging over (Xs,Ys)(X_s,Y_s) gives dˉ(s+t)≤dˉ(s)dˉ(t)\bar d(s+t)\le\bar d(s)\bar d(t), and averaging over Y0∼πY_0\sim\pi in the first factor yields d(s+t)≤d(s)dˉ(t)≤2d(s)d(t)d(s+t)\le d(s)\bar d(t)\le2d(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=YtX_t=Y_t), feeding them identical random choices keeps them equal forever, ensuring {Xt+1≠Yt+1}⊆{Xt≠Yt}\{X_{t+1}\ne Y_{t+1}\}\subseteq\{X_t\ne Y_t\}. 2. Mixing requires bringing distant states together: To make P(Xt≠Yt)\mathbb P(X_t\ne Y_t) decay to zero, we must replace the independent transitions on {Xt≠Yt}\{X_t\ne Y_t\} with a correlated rule that actively drives XtX_t and YtY_t toward coalescence.

Formally, a Markovian coupling is a joint process (Xt,Yt)t≥0(X_t,Y_t)_{t\ge0} whose marginals each evolve according to PP, such that once XT=YTX_T=Y_T at the coalescence time T=inf⁡{t≥0:Xt=Yt}T=\inf\{t\ge0:X_t=Y_t\}, the two chains remain equal for all t≥Tt\ge T. Starting X0=xX_0=x and Y0∼πY_0\sim\pi (so Yt∼πY_t\sim\pi for all tt), Theorem 1 gives dTV(Pt(x,⋅),π)≤P(Xt≠Yt)=P(T>t). d_{\mathrm{TV}}(P^t(x,\cdot),\pi)\le\mathbb P(X_t\ne Y_t)=\mathbb P(T>t). Bounding the mixing time thus reduces to bounding the tail of the coalescence time TT.

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\Omega=\{-1,+1\}^n be the nn-dimensional hypercube. At each step: 1. Pick a coordinate It∈[n]I_t\in[n] uniformly at random. 2. Pick a fresh sign Bt∈{−1,+1}B_t\in\{-1,+1\} uniformly at random. 3. Set the ItI_t-th coordinate to BtB_t, leaving all other coordinates unchanged.

By symmetry, the uniform distribution on {−1,+1}n\{-1,+1\}^n is stationary. To couple two trajectories (Xt)(X_t) and (Yt)(Y_t) from arbitrary initial states X0,Y0∈ΩX_0,Y_0\in\Omega, use the same pair (It,Bt)(I_t,B_t) in both chains at every step: - Whenever coordinate ii is picked at step tt, both chains set Xt(i)=Yt(i)=BtX_t(i)=Y_t(i)=B_t, and coordinate ii remains agreed at all later steps. - Hence Xt=YtX_t=Y_t as soon as all nn coordinates have been picked at least once.

By the coupon collector’s bound, coordinate ii misses the first tt draws with probability (1−1/n)t≤e−t/n(1-1/n)^t\le e^{-t/n}. A union bound over the nn coordinates yields P(Xt≠Yt)≤∑i=1nP(coordinate i not picked by time t)≤n(1−1n)t≤ne−t/n. \mathbb P(X_t\ne Y_t)\le\sum_{i=1}^n\mathbb P(\text{coordinate }i\text{ not picked by time }t)\le n\left(1-\frac1n\right)^t\le ne^{-t/n}. Setting ne−t/n≤εne^{-t/n}\le\varepsilon gives τmix(ε)≤⌈nlog⁡nε⌉. \tau_{\mathrm{mix}}(\varepsilon)\le\left\lceil n\log\frac{n}{\varepsilon}\right\rceil.

Recall (Coupon collector & 1−x≤e−x1-x\le e^{-x}). Drawing uniformly from nn coupons, the time T=∑k=1nGkT=\sum_{k=1}^n G_k to collect all nn coupons is a sum of independent geometric variables Gk∼Geom⁡(n−k+1n)G_k\sim\operatorname{Geom}(\frac{n-k+1}{n}), so E[T]=n∑k=1n1k=nHn=nlog⁡n+Θ(n)\mathbb E[T]=n\sum_{k=1}^n\frac1k=nH_n=n\log n+\Theta(n). Applying (1−1/n)t≤e−t/n(1-1/n)^t\le e^{-t/n} and a union bound gives the upper tail P(T>t)≤ne−t/n\mathbb P(T>t)\le ne^{-t/n}.

Although ∣Ω∣=2n|\Omega|=2^n is exponential, the walk mixes in O(nlog⁡n)O(n\log n) steps because its coordinates do not interact: refreshing coordinate ii eliminates any disagreement at ii 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∈ΩX,Y\in\Omega: d(X,Y)=∣{u∈V:X(u)≠Y(u)}∣. d(X,Y)=|\{u\in V:X(u)\ne Y(u)\}|. Unlike the hypercube walk, adjacent vertices in a graph coloring interact. Suppose XX and YY currently agree at vv, and both chains select vv and propose the same color cc. Color cc may be legal in XX (accepted) but blocked in YY (rejected) because vv has a neighbor ww where X(w)≠Y(w)X(w)\ne 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Δq>3\Delta

Start with the simplest nontrivial case: XX and YY differ at a single vertex ww, with X(w)=aX(w)=a and Y(w)=bY(w)=b (a≠ba\ne b), so d(X,Y)=1d(X,Y)=1.

Suppose both chains pick the same vertex v∈Vv\in V (probability 1/n1/n each) and also naively propose the same color c∈[q]c\in[q]:

  1. Healing at v=wv=w (probability 1/n1/n): Because XX and YY agree on N(w)N(w), they share the same available color set A(w)=[q]∖X(N(w))A(w)=[q]\setminus X(N(w)) of size ∣A(w)∣≥q−Δ|A(w)|\ge q-\Delta.
    • If c∈A(w)c\in A(w) (probability ∣A(w)∣/q≥(q−Δ)/q|A(w)|/q\ge(q-\Delta)/q), both chains accept cc and coalesce (d(X1,Y1)=0d(X_1,Y_1)=0).
    • Otherwise, both reject cc and d(X1,Y1)=1d(X_1,Y_1)=1.
  2. Creation at a neighbor v∈N(w)v\in N(w) (at most Δ\Delta vertices, probability 1/n1/n each): Here X(v)=Y(v)X(v)=Y(v), and all neighbors of vv other than ww have identical colors in XX and YY.
    • If c∉{a,b}c\notin\{a,b\}, color cc has the same validity in XX and YY: both chains either accept cc or reject cc, keeping X1(v)=Y1(v)X_1(v)=Y_1(v).
    • If c=ac=a, color aa is blocked by X(w)=aX(w)=a in XX (rejected) but may be accepted in YY.
    • Symmetrically, if c=bc=b, color bb is blocked by Y(w)=bY(w)=b in YY (rejected) but may be accepted in XX.

Caution (Why naive identity coupling stalls at q>3Δq>3\Delta).

Under identical color proposals, two candidate colors (c=ac=a and c=bc=b) can split the chains at each neighbor v∈N(w)v\in N(w): c=ac=a is rejected in XX while potentially accepted in YY, and c=bc=b is rejected in YY while potentially accepted in XX. Across at most Δ\Delta neighbors of ww, expected disagreement creation can reach Δn⋅2q\frac{\Delta}{n}\cdot\frac{2}{q}, whereas expected healing at ww is at least 1n⋅q−Δq\frac{1}{n}\cdot\frac{q-\Delta}{q}. Net one-step contraction therefore requires q−Δnq>2Δnq⟺q>3Δ, \frac{q-\Delta}{nq}>\frac{2\Delta}{nq} \quad\Longleftrightarrow\quad q>3\Delta, wasting an entire factor of Δ\Delta because the two guaranteed rejections at vv occur on separate random draws.

The key idea: Matching rejected proposals cuts creation in half

w v X(w)=a, Y(w)=b X(v)=Y(v) Draw c = a ⇒ (X prop a, Y prop b) Both blocked by w → stay agreed Draw c = b ⇒ (X prop b, Y prop a) Only draw (prob 1/q) that can split v

Under the transposition τ=(a    b)\tau=(a\;\;b), the two guaranteed rejections at v∈N(w)v\in N(w) happen on the same random draw c=ac=a, halving disagreement creation from 2/q2/q to 1/q1/q.

Why did the naive coupling lose 2/q2/q at each neighbor v∈N(w)v\in N(w)? Because XX rejected c=ac=a on one draw while YY rejected c=bc=b on a different draw, even though both rejections produce the exact same outcome—staying at the shared color X(v)=Y(v)X(v)=Y(v).

A valid coupling only requires each chain’s proposal to be marginally uniform on [q][q]. When updating v∈N(w)v\in N(w), couple the proposals via the transposition τ=(a    b)\tau=(a\;\;b) that swaps aa and bb and fixes all other colors: draw c∈[q]c\in[q] uniformly, let XX propose cc, and let YY propose τ(c)\tau(c). On the two exceptional draws c∈{a,b}c\in\{a,b\}:

Pairing the two guaranteed rejections cuts disagreement creation at each neighbor from 2/q2/q to 1/q1/q, improving the contraction threshold from q>3Δq>3\Delta to q−Δnq>Δnq⟺q>2Δ. \frac{q-\Delta}{nq}>\frac{\Delta}{nq} \quad\Longleftrightarrow\quad q>2\Delta.

Coupling arbitrary colorings via updated-color distributions

How do we extend this rejection-matching idea to arbitrary proper colorings X,Y∈ΩX,Y\in\Omega at Hamming distance k=d(X,Y)k=d(X,Y), where a vertex vv 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 vv 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∈Vv\in V, and let AX(v)=[q]∖{X(u):u∈N(v)} A_X(v)=[q]\setminus\{X(u):u\in N(v)\} be the set of available colors at vv in XX. Because XX is proper, X(v)∈AX(v)X(v)\in A_X(v). Conditioned on selecting vv at state XX, the distribution KXvK_X^v of the updated color X1(v)X_1(v) is:

In compact form, KXv(c)={1q,c∈AX(v)∖{X(v)},1−∣AX(v)∣−1q,c=X(v),0,c∉AX(v), K_X^v(c)= \begin{cases} \dfrac1q,&c\in A_X(v)\setminus\{X(v)\},\\[6pt] 1-\dfrac{|A_X(v)|-1}{q},&c=X(v),\\[6pt] 0,&c\notin A_X(v), \end{cases} and KYvK_Y^v is defined analogously for YY. Passing from the proposal law to the updated-color law KXvK_X^v 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∈ΩX,Y\in\Omega is now simply:

  1. Choose the same vertex v∈Vv\in V uniformly at random in both chains.
  2. Given vv, sample (X1(v),Y1(v))(X_1(v),Y_1(v)) from a maximal coupling (Theorem 1) of KXvK_X^v and KYvK_Y^v, leaving all other vertices unchanged: P(X1(v)=Y1(v)∣v chosen)=∑c∈[q]min⁡{KXv(c),KYv(c)}=1−dTV(KXv,KYv). \mathbb P(X_1(v)=Y_1(v)\mid \text{$v$ chosen}) =\sum_{c\in[q]}\min\{K_X^v(c),K_Y^v(c)\} =1-d_{\mathrm{TV}}(K_X^v,K_Y^v).

Let D={u∈V:X(u)≠Y(u)}D=\{u\in V:X(u)\ne Y(u)\} be the set of current disagreements, with k=∣D∣k=|D|, and let rv=∣N(v)∩D∣ r_v=|N(v)\cap D| be the number of disagreeing neighbors of vv. Counting edges between DD and VV from their endpoints in DD gives ∑v∈Vrv=∑u∈Ddeg⁡(u)≤Δk. \sum_{v\in V}r_v =\sum_{u\in D}\deg(u) \le\Delta k.

We now evaluate the common mass ∑c∈[q]min⁡{KXv(c),KYv(c)}\sum_{c\in[q]}\min\{K_X^v(c),K_Y^v(c)\} according to whether v∉Dv\notin D or v∈Dv\in D:

Expected drift and rapid mixing above 2Δ2\Delta

Averaging over the uniform choice of v∈Vv\in V and using ∑v∈Vrv≤Δk\sum_{v\in V}r_v\le\Delta k, we obtain E[d(X1,Y1)∣X,Y]≤∑v∈D1n(k−1+Δ+rvq)+∑v∉D1n(k+rvq)=k−kn+1nq(kΔ+∑v∈Vrv)≤k−kn+2Δknq=k(1−q−2Δnq). \begin{aligned} \mathbb E[d(X_1,Y_1)\mid X,Y] &\le\sum_{v\in D}\frac1n\left(k-1+\frac{\Delta+r_v}{q}\right)+\sum_{v\notin D}\frac1n\left(k+\frac{r_v}{q}\right)\\ &=k-\frac{k}{n}+\frac{1}{nq}\left(k\Delta+\sum_{v\in V}r_v\right)\\ &\le k-\frac{k}{n}+\frac{2\Delta k}{nq} =k\left(1-\frac{q-2\Delta}{nq}\right). \end{aligned} Whenever q>2Δq>2\Delta, Hamming distance contracts in expectation for every pair of proper colorings.

Theorem 2 (Rapid mixing of the Metropolis coloring chain above 2Δ2\Delta) Let G=(V,E)G=(V,E) have nn vertices and maximum degree Δ\Delta. If q>2Δq>2\Delta, the propose-and-validate coloring chain satisfies τmix(ε)≤⌈nqq−2Δ(log⁡n+log⁡1ε)⌉. \tau_{\mathrm{mix}}(\varepsilon) \le \left\lceil \frac{nq}{q-2\Delta} \left(\log n+\log\frac1\varepsilon\right) \right\rceil. For q≥(2+c)Δq\ge(2+c)\Delta with fixed c>0c>0, this is O(nlog⁡(n/ε))O(n\log(n/\varepsilon)).

Proof. Put α=(q−2Δ)/(nq)>0\alpha=(q-2\Delta)/(nq)>0. Start one copy from an arbitrary coloring X0X_0 and the other from stationarity, Y0∼πY_0\sim\pi. Since d(X0,Y0)≤nd(X_0,Y_0)\le n, iterating the one-step conditional drift bound gives E[d(Xt,Yt)]≤n(1−α)t≤ne−αt. \mathbb E[d(X_t,Y_t)] \le n(1-\alpha)^t \le ne^{-\alpha t}. Since distinct colorings have distance at least 11, Markov’s inequality and Theorem 1 yield dTV(Pt(X0,⋅),π)≤P(Xt≠Yt)≤E[d(Xt,Yt)]≤ne−αt, d_{\mathrm{TV}}(P^t(X_0,\cdot),\pi) \le\mathbb P(X_t\ne Y_t) \le\mathbb E[d(X_t,Y_t)] \le ne^{-\alpha t}, which is at most ε\varepsilon once t≥α−1(log⁡n+log⁡(1/ε))t\ge\alpha^{-1}(\log n+\log(1/\varepsilon)).

Notice the mechanism: updating a disagreeing vertex v∈Dv\in D heals the disagreement with probability at least (q−Δ−rv)/q(q-\Delta-r_v)/q, while each disagreeing neighbor u∈N(v)∩Du\in N(v)\cap D perturbs the updated-color law at vv by at most 1/q1/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(nlog⁡n)O(n\log n) upper bound for graph coloring above 2Δ2\Delta, yet two fundamental questions from the first half of the chapter remain open:

  1. Why does every finite, irreducible, aperiodic Markov chain converge to its stationary distribution π\pi? 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.
  2. 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Δq\le 2\Delta—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 PP as a linear operator.

From distributions to relative densities

Recall that a probability distribution μt\mu_t on Ω\Omega (viewed as a row vector) evolves by PP acting from the right: μt+1=μtP,orμt+1(y)=∑x∈Ωμt(x)P(x,y). \mu_{t+1}=\mu_t P, \qquad\text{or}\qquad \mu_{t+1}(y)=\sum_{x\in\Omega}\mu_t(x)P(x,y). When π\pi is stationary (π(y)>0\pi(y)>0 for all y∈Ωy\in\Omega), convergence μt→π\mu_t\to\pi is equivalent to saying that the relative density ht(x)=μt(x)π(x) h_t(x)=\frac{\mu_t(x)}{\pi(x)} converges to the all-ones column vector 1(x)≡1\mathbf 1(x)\equiv 1. How does hth_t evolve in one step when PP is reversible with respect to π\pi? Dividing μt+1(y)\mu_{t+1}(y) by π(y)\pi(y) and applying detailed balance π(x)P(x,y)=π(y)P(y,x)\pi(x)P(x,y)=\pi(y)P(y,x) gives ht+1(y)=1π(y)∑x∈Ωμt(x)P(x,y)=∑x∈Ωμt(x)π(x) π(x)P(x,y)π(y)=∑x∈Ωht(x)P(y,x)=(Pht)(y). \begin{aligned} h_{t+1}(y) &=\frac{1}{\pi(y)}\sum_{x\in\Omega}\mu_t(x)P(x,y)\\ &=\sum_{x\in\Omega}\frac{\mu_t(x)}{\pi(x)}\,\frac{\pi(x)P(x,y)}{\pi(y)}\\ &=\sum_{x\in\Omega}h_t(x)P(y,x) =(Ph_t)(y). \end{aligned} Thus, for a reversible chain, the relative density hth_t evolves by PP acting from the left: ht+1=Pht,and henceht=Pth0. h_{t+1}=Ph_t, \qquad\text{and hence}\qquad h_t=P^t h_0. More generally, PP acts on any function f:Ω→Rf:\Omega\to\mathbb 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]. (Pf)(x)=\sum_{y\in\Omega}P(x,y)f(y)=\mathbb E[f(X_{t+1})\mid X_t=x].

The weighted inner product space L2(π)L^2(\pi)

To analyze the powers Pth0P^t h_0, we want to diagonalize PP in an orthonormal basis of eigenvectors. When π\pi is non-uniform, however, a reversible matrix PP need not be symmetric in the standard Euclidean inner product, since P(x,y)=π(y)π(x)P(y,x)≠P(y,x)P(x,y)=\frac{\pi(y)}{\pi(x)}P(y,x)\ne P(y,x).

Instead, detailed balance equates the π\pi-weighted flows π(x)P(x,y)=π(y)P(y,x)\pi(x)P(x,y)=\pi(y)P(y,x). The natural geometry on RΩ\mathbb R^\Omega is therefore the π\pi-weighted inner product space L2(π)L^2(\pi): for functions f,g:Ω→Rf,g:\Omega\to\mathbb R, define ⟨f,g⟩π=∑x∈Ωπ(x)f(x)g(x)=Eπ[f(X)g(X)],∥f∥2,π=⟨f,f⟩π=Eπ[f(X)2]. \langle f,g\rangle_\pi=\sum_{x\in\Omega}\pi(x)f(x)g(x)=\mathbb E_\pi[f(X)g(X)], \qquad \|f\|_{2,\pi}=\sqrt{\langle f,f\rangle_\pi}=\sqrt{\mathbb E_\pi[f(X)^2]}. In L2(π)L^2(\pi), the inner product with the constant function 1\mathbf 1 is the stationary mean ⟨f,1⟩π=Eπ[f]\langle f,\mathbf 1\rangle_\pi=\mathbb E_\pi[f], and the squared distance from ff to Eπ[f]1\mathbb E_\pi[f]\mathbf 1 is the stationary variance Var⁡π(f)=∥f−Eπ[f]1∥2,π2\operatorname{Var}_\pi(f)=\|f-\mathbb E_\pi[f]\mathbf 1\|_{2,\pi}^2.

Under detailed balance, PP is symmetric with respect to ⟨⋅,⋅⟩π\langle\cdot,\cdot\rangle_\pi: ⟨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⟩π. \begin{aligned} \langle f,Pg\rangle_\pi &=\sum_{x\in\Omega}\pi(x)f(x)\sum_{y\in\Omega}P(x,y)g(y)\\ &=\sum_{x,y\in\Omega}\pi(x)P(x,y)f(x)g(y)\\ &=\sum_{x,y\in\Omega}\pi(y)P(y,x)f(x)g(y) =\langle Pf,g\rangle_\pi. \end{aligned} In short, reversibility means that PP is a self-adjoint operator on L2(π)L^2(\pi).

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(π)L^2(\pi) bridges probability theory to Hilbert-space spectral theory and discrete harmonic analysis.

1.10 Symmetrizing a reversible chain

Self-adjointness on L2(π)L^2(\pi) implies that PP has real eigenvalues and an L2(π)L^2(\pi)-orthonormal basis of real eigenvectors. To see this explicitly via ordinary matrix algebra, define the diagonal matrix Π=diag⁡(π(x):x∈Ω) \Pi=\operatorname{diag}(\pi(x):x\in\Omega) and the similarity transform S=Π1/2PΠ−1/2,S(x,y)=π(x) P(x,y)π(y). S=\Pi^{1/2}P\Pi^{-1/2}, \qquad S(x,y)=\frac{\sqrt{\pi(x)}\,P(x,y)}{\sqrt{\pi(y)}}. By detailed balance, π(x)P(x,y)=π(y)P(y,x)\pi(x)P(x,y)=\pi(y)P(y,x), so S(x,y)=π(y) P(y,x)π(x)=S(y,x). S(x,y)=\frac{\sqrt{\pi(y)}\,P(y,x)}{\sqrt{\pi(x)}}=S(y,x). Thus SS is a real symmetric matrix. By the spectral theorem, SS has:

Because P=Π−1/2SΠ1/2P=\Pi^{-1/2}S\Pi^{1/2} is similar to SS, PP shares the same eigenvalues λi\lambda_i. Setting φi=Π−1/2ui \varphi_i=\Pi^{-1/2}u_i gives right eigenvectors of PP, since Pφi=PΠ−1/2ui=Π−1/2Sui=λiΠ−1/2ui=λiφi, P\varphi_i=P\Pi^{-1/2}u_i=\Pi^{-1/2}Su_i=\lambda_i\Pi^{-1/2}u_i=\lambda_i\varphi_i, and {φ1,…,φN}\{\varphi_1,\ldots,\varphi_N\} is orthonormal in L2(π)L^2(\pi): ⟨φi,φj⟩π=φi⊤Πφj=ui⊤Π−1/2ΠΠ−1/2uj=ui⊤uj=1{i=j}. \langle\varphi_i,\varphi_j\rangle_\pi =\varphi_i^\top\Pi\varphi_j =u_i^\top\Pi^{-1/2}\Pi\Pi^{-1/2}u_j =u_i^\top u_j =\mathbf 1_{\{i=j\}}. Every function f:Ω→Rf:\Omega\to\mathbb R therefore admits the spectral expansion f=∑i=1N⟨f,φi⟩πφi,andPtf=∑i=1Nλit⟨f,φi⟩πφi. f=\sum_{i=1}^N\langle f,\varphi_i\rangle_\pi\varphi_i, \qquad\text{and}\qquad P^t f=\sum_{i=1}^N\lambda_i^t\langle f,\varphi_i\rangle_\pi\varphi_i.

Since every row of PP sums to 11, we have P1=1P\mathbf 1=\mathbf 1, so the constant function 1\mathbf 1 is a unit-norm eigenfunction with eigenvalue 11: λ1=1,φ1=1. \lambda_1=1, \qquad \varphi_1=\mathbf 1.

Row vs. column eigenvectors. Why is the top right eigenvector φ1=1\varphi_1=\mathbf 1, whereas the stationary distribution π\pi is a left eigenvector πP=π\pi P=\pi? Right eigenvectors Pφi=λiφiP\varphi_i=\lambda_i\varphi_i live in the space of observables (or relative densities hth_t), while left eigenvectors ψi⊤P=λiψi⊤\psi_i^\top P=\lambda_i\psi_i^\top live in the space of signed measures. For a reversible chain, multiplying by Π=diag⁡(π)\Pi=\operatorname{diag}(\pi) translates between the two: ψi(x)=π(x)φi(x)\psi_i(x)=\pi(x)\varphi_i(x) satisfies (ψi⊤P)(y)=∑xπ(x)φi(x)P(x,y)=∑xπ(y)P(y,x)φi(x)=λiψi(y)(\psi_i^\top P)(y)=\sum_x\pi(x)\varphi_i(x)P(x,y)=\sum_x\pi(y)P(y,x)\varphi_i(x)=\lambda_i\psi_i(y), mapping φ1=1\varphi_1=\mathbf 1 directly to ψ1=π\psi_1=\pi.

Moreover, every eigenvalue of a stochastic matrix satisfies ∣λi∣≤1|\lambda_i|\le 1: if Pf=λfPf=\lambda f and x∈Ωx\in\Omega maximizes ∣f(x)∣|f(x)|, then ∣λ∣⋅∣f(x)∣=∣(Pf)(x)∣≤∑y∈ΩP(x,y)∣f(y)∣≤∣f(x)∣∑y∈ΩP(x,y)=∣f(x)∣. |\lambda|\cdot|f(x)|=|(Pf)(x)|\le\sum_{y\in\Omega}P(x,y)|f(y)|\le|f(x)|\sum_{y\in\Omega}P(x,y)=|f(x)|. Hence all eigenvalues of a reversible chain lie in [−1,1][-1,1].

1.11 What irreducibility and aperiodicity do to the spectrum

Separating the stationary mode i=1i=1 (φ1=1\varphi_1=\mathbf 1) from the remaining modes gives Ptf=⟨f,1⟩π1+∑i=2Nλit⟨f,φi⟩πφi. P^t f=\langle f,\mathbf 1\rangle_\pi\mathbf 1+\sum_{i=2}^N\lambda_i^t\langle f,\varphi_i\rangle_\pi\varphi_i. For PtfP^t f to converge to ⟨f,1⟩π1=Eπ[f]1\langle f,\mathbf 1\rangle_\pi\mathbf 1=\mathbb E_\pi[f]\mathbf 1 from every initial function ff, every non-trivial mode i≥2i\ge 2 must decay to zero as t→∞t\to\infty, which happens if and only if ∣λi∣<1|\lambda_i|<1 for all i≥2i\ge 2. Since λi∈[−1,1]\lambda_i\in[-1,1], only two obstructions can occur:

Lemma 1 (Peripheral spectrum of an ergodic chain) Let PP be a finite irreducible Markov chain.

  1. The eigenvalue 11 has multiplicity 11, and its eigenspace consists of the constant functions.
  2. If PP is also aperiodic, then λ=1\lambda=1 is the only eigenvalue on the unit circle: ∣λ∣<1|\lambda|<1 for all other eigenvalues.

Proof. Let f:Ω→Cf:\Omega\to\mathbb C satisfy Pf=λfPf=\lambda f with ∣λ∣=1|\lambda|=1. Let M=max⁡z∈Ω∣f(z)∣>0M=\max_{z\in\Omega}|f(z)|>0, and pick x∈Ωx\in\Omega with ∣f(x)∣=M|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. M=|\lambda f(x)|=|(Pf)(x)|=\left|\sum_{y\in\Omega}P(x,y)f(y)\right|\le\sum_{y\in\Omega}P(x,y)|f(y)|\le M. For equality to hold throughout, every yy with P(x,y)>0P(x,y)>0 must have ∣f(y)∣=M|f(y)|=M and the same complex argument as λf(x)\lambda f(x), forcing f(y)=λf(x)for all y with P(x,y)>0. f(y)=\lambda f(x) \qquad\text{for all }y\text{ with }P(x,y)>0. By induction along any directed path x=v0,v1,…,vt=yx=v_0,v_1,\ldots,v_t=y of positive probability, f(y)=λtf(x)f(y)=\lambda^t f(x). By irreducibility, every y∈Ωy\in\Omega is reachable from xx, so ∣f(y)∣=M>0|f(y)|=M>0 for all y∈Ωy\in\Omega.

  1. If λ=1\lambda=1, then f(y)=f(x)f(y)=f(x) for all y∈Ωy\in\Omega, so ff is constant and the eigenspace of 11 is one-dimensional.
  2. Along any closed walk from xx to xx of length tt (Pt(x,x)>0P^t(x,x)>0), we have f(x)=λtf(x)f(x)=\lambda^t f(x) and hence λt=1\lambda^t=1. By aperiodicity, the greatest common divisor of all such return lengths tt is 11; writing 11 as an integer linear combination of return lengths (Bézout’s identity) gives λ1=1\lambda^1=1.

In algorithm design, negative eigenvalues near −1-1 are easily avoided by making the chain lazy: replace PP by Plazy=I+P2. P_{\mathrm{lazy}}=\frac{I+P}{2}. At each step, PlazyP_{\mathrm{lazy}} stays put with probability 1/21/2 and takes a step of PP with probability 1/21/2. Laziness preserves the stationary distribution (πPlazy=π\pi P_{\mathrm{lazy}}=\pi) and maps each eigenvalue λi∈[−1,1]\lambda_i\in[-1,1] to 1+λi2∈[0,1]\frac{1+\lambda_i}{2}\in[0,1], eliminating negative eigenvalues at the cost of a factor of 22 in the spectral gap.

1.12 A spectral proof of the reversible FTMC

Combining the relative-density evolution ht=Pth0h_t=P^t h_0 (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 PP is irreducible and aperiodic, then it has a unique stationary distribution π\pi, and for every starting state x∈Ωx\in\Omega, lim⁡t→∞Pt(x,y)=π(y)for all y∈Ω. \lim_{t\to\infty}P^t(x,y)=\pi(y) \qquad\text{for all }y\in\Omega.

Proof. For any initial distribution μ0\mu_0, let ht(y)=μt(y)/π(y)h_t(y)=\mu_t(y)/\pi(y) be the relative density. By Section 1.9, ht=Pth0h_t=P^t h_0, and the projection of h0h_0 onto φ1=1\varphi_1=\mathbf 1 is ⟨h0,1⟩π=∑y∈Ωπ(y)μ0(y)π(y)=∑y∈Ωμ0(y)=1. \langle h_0,\mathbf 1\rangle_\pi=\sum_{y\in\Omega}\pi(y)\frac{\mu_0(y)}{\pi(y)}=\sum_{y\in\Omega}\mu_0(y)=1. Expanding h0h_0 in the L2(π)L^2(\pi)-orthonormal eigenbasis {φi}\{\varphi_i\} and applying PtP^t gives ht=Pth0=1+∑i=2Nλit⟨h0,φi⟩πφi. h_t=P^t h_0=\mathbf 1+\sum_{i=2}^N\lambda_i^t\langle h_0,\varphi_i\rangle_\pi\varphi_i. By Lemma 1, ∣λi∣<1|\lambda_i|<1 for all i≥2i\ge 2, so every term in the sum vanishes as t→∞t\to\infty. Thus lim⁡t→∞ht(y)=1\lim_{t\to\infty}h_t(y)=1, or lim⁡t→∞μt(y)=π(y)\lim_{t\to\infty}\mu_t(y)=\pi(y), for every y∈Ωy\in\Omega.

The spectral expansion makes the role of each assumption transparent:

1.13 The second eigenvalue controls the rate

Beyond qualitative convergence, the expansion of hth_t turns the non-trivial eigenvalues of PP into a quantitative bound on total variation distance.

Define the second-largest eigenvalue modulus (SLEM) β=max⁡i≥2∣λi∣=max⁡{λ2,∣λN∣}<1. \beta=\max_{i\ge2}|\lambda_i|=\max\{\lambda_2,|\lambda_N|\}<1. By Parseval’s identity in L2(π)L^2(\pi), the L2(π)L^2(\pi) distance from hth_t to 1\mathbf 1 contracts by at least β\beta per step: ∥ht−1∥2,π2=∑i=2Nλi2t⟨h0,φi⟩π2≤β2t∑i=2N⟨h0,φi⟩π2=β2t∥h0−1∥2,π2. \|h_t-\mathbf 1\|_{2,\pi}^2 =\sum_{i=2}^N\lambda_i^{2t}\langle h_0,\varphi_i\rangle_\pi^2 \le\beta^{2t}\sum_{i=2}^N\langle h_0,\varphi_i\rangle_\pi^2 =\beta^{2t}\|h_0-\mathbf 1\|_{2,\pi}^2. By Cauchy–Schwarz, total variation distance is bounded by half the L2(π)L^2(\pi) norm of ht−1h_t-\mathbf 1: dTV(μt,π)=12∑y∈Ω∣μt(y)−π(y)∣=12∑y∈Ωπ(y)∣ht(y)−1∣=12Eπ[∣ht−1∣]≤12Eπ[(ht−1)2]=12∥ht−1∥2,π. \begin{aligned} d_{\mathrm{TV}}(\mu_t,\pi) &=\frac12\sum_{y\in\Omega}|\mu_t(y)-\pi(y)| =\frac12\sum_{y\in\Omega}\pi(y)|h_t(y)-1|\\ &=\frac12\mathbb E_\pi[|h_t-1|] \le\frac12\sqrt{\mathbb E_\pi[(h_t-1)^2]} =\frac12\|h_t-\mathbf 1\|_{2,\pi}. \end{aligned}

Recall (χ2\chi^2-divergence). The squared L2(π)L^2(\pi) norm of ht−1h_t-\mathbf 1 is the Pearson χ2\chi^2-divergence of μt\mu_t from π\pi: ∥ht−1∥2,π2=∑y∈Ωπ(y)(μt(y)π(y)−1)2=∑y∈Ω(μt(y)−π(y))2π(y)=χ2(μt∥π). \|h_t-\mathbf 1\|_{2,\pi}^2 =\sum_{y\in\Omega}\pi(y)\left(\frac{\mu_t(y)}{\pi(y)}-1\right)^2 =\sum_{y\in\Omega}\frac{(\mu_t(y)-\pi(y))^2}{\pi(y)} =\chi^2(\mu_t\Vert\pi). Cauchy–Schwarz yields the classical inequality dTV(μt,π)≤12χ2(μt∥π)d_{\mathrm{TV}}(\mu_t,\pi)\le\frac12\sqrt{\chi^2(\mu_t\Vert\pi)}.

When the chain starts at a deterministic state x∈Ωx\in\Omega, the initial density h0(y)=1{y=x}π(x)h_0(y)=\frac{\mathbf 1_{\{y=x\}}}{\pi(x)} has variance ∥h0−1∥2,π2=∑y∈Ωπ(y)(1{y=x}π(x)−1)2=1π(x)−1. \|h_0-\mathbf 1\|_{2,\pi}^2 =\sum_{y\in\Omega}\pi(y)\left(\frac{\mathbf 1_{\{y=x\}}}{\pi(x)}-1\right)^2 =\frac{1}{\pi(x)}-1. Combining these three relations gives the spectral mixing bound: for every starting state x∈Ωx\in\Omega, dTV(Pt(x,⋅),π)≤121π(x)−1 βt≤βt2π(x). d_{\mathrm{TV}}(P^t(x,\cdot),\pi) \le\frac12\sqrt{\frac{1}{\pi(x)}-1}\,\beta^t \le\frac{\beta^t}{2\sqrt{\pi(x)}}.

We define the spectral gap and the relaxation time of PP by γ=1−λ2,trel=1γ(or 11−β if ∣λN∣>λ2). \gamma=1-\lambda_2, \qquad t_{\mathrm{rel}}=\frac{1}{\gamma} \quad\left(\text{or }\frac{1}{1-\beta}\text{ if }|\lambda_N|>\lambda_2\right). When PP has no negative eigenvalues (as for any lazy chain), β=λ2=1−γ≤e−γ\beta=\lambda_2=1-\gamma\le e^{-\gamma}, so dTV(Pt(x,⋅),π)≤e−γt2π(x)andτmix(ε)≤⌈1γ(12log⁡1πmin⁡+log⁡12ε)⌉, d_{\mathrm{TV}}(P^t(x,\cdot),\pi)\le\frac{e^{-\gamma t}}{2\sqrt{\pi(x)}} \qquad\text{and}\qquad \tau_{\mathrm{mix}}(\varepsilon)\le\left\lceil\frac{1}{\gamma}\left(\frac12\log\frac{1}{\pi_{\min}}+\log\frac{1}{2\varepsilon}\right)\right\rceil, where πmin⁡=min⁡x∈Ωπ(x)\pi_{\min}=\min_{x\in\Omega}\pi(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\Omega=\{-1,+1\}^n from Section 1.7: at each step, pick i∈[n]i\in[n] uniformly at random and replace x(i)x(i) with a uniform sign in {−1,+1}\{-1,+1\}. Its stationary distribution is π(x)=2−n\pi(x)=2^{-n}.

Because each step refreshes one coordinate independently, the Walsh–Fourier parity functions χS(x)=∏j∈Sx(j)(S⊆[n]) \chi_S(x)=\prod_{j\in S}x(j) \qquad(S\subseteq[n]) diagonalize PP. Indeed, fix S⊆[n]S\subseteq[n] and condition on the chosen coordinate i∈[n]i\in[n]:

  • If i∉Si\notin S (probability 1−∣S∣/n1-|S|/n), no coordinate in SS changes, so χS(X1)=χS(x)\chi_S(X_1)=\chi_S(x).
  • If i∈Si\in S (probability ∣S∣/n|S|/n), coordinate ii is resampled to ±1\pm 1 with probability 1/21/2 each, so the conditional expectation of χS(X1)\chi_S(X_1) is 00.

Averaging over i∈[n]i\in[n] shows that every χS\chi_S is an eigenfunction of PP: (PχS)(x)=(1−∣S∣n)χS(x). (P\chi_S)(x)=\left(1-\frac{|S|}{n}\right)\chi_S(x). The 2n2^n parity functions {χS}S⊆[n]\{\chi_S\}_{S\subseteq[n]} form an orthonormal basis of L2(π)L^2(\pi), with eigenvalues λS=1−∣S∣n∈[0,1]of multiplicity (n∣S∣) for ∣S∣=0,1,…,n. \lambda_S=1-\frac{|S|}{n}\in[0,1] \qquad\text{of multiplicity }\binom{n}{|S|}\text{ for }|S|=0,1,\ldots,n. In particular, λ1=λ∅=1\lambda_1=\lambda_\emptyset=1, λ2=1−1n\lambda_2=1-\frac1n (attained by the nn coordinate projections χ{i}(x)=x(i)\chi_{\{i\}}(x)=x(i)), and γ=1−λ2=1n,trel=1γ=n. \gamma=1-\lambda_2=\frac1n, \qquad t_{\mathrm{rel}}=\frac1\gamma=n.

Comparing the spectral bound with coupling:

  1. A matching lower bound: Take the test function f(y)=χ{1}(y)=y(1)∈{−1,+1}f(y)=\chi_{\{1\}}(y)=y(1)\in\{-1,+1\}, which has Eπ[f]=0\mathbb E_\pi[f]=0. Starting from x=(+1,…,+1)x=(+1,\ldots,+1), we have Ex[f(Xt)]=(Ptχ{1})(x)=(1−1/n)t\mathbb E_x[f(X_t)]=(P^t\chi_{\{1\}})(x)=(1-1/n)^t. Since ∣f∣≤1|f|\le 1, dTV(Pt(x,⋅),π)≥12∣Ex[f(Xt)]−Eπ[f]∣=12(1−1n)t, d_{\mathrm{TV}}(P^t(x,\cdot),\pi) \ge\frac12\bigl|\mathbb E_x[f(X_t)]-\mathbb E_\pi[f]\bigr| =\frac12\left(1-\frac1n\right)^t, which proves τmix(ε)=Ω(nlog⁡(1/ε))\tau_{\mathrm{mix}}(\varepsilon)=\Omega(n\log(1/\varepsilon)).

  2. Why the generic L2L^2 upper bound loses a factor of Θ(n/log⁡n)\Theta(n/\log n): Plugging γ=1/n\gamma=1/n and π(x)=2−n\pi(x)=2^{-n} into the generic bound dTV(Pt(x,⋅),π)≤e−γt2π(x)=2n2−1e−t/nd_{\mathrm{TV}}(P^t(x,\cdot),\pi)\le\frac{e^{-\gamma t}}{2\sqrt{\pi(x)}}=2^{\frac n2-1}e^{-t/n} gives τmix(ε)≤n(n2log⁡2+log⁡12ε)=Θ(n2), \tau_{\mathrm{mix}}(\varepsilon)\le n\left(\frac{n}{2}\log 2+\log\frac{1}{2\varepsilon}\right)=\Theta(n^2), whereas coupling (Section 1.7) gave O(nlog⁡n)O(n\log n). The extra factor comes from the worst-case step in Parseval’s identity: starting at x=(+1,…,+1)x=(+1,\ldots,+1), every Fourier coefficient is ⟨h0,χS⟩π=χS(x)=1\langle h_0,\chi_S\rangle_\pi=\chi_S(x)=1, so the exact L2(π)L^2(\pi) norm is ∥ht−1∥2,π2=∑∅≠S⊆[n]λS2t=∑k=1n(nk)(1−kn)2t. \|h_t-\mathbf 1\|_{2,\pi}^2 =\sum_{\emptyset\ne S\subseteq[n]}\lambda_S^{2t} =\sum_{k=1}^n\binom{n}{k}\left(1-\frac{k}{n}\right)^{2t}. The generic bound replaces every mode λS2t=(1−k/n)2t\lambda_S^{2t}=(1-k/n)^{2t} by the slowest single-coordinate decay (1−1/n)2t(1-1/n)^{2t} and multiplies it by all 2n−12^n-1 modes. Retaining (1−k/n)2t≤e−2kt/n(1-k/n)^{2t}\le e^{-2kt/n} for each degree k=∣S∣k=|S| instead gives ∥ht−1∥2,π2≤∑k=1n(nk)e−2kt/n=(1+e−2t/n)n−1≤exp⁡(ne−2t/n)−1, \|h_t-\mathbf 1\|_{2,\pi}^2 \le\sum_{k=1}^n\binom{n}{k}e^{-2kt/n} =\bigl(1+e^{-2t/n}\bigr)^n-1 \le\exp\bigl(ne^{-2t/n}\bigr)-1, which falls below 4ε24\varepsilon^2 in t=O(nlog⁡(n/ε))t=O(n\log(n/\varepsilon)) steps, recovering the O(nlog⁡n)O(n\log n) scale.

Caution (The log⁡(1/πmin⁡)\log(1/\pi_{\min}) overhead of generic L2L^2 spectral bounds).

Comparing dTV(μt,π)d_{\mathrm{TV}}(\mu_t,\pi) to ∥ht−1∥2,π\|h_t-\mathbf 1\|_{2,\pi} via Cauchy–Schwarz starts from ∥h0−1∥2,π≈π(x)−1/2\|h_0-\mathbf 1\|_{2,\pi}\approx\pi(x)^{-1/2}, which equals 2n/22^{n/2} on an nn-variable product space. Bounding every non-stationary mode in Parseval’s identity by the single slowest eigenvalue λ2=1−γ\lambda_2=1-\gamma therefore pays an extra factor of log⁡(1/πmin⁡)=Θ(n)\log(1/\pi_{\min})=\Theta(n) in the mixing time—inflating the hypercube bound from O(nlog⁡n)O(n\log n) to Θ(n2)\Theta(n^2). Recovering the true O(nlog⁡n)O(n\log n) scale in interacting spin systems where the full spectrum cannot be computed explicitly requires replacing L2(π)L^2(\pi) 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\{-1,+1\}^n, product structure let us write down all 2n2^n eigenvectors explicitly. On a combinatorial state space like the proper qq-colorings of a graph GG, diagonalizing an ∣Ω∣×∣Ω∣|\Omega|\times|\Omega| matrix is hopeless. How can we bound the spectral gap γ=1−λ2\gamma=1-\lambda_2 without computing eigenvectors?

For the self-adjoint operator PP on L2(π)L^2(\pi) with top eigenvector φ1=1\varphi_1=\mathbf 1 (λ1=1\lambda_1=1), the Courant–Fischer theorem expresses λ2\lambda_2 as a Rayleigh quotient over all non-zero functions orthogonal to 1\mathbf 1: λ2=max⁡f⊥π1f≠0⟨f,Pf⟩π⟨f,f⟩π. \lambda_2=\max_{\substack{f\perp_\pi\mathbf 1\\f\ne 0}}\frac{\langle f,Pf\rangle_\pi}{\langle f,f\rangle_\pi}. Subtracting both sides from 11 turns this maximization for λ2\lambda_2 into a minimization for the spectral gap γ=1−λ2\gamma=1-\lambda_2: γ=1−λ2=min⁡f⊥π1f≠0⟨f,(I−P)f⟩π∥f∥2,π2=min⁡f≢const⟨f,(I−P)f⟩πVar⁡π(f), \gamma=1-\lambda_2=\min_{\substack{f\perp_\pi\mathbf 1\\f\ne 0}}\frac{\langle f,(I-P)f\rangle_\pi}{\|f\|_{2,\pi}^2} =\min_{f\not\equiv\text{const}}\frac{\langle f,(I-P)f\rangle_\pi}{\operatorname{Var}_\pi(f)}, where the second equality holds because subtracting Eπ[f]1\mathbb E_\pi[f]\mathbf 1 projects ff onto 1⊥\mathbf 1^\perp without changing (I−P)f(I-P)f.

Let L=I−PL=I-P be the Laplacian operator of the chain. For any function f:Ω→Rf:\Omega\to\mathbb R, the Dirichlet form (or Dirichlet energy) is the numerator E(f,f)=⟨f,Lf⟩π=⟨f,(I−P)f⟩π. \mathcal E(f,f)=\langle f,Lf\rangle_\pi=\langle f,(I-P)f\rangle_\pi. Using ∑y∈ΩP(x,y)=1\sum_{y\in\Omega}P(x,y)=1 and detailed balance π(x)P(x,y)=π(y)P(y,x)\pi(x)P(x,y)=\pi(y)P(y,x), we can rewrite E(f,f)\mathcal 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))=12∑x,y∈Ωπ(x)P(x,y)(f(x)−f(y))2, \begin{aligned} \mathcal E(f,f) &=\sum_{x\in\Omega}\pi(x)f(x)\left(f(x)-\sum_{y\in\Omega}P(x,y)f(y)\right)\\ &=\sum_{x,y\in\Omega}\pi(x)P(x,y)f(x)\bigl(f(x)-f(y)\bigr)\\ &=\frac12\sum_{x,y\in\Omega}\pi(x)P(x,y)\bigl(f(x)-f(y)\bigr)^2, \end{aligned} where the last step averages the sum with the same sum after swapping xx and yy. Probabilistically, E(f,f)=12Eπ[(f(X1)−f(X0))2]\mathcal E(f,f)=\frac12\mathbb E_\pi[(f(X_1)-f(X_0))^2] measures the local roughness of ff across a single step of the chain, whereas Var⁡π(f)=12EX,Y∼π[(f(X)−f(Y))2]\operatorname{Var}_\pi(f)=\frac12\mathbb E_{X,Y\sim\pi}[(f(X)-f(Y))^2] measures the global variance of ff across independent draws from π\pi.

Theorem 4 (Poincaré inequality) Let PP be a finite, irreducible, reversible Markov chain with spectral gap γ=1−λ2\gamma=1-\lambda_2. For every function f:Ω→Rf:\Omega\to\mathbb R, Var⁡π(f)≤1γE(f,f). \operatorname{Var}_\pi(f)\le\frac{1}{\gamma}\mathcal E(f,f). Furthermore, this inequality is tight: the optimal constant is 1/γ1/\gamma, achieved when f=φ2f=\varphi_2.

Proof. Since subtracting Eπ[f]1\mathbb E_\pi[f]\mathbf 1 leaves both Var⁡π(f)\operatorname{Var}_\pi(f) and E(f,f)\mathcal E(f,f) unchanged, we may assume Eπ[f]=⟨f,1⟩π=0\mathbb E_\pi[f]=\langle f,\mathbf 1\rangle_\pi=0. Expanding f=∑i=2Naiφif=\sum_{i=2}^N a_i\varphi_i with ai=⟨f,φi⟩πa_i=\langle f,\varphi_i\rangle_\pi gives Var⁡π(f)=∥f∥2,π2=∑i=2Nai2andE(f,f)=⟨f,(I−P)f⟩π=∑i=2N(1−λi)ai2. \operatorname{Var}_\pi(f)=\|f\|_{2,\pi}^2=\sum_{i=2}^N a_i^2 \qquad\text{and}\qquad \mathcal E(f,f)=\langle f,(I-P)f\rangle_\pi=\sum_{i=2}^N(1-\lambda_i)a_i^2. Since 1−λi≥1−λ2=γ1-\lambda_i\ge 1-\lambda_2=\gamma for all i≥2i\ge 2, we have E(f,f)≥γVar⁡π(f)\mathcal E(f,f)\ge\gamma\operatorname{Var}_\pi(f), with equality for f=φ2f=\varphi_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\lambda_N\ge 0 so that β=max⁡i≥2∣λi∣\beta=\max_{i\ge 2}|\lambda_i| equals λ2=1−γ\lambda_2=1-\gamma. Equivalently, Theorem 4 gives the variational characterization of the spectral gap: γ=min⁡f≢constE(f,f)Var⁡π(f). \gamma=\min_{f\not\equiv\text{const}}\frac{\mathcal E(f,f)}{\operatorname{Var}_\pi(f)}. To upper-bound γ\gamma (proving slow relaxation), it suffices to exhibit a single non-constant test function ff whose local roughness E(f,f)\mathcal E(f,f) is small relative to its variance Var⁡π(f)\operatorname{Var}_\pi(f).

1.15 Conductance and bottlenecks

The simplest non-constant test function to plug into the Rayleigh quotient E(f,f)/Var⁡π(f)\mathcal E(f,f)/\operatorname{Var}_\pi(f) is the indicator function f=1Sf=\mathbf 1_S of a subset S⊂ΩS\subset\Omega with 0<π(S)≤1/20<\pi(S)\le 1/2:

Plugging f=1Sf=\mathbf 1_S into Theorem 4 yields γ≤E(1S,1S)Var⁡π(1S)=∑x∈S, y∈Scπ(x)P(x,y)π(S)(1−π(S)). \gamma \le\frac{\mathcal E(\mathbf 1_S,\mathbf 1_S)}{\operatorname{Var}_\pi(\mathbf 1_S)} =\frac{\sum_{x\in S,\,y\in S^c}\pi(x)P(x,y)}{\pi(S)\bigl(1-\pi(S)\bigr)}. Since 1/2≤1−π(S)<11/2\le 1-\pi(S)<1 for 0<π(S)≤1/20<\pi(S)\le 1/2, this ratio is controlled up to a factor of 22 by the equilibrium probability flow leaving SS divided by π(S)\pi(S). To formalize this quantity, write Q(A,B)=∑x∈A, y∈Bπ(x)P(x,y) Q(A,B)=\sum_{x\in A,\,y\in B}\pi(x)P(x,y) for the equilibrium flow from AA to BB.

Definition 6 (Conductance) For any subset S⊂ΩS\subset\Omega with 0<π(S)≤1/20<\pi(S)\le1/2, the conductance of SS is Φ(S)=Q(S,Sc)π(S). \Phi(S)=\frac{Q(S,S^c)}{\pi(S)}. The conductance of the Markov chain is the minimum over all such cuts: Φ=min⁡S⊂Ω0<π(S)≤1/2Φ(S). \Phi=\min_{\substack{S\subset\Omega\\0<\pi(S)\le1/2}}\Phi(S).

At stationarity (X0∼πX_0\sim\pi), Q(S,Sc)=Pπ(X0∈S,X1∈Sc)Q(S,S^c)=\mathbb P_\pi(X_0\in S,X_1\in S^c), so Φ(S)=Pπ(X0∈S,X1∈Sc)Pπ(X0∈S)=Pπ(X1∈Sc∣X0∈S) \Phi(S)=\frac{\mathbb P_\pi(X_0\in S,X_1\in S^c)}{\mathbb P_\pi(X_0\in S)}=\mathbb P_\pi(X_1\in S^c\mid X_0\in S) is the conditional probability of escaping SS in one step from stationarity. A small conductance Φ\Phi certifies a bottleneck that forces slow mixing both in spectral gap (γ≤2Φ\gamma\le 2\Phi) and directly in total variation distance:

Proposition 4 (A bottleneck forces slow mixing) For any reversible chain with conductance Φ\Phi and any tolerance 0<ε<1/20<\varepsilon<1/2, τmix(ε)≥1−2ε2Φ. \tau_{\mathrm{mix}}(\varepsilon)\ge\frac{1-2\varepsilon}{2\Phi}.

Proof

Let S⊂ΩS\subset\Omega achieve Φ(S)=Φ\Phi(S)=\Phi with 0<π(S)≤1/20<\pi(S)\le1/2, and run the stationary chain X0∼πX_0\sim\pi. If X0∈SX_0\in S and Xt∈ScX_t\in S^c, the trajectory must cross from SS to ScS^c at some step i∈{0,…,t−1}i\in\{0,\ldots,t-1\}. By a union bound, Pπ(Xt∈Sc∣X0∈S)≤∑i=0t−1Pπ(Xi∈S,Xi+1∈Sc∣X0∈S)≤∑i=0t−1Pπ(Xi∈S,Xi+1∈Sc)π(S)=tΦ, \begin{aligned} \mathbb P_\pi(X_t\in S^c\mid X_0\in S) &\le\sum_{i=0}^{t-1}\mathbb P_\pi(X_i\in S,X_{i+1}\in S^c\mid X_0\in S)\\ &\le\sum_{i=0}^{t-1}\frac{\mathbb P_\pi(X_i\in S,X_{i+1}\in S^c)}{\pi(S)} =t\Phi, \end{aligned}