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.

Obstacle (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 nn: 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 of nn 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.

Obstacle (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} where the second inequality uses Pπ(A∩{X0∈S})≤Pπ(A)\mathbb P_\pi(A\cap\{X_0\in S\})\le\mathbb P_\pi(A) and the last step uses stationarity Pπ(Xi∈S,Xi+1∈Sc)=Q(S,Sc)\mathbb P_\pi(X_i\in S,X_{i+1}\in S^c)=Q(S,S^c). By averaging over X0∈SX_0\in S, there exists at least one state x0∈Sx_0\in S such that Pt(x0,Sc)≤tΦ,or equivalently,Pt(x0,S)≥1−tΦ. P^t(x_0,S^c)\le t\Phi, \qquad\text{or equivalently,}\qquad P^t(x_0,S)\ge1-t\Phi. Therefore, dTV(Pt(x0,⋅),π)≥Pt(x0,S)−π(S)≥(1−tΦ)−12=12−tΦ. d_{\mathrm{TV}}(P^t(x_0,\cdot),\pi)\ge P^t(x_0,S)-\pi(S)\ge(1-t\Phi)-\frac12=\frac12-t\Phi. Setting dTV(Pt(x0,⋅),π)≤εd_{\mathrm{TV}}(P^t(x_0,\cdot),\pi)\le\varepsilon requires 12−tΦ≤ε\frac12-t\Phi\le\varepsilon, or t≥1−2ε2Φt\ge\frac{1-2\varepsilon}{2\Phi}.

Frozen (2^Δ − 2) 1 2 3 2 A(v) = {1} Exit state (only 2) 1 2 2 2 A(v) = {1, 3}

Bottleneck on K1,ΔK_{1,\Delta} (q=3q=3). In S={σ(v)=1}S=\{\sigma(v)=1\}, the center vv can change color only when all Δ\Delta leaves happen to be monochromatic (all 22 or all 33).

Example 3 (Three colors on a star: exponential slow mixing below 2Δ2\Delta) In Section 1.8, we proved that the propose-and-validate Metropolis coloring chain mixes in O(nlog⁡n)O(n\log n) steps whenever q>2Δq>2\Delta. When q≤2Δq\le 2\Delta, however, the coloring state space Ω\Omega can develop an exponential bottleneck even on a simple tree.

Let G=K1,ΔG=K_{1,\Delta} be a star with center vv and Δ≥2\Delta\ge 2 leaves (n=Δ+1n=\Delta+1), and consider proper qq-colorings for q=3q=3 (or any fixed q≥3q\ge 3 as Δ\Delta grows). The Metropolis chain is irreducible and aperiodic on K1,ΔK_{1,\Delta} for every q≥3q\ge 3: to change the center vv from color aa to color bb, one can recolor every leaf of color bb to a third color in [q]∖{a,b}[q]\setminus\{a,b\} and then recolor vv to bb.

Now consider the cut of colorings in which the center vv has color 11: S={σ∈Ω:σ(v)=1}. S=\{\sigma\in\Omega:\sigma(v)=1\}. By color symmetry, π(S)=1/3≤1/2\pi(S)=1/3\le 1/2. Conditioned on σ∈S\sigma\in S, the Δ\Delta leaves take colors independently and uniformly from {2,3}\{2,3\}, so ∣S∣=2Δ|S|=2^\Delta.

How can the chain exit SS in one step?

  • Updating a leaf never changes σ(v)\sigma(v), so it cannot leave SS.
  • Updating the center vv from 11 to 22 is legal only if all Δ\Delta leaves currently have color 33; updating vv to 33 is legal only if all Δ\Delta leaves currently have color 22. Whenever both 22 and 33 appear among the leaves, the center is frozen.

Thus, out of the 2Δ2^\Delta colorings in SS, only two configurations (all leaves 22, or all leaves 33) permit a transition to ScS^c.

  1. For the propose-and-validate Metropolis chain (Section 1.4): At either exit configuration in SS, leaving SS requires selecting the center vv (probability 1/n1/n) and proposing the unique available new color in {2,3}\{2,3\} (probability 1/31/3). Hence ΦMet(S)=22Δ⋅1n⋅13=23n2Δ,soτmixMet(1/4)≥14ΦMet≥3n2Δ8. \Phi_{\mathrm{Met}}(S) =\frac{2}{2^\Delta}\cdot\frac{1}{n}\cdot\frac{1}{3} =\frac{2}{3n2^\Delta}, \qquad\text{so}\qquad \tau_{\mathrm{mix}}^{\mathrm{Met}}(1/4) \ge\frac{1}{4\Phi_{\mathrm{Met}}} \ge\frac{3n2^\Delta}{8}. More generally, for any fixed q≥3q\ge 3, conditioned on σ(v)=1\sigma(v)=1 the Δ\Delta leaves are independent and uniform on {2,…,q}\{2,\ldots,q\}. Each of the q−1q-1 alternative colors c∈{2,…,q}c\in\{2,\ldots,q\} is absent from all Δ\Delta leaves with probability (q−2q−1)Δ\bigl(\frac{q-2}{q-1}\bigr)^\Delta and is proposed at vv with probability 1nq\frac{1}{nq}, giving ΦMet(S)=q−1nq(q−2q−1)ΔandτmixMet(1/4)≥nq4(q−1)(q−1q−2)Δ, \Phi_{\mathrm{Met}}(S)=\frac{q-1}{nq}\left(\frac{q-2}{q-1}\right)^\Delta \qquad\text{and}\qquad \tau_{\mathrm{mix}}^{\mathrm{Met}}(1/4)\ge\frac{nq}{4(q-1)}\left(\frac{q-1}{q-2}\right)^\Delta, which grows exponentially in Δ\Delta for every fixed q≥3q\ge 3.

  2. For single-site heat-bath Glauber dynamics: If we instead resample the chosen vertex vv uniformly from its available palette Aσ(v)A_\sigma(v), then for q=3q=3 at either exit configuration the center has ∣Aσ(v)∣=2|A_\sigma(v)|=2 available colors, so selecting vv and switching its color has probability 1n⋅12\frac1n\cdot\frac12. Thus ΦHB(S)=22Δ⋅1n⋅12=1n2ΔandτmixHB(1/4)≥n2Δ4. \Phi_{\mathrm{HB}}(S)=\frac{2}{2^\Delta}\cdot\frac{1}{n}\cdot\frac{1}{2}=\frac{1}{n2^\Delta} \qquad\text{and}\qquad \tau_{\mathrm{mix}}^{\mathrm{HB}}(1/4)\ge\frac{n2^\Delta}{4}.

Both single-site chains suffer the same exponential slowdown. (When q=2q=2, the star’s two proper colorings admit no legal single-site move at all, which is a failure of irreducibility rather than slow mixing.)

Obstacle (State-space bottlenecks versus base-graph geometry). Even when the base graph G=K1,ΔG=K_{1,\Delta} is a tree with no cycles or sparse cuts, local hard constraints can pinch the configuration space Ω\Omega into exponentially narrow passages: inside the cut S={σ(v)=1}S=\{\sigma(v)=1\} of size 2Δ2^\Delta, only 22 configurations allow the center vv to change color, forcing conductance Φ(S)=Θ(n−12−Δ)\Phi(S)=\Theta(n^{-1}2^{-\Delta}) and mixing time Ω(n2Δ)\Omega(n2^\Delta). Rapid mixing of local Markov chains is governed by the expansion of the state-space transition graph on Ω\Omega, not by the geometry of GG alone.

1.16 Cheeger’s inequality: spectrum meets geometry

In Section 1.15, evaluating the Rayleigh quotient γ=min⁡f≢constE(f,f)/Var⁡π(f)\gamma=\min_{f\not\equiv\text{const}}\mathcal E(f,f)/\operatorname{Var}_\pi(f) on cut indicators f=1Sf=\mathbf 1_S (0<π(S)≤1/20<\pi(S)\le 1/2) gave the upper bound γ≤E(1S,1S)Var⁡π(1S)=Q(S,Sc)π(S)(1−π(S))=Φ(S)1−π(S)≤2Φ(S), \gamma \le\frac{\mathcal E(\mathbf 1_S,\mathbf 1_S)}{\operatorname{Var}_\pi(\mathbf 1_S)} =\frac{Q(S,S^c)}{\pi(S)\bigl(1-\pi(S)\bigr)} =\frac{\Phi(S)}{1-\pi(S)} \le 2\Phi(S), and taking the minimum over SS yields γ≤2Φ\gamma\le 2\Phi.

What about the converse? In the variational definition of γ\gamma, ff ranges over all real-valued functions on Ω\Omega, whereas Φ\Phi only tests {0,1}\{0,1\}-valued cut indicators 1S\mathbf 1_S. Could a chain have no sparse cuts (Φ\Phi large) and yet have a tiny spectral gap γ\gamma hidden in a smooth, multi-valued eigenfunction φ2\varphi_2?

Cheeger’s inequality (Lawler and Sokal 1988; Jerrum and Sinclair 1989, discrete analogues of Cheeger’s 1970 manifold inequality) shows that this cannot happen: up to a quadratic loss, cut indicators capture the spectral gap.

From Riemannian manifolds to discrete conductance. Jeff Cheeger (A Lower Bound for the Smallest Eigenvalue of the Laplacian, 1970) proved λ1≥h2/4\lambda_1\ge h^2/4 for the Laplace–Beltrami operator on compact Riemannian manifolds via the coarea formula. Noga Alon and Vitali Milman (1985) and Jozef Dodziuk (1984) developed the discrete graph analogue, and Gregory Lawler and Alan Sokal (Bounds on the L2L^2 Spectrum for Markov Chains and Markov Processes: A Generalization of Cheeger’s Inequality, TAMS 1988) together with Mark Jerrum and Alistair Sinclair (Approximating the Permanent, SICOMP 1989) formulated conductance for general reversible Markov chains.

Theorem 5 (Cheeger’s inequality) Let PP be a finite, irreducible, reversible Markov chain with spectral gap γ=1−λ2\gamma=1-\lambda_2 and conductance Φ\Phi. Then Φ22≤γ≤2Φ,or equivalently,γ2≤Φ≤2γ. \frac{\Phi^2}{2}\le\gamma\le2\Phi, \qquad\text{or equivalently,}\qquad \frac{\gamma}{2}\le\Phi\le\sqrt{2\gamma}.

Thus γ\gamma is bounded away from zero if and only if Φ\Phi is bounded away from zero:

Both sides of Cheeger are tight. On the hypercube coordinate-refresh walk (Example 2), the half-cube cut S={x:x(1)=+1}S=\{x:x(1)=+1\} has π(S)=1/2\pi(S)=1/2 and Q(S,Sc)=12⋅1n⋅12=14nQ(S,S^c)=\frac12\cdot\frac1n\cdot\frac12=\frac{1}{4n}, so Φ=12n\Phi=\frac{1}{2n} and γ=1n=2Φ\gamma=\frac1n=2\Phi (the upper bound is tight). Conversely, on the lazy simple random walk on the NN-cycle CNC_N (NN even), any cut of size N/2N/2 crosses at least 22 edges, giving Φ=Θ(1/N)\Phi=\Theta(1/N), whereas the smoothest eigenfunction φ2(x)=cos⁡(2πx/N)\varphi_2(x)=\cos(2\pi x/N) has γ=12(1−cos⁡(2π/N))=Θ(1/N2)=Θ(Φ2)\gamma=\frac12(1-\cos(2\pi/N))=\Theta(1/N^2)=\Theta(\Phi^2) (the quadratic lower bound is tight).

To summarize Part I, we have developed three complementary pillars of Markov chain analysis:

Perspective Core object Analytical character
Coupling Joint trajectory (Xt,Yt)(X_t,Y_t) and distance d(Xt,Yt)d(X_t,Y_t) Probabilistic & constructive; yields sharp O(nlog⁡n)O(n\log n) upper bounds when local updates contract
Spectral gap / Poincaré Second eigenvalue λ2\lambda_2 & Dirichlet form E(f,f)\mathcal E(f,f) Algebraic & variational; proves the reversible FTMC and controls L2(π)L^2(\pi) variance decay
Conductance & Cheeger Bottleneck ratio Φ=min⁡SQ(S,Sc)π(S)\Phi=\min_S \frac{Q(S,S^c)}{\pi(S)} Geometric; turns bottleneck cuts into slow-mixing lower bounds and links cuts to γ\gamma via Φ22≤γ≤2Φ\frac{\Phi^2}{2}\le\gamma\le 2\Phi

II. Reading Contents

2.1 Path coupling

In Section 1.8, we coupled arbitrary pairs of proper colorings (X,Y)(X,Y) directly by applying maximal coupling to the one-step updated-color distributions (KXv,KYv)(K_X^v,K_Y^v). In many models, however, coupling two configurations at arbitrary distance directly is cumbersome, whereas coupling two configurations that differ at only a single site is easy.

Path coupling, introduced by Bubley and Dyer (1997), provides a general local-to-global principle: to prove rapid mixing on a massive state space Ω\Omega, it suffices to verify expected contraction only for pairs of states that are adjacent in a suitable metric graph.

Let Ω\Omega be the vertex set of a connected graph H=(Ω,E)H=(\Omega,\mathcal E), and let d(x,y)d(x,y) be the shortest-path metric on HH, where every edge e∈Ee\in\mathcal E has length 11 (or positive weight w(e)≥1w(e)\ge 1). Write D=max⁡x,y∈Ωd(x,y) D=\max_{x,y\in\Omega}d(x,y) for the diameter of HH.

Theorem 6 (Path coupling theorem (Bubley–Dyer)) Suppose that for every adjacent pair {x,y}∈E\{x,y\}\in\mathcal E in HH, there exists a one-step coupling (X1,Y1)(X_1,Y_1) of the Markov chain started from (X0,Y0)=(x,y)(X_0,Y_0)=(x,y) such that E[d(X1,Y1)∣X0=x,Y0=y]≤(1−α) d(x,y) \mathbb E[d(X_1,Y_1)\mid X_0=x,Y_0=y]\le(1-\alpha)\,d(x,y) for some constant α>0\alpha>0. Then for all initial states x,y∈Ωx,y\in\Omega, there exists a one-step coupling satisfying E[d(X1,Y1)∣X0=x,Y0=y]≤(1−α)d(x,y)\mathbb E[d(X_1,Y_1)\mid X_0=x,Y_0=y]\le(1-\alpha)d(x,y), and consequently τmix(ε)≤⌈log⁡D+log⁡(1/ε)α⌉. \tau_{\mathrm{mix}}(\varepsilon)\le\left\lceil\frac{\log D+\log(1/\varepsilon)}{\alpha}\right\rceil.

Proof. For any pair of states x,y∈Ωx,y\in\Omega, choose a shortest path of kk edges in HH: x=z0∼z1∼⋯∼zk=y,so∑i=1kd(zi−1,zi)=d(x,y). x=z_0\sim z_1\sim\cdots\sim z_k=y, \qquad\text{so}\qquad \sum_{i=1}^k d(z_{i-1},z_i)=d(x,y). For each edge (zi−1,zi)(z_{i-1},z_i) along the path, the hypothesis gives a one-step coupling (Zi−1′,Zi′)(Z'_{i-1},Z'_i) satisfying E[d(Zi−1′,Zi′)]≤(1−α)d(zi−1,zi)\mathbb E[d(Z'_{i-1},Z'_i)]\le(1-\alpha)d(z_{i-1},z_i).

By the gluing lemma of probability theory (sampling Z0′Z'_0 from P(z0,⋅)P(z_0,\cdot) and then sampling each Zi′Z'_i conditionally given Zi−1′Z'_{i-1}), we can stitch these kk edge couplings together on a single probability space into a joint tuple (Z0′,Z1′,…,Zk′)(Z'_0,Z'_1,\ldots,Z'_k). In particular, the endpoints (Z0′,Zk′)(Z'_0,Z'_k) form a valid coupling of P(x,⋅)P(x,\cdot) and P(y,⋅)P(y,\cdot). By the triangle inequality and linearity of expectation, E[d(Z0′,Zk′)]≤∑i=1kE[d(Zi−1′,Zi′)]≤(1−α)∑i=1kd(zi−1,zi)=(1−α) d(x,y). \mathbb E[d(Z'_0,Z'_k)] \le\sum_{i=1}^k\mathbb E[d(Z'_{i-1},Z'_i)] \le(1-\alpha)\sum_{i=1}^k d(z_{i-1},z_i) =(1-\alpha)\,d(x,y). Iterating for tt steps from X0=xX_0=x and Y0∼πY_0\sim\pi gives E[d(Xt,Yt)]≤(1−α)tD≤De−αt\mathbb E[d(X_t,Y_t)]\le(1-\alpha)^t D\le D e^{-\alpha t}. Since distinct states have distance at least 11, Markov’s inequality and Theorem 1 yield dTV(Pt(x,⋅),π)≤P(Xt≠Yt)≤E[d(Xt,Yt)]≤De−αtd_{\mathrm{TV}}(P^t(x,\cdot),\pi)\le\mathbb P(X_t\ne Y_t)\le\mathbb E[d(X_t,Y_t)]\le De^{-\alpha t}, which is at most ε\varepsilon for t≥α−1(log⁡D+log⁡(1/ε))t\ge\alpha^{-1}(\log D+\log(1/\varepsilon)).

Notice why the shortest-path metric hypothesis in Theorem 6 requires care: if we restrict HH to the space Ω\Omega of proper qq-colorings with edges between colorings that differ at a single vertex, the shortest-path distance in HH need not equal Hamming distance (two proper colorings at Hamming distance 22 might have no proper intermediate coloring at Hamming distance 11 from both). To apply Theorem 6 to graph coloring, one instead works on the enlarged space [q]V[q]^V of all vertex assignments—where Hamming distance is the shortest-path metric of the cube [q]V[q]^V—and verifies that the single-disagreement transposition coupling from Section 1.8 contracts on every edge of [q]V[q]^V.

Example 4 (Path coupling for proper qq-colorings on the extended cube [q]V[q]^V) The Metropolis update rule from Section 1.4 extends verbatim to the full assignment cube [q]V[q]^V: from any assignment X∈[q]VX\in [q]^V (proper or improper), pick v∈Vv\in V and c∈[q]c\in [q] uniformly at random, and set X′(v)=cX'(v)=c if c∉X(N(v))c\notin X(N(v)) and X′(v)=X(v)X'(v)=X(v) otherwise. If X0∈ΩX_0\in\Omega is a proper coloring, then Xt∈ΩX_t\in\Omega for all t≥0t\ge 0, so bounding the mixing time on [q]V[q]^V immediately bounds the mixing time on Ω\Omega.

Let H=([q]V,E)H=([q]^V,\mathcal E) be the adjacency graph on [q]V[q]^V where {X,Y}∈E\{X,Y\}\in\mathcal E whenever XX and YY differ at a single vertex w∈Vw\in V; its shortest-path metric is the Hamming distance dHam(X,Y)d_{\mathrm{Ham}}(X,Y) of diameter D=nD=n. Using the 1-disagreement transposition coupling from Section 1.8 (pick the same vertex v∈Vv\in V, and set πv=id\pi_v=\mathrm{id} unless v∈N(w)v\in N(w), in which case πv\pi_v swaps X(w)X(w) and Y(w)Y(w)), we check three cases for vv:

  1. v=wv=w (probability 1n\frac{1}{n}): Since XX and YY agree on N(w)N(w), they share the same available color set AX(w)=AY(w)A_X(w)=A_Y(w) of size at least q−Δq-\Delta. Whenever c∈AX(w)c\in A_X(w), both chains accept cc and coalesce (dHam(X′,Y′)=0d_{\mathrm{Ham}}(X',Y')=0), decreasing the distance by 11 with probability ∣AX(w)∣nq≥q−Δnq\frac{|A_X(w)|}{n q}\ge\frac{q-\Delta}{n q}.
  2. v∈N(w)v\in N(w) (each of deg⁡(w)≤Δ\deg(w)\le\Delta neighbors chosen with probability 1n\frac{1}{n}): As verified in Section 1.8, under the transposition πv=(X(w)  Y(w))\pi_v=(X(w)\;Y(w)), at most one proposed color c∈[q]c\in [q] can cause X′(v)≠Y′(v)X'(v)\ne Y'(v). Thus a neighbor vv increases the distance from 11 to 22 with probability at most 1nq\frac{1}{n q}, contributing at most deg⁡(w)nq≤Δnq\frac{\deg(w)}{n q}\le\frac{\Delta}{n q} in total.
  3. v∉{w}∪N(w)v\notin\{w\}\cup N(w): Both chains see identical neighborhoods around vv and apply the same update, so dHam(X′,Y′)=1d_{\mathrm{Ham}}(X',Y')=1.

Summing the expected change over all choices of v∈Vv\in V gives E[dHam(X′,Y′)∣X,Y]≤1−q−Δnq+Δnq=1−q−2Δnq. \mathbb E\bigl[d_{\mathrm{Ham}}(X',Y')\mid X,Y\bigr] \le 1-\frac{q-\Delta}{n q}+\frac{\Delta}{n q} =1-\frac{q-2\Delta}{n q}. When q>2Δq>2\Delta, Theorem 6 with α=q−2Δnq\alpha=\frac{q-2\Delta}{n q} and D=nD=n immediately recovers Theorem 2 without ever analyzing configurations at Hamming distance k≥2k\ge 2.

2.2 The Metropolis–Hastings algorithm: asymmetric proposals and target weights

In Section 1.4, we introduced the basic Metropolis algorithm with symmetric proposals Q(x,y)=Q(y,x)Q(x,y)=Q(y,x) to sample uniformly from proper colorings. In statistical physics, machine learning, and Bayesian inference, one frequently encounters two major extensions beyond that setting:

  1. Target distributions with intractable normalizing constants: The target distribution is defined by unnormalized weights w(x)>0w(x)>0: π(x)=w(x)Z,whereZ=∑z∈Ωw(z) \pi(x)=\frac{w(x)}{Z}, \qquad\text{where}\qquad Z=\sum_{z\in\Omega}w(z) is the partition function. In systems like the ferromagnetic Ising model (w(σ)=exp⁡(β∑{u,v}∈Eσuσv)w(\sigma)=\exp(\beta\sum_{\{u,v\}\in E}\sigma_u\sigma_v)) or the hard-core lattice gas (w(I)=λ∣I∣w(I)=\lambda^{|I|} for independent sets II), computing ZZ is #P-hard.
  2. Asymmetric proposals: Practical proposal mechanisms Q(x,y)Q(x,y) are often asymmetric: Q(x,y)≠Q(y,x)Q(x,y)\ne Q(y,x). For example, a proposal might bias toward states with higher weights, perform non-reversible moves, or walk on an irregular directed proposal graph.

The Metropolis–Hastings algorithm (Hastings, 1970) resolves both issues in one stroke.

The algorithm and Hastings’ correction

From current state x∈Ωx\in\Omega: 1. Propose candidate state y∼Q(x,⋅)y\sim Q(x,\cdot). 2. Accept the proposed transition x→yx\to y with probability α(x,y)=min⁡{1,π(y)Q(y,x)π(x)Q(x,y)}=min⁡{1,w(y)Q(y,x)w(x)Q(x,y)}. \alpha(x,y)=\min\left\{1,\frac{\pi(y)Q(y,x)}{\pi(x)Q(x,y)}\right\}=\min\left\{1,\frac{w(y)Q(y,x)}{w(x)Q(x,y)}\right\}. If accepted, set Xt+1=yX_{t+1}=y; if rejected, remain at Xt+1=xX_{t+1}=x.

Notice that the partition function ZZ cancels out completely in the ratio w(y)/w(x)w(y)/w(x). Furthermore, the ratio Q(y,x)/Q(x,y)Q(y,x)/Q(x,y)—called the Hastings correction factor—precisely compensates for any directional bias in the proposal mechanism.

Proposition 5 (Detailed balance of Metropolis–Hastings) For any proposal distribution QQ and any target distribution π\pi, the transition matrix P(x,y)=Q(x,y)α(x,y)P(x,y)=Q(x,y)\alpha(x,y) for x≠yx\ne y 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.

Proof. For x≠yx\ne y, π(x)P(x,y)=π(x)Q(x,y)min⁡{1,π(y)Q(y,x)π(x)Q(x,y)}=min⁡{π(x)Q(x,y),π(y)Q(y,x)}. \begin{aligned} \pi(x)P(x,y) &=\pi(x)Q(x,y)\min\left\{1,\frac{\pi(y)Q(y,x)}{\pi(x)Q(x,y)}\right\}\\ &=\min\{\pi(x)Q(x,y),\pi(y)Q(y,x)\}. \end{aligned} Since the minimum is symmetric in xx and yy, the right-hand side equals π(y)P(y,x)\pi(y)P(y,x).

Metropolis versus heat-bath (Gibbs sampling)

In statistical physics, a canonical alternative to propose-and-reject updates is heat-bath dynamics (also called single-site Glauber dynamics or the Gibbs sampler). Instead of proposing a random spin and accepting or rejecting, the heat-bath chain picks a site v∈Vv\in V uniformly at random and resamples its spin σv\sigma_v directly from the exact conditional distribution π(σv=⋅∣σ−v)\pi(\sigma_v=\cdot\mid\sigma_{-v}) given the configuration σ−v\sigma_{-v} on all other vertices V∖{v}V\setminus\{v\}.

Specifically, for any configuration σ∈Ω\sigma\in\Omega and any distinct spin c≠σ(v)c\ne\sigma(v) at vertex vv, let σv→c\sigma^{v\to c} denote the configuration obtained by setting the spin at vv to cc. The off-diagonal heat-bath transition probability is PHB(σ,σv→c)=1n π(σv=c∣σ−v)=1n w(σv→c)∑c′∈[q]w(σv→c′). P_{\mathrm{HB}}(\sigma,\sigma^{v\to c}) =\frac1n\,\pi(\sigma_v=c\mid\sigma_{-v}) =\frac1n\,\frac{w(\sigma^{v\to c})}{\sum_{c'\in [q]}w(\sigma^{v\to c'})}. Detailed balance with respect to π\pi is immediate: for τ=σv→c≠σ\tau=\sigma^{v\to c}\ne\sigma, we have σ−v=τ−v\sigma_{-v}=\tau_{-v} and hence π(σ)PHB(σ,τ)=1n π(σ)π(τ)∑c′∈[q]π(σv→c′)=π(τ)PHB(τ,σ), \pi(\sigma)P_{\mathrm{HB}}(\sigma,\tau) =\frac1n\,\frac{\pi(\sigma)\pi(\tau)}{\sum_{c'\in [q]}\pi(\sigma^{v\to c'})} =\pi(\tau)P_{\mathrm{HB}}(\tau,\sigma), which is manifestly symmetric in σ\sigma and τ\tau.

For uniform proper qq-colorings, the conditional distribution π(σv=⋅∣σ−v)\pi(\sigma_v=\cdot\mid\sigma_{-v}) is simply the uniform distribution over the set of currently available colors Aσ(v)=[q]∖σ(N(v))A_\sigma(v)=[q]\setminus\sigma(N(v)). How does its path-coupling analysis compare with the Metropolis chain of Section 1.8? Suppose X,Y∈ΩX,Y\in\Omega differ at a single vertex ww:

Summing over all v∈Vv\in V, the expected Hamming distance after one heat-bath step satisfies E[dHam(X1,Y1)∣X0=X,Y0=Y]≤1−1n+deg⁡(w)n(q−Δ)≤1−q−2Δn(q−Δ). \mathbb E\bigl[d_{\mathrm{Ham}}(X_1,Y_1)\mid X_0=X,Y_0=Y\bigr] \le 1-\frac1n+\frac{\deg(w)}{n(q-\Delta)} \le 1-\frac{q-2\Delta}{n(q-\Delta)}. Heat-bath thus achieves one-step contraction under the same threshold q>2Δq>2\Delta, with a slightly larger contraction rate αHB=q−2Δn(q−Δ)\alpha_{\mathrm{HB}}=\frac{q-2\Delta}{n(q-\Delta)} than Metropolis’s αMet=q−2Δnq\alpha_{\mathrm{Met}}=\frac{q-2\Delta}{n q}: it never rejects at v=wv=w, while each neighbor v∈N(w)v\in N(w) contributes at most 1n(q−Δ)\frac{1}{n(q-\Delta)} instead of 1nq\frac{1}{n q}. This saves a factor of qq−Δ\frac{q}{q-\Delta} in the mixing time bound, at the minor per-step cost of enumerating Aσ(v)A_\sigma(v) rather than testing a single proposed color c∈[q]c\in [q].

2.3 Another coupling: random-to-top shuffling

Consider shuffling a deck of nn distinct cards labeled 1,…,n1,\ldots,n. At each step: - Pick a card uniformly at random from the deck; - Move it to the top.

The state space Ω=Sn\Omega=S_n has size n!n!. Because the transition matrix is doubly stochastic (∑σ∈SnP(σ,τ)=∑i=1n1n=1\sum_{\sigma\in S_n} P(\sigma,\tau) = \sum_{i=1}^n \frac{1}{n} = 1, as each position i∈[n]i\in [n] determines a unique preimage σ\sigma that moves the top card of τ\tau from position ii), the uniform distribution π(σ)=1n!\pi(\sigma)=\frac{1}{n!} is stationary.

How many shuffles are needed before the deck is well mixed? We couple two decks XtX_t and YtY_t started from arbitrary permutations by picking the same card label c∈{1,…,n}c\in\{1,\ldots,n\} in both decks at each step (rather than the same position in the deck).

Consider what happens to the chosen card cc: - Both decks place card cc at the very top (position 11). - As more cards are drawn in subsequent steps, previously moved cards are pushed down together by one position whenever a card below them is drawn, preserving their relative order. - By induction on tt, at every step tt, the subset St⊆{1,…,n}S_t\subseteq\{1,\ldots,n\} of cards that have been picked at least once occupies the top ∣St∣|S_t| positions of both decks in the same order.

Once every card in {1,…,n}\{1,\ldots,n\} has been selected at least once (St={1,…,n}S_t=\{1,\ldots,n\}), the two decks are identical.

Just as in the hypercube walk (Example 1), the coalescence time is bounded by the coupon collector’s problem: P(Xt≠Yt)≤P(St≠{1,…,n})≤n(1−1n)t≤ne−t/n. \mathbb P(X_t\ne Y_t)\le\mathbb P(S_t\ne\{1,\ldots,n\})\le n\left(1-\frac1n\right)^t\le n e^{-t/n}. Hence, by Theorem 1, τmix(ε)≤⌈nlog⁡nε⌉. \tau_{\mathrm{mix}}(\varepsilon)\le\left\lceil n\log\frac n\varepsilon\right\rceil. A state space of size n!n!, yet O(nlog⁡n)O(n\log n) steps suffice!

2.4 Coupling from the past

Standard MCMC runs a chain forward for t≥τmix(ε)t\ge\tau_{\mathrm{mix}}(\varepsilon) steps, producing an approximate sample from π\pi. But can we produce an exact sample from π\pi, with zero total variation error?

A tempting, naive idea is the forward coupling fallacy: start chains from all possible states at time 00, run them forward under shared random update maps F1,F2,…F_1,F_2,\ldots, and output the common state at the first random time T+T_+ when all trajectories coalesce. This is wrong! Because T+T_+ is a random stopping time, the state XT+X_{T_+} at the moment of coalescence can be heavily biased toward states where trajectories merge most easily.

Example 5 (Why forward coupling is biased: a 2-state counterexample) Consider the two-state Markov chain on Ω={0,1}\Omega=\{0,1\} with transitions P(0,0)=0,P(0,1)=1,andP(1,0)=12,P(1,1)=12. P(0,0)=0,\quad P(0,1)=1, \qquad\text{and}\qquad P(1,0)=\frac12,\quad P(1,1)=\frac12. Solving πP=π\pi P=\pi gives the unique stationary distribution π(0)=13\pi(0)=\frac13 and π(1)=23\pi(1)=\frac23.

To couple trajectories from states 00 and 11, each step draws an independent fair coin Ut∈{merge,swap}U_t\in\{\mathsf{merge},\mathsf{swap}\} and applies the random mapping Ft:Ω→ΩF_t:\Omega\to\Omega defined by:

  • If Ut=mergeU_t=\mathsf{merge} (probability 12\frac12), set Ft(0)=1F_t(0)=1 and Ft(1)=1F_t(1)=1 (both states map to 11).
  • If Ut=swapU_t=\mathsf{swap} (probability 12\frac12), set Ft(0)=1F_t(0)=1 and Ft(1)=0F_t(1)=0 (states 00 and 11 swap places).

Since Ft(0)=1F_t(0)=1 always and Ft(1)∈{0,1}F_t(1)\in\{0,1\} uniformly, FtF_t is a valid one-step update map for PP. Now compare forward and backward coupling:

  • Forward coupling fails: Start at time 00 with the full set {0,1}\{0,1\}. As long as Ut=swapU_t=\mathsf{swap}, the set of active states remains Ft({0,1})={0,1}F_t(\{0,1\})=\{0,1\}. Coalescence happens at the first time T+T_+ when UT+=mergeU_{T_+}=\mathsf{merge}, and at that moment FT+({0,1})={1}F_{T_+}(\{0,1\})=\{1\}. Thus forward coupling outputs state 11 with probability 1≠231\ne\frac23.
  • Backward coupling succeeds: In Coupling From The Past, we fix the terminal time 00 and compose backward: F0∘F−1∘⋯∘F−T({0,1})F_0\circ F_{-1}\circ\cdots\circ F_{-T}(\{0,1\}). Coalescence occurs as soon as at least one map in the sequence is merge\mathsf{merge}. Look at the most recent merge before time 00: if U0=mergeU_0=\mathsf{merge} (probability 12\frac12), then F0({0,1})={1}F_0(\{0,1\})=\{1\} and the output at time 00 is 11; if U0=swapU_0=\mathsf{swap} and U−1=mergeU_{-1}=\mathsf{merge} (probability 14\frac14), then F−1F_{-1} merges everything to 11 at time −1-1 and F0F_0 swaps 1↦01\mapsto 0 at time 00, so the output is 00. In general, if the most recent merge occurs at time −k-k (k≥0k\ge 0, with probability 2−(k+1)2^{-(k+1)}), the merged state 11 undergoes kk swaps before reaching time 00, outputting 11 when kk is even and 00 when kk is odd. Therefore, P(CFTP outputs 1)=∑m=0∞122m+1=1/21−1/4=23=π(1),P(CFTP outputs 0)=13=π(0). \mathbb P(\text{CFTP outputs }1)=\sum_{m=0}^\infty \frac{1}{2^{2m+1}}=\frac{1/2}{1-1/4}=\frac23=\pi(1), \qquad \mathbb P(\text{CFTP outputs }0)=\frac13=\pi(0).

Obstacle (Stopping-time bias of forward coalescence). Running coupled chains forward from time 00 and halting at the random coalescence time T+=inf⁡{t≥0:∣Ft∘⋯∘F1(Ω)∣=1}T_+=\inf\{t\ge 0:|F_t\circ\cdots\circ F_1(\Omega)|=1\} evaluates the chain at a random stopping time correlated with the trajectory: in Example 5, coalescence can only occur on a step tt where Ut=mergeU_t=\mathsf{merge}, which deterministically forces XT+=1≁πX_{T_+}=1\not\sim\pi. To eliminate stopping-time bias, we must fix the observation time at t=0t=0 and push the starting horizon −T-T backward into the past.

Backward random iterations from Loynes to Propp–Wilson. Constructing stationary states by composing random maps from −∞-\infty to 00 originated with Robert Loynes (The Stability of a Queue with Non-Independent Inter-Arrival and Service Times, Proc. Cambridge Philos. Soc. 1962) in queueing theory and was developed in random dynamical systems by Letac (1986) and Diaconis–Freedman (1999). James Propp and David Wilson (Exact Sampling with Coupled Markov Chains and Applications to Statistical Mechanics, Random Structures & Algorithms 1996) turned this backward scheme into a finite-time exact MCMC algorithm by combining it with monotone sandwiching on lattices.

In 1996, Propp and Wilson invented Coupling From The Past (CFTP), turning this backward-composition idea into a general exact sampling algorithm.

Imagine a bi-infinite sequence of independent random update maps …,F−2,F−1,F0\ldots,F_{-2},F_{-1},F_0, where each Ft:Ω→ΩF_t:\Omega\to\Omega satisfies P(Ft(x)=y)=P(x,y)\mathbb P(F_t(x)=y)=P(x,y) for all x,y∈Ωx,y\in\Omega. For each horizon T≥1T\ge 1, define the backward composite map from time −T-T to time 00: Φ−T0=F0∘F−1∘⋯∘F−T+1:Ω→Ω. \Phi_{-T}^0 = F_0 \circ F_{-1} \circ \cdots \circ F_{-T+1} : \Omega\to\Omega. If Φ−T0(Ω)\Phi_{-T}^0(\Omega) is a singleton {Y0}\{Y_0\} (meaning all ∣Ω∣|\Omega| initial states at time −T-T coalesce to the same state Y0Y_0 by time 00), we stop and output Y0Y_0. If not, we increase the horizon (typically doubling T←2TT\leftarrow 2T) while reusing the already generated maps F−T+1,…,F0F_{-T+1},\ldots,F_0 and prepending fresh independent maps F−2T+1,…,F−TF_{-2T+1},\ldots,F_{-T}.

Theorem 7 (Exact sampling via CFTP (Propp–Wilson)) Suppose the backward coalescence time T∗=inf⁡{T≥1:∣Φ−T0(Ω)∣=1}T_*=\inf\{T\ge 1:|\Phi_{-T}^0(\Omega)|=1\} is finite with probability 11. Then the state Y0Y_0 output by CFTP at time 00 is distributed exactly according to the stationary distribution π\pi.

Proof. First, once Φ−T∗0(Ω)={Y0}\Phi_{-T_*}^0(\Omega)=\{Y_0\} is a singleton, prepending any further maps F−T+1,…,F−T∗F_{-T+1},\ldots,F_{-T_*} in the past cannot change the image at time 00: for every T≥T∗T\ge T_* and every x∈Ωx\in\Omega, Φ−T0(x)=Φ−T∗0(F−T∗∘⋯∘F−T+1(x))=Y0. \Phi_{-T}^0(x) = \Phi_{-T_*}^0\bigl(F_{-T_*}\circ\cdots\circ F_{-T+1}(x)\bigr) = Y_0. Now, for any horizon T≥1T\ge 1, draw a random initial state X−T∼πX_{-T}\sim\pi independently of the maps (Ft)t≤0(F_t)_{t\le 0}. Because each FtF_t has transition law PP and πP=π\pi P=\pi, applying TT independent steps preserves stationarity, so the state X~0(T)=Φ−T0(X−T)\widetilde X_0^{(T)}=\Phi_{-T}^0(X_{-T}) has exact distribution π\pi for every T≥1T\ge 1. On the event {T∗≤T}\{T_*\le T\}, however, Φ−T0\Phi_{-T}^0 is the constant map Y0Y_0, so X~0(T)=Y0\widetilde X_0^{(T)}=Y_0. Therefore, for every state y∈Ωy\in\Omega and every T≥1T\ge 1, ∣P(Y0=y)−π(y)∣=∣P(Y0=y)−P(X~0(T)=y)∣≤P(Y0≠X~0(T))≤P(T∗>T). \bigl|\mathbb P(Y_0=y)-\pi(y)\bigr| =\bigl|\mathbb P(Y_0=y)-\mathbb P(\widetilde X_0^{(T)}=y)\bigr| \le\mathbb P(Y_0\ne \widetilde X_0^{(T)}) \le\mathbb P(T_*>T). Since P(T∗<∞)=1\mathbb P(T_*<\infty)=1, letting T→∞T\to\infty sends P(T∗>T)→0\mathbb P(T_*>T)\to 0, proving P(Y0=y)=π(y)\mathbb P(Y_0=y)=\pi(y).

For large state spaces, tracking all ∣Ω∣|\Omega| trajectories is impossible. Fortunately, if the chain is monotone with respect to a partial order ⪯\preceq on Ω\Omega that has a unique minimum element 0^\hat 0 and maximum element 1^\hat 1—meaning x⪯y  ⟹  Ft(x)⪯Ft(y)x\preceq y\implies F_t(x)\preceq F_t(y) almost surely, as in the ferromagnetic Ising model—then for every x∈Ωx\in\Omega and every T≥1T\ge 1, Φ−T0(0^)⪯Φ−T0(x)⪯Φ−T0(1^). \Phi_{-T}^0(\hat 0)\preceq \Phi_{-T}^0(x)\preceq \Phi_{-T}^0(\hat 1).

−T coalesce 0 1̂ x 0̂ Y₀

Monotone CFTP sandwiching. Every trajectory Φ−T0(x)\Phi_{-T}^0(x) is trapped between the top trajectory from 1^\hat 1 and the bottom trajectory from 0^\hat 0.

Thus one only needs to track two trajectories from time −T-T to 00: the bottom walk started at 0^\hat 0 and the top walk started at 1^\hat 1. Whenever Φ−T0(0^)=Φ−T0(1^)\Phi_{-T}^0(\hat 0)=\Phi_{-T}^0(\hat 1), monotonicity sandwiches the entire state space Ω\Omega into that single value.

2.5 Strong stationary times

A coupling bound proves that μt\mu_t is close to π\pi in total variation distance. A strong stationary time (Aldous and Diaconis, 1986) provides a random stopping time TT at which the chain is exactly stationary.

Definition 7 (Strong stationary time) Let (Xt)t≥0(X_t)_{t\ge 0} be a Markov chain started at X0=xX_0=x. A randomized stopping time TT is a strong stationary time if XTX_T has distribution π\pi and is statistically independent of TT: Px(XT=y, T=s)=π(y) Px(T=s)for all y∈Ω and s≥0. \mathbb P_x(X_T=y,\,T=s)=\pi(y)\,\mathbb P_x(T=s) \qquad\text{for all }y\in\Omega\text{ and }s\ge 0.

Strong stationary times control the separation distance from stationarity, defined at time tt by sx(t)=max⁡y∈Ω(1−Pt(x,y)π(y)),s(t)=max⁡x∈Ωsx(t). s_x(t)=\max_{y\in\Omega}\left(1-\frac{P^t(x,y)}{\pi(y)}\right), \qquad s(t)=\max_{x\in\Omega}s_x(t).

Proposition 6 (Strong stationary time bound) If TT is a strong stationary time for (Xt)(X_t) started at X0=xX_0=x, then for every t≥0t\ge 0, dTV(Pt(x,⋅),π)≤sx(t)≤Px(T>t). d_{\mathrm{TV}}\bigl(P^t(x,\cdot),\pi\bigr)\le s_x(t)\le\mathbb P_x(T>t).

Proof. Because {T=s}\{T=s\} is a stopping-time event, the strong Markov property implies that conditional on {T=s, Xs=z}\{T=s,\,X_s=z\}, the chain XtX_t at time t≥st\ge s has distribution Pt−s(z,⋅)P^{t-s}(z,\cdot). Summing over s≤ts\le t and z∈Ωz\in\Omega and using Px(Xs=z, T=s)=π(z)Px(T=s)\mathbb P_x(X_s=z,\,T=s)=\pi(z)\mathbb P_x(T=s) together with stationarity ∑zπ(z)Pt−s(z,y)=π(y)\sum_z\pi(z)P^{t-s}(z,y)=\pi(y), we obtain Pt(x,y)=Px(Xt=y)≥Px(Xt=y, T≤t)=∑s=0t∑z∈ΩPx(T=s, Xs=z) Pt−s(z,y)=∑s=0tPx(T=s)∑z∈Ωπ(z)Pt−s(z,y)=π(y) Px(T≤t)=π(y)(1−Px(T>t)). \begin{aligned} P^t(x,y)=\mathbb P_x(X_t=y) &\ge\mathbb P_x(X_t=y,\,T\le t) =\sum_{s=0}^t\sum_{z\in\Omega}\mathbb P_x(T=s,\,X_s=z)\,P^{t-s}(z,y)\\ &=\sum_{s=0}^t\mathbb P_x(T=s)\sum_{z\in\Omega}\pi(z)P^{t-s}(z,y) =\pi(y)\,\mathbb P_x(T\le t) =\pi(y)\bigl(1-\mathbb P_x(T>t)\bigr). \end{aligned} Dividing by π(y)\pi(y) and rearranging gives 1−Pt(x,y)π(y)≤Px(T>t)1-\frac{P^t(x,y)}{\pi(y)}\le\mathbb P_x(T>t) for every y∈Ωy\in\Omega, which proves sx(t)≤Px(T>t)s_x(t)\le\mathbb P_x(T>t). Finally, from Section 1.5, dTV(Pt(x,⋅),π)=∑y: π(y)>Pt(x,y)(π(y)−Pt(x,y))=∑y: π(y)>Pt(x,y)π(y)(1−Pt(x,y)π(y))≤sx(t)∑y∈Ωπ(y)=sx(t). d_{\mathrm{TV}}\bigl(P^t(x,\cdot),\pi\bigr) =\sum_{y:\,\pi(y)>P^t(x,y)}\bigl(\pi(y)-P^t(x,y)\bigr) =\sum_{y:\,\pi(y)>P^t(x,y)}\pi(y)\left(1-\frac{P^t(x,y)}{\pi(y)}\right) \le s_x(t)\sum_{y\in\Omega}\pi(y)=s_x(t).

Example 6 (Strong stationary time for card shuffling) Return to the random-to-top shuffle on nn cards from Section 2.3, where at each step t≥1t\ge 1 a card label Ct∈{1,…,n}C_t\in\{1,\ldots,n\} is drawn independently and uniformly at random and moved to the top of the deck. At any time tt, the set St={C1,…,Ct}S_t=\{C_1,\ldots,C_t\} of cards picked so far occupies the top ∣St∣|S_t| positions of the deck, ordered from top to bottom by their most recent pick time.

Let T=inf⁡{t≥1:St={1,…,n}}T=\inf\{t\ge 1:S_t=\{1,\ldots,n\}\} be the coupon-collector stopping time at which all nn cards have been picked at least once. By time TT, the initial deck order at t=0t=0 has been completely overwritten: the deck XTX_T is determined solely by the relative order of the last appearances of 1,…,n1,\ldots,n in (C1,…,CT)(C_1,\ldots,C_T). Because the i.i.d. uniform sequence (C1,C2,…)(C_1,C_2,\ldots) is invariant under any permutation σ∈Sn\sigma\in S_n of the card labels—and the stopping event {T=t}\{T=t\} is also permutation-invariant—all n!n! permutations are equally likely conditional on {T=t}\{T=t\}: P(XT=σ∣T=t)=1n!=π(σ)for all σ∈Sn and t≥n. \mathbb P(X_T=\sigma\mid T=t)=\frac{1}{n!}=\pi(\sigma) \qquad\text{for all }\sigma\in S_n\text{ and }t\ge n. Thus TT is a strong stationary time with E[T]=nHn≈nlog⁡n\mathbb E[T]=n H_n\approx n\log n, and Proposition 6 immediately yields dTV(Pt(x,⋅),π)≤s(t)≤P(T>t)≤ne−t/nd_{\mathrm{TV}}(P^t(x,\cdot),\pi)\le s(t)\le\mathbb P(T>t)\le n e^{-t/n}.

A dual argument due to Aldous and Diaconis (1986) analyzes the time-reversed chain, top-to-random shuffling (at each step, take the top card and insert it into one of the nn positions uniformly at random). Label the card originally at the bottom of the deck as bb. By induction on tt, conditional on the number kk of cards currently below bb, all k!k! relative orderings of those kk cards are equally likely (each time the top card is inserted into the k+1k+1 slots below bb, it lands equally likely in any of those k+1k+1 relative positions). Hence, once all n−1n-1 other cards have been inserted below bb—so bb sits at the very top of the deck above a uniformly random permutation of the other n−1n-1 cards—the very next step TT inserts bb itself into a uniformly random position, making the entire deck perfectly uniform at time TT.

2.6 The sweep proof of Cheeger’s inequality

We now complete the proof of the hard direction of Cheeger’s inequality (Theorem 5): Φ≤2γ. \Phi\le\sqrt{2\gamma}.

Let g:Ω→Rg:\Omega\to\mathbb R be an eigenvector of PP with eigenvalue λ2=1−γ\lambda_2=1-\gamma, so Lg=γgLg=\gamma g and Eπ[g]=0\mathbb E_\pi[g]=0. Let mm be a median of gg under π\pi, meaning π({x:g(x)<m})≤1/2\pi(\{x:g(x)<m\})\le1/2 and π({x:g(x)>m})≤1/2\pi(\{x:g(x)>m\})\le1/2. Shifting gg by mm, we split g−m=f+−f−g-m=f_+-f_- into its positive and negative parts: f+=max⁡{g−m,0},f−=max⁡{m−g,0}. f_+=\max\{g-m,0\}, \qquad f_-=\max\{m-g,0\}. By choice of the median mm, both f+f_+ and f−f_- are non-negative and supported on sets of stationary measure at most 1/21/2. Because f+(x)f−(x)=0f_+(x)f_-(x)=0 at every state x∈Ωx\in\Omega, we can compare both their L2(π)L^2(\pi) norms and their Dirichlet energies directly to gg:

Combining the two inequalities gives E(f+,f+)+E(f−,f−)≤γ(∥f+∥2,π2+∥f−∥2,π2)\mathcal E(f_+,f_+)+\mathcal E(f_-,f_-)\le\gamma\bigl(\|f_+\|_{2,\pi}^2+\|f_-\|_{2,\pi}^2\bigr), so at least one of f∈{f+,f−}f\in\{f_+,f_-\} is non-zero and satisfies E(f,f)∥f∥2,π2≤E(g,g)∥g∥2,π2=γ. \frac{\mathcal E(f,f)}{\|f\|_{2,\pi}^2}\le\frac{\mathcal E(g,g)}{\|g\|_{2,\pi}^2}=\gamma.

We now prove that for any non-negative function f≥0f\ge0 with π(supp⁡(f))≤1/2\pi(\operatorname{supp}(f))\le1/2, there exists a threshold cut Ss={x:f(x)≥s}S_s=\{x:f(x)\ge s\} such that Φ(Ss)≤2E(f,f)/∥f∥2,π2\Phi(S_s)\le\sqrt{2\mathcal E(f,f)/\|f\|_{2,\pi}^2}.

For any s>0s>0, the set Ss={x:f(x)≥s}S_s=\{x:f(x)\ge s\} is a subset of supp⁡(f)\operatorname{supp}(f) and therefore has π(Ss)≤1/2\pi(S_s)\le1/2. By the definition of conductance (Definition 6), every threshold cut SsS_s satisfies Q(Ss,Ssc)≥Φ π(Ss). Q(S_s,S_s^c)\ge\Phi\,\pi(S_s). We integrate both sides against 2s ds2s\,\mathrm ds from 00 to ∞\infty. Both integrals evaluate cleanly by exchanging summation and integration:

Why integrate against 2s ds2s\,\mathrm ds? Integrating Q(Ss,Ssc)≥Φπ(Ss)Q(S_s,S_s^c)\ge\Phi\pi(S_s) against ds\mathrm ds instead would yield 12∑x,yπ(x)P(x,y)∣f(x)−f(y)∣\frac12\sum_{x,y}\pi(x)P(x,y)|f(x)-f(y)|—an ℓ1\ell_1 difference that incurs a factor of 1/πmin⁡1/\sqrt{\pi_{\min}} when Cauchy–Schwarz compares it to E(f,f)\mathcal E(f,f). Integrating against 2s ds2s\,\mathrm ds sweeps level sets of f2f^2, producing ∣f(x)2−f(y)2∣=∣f(x)−f(y)∣(f(x)+f(y))|f(x)^2-f(y)^2|=|f(x)-f(y)|(f(x)+f(y)) so that Cauchy–Schwarz pairs E(f,f)\mathcal E(f,f) cleanly with ∥f∥2,π2\|f\|_{2,\pi}^2.

Combining these two identities gives Φ∥f∥2,π2≤12∑x,y∈Ωπ(x)P(x,y)∣f(x)2−f(y)2∣. \Phi\|f\|_{2,\pi}^2\le\frac12\sum_{x,y\in\Omega}\pi(x)P(x,y)\bigl|f(x)^2-f(y)^2\bigr|. Now factor the difference of squares as ∣f(x)2−f(y)2∣=∣f(x)−f(y)∣⋅(f(x)+f(y))|f(x)^2-f(y)^2|=|f(x)-f(y)|\cdot(f(x)+f(y)) and apply the Cauchy–Schwarz inequality: Φ∥f∥2,π2≤(12∑x,yπ(x)P(x,y)(f(x)−f(y))2)1/2(12∑x,yπ(x)P(x,y)(f(x)+f(y))2)1/2=E(f,f)⋅(12∑x,yπ(x)P(x,y)(f(x)+f(y))2)1/2. \begin{aligned} \Phi\|f\|_{2,\pi}^2 &\le\left(\frac12\sum_{x,y}\pi(x)P(x,y)(f(x)-f(y))^2\right)^{1/2}\left(\frac12\sum_{x,y}\pi(x)P(x,y)(f(x)+f(y))^2\right)^{1/2}\\ &=\sqrt{\mathcal E(f,f)}\cdot\left(\frac12\sum_{x,y}\pi(x)P(x,y)(f(x)+f(y))^2\right)^{1/2}. \end{aligned} Using the elementary inequality (a+b)2≤2(a2+b2)(a+b)^2\le2(a^2+b^2) and ∑yP(x,y)=1\sum_y P(x,y)=1, the second factor is bounded by 12∑x,yπ(x)P(x,y)(f(x)+f(y))2≤∑x,yπ(x)P(x,y)(f(x)2+f(y)2)=2∥f∥2,π2. \frac12\sum_{x,y}\pi(x)P(x,y)(f(x)+f(y))^2\le\sum_{x,y}\pi(x)P(x,y)(f(x)^2+f(y)^2)=2\|f\|_{2,\pi}^2. Therefore, Φ∥f∥2,π2≤E(f,f)⋅2∥f∥2,π2=2E(f,f) ∥f∥2,π. \Phi\|f\|_{2,\pi}^2\le\sqrt{\mathcal E(f,f)}\cdot\sqrt{2\|f\|_{2,\pi}^2}=\sqrt{2\mathcal E(f,f)}\,\|f\|_{2,\pi}. Dividing by ∥f∥2,π2\|f\|_{2,\pi}^2 proves that the average of Q(Ss,Ssc)Q(S_s,S_s^c) over the measure 2s ds2s\,\mathrm ds is at most 2γ\sqrt{2\gamma} times the average of π(Ss)\pi(S_s), so there must exist at least one threshold s>0s>0 with Φ≤Φ(Ss)≤2E(f,f)∥f∥2,π2≤2γ. \Phi\le\Phi(S_s)\le\sqrt{\frac{2\mathcal E(f,f)}{\|f\|_{2,\pi}^2}}\le\sqrt{2\gamma}.

This proof is entirely constructive: sort the states x∈Ωx\in\Omega by their values in the second eigenvector φ2(x)\varphi_2(x) and evaluate the conductance of each prefix cut (or its complement, whichever has stationary measure at most 1/21/2). At least one threshold cut has conductance at most 2γ\sqrt{2\gamma}—the theoretical foundation of spectral partitioning algorithms.

2.7 Continuous time and variance decay

In theoretical analysis, it is often cleaner to remove discrete-time parity oscillations (the need for lazy chains and λmin⁡\lambda_{\min} bounds) by passing to continuous time.

Let L=P−I=−L\mathcal L=P-I=-L be the infinitesimal generator of the continuous-time chain. The continuous-time Markov semigroup is defined by the matrix exponential Pt=etL=e−t∑k=0∞tkk!Pk. P_t=e^{t\mathcal L}=e^{-t}\sum_{k=0}^\infty\frac{t^k}{k!}P^k. Probabilistically, because e−ttkk!e^{-t}\frac{t^k}{k!} is the Poisson⁡(t)\operatorname{Poisson}(t) distribution, the continuous-time chain waits at its current state for an independent Exp⁡(1)\operatorname{Exp}(1) holding time (with mean 11) before each step, and then transitions according to PP. Notice that if (φi,λi)(\varphi_i,\lambda_i) is an eigenpair of PP, then Ptφi=e−t(1−λi)φiP_t\varphi_i = e^{-t(1-\lambda_i)}\varphi_i: every eigenvalue of PtP_t is strictly positive, so negative eigenvalues of PP never obstruct continuous-time convergence.

Let ft=Ptff_t=P_t f. Its time derivative is ddtft=Lft=−Lft\frac{\mathrm d}{\mathrm dt}f_t=\mathcal L f_t=-L f_t. Because Eπ[ft]=Eπ[f]\mathbb E_\pi[f_t]=\mathbb E_\pi[f] is constant in tt, differentiating the variance Var⁡π(ft)=⟨ft,ft⟩π−(Eπ[f])2\operatorname{Var}_\pi(f_t)=\langle f_t,f_t\rangle_\pi - (\mathbb E_\pi[f])^2 yields the exact energy-dissipation identity ddtVar⁡π(ft)=2⟨ft,Lft⟩π=−2⟨ft,Lft⟩π=−2E(ft,ft). \frac{\mathrm d}{\mathrm dt}\operatorname{Var}_\pi(f_t) =2\langle f_t,\mathcal L f_t\rangle_\pi =-2\langle f_t,L f_t\rangle_\pi =-2\mathcal E(f_t,f_t). Applying the Poincaré inequality E(ft,ft)≥γVar⁡π(ft)\mathcal E(f_t,f_t)\ge\gamma\operatorname{Var}_\pi(f_t) (Theorem 4) gives the differential inequality ddtVar⁡π(ft)≤−2γVar⁡π(ft). \frac{\mathrm d}{\mathrm dt}\operatorname{Var}_\pi(f_t)\le-2\gamma\operatorname{Var}_\pi(f_t). Integrating this inequality (Grönwall’s lemma) yields clean exponential variance decay: Var⁡π(Ptf)≤e−2γtVar⁡π(f)for all t≥0. \operatorname{Var}_\pi(P_t f)\le e^{-2\gamma t}\operatorname{Var}_\pi(f) \qquad\text{for all }t\ge 0. Conversely, differentiating Var⁡π(Ptf)≤e−2γtVar⁡π(f)\operatorname{Var}_\pi(P_t f)\le e^{-2\gamma t}\operatorname{Var}_\pi(f) at t=0t=0 recovers E(f,f)≥γVar⁡π(f)\mathcal E(f,f)\ge\gamma\operatorname{Var}_\pi(f). Thus the spectral gap, the Poincaré inequality, and exponential L2(π)L^2(\pi) variance decay are three facets of the same property.

Step clock versus site clock

When reading across the Markov chain, spin-system, and Boolean-analysis literature (including Chapter 3 of these notes), it is essential to keep track of two standard time normalizations for nn-coordinate systems such as Ω={−1,+1}n\Omega=\{-1,+1\}^n or [q]V[q]^V:

2.8 From sampling to approximate counting

Why do theoretical computer scientists care so much about sampling? A foundational answer is the Jerrum–Valiant–Vazirani equivalence (1986): for self-reducible combinatorial problems, almost-uniform sampling is polynomial-time equivalent to approximate counting (an FPRAS, or Fully Polynomial-Time Randomized Approximation Scheme, as introduced in Chapter 1).

Self-reducibility and simulated annealing schedules. Mark Jerrum, Leslie Valiant, and Vijay Vazirani (Random Generation of Combinatorial Structures from a Uniform Distribution, Theoretical Computer Science 1986) established the general equivalence between approximate counting and almost-uniform sampling for self-reducible relations. Later works by Štefankovič, Vempala, and Vigoda (Adaptive Simulated Annealing: A Near-Optimal Connection between Sampling and Counting, JACM 2009) replace the mm-step edge-deletion telescope with an adaptive cooling schedule of O(nlog⁡n)O(\sqrt{n\log n}) inverse temperatures, reducing the counting overhead from O~(m2)\widetilde O(m^2) to O~(n)\widetilde O(n) samples.

Counting proper qq-colorings when q>2Δq>2\Delta

Let us first see how our rapid-mixing theorem for proper qq-colorings (Theorem 2) immediately yields an FPRAS for counting the number ∣Ω(G)∣|\Omega(G)| of proper qq-colorings of any graph G=(V,E)G=(V,E) when q>2Δq>2\Delta.

Order the edges of GG as e1,e2,…,eme_1,e_2,\ldots,e_m, and define the sequence of spanning subgraphs G0,G1,…,GmG_0,G_1,\ldots,G_m by G0=(V,∅),Gi=(V,{e1,…,ei})(1≤i≤m),Gm=G. G_0=(V,\emptyset), \qquad G_i=(V,\{e_1,\ldots,e_i\}) \quad(1\le i\le m), \qquad G_m=G. Crucially, deleting edges never increases the maximum degree: Δ(Gi)≤Δ(G)=Δ\Delta(G_i)\le\Delta(G)=\Delta for every ii. Thus the condition q>2Δq>2\Delta holds uniformly across the entire sequence G0,G1,…,GmG_0,G_1,\ldots,G_m.

For the empty graph G0G_0, every vertex assignment is proper, so ∣Ω(G0)∣=qn|\Omega(G_0)|=q^n is known exactly. We express ∣Ω(G)∣|\Omega(G)| as a telescoping product across the mm edge additions: ∣Ω(G)∣=∣Ω(G0)∣∏i=1m∣Ω(Gi)∣∣Ω(Gi−1)∣=qn∏i=1mpi,wherepi=∣Ω(Gi)∣∣Ω(Gi−1)∣. |\Omega(G)| =|\Omega(G_0)|\prod_{i=1}^m\frac{|\Omega(G_i)|}{|\Omega(G_{i-1})|} =q^n\prod_{i=1}^m p_i, \qquad\text{where}\qquad p_i=\frac{|\Omega(G_i)|}{|\Omega(G_{i-1})|}. What is the ratio pip_i? Since GiG_i is obtained from Gi−1G_{i-1} by adding a single edge ei={ui,vi}e_i=\{u_i,v_i\}, a proper coloring of Gi−1G_{i-1} is also a proper coloring of GiG_i if and only if it assigns different colors to uiu_i and viv_i. Therefore, pip_i is simply the marginal probability under the uniform distribution πGi−1\pi_{G_{i-1}} on Ω(Gi−1)\Omega(G_{i-1}) that uiu_i and viv_i receive distinct colors: pi=Pσ∼πGi−1(σ(ui)≠σ(vi)). p_i = \mathbb P_{\sigma\sim\pi_{G_{i-1}}}\bigl(\sigma(u_i)\ne\sigma(v_i)\bigr). Furthermore, conditional on the colors of all vertices other than uiu_i, vertex uiu_i has at least q−Δq-\Delta available colors in Gi−1G_{i-1}, of which at most one can equal σ(vi)\sigma(v_i). Thus every ratio pip_i is bounded well away from zero: pi≥1−1q−Δ≥ΔΔ+1≥12whenever q>2Δ≥2. p_i \ge 1-\frac{1}{q-\Delta} \ge \frac{\Delta}{\Delta+1}\ge\frac12 \qquad\text{whenever }q>2\Delta\ge 2.

Counting via vertex self-reducibility: the hard-core model

The same telescoping principle applies to weighted partition functions. In the hard-core model on G=(V,E)G=(V,E) with activity λ>0\lambda>0, the partition function over the collection I(G)\mathcal I(G) of independent sets is ZG(λ)=∑I∈I(G)λ∣I∣. Z_G(\lambda)=\sum_{I\in\mathcal I(G)}\lambda^{|I|}. Ordering the vertices v1,…,vnv_1,\ldots,v_n and setting G0=GG_0=G and Gi=Gi−1∖{vi}G_i=G_{i-1}\setminus\{v_i\} (so GnG_n is empty and ZGn(λ)=1Z_{G_n}(\lambda)=1) gives the telescoping identity ZG(λ)=∏i=1nZGi−1(λ)ZGi(λ)=∏i=1n1pi,wherepi=ZGi(λ)ZGi−1(λ)=PI∼πGi−1(vi∉I)≥11+λ. Z_G(\lambda)=\prod_{i=1}^n\frac{Z_{G_{i-1}}(\lambda)}{Z_{G_i}(\lambda)}=\prod_{i=1}^n\frac{1}{p_i}, \qquad\text{where}\qquad p_i=\frac{Z_{G_i}(\lambda)}{Z_{G_{i-1}}(\lambda)}=\mathbb P_{I\sim\pi_{G_{i-1}}}(v_i\notin I)\ge\frac{1}{1+\lambda}.

Sample complexity of the product estimator

Why does bounding each factor pi≥c>0p_i\ge c>0 away from zero guarantee a polynomial-time (1±ε)(1\pm\varepsilon)-approximation for the kk-stage product P=∏i=1kpiP=\prod_{i=1}^k p_i (where k=mk=m for colorings or k=nk=n for independent sets)?

  1. Approximate sampling at each stage: Suppose we have a rapid-mixing Markov chain on Gi−1G_{i-1} run for t=τmix(δ)t=\tau_{\mathrm{mix}}(\delta) steps with δ=cε6k\delta=\frac{c\varepsilon}{6k} (for colorings with q≥(2+Ω(1))Δq\ge(2+\Omega(1))\Delta, this takes O(nlog⁡(nk/ε))O(n\log(nk/\varepsilon)) steps per sample). The empirical probability p~i=P(Xt∈Ei)\widetilde p_i=\mathbb P(X_t\in E_i) of the target event EiE_i then satisfies ∣p~i−pi∣≤δ≤ε6kpi|\widetilde p_i - p_i|\le \delta \le \frac{\varepsilon}{6k}p_i.
  2. Monte Carlo averaging: At each stage i∈{1,…,k}i\in\{1,\ldots,k\}, run the chain MM times independently to obtain an empirical frequency p^i\widehat p_i, and form the product estimator P^=∏i=1kp^i\widehat P=\prod_{i=1}^k\widehat p_i. By independence across the kk stages, E[P^]=∏i=1kp~i∈(1±ε3)P\mathbb E[\widehat P]=\prod_{i=1}^k\widetilde p_i\in(1\pm\frac{\varepsilon}{3})P. Moreover, because each p^i\widehat p_i is a binomial average of MM trials with mean p~i≥c/2\widetilde p_i\ge c/2, its relative variance is Var⁡(p^i)p~i2=1−p~iMp~i≤2cM. \frac{\operatorname{Var}(\widehat p_i)}{\widetilde p_i^2} =\frac{1-\widetilde p_i}{M\widetilde p_i} \le\frac{2}{c M}.
  3. Variance of the product: For ε∈(0,1]\varepsilon\in(0,1], choosing M=⌈72kcε2⌉=Θ(k/ε2)M=\lceil\frac{72 k}{c\varepsilon^2}\rceil=\Theta(k/\varepsilon^2) samples per stage makes Var⁡(p^i)p~i2≤ε236k\frac{\operatorname{Var}(\widehat p_i)}{\widetilde p_i^2}\le\frac{\varepsilon^2}{36k}, so the relative variance of the product P^=∏i=1kp^i\widehat P=\prod_{i=1}^k\widehat p_i satisfies Var⁡(P^)(E[P^])2=∏i=1k(1+Var⁡(p^i)p~i2)−1≤exp⁡ ⁣(∑i=1kVar⁡(p^i)p~i2)−1≤eε2/36−1≤ε227. \frac{\operatorname{Var}(\widehat P)}{(\mathbb E[\widehat P])^2} =\prod_{i=1}^k\left(1+\frac{\operatorname{Var}(\widehat p_i)}{\widetilde p_i^2}\right)-1 \le\exp\!\left(\sum_{i=1}^k\frac{\operatorname{Var}(\widehat p_i)}{\widetilde p_i^2}\right)-1 \le e^{\varepsilon^2/36}-1 \le\frac{\varepsilon^2}{27}. By Chebyshev’s inequality, P(∣P^−E[P^]∣≥ε3E[P^])≤9ε2⋅ε227=13\mathbb P\bigl(|\widehat P-\mathbb E[\widehat P]|\ge\frac{\varepsilon}{3}\mathbb E[\widehat P]\bigr)\le\frac{9}{\varepsilon^2}\cdot\frac{\varepsilon^2}{27}=\frac13, and combining this with ∣E[P^]−P∣≤ε3P|\mathbb E[\widehat P]-P|\le\frac{\varepsilon}{3}P yields a (1±ε)(1\pm\varepsilon)-multiplicative approximation with probability at least 2/32/3 (boosted to 1−η1-\eta by taking the median of O(log⁡(1/η))O(\log(1/\eta)) independent runs). The total number of Markov chain steps is O(kM τmix(δ))=O((k2/ε2) τmix(δ))O(k M\,\tau_{\mathrm{mix}}(\delta))=O((k^2/\varepsilon^2)\,\tau_{\mathrm{mix}}(\delta)), which is O~(k2n/ε2)\widetilde O(k^2 n/\varepsilon^2) whenever τmix(δ)=O~(n)\tau_{\mathrm{mix}}(\delta)=\widetilde O(n).

2.9 Canonical paths and congestion

Cheeger’s inequality characterizes the spectral gap through conductance: γ≥Φ2/2\gamma\ge\Phi^2/2. But computing Φ=min⁡SΦ(S)\Phi=\min_S \Phi(S) directly requires searching over all 2∣Ω∣2^{|\Omega|} cuts, and the quadratic loss in Φ2/2\Phi^2/2 can also degrade polynomial mixing bounds.

The method of canonical paths (Jerrum and Sinclair 1989; Diaconis and Stroock 1991) provides a direct combinatorial method to lower-bound the spectral gap γ\gamma without squaring loss, by routing a multicommodity flow between all pairs of states.

For every ordered pair of states x,y∈Ωx,y\in\Omega, choose a simple directed path Γxy\Gamma_{xy} in the transition graph of PP from xx to yy, and view it as routing π(x)π(y)\pi(x)\pi(y) units of flow from xx to yy. For each directed transition edge e=(u,v)e=(u,v) with P(u,v)>0P(u,v)>0, let Q(e)=π(u)P(u,v)Q(e)=\pi(u)P(u,v) be its capacity. We define the maximum edge congestion: ρ=max⁡e1Q(e)∑x,y: e∈Γxyπ(x)π(y)∣Γxy∣. \rho=\max_{e}\frac{1}{Q(e)}\sum_{x,y:\,e\in\Gamma_{xy}}\pi(x)\pi(y)|\Gamma_{xy}|.

Theorem 8 (Canonical paths bound (Diaconis–Stroock)) For any finite reversible Markov chain and any family of canonical paths {Γxy}x,y∈Ω\{\Gamma_{xy}\}_{x,y\in\Omega}, Var⁡π(f)≤ρ E(f,f)for all f:Ω→R. \operatorname{Var}_\pi(f)\le\rho\,\mathcal E(f,f) \qquad\text{for all }f:\Omega\to\mathbb R. Consequently, the spectral gap satisfies γ≥1ρ\gamma\ge\frac{1}{\rho}.

Proof. Express the variance as an average of squared differences over all ordered pairs: Var⁡π(f)=12∑x,y∈Ωπ(x)π(y)(f(x)−f(y))2. \operatorname{Var}_\pi(f)=\frac12\sum_{x,y\in\Omega}\pi(x)\pi(y)\bigl(f(x)-f(y)\bigr)^2. Along the path Γxy=(e1,…,eℓ)\Gamma_{xy}=(e_1,\ldots,e_\ell), telescope f(x)−f(y)=∑e∈Γxy∇eff(x)-f(y)=\sum_{e\in\Gamma_{xy}}\nabla_e f, where ∇ef=f(u)−f(v)\nabla_e f=f(u)-f(v) for e=(u,v)e=(u,v). By the Cauchy–Schwarz inequality, (f(x)−f(y))2=(∑e∈Γxy∇ef)2≤∣Γxy∣∑e∈Γxy(∇ef)2. \bigl(f(x)-f(y)\bigr)^2=\left(\sum_{e\in\Gamma_{xy}}\nabla_e f\right)^2\le|\Gamma_{xy}|\sum_{e\in\Gamma_{xy}}(\nabla_e f)^2. Substitute this bound into the variance formula and exchange the order of summation between pairs (x,y)(x,y) and edges ee: Var⁡π(f)≤12∑x,yπ(x)π(y)∣Γxy∣∑e∈Γxy(∇ef)2=12∑e(∇ef)2∑x,y: e∈Γxyπ(x)π(y)∣Γxy∣=12∑eQ(e)(∇ef)2(1Q(e)∑x,y: e∈Γxyπ(x)π(y)∣Γxy∣)≤ρ2∑eQ(e)(∇ef)2=ρ E(f,f). \begin{aligned} \operatorname{Var}_\pi(f) &\le\frac12\sum_{x,y}\pi(x)\pi(y)|\Gamma_{xy}|\sum_{e\in\Gamma_{xy}}(\nabla_e f)^2\\ &=\frac12\sum_e(\nabla_e f)^2\sum_{x,y:\,e\in\Gamma_{xy}}\pi(x)\pi(y)|\Gamma_{xy}|\\ &=\frac12\sum_e Q(e)(\nabla_e f)^2\left(\frac{1}{Q(e)}\sum_{x,y:\,e\in\Gamma_{xy}}\pi(x)\pi(y)|\Gamma_{xy}|\right)\\ &\le\frac\rho2\sum_e Q(e)(\nabla_e f)^2 =\rho\,\mathcal E(f,f). \end{aligned} Dividing by Var⁡π(f)\operatorname{Var}_\pi(f) and taking the minimum over non-constant ff yields γ≥1/ρ\gamma\ge1/\rho by Theorem 4.

How does one bound the sum over all pairs (x,y)(x,y) whose path Γxy\Gamma_{xy} traverses a given edge e=(u,v)e=(u,v) when ∣Ω∣|\Omega| is exponentially large? The key technique, due to Jerrum and Sinclair, is the injective encoding (complementary witness) trick: for a fixed transition e=(u,v)e=(u,v), map every pair (x,y)(x,y) with e∈Γxye\in\Gamma_{xy} to a “complementary configuration” ηe(x,y)∈Ω\eta_e(x,y)\in\Omega so that ee and ηe(x,y)\eta_e(x,y) uniquely reconstruct (x,y)(x,y), and π(x)π(y)≈π(u)π(ηe(x,y))\pi(x)\pi(y)\approx\pi(u)\pi(\eta_e(x,y)).

Example 7 (Canonical paths and injective encoding on the hypercube) Consider the coordinate-refresh walk on the nn-dimensional hypercube Ω={−1,+1}n\Omega=\{-1,+1\}^n from Example 1, where π(x)=2−n\pi(x)=2^{-n} and each directed edge e=(u,v)e=(u,v) flips a single coordinate k∈[n]k\in [n] with transition probability P(u,v)=12nP(u,v)=\frac{1}{2n} and edge capacity Q(e)=π(u)P(u,v)=2−n⋅12nQ(e)=\pi(u)P(u,v)=2^{-n}\cdot\frac{1}{2n}.

For any two configurations x,y∈{−1,+1}nx,y\in\{-1,+1\}^n, define the canonical path Γxy\Gamma_{xy} by scanning coordinates 1,2,…,n1,2,\ldots,n in increasing order and flipping coordinate ii whenever xi≠yix_i\ne y_i. The length of Γxy\Gamma_{xy} is the Hamming distance ∣Γxy∣=dHam(x,y)≤n|\Gamma_{xy}|=d_{\mathrm{Ham}}(x,y)\le n.

Now fix a directed edge e=(u,v)e=(u,v) that flips coordinate kk (so uk≠vku_k\ne v_k and ui=viu_i=v_i for i≠ki\ne k). Which pairs (x,y)(x,y) use ee along Γxy\Gamma_{xy}? Because Γxy\Gamma_{xy} has already updated coordinates 1,…,k−11,\ldots,k-1 to match yy and has not yet touched coordinates k+1,…,nk+1,\ldots,n, any pair (x,y)(x,y) with e∈Γxye\in\Gamma_{xy} must satisfy xk=ukx_k=u_k, yk=vky_k=v_k, and u=(y1,…,yk−1,xk,xk+1,…,xn),v=(y1,…,yk−1,yk,xk+1,…,xn). u=(y_1,\ldots,y_{k-1},x_k,x_{k+1},\ldots,x_n), \qquad v=(y_1,\ldots,y_{k-1},y_k,x_{k+1},\ldots,x_n). Notice that uu records the first k−1k-1 bits of yy and the last n−k+1n-k+1 bits of xx. To record the remaining bits without losing information, define the complementary witness ηe(x,y)∈{−1,+1}n\eta_e(x,y)\in\{-1,+1\}^n by splicing the unused bits of xx and yy: ηe(x,y)=(x1,…,xk−1,xk,yk+1,…,yn). \eta_e(x,y)=(x_1,\ldots,x_{k-1},x_k,y_{k+1},\ldots,y_n). Given the fixed edge e=(u,v)e=(u,v) and the witness z=ηe(x,y)z=\eta_e(x,y), we can immediately reconstruct both x=(z1,…,zk−1,uk,uk+1,…,un)x=(z_1,\ldots,z_{k-1},u_k,u_{k+1},\ldots,u_n) and y=(u1,…,uk−1,vk,zk+1,…,zn)y=(u_1,\ldots,u_{k-1},v_k,z_{k+1},\ldots,z_n). Moreover, the kk-th bit of z=ηe(x,y)z=\eta_e(x,y) is fixed to uku_k, so ηe\eta_e is an injection from {(x,y):e∈Γxy}\{(x,y):e\in\Gamma_{xy}\} into the half-cube {z∈Ω:zk=uk}\{z\in\Omega:z_k=u_k\} of size 2n−12^{n-1}. Using ∣Γxy∣≤n|\Gamma_{xy}|\le n and π(x)π(y)=π(u)π(ηe(x,y))=2−2n\pi(x)\pi(y)=\pi(u)\pi(\eta_e(x,y))=2^{-2n}, we obtain ρ≤max⁡enQ(e)∑x,y: e∈Γxyπ(u)π(ηe(x,y))=nπ(u)⋅12n⋅π(u)∑z: zk=ukπ(z)=2n2⋅12=n2. \rho \le\max_e\frac{n}{Q(e)}\sum_{x,y:\,e\in\Gamma_{xy}}\pi(u)\pi\bigl(\eta_e(x,y)\bigr) =\frac{n}{\pi(u)\cdot\frac{1}{2n}}\cdot\pi(u)\sum_{z:\,z_k=u_k}\pi(z) =2n^2\cdot\frac12 =n^2. By Theorem 8, this immediately yields γ≥1n2\gamma\ge\frac{1}{n^2}. (Any single fixed-order family of canonical paths incurs this Θ(n)\Theta(n) path-length factor; recovering the exact spectral gap γ=1n\gamma=\frac1n of Example 2 requires averaging over all n!n! coordinate orderings or using tensorization of variance.) In complex combinatorial chains where eigenfunctions cannot be written down—such as Jerrum and Sinclair’s chain for monomer-dimer coverings and the permanent—this injective witness argument is the central engine for proving γ≥1/poly⁡(n)\gamma\ge 1/\operatorname{poly}(n).

III. Further Topics

The following eight topics represent major milestones and modern frontiers in Markov chain theory. They serve as entry points for further study and student exposition.

3.1 Dobrushin influence and Glauber dynamics

Background. In our analysis of graph coloring (Section 1.8 and Section 2.2), we tracked how recoloring a vertex vv can alter the available colors at its neighbors. In statistical physics, Dobrushin’s uniqueness condition (1970) formalizes this local-sensitivity mechanism for any spin system μ\mu on [q]V[q]^V: one defines an n×nn\times n Dobrushin influence matrix C=(Cu,v)u,v∈VC=(C_{u,v})_{u,v\in V} with Cu,u=0C_{u,u}=0 and, for u≠vu\ne v, Cu,v=max⁡σ,τ∈Ωσ−v=τ−vdTV(μu(⋅∣σ−u), μu(⋅∣τ−u)), C_{u,v}=\max_{\substack{\sigma,\tau\in\Omega\\ \sigma_{-v}=\tau_{-v}}}d_{\mathrm{TV}}\bigl(\mu_u(\cdot\mid\sigma_{-u}),\,\mu_u(\cdot\mid\tau_{-u})\bigr), the maximum total variation change in the conditional marginal at site uu caused by modifying the spin at site vv while keeping all other spins fixed.

Main result. For a strictly positive distribution on [q]V[q]^V (or a constrained model whose single-site conditional update kernels are extended to all boundary configurations σ−u∈[q]V∖{u}\sigma_{-u}\in[q]^{V\setminus\{u\}}, as in Example 4), if the maximum total influence out of any vertex satisfies α=max⁡u∈V∑v∈VCv,u<1\alpha=\max_{u\in V}\sum_{v\in V}C_{v,u}<1, then single-site heat-bath (Glauber) dynamics contracts the Hamming metric by a factor of 1−1−αn1-\frac{1-\alpha}{n} per step, yielding τmix(ε)≤⌈n1−α(log⁡n+log⁡1ε)⌉. \tau_{\mathrm{mix}}(\varepsilon)\le\left\lceil\frac{n}{1-\alpha}\left(\log n+\log\frac1\varepsilon\right)\right\rceil. For uniform proper qq-colorings, Cu,v=0C_{u,v}=0 whenever {u,v}∉E\{u,v\}\notin E, and for {u,v}∈E\{u,v\}\in E changing σ(v)\sigma(v) swaps at most one forbidden color in the palette Aσ(u)A_\sigma(u) of size at least q−Δq-\Delta, so Cu,v≤1q−ΔC_{u,v}\le\frac{1}{q-\Delta}. Thus ∑v∈VCv,u≤deg⁡(u)q−Δ≤Δq−Δ<1\sum_{v\in V}C_{v,u}\le\frac{\deg(u)}{q-\Delta}\le\frac{\Delta}{q-\Delta}<1 precisely when q>2Δq>2\Delta, recovering the heat-bath contraction bound of Section 2.2 as a special case.

Reference. Levin, Peres, and Wilmer, Markov Chains and Mixing Times, Chapter 14.

3.2 Path coupling with stopping times

Background. Standard path coupling requires the expected distance between adjacent configurations to strictly contract after one step. However, in many constrained problems, disagreements may temporarily stagnate or expand in the immediate next step, but strictly contract after a small number of random steps.

Main result. Bordewich, Dyer, and Karpinski (2005) introduced stopping-time path coupling: instead of evaluating distance at step 11, one evaluates distance at a carefully chosen stopping time TT. If E[d(XT,YT)]<1\mathbb E[d(X_T,Y_T)]<1, one can construct a derived metric under which standard path coupling applies. This technique unlocked rapid mixing proofs for independent sets in low-degree hypergraphs, SAT solutions, and graph colorings in regimes beyond the one-step metric.

Reference. Magnus Bordewich, Martin Dyer, and Marek Karpinski, Metric Construction, Stopping Times and Path Coupling, 2005.

3.3 Beyond the single-site coloring bounds

Background. Our elementary contraction proofs for Metropolis and heat-bath dynamics work when q>2Δq>2\Delta. This 2Δ2\Delta barrier is an artifact of one-step worst-case Hamming contraction, not a true phase transition for single-site Glauber dynamics: on general graphs of maximum degree Δ\Delta, the natural ergodicity threshold where frozen proper colorings vanish is q≥Δ+2q\ge\Delta+2, and Glauber dynamics is conjectured to mix in O(nlog⁡n)O(n\log n) steps for all q≥Δ+2q\ge\Delta+2.

Main result. In a breakthrough result, Eric Vigoda (FOCS 1999) broke the 2Δ2\Delta barrier for general graphs, proving that an auxiliary Markov chain based on Kempe component flips (swapping the two colors on an entire maximal two-colored connected component) mixes in O(nlog⁡n)O(n\log n) time whenever q>116Δ, q>\frac{11}{6}\Delta, which by spectral comparison implies O(n2log⁡n)O(n^2\log n) mixing for single-site Glauber dynamics. Nearly two decades later, Chen, Delcourt, Moitra, Perarnau, and Postle (FOCS 2019) finally broke the 116Δ\frac{11}{6}\Delta barrier, proving rapid mixing for q>(116−ε0)Δq>\bigl(\frac{11}{6}-\varepsilon_0\bigr)\Delta where ε0≈10−5\varepsilon_0\approx 10^{-5}, and Chen, Liu, and Vigoda (STOC 2021) combined this with spectral independence to establish optimal O(nlog⁡n)O(n\log n) mixing of single-site Glauber dynamics in the same regime.

Reference. Eric Vigoda, Improved Bounds for Sampling Colorings, FOCS 1999 / Journal of Mathematical Physics 41 (2000), 1555–1569; Sitan Chen, Michelle Delcourt, Ankur Moitra, Guillem Perarnau, and Luke Postle, Improved Bounds for Randomly Sampling Colorings via Linear Programming, FOCS 2019.

3.4 Wilson’s algorithm for uniform spanning trees

Background. Generating a uniformly random spanning tree of a graph is a fundamental problem. While Aldous and Broder showed that a simple random walk generates a uniform tree when run until it visits all vertices (cover time), the cover time can be Θ(n3)\Theta(n^3) on general graphs.

Main result. David Wilson (STOC 1996) discovered an algorithm using loop-erased random walks: starting from any unvisited vertex, run a random walk until it hits the existing tree, erase cycles chronologically as they form, and add the resulting self-avoiding path to the tree. Repeat until all vertices are covered. Wilson’s algorithm outputs an exact uniform spanning tree, and its running time is proportional to the mean hitting time rather than the cover time. Correctness can be proved via the cycle-popping framework.

Reference. David B. Wilson, Generating Random Spanning Trees More Quickly than the Cover Time, STOC 1996, 296–303.

3.5 Expander walks and randomness-efficient amplification

Background. In randomized algorithms (such as BPP algorithms), one amplifies success probability by running kk independent trials and taking the majority vote, which consumes kk independent random seeds. Can we achieve the same exponential error reduction using far fewer random bits?

Main result. Walk on an expander graph! Let GG be a dd-regular expander on VV whose second normalized eigenvalue is λ<1\lambda<1. Let W⊆VW\subseteq V be a “bad” set occupying a fraction ρ=∣W∣/∣V∣\rho=|W|/|V| of the vertices. Start a walk at a uniformly chosen vertex X0X_0, and take ℓ−1\ell-1 steps. Gillman (1998) and Goldreich proved that the probability of staying inside WW for all ℓ\ell steps decays exponentially: P(X0,X1,…,Xℓ−1∈W)≤ρ(ρ+(1−ρ)λ)ℓ−1. \mathbb P(X_0,X_1,\ldots,X_{\ell-1}\in W)\le\rho\bigl(\rho+(1-\rho)\lambda\bigr)^{\ell-1}. This generates ℓ\ell pseudo-independent samples using only log⁡2∣V∣+O(ℓlog⁡d)\log_2|V|+O(\ell\log d) random bits.

Reference. Oded Goldreich, Basic Facts about Expander Graphs; David Gillman, A Chernoff Bound for Random Walks on Expander Graphs, SIAM Journal on Computing 27(4) (1998), 1203–1220.

3.6 Log-Sobolev inequalities and entropy decay

Background. The Poincaré inequality controls the decay of variance in L2(π)L^2(\pi), leading to the relaxation bound τmix(ε)≤⌈trel(12log⁡1πmin⁡+log⁡12ε)⌉\tau_{\mathrm{mix}}(\varepsilon)\le\lceil t_{\mathrm{rel}}(\frac12\log\frac{1}{\pi_{\min}}+\log\frac{1}{2\varepsilon})\rceil of Section 1.13. When the state space is a product space such as Ω={−1,+1}n\Omega=\{-1,+1\}^n and πmin⁡=2−n\pi_{\min}=2^{-n} is exponentially small, the factor log⁡(1/πmin⁡)=Θ(n)\log(1/\pi_{\min})=\Theta(n) multiplies trel=nt_{\mathrm{rel}}=n and produces a suboptimal O(n2)O(n^2) mixing bound (Example 2).

Main result. A logarithmic Sobolev inequality (LSI) replaces variance with the entropy functional Ent⁡π(f)=Eπ[flog⁡(f/Eπ[f])]\operatorname{Ent}_\pi(f)=\mathbb E_\pi\bigl[f\log(f/\mathbb E_\pi[f])\bigr] for non-negative functions f≥0f\ge 0: Ent⁡π(f)≤12ρLS E(f,f), \operatorname{Ent}_\pi(f)\le\frac{1}{2\rho_{\mathrm{LS}}}\,\mathcal E(\sqrt f,\sqrt f), or, for the relative entropy (KL divergence) DKL(μt∥π)=Ent⁡π(μt/π)D_{\mathrm{KL}}(\mu_t\Vert\pi)=\operatorname{Ent}_\pi(\mu_t/\pi) of the continuous-time density ht=Pt(μ0/π)h_t=P_t(\mu_0/\pi), the modified log-Sobolev inequality (MLSI) ddtDKL(μt∥π)=−E(ht,log⁡ht)≤−αMLSIDKL(μt∥π)\frac{\mathrm d}{\mathrm dt}D_{\mathrm{KL}}(\mu_t\Vert\pi)=-\mathcal E(h_t,\log h_t)\le -\alpha_{\mathrm{MLSI}}D_{\mathrm{KL}}(\mu_t\Vert\pi). Because initial relative entropy from a point mass xx is at most log⁡(1/πmin⁡)=O(n)\log(1/\pi_{\min})=O(n) and decays exponentially as DKL(μt∥π)≤e−αMLSItlog⁡(1/πmin⁡)D_{\mathrm{KL}}(\mu_t\Vert\pi)\le e^{-\alpha_{\mathrm{MLSI}}t}\log(1/\pi_{\min}), the factor log⁡(1/πmin⁡)\log(1/\pi_{\min}) moves inside another logarithm (log⁡log⁡(1/πmin⁡)=log⁡n\log\log(1/\pi_{\min})=\log n). For the hypercube walk, ρLS=Θ(1/n)\rho_{\mathrm{LS}}=\Theta(1/n) in the discrete-time step clock (or Θ(1)\Theta(1) in the continuous-time site clock of Section 2.7), upgrading the Poincaré bound from O(n2)O(n^2) to the sharp O(nlog⁡n)O(n\log n) discrete-time mixing bound (O(log⁡n)O(\log n) in continuous site-clock time).

Reference. Persi Diaconis and Laurent Saloff-Coste, Logarithmic Sobolev Inequalities for Finite Markov Chains, Annals of Applied Probability 6(3) (1996), 695–750.

3.7 Spectral independence

Background. In high-dimensional spin systems near criticality, classical path coupling fails because one-step local contractions break down in worst-case boundary configurations, while global canonical paths are notoriously difficult to construct. In a groundbreaking series of works, Anari, Liu, and Oveis Gharan (FOCS 2020) introduced spectral independence, bridging high-dimensional expanders, geometry of polynomials, and Glauber dynamics.

Main result. Rather than analyzing the 2n×2n2^n\times 2^n transition matrix PP directly, spectral independence associates to any distribution μ\mu on {−1,+1}V\{-1,+1\}^V (and any partial pinning τ\tau on a subset S⊂VS\subset V) an ∣V∖S∣×∣V∖S∣|V\setminus S|\times |V\setminus S| signed pairwise influence matrix Ψμτ\Psi_\mu^\tau: Ψμτ(u,v)=Pσ∼μ(σv=+1∣σS=τ, σu=+1)−Pσ∼μ(σv=+1∣σS=τ, σu=−1)(u≠v), \Psi_\mu^\tau(u,v) =\mathbb P_{\sigma\sim\mu}(\sigma_v=+1\mid\sigma_S=\tau,\,\sigma_u=+1)-\mathbb P_{\sigma\sim\mu}(\sigma_v=+1\mid\sigma_S=\tau,\,\sigma_u=-1) \quad(u\ne v), with Ψμτ(u,u)=0\Psi_\mu^\tau(u,u)=0. Because diag⁡(Var⁡(σu∣τ))Ψμτ\operatorname{diag}(\operatorname{Var}(\sigma_u\mid\tau))\Psi_\mu^\tau agrees off the diagonal with the symmetric conditional covariance matrix, Ψμτ\Psi_\mu^\tau is diagonally similar to a real symmetric matrix and all its eigenvalues are real. The distribution μ\mu is said to be η\eta-spectrally independent if λmax⁡(Ψμτ)≤η\lambda_{\max}(\Psi_\mu^\tau)\le\eta for all pinnings τ\tau. Anari, Liu, and Oveis Gharan proved that bounded spectral independence η=O(1)\eta=O(1) (together with uniform connectivity of the base two-spin conditioned steps) implies a polynomial spectral gap γ≥n−O(1+η)\gamma\ge n^{-O(1+\eta)} for Glauber dynamics, resolving the longstanding open problem of polynomial-time sampling for the hard-core model up to the tree uniqueness threshold λ<λc(Δ)\lambda<\lambda_c(\Delta). Shortly thereafter, Chen, Liu, and Vigoda (STOC 2021) proved that on bounded-degree graphs, O(1)O(1)-spectral independence combined with marginal stability implies an Ω(1/n)\Omega(1/n) modified log-Sobolev constant and optimal O(nlog⁡n)O(n\log n) mixing time.

Reference. Nima Anari, Kuikui Liu, and Shayan Oveis Gharan, Spectral Independence in High-Dimensional Expanders and Applications to the Hardcore Model, FOCS 2020; Zongchen Chen, Kuikui Liu, and Eric Vigoda, Optimal Mixing of Glauber Dynamics: Entropy Factorization via High-Dimensional Expansion, STOC 2021.

3.8 The cutoff phenomenon

Background. For many natural Markov chains, convergence to stationarity does not occur as a gradual exponential decay. Instead, the total variation distance stays close to 11 for a long period and then drops precipitously to near 00 over a narrow time window. This is known as the cutoff phenomenon (first discovered by Diaconis, Shahshahani, and Aldous).

Main result. A family of Markov chains exhibits cutoff if, for all ε∈(0,1/2)\varepsilon\in(0,1/2), lim⁡n→∞τmix(ε)τmix(1−ε)=1. \lim_{n\to\infty}\frac{\tau_{\mathrm{mix}}(\varepsilon)}{\tau_{\mathrm{mix}}(1-\varepsilon)}=1. For the coordinate-refresh walk on the nn-dimensional hypercube, total variation distance drops from 11 to 00 sharply at time t=12nlog⁡nt=\frac12 n\log n, with a transition window of width O(n)O(n). Coupling with the coupon collector gave an upper bound of nlog⁡nn\log n, which captures the right mechanism but overestimates the true cutoff location by a factor of 22.

Reference. Levin, Peres, and Wilmer, Markov Chains and Mixing Times, Chapter 18; Nathanaël Berestycki, Mixing Times of Markov Chains: Techniques and Examples.

Further reading and core references.

  1. David A. Levin and Yuval Peres (with contributions by Elizabeth L. Wilmer), Markov Chains and Mixing Times, 2nd ed., American Mathematical Society, 2017. (Chapters 4–5 for coupling and strong stationary times, Chapters 12–13 for spectral and conductance bounds, Chapter 14 for path coupling and Glauber dynamics, Chapter 18 for cutoff.)
  2. Mark Jerrum, Counting, Sampling and Integrating: Algorithms and Complexity, Lectures in Mathematics ETH Zürich, Birkhäuser, 2003. (Classic treatment of Jerrum–Valiant–Vazirani self-reducibility, canonical paths, and rapidly mixing Markov chains.)
  3. Persi Diaconis and Daniel Stroock, “Geometric Bounds for Eigenvalues of Markov Chains,” Annals of Applied Probability 1(1) (1991), 36–61; Mark Jerrum and Alistair Sinclair, “Approximating the Permanent,” SIAM Journal on Computing 18(6) (1989), 1149–1178. (Foundational papers on conductance, Cheeger’s inequality for reversible chains, and canonical paths.)
  4. Russ Bubley and Martin Dyer, “Path Coupling: A Technique for Proving Rapid Mixing in Markov Chains,” Proceedings of the 38th IEEE Symposium on Foundations of Computer Science (FOCS), 1997, 223–231; James G. Propp and David B. Wilson, “Exact Sampling with Coupled Markov Chains and Applications to Statistical Mechanics,” Random Structures & Algorithms 9(1–2) (1996), 223–252.

Sources and acknowledgments. The local-sampling and coupling exposition adapts Chihao Zhang’s 2025 Topics in Advanced Algorithms Lecture 4, originally scribed by Sihan Wang and Yuchen He. The spectral and geometric exposition also draws on Lecture 5, originally scribed by Jinxuan Zhu and Yuchen He. The time-reversal, coupling, hypercube, and reversible-chain presentations follow Zhang and He’s manuscript Stochastic Processes in Computer Science, Chapter 2.