1.12 Coupling of Markov Chains

The motivation of coupling is to decide the rate of convergence to an ergodic Markov chain’s stationary distribution.

1.12.1 Variation Distance and Mixing Time

Definition 1.12.1 (Variation Distance).

The variation distance between two distributions 𝒟1 and 𝒟2 on a countable state space S is given by

d𝖳𝖵⁢(𝒟1,𝒟2)=12⁢∑x∈S|𝒟1⁢(x)−𝒟2⁢(x)|.

The factor 1/2 in definition 1.12.1 guarantees that the variation distance is in [0,1].

Lemma 1.12.2.

For any A⊆S, let 𝒟⁢(A)=∑x∈A𝒟⁢(x), then

d𝖳𝖵⁢(𝒟1,𝒟2)=maxA⊆S⁡|𝒟1⁢(A)−𝒟2⁢(A)|.
Proof.

Let S+ be all the x∈S that 𝒟1⁢(x)≥𝒟2⁢(x), and S−=S∖S+, such that ∀x∈S−, 𝒟1⁢(x)<𝒟2⁢(x). Then

(𝒟1⁢(S+)−𝒟2⁢(S+))+(𝒟2⁢(S−)−𝒟1⁢(S−))=∑a∈S|𝒟1⁢(a)−𝒟2⁢(a)|=2⁢d𝖳𝖵⁢(𝒟1,𝒟2).

Since 𝒟1⁢(S+)+𝒟1⁢(S−)=𝒟2⁢(S+)+𝒟2⁢(S−)=1,

𝒟1⁢(S+)−𝒟2⁢(S+)=𝒟2⁢(S−)−𝒟1⁢(S−)=d𝖳𝖵⁢(𝒟1,𝒟2).

Moreover, by the definition of S+ and S−, such that ∀x∈S+, 𝒟1⁢(x)≥𝒟2⁢(x), then ∀A⊆S,

𝒟1⁢(A)−𝒟2⁢(A)≤𝒟1⁢(S+)−𝒟2⁢(S+).

Since 𝒟1⁢(S+)−𝒟2⁢(S+) is maximized, so is 𝒟2⁢(S−)−𝒟1⁢(S−) by symmetry, the proof is concluded. ∎

Remark 1.12.3.

The alternative characterization of variation distance by lemma 1.12.2 gives a strong statement, that supposing d𝖳𝖵⁢(𝒟1,𝒟2)<ε, then for any x∈S, |𝒟1⁢(x)−𝒟2⁢(x)|<ε.

Corollary 1.12.4.

Let m⁢(a)=min⁡(𝒟1⁢(a),𝒟2⁢(a)) for all a∈S, then

d𝖳𝖵⁢(𝒟1,𝒟2)=1−m⁢(S).
Proof.

The result is immediate by d𝖳𝖵⁢(𝒟1,𝒟2)=𝒟1⁢(S+)−𝒟2⁢(S+) and m⁢(S)=𝒟1⁢(S−)+𝒟2⁢(S+). ∎

Definition 1.12.5 (Mixing Time).

Let 𝝅 be the stationary distribution of an ergodic Markov chain with state space S. Let pxt represent the distribution of the state of the chain starting at state x after t steps. We define

Δx⁢(t) =d𝖳𝖵⁢(𝒟𝝅,pxt)
Δ⁢(t) =maxx∈S⁡Δx⁢(t)=maxx∈S⁡d𝖳𝖵⁢(𝒟𝝅,pxt),

that is, Δx⁢(t) is the variation distance between the stationary distribution and pxt, and Δ⁢(t) is the maximum of Δx⁢(t) over all states x. We also define

τx⁢(ε) =min⁡{t∣Δx⁢(t)≤ε}
τ⁢(ε) =maxx∈S⁡τx⁢(ε)=maxx∈S⁡min⁡{t∣Δx⁢(t)≤ε},

that is, τx⁢(ε) is the first step t, at which the variation distance between pxt and the stationary distribution is at most ε, and τ⁢(ε) is the maximum of τx⁢(ε) over all states x.

While τ⁢(ε) is a function of ε, it is generally called the mixing time of the Markov chain.

Definition 1.12.6 (Rapidly Mixing [JS89]).

A Markov chain with state space S is rapidly mixing if its mixing time τ⁢(ε) is 𝗉𝗈𝗅𝗒⁢(log⁡(1/ε),log⁡|S|). We view log⁡|S| as the problem size, since a state can be encoded using O⁢(log⁡|S|) bits.

1.12.2 Coupling

Coupling of Markov chains is a general technique for bounding the mixing time of a Markov chain.

Definition 1.12.7 (Markov Chain Coupling).

A coupling of a Markov chain Mt with state space S is a Markov chain Zt=(Xt,Yt) on state space S×S such that

Pr⁡[Xt+1=x′∣Zt=(x,y)] =Pr⁡[Mt+1=x′∣Mt=x];
Pr⁡[Yt+1=y′∣Zt=(x,y)] =Pr⁡[Mt+1=y′∣Mt=y].
Remark 1.12.8.

A coupling consists of two copies of the Markov chain Mt running simultaneously, each copy behaves exactly like the original Markov chain in terms of its transition probabilities. The joint distribution preserves the marginal distribution of each copy, but the two copies may be correlated.

Remark 1.12.9.

To show a chain is close to stationarity, it suffices to couple it with a copy started from the stationary distribution. When the two chains reach the same state (the coupling time T), they can be made to evolve identically thereafter. In particular, if they have coupled by time T, then the first chain is exactly equal to a stationary sample at time T. Thus, the only obstruction to being close to stationarity is the probability that they have not yet met.

Lemma 1.12.10 (Mixing-Time Coupling Lemma).

Let Zt=(Xt,Yt) be a coupling for a Markov chain Mt on a state space S. Suppose that there exists a T such that, for every x,y∈S,

Pr⁡[XT≠YT∣X0=x,Y0=y]≤ε, (1.19)

then τ⁢(ε)≤T, that the variation distance between the distribution over S after T steps and 𝒟𝛑 is at most ε.

Proof.

Consider the coupling when initial state x is fixed and y←𝒟𝝅. We first prove the following core lemma.

Lemma 1.12.11.

In the coupling Zt=(Xt,Yt), where initial state x is fixed and y←𝒟𝛑, then

Δx⁢(T)≤Pr⁡[XT≠YT].
Proof.

We begin by lower bounding pxT⁢(A), where A⊆S, by

pxT⁢(A) =Pr⁡[XT∈A]
=Pr⁡[XT∈A∧YT=XT]+Pr⁡[XT∈A∧YT≠XT]
≥Pr⁡[XT∈A∧YT=XT]=Pr⁡[YT∈A∧YT=XT],

where the last equality holds by the same event. We continue the lower bounding by

pxT⁢(A) ≥Pr⁡[YT∈A∧YT=XT]
=1−Pr⁡[YT∉A∨YT≠XT]
≥1−Pr⁡[YT∉A]−Pr⁡[YT≠XT]=Pr⁡[YT∈A]−Pr⁡[YT≠XT]
=𝒟𝝅⁢(A)−Pr⁡[YT≠XT],

where the third inequality holds by union bound. Symmetric to the prior derivation, we have

pxT⁢(S∖A)≥𝒟𝝅⁢(S∖A)−Pr⁡[YT≠XT],

or equivalently,

𝒟𝝅⁢(A)≥pxT⁢(A)−Pr⁡[YT≠XT].

Now that for all A⊆S, we have

|pxT⁢(A)−𝒟𝝅⁢(A)|≤Pr⁡[XT≠YT],

then by the alternative characterization of variation distance lemma 1.12.2, we complete the proof by

Δx⁢(T)=d𝖳𝖵⁢(pxT,𝒟𝝅)=maxA⊆S⁡|pxT⁢(A)−𝒟𝝅⁢(A)|≤Pr⁡[XT≠YT].

∎

Since Pr⁡[XT≠YT]≤ε by eq. 1.19, then by lemma 1.12.11, Δx⁢(T)≤ε for all x∈S. Hence, by definition 1.12.5,

T≥τx⁢(ε)=min⁡{t∣Δx⁢(t)≤ε}

holds for all x∈S, and therefore τ⁢(ε)≤T. ∎

Example 1.12.12 (Coupling for Card Shuffling).

A card-shuffling Markov chain for n cards is defined over n! states, where a state transitions to another by choosing a position j←r[1,n], and moving the jth card to the deck top. It is obvious that the stationary distribution is the uniform distribution.

To analyze the mixing time τ⁢(ε) of the chain by lemma 1.12.10, we obtain 2 copies of the chain, and the coupling is constructed by sampling a card C uniformly at random, and moving C to the deck top in both copies. The coupling is valid: recall remark 1.12.8, that the marginal distribution is preserved, while the joint distribution may be correlated.

Moreover, when C is moved to the deck top, then it is always in the same position in both copies, and the copies are coupled once every card has been moved to the top for at least once. Let Zt=(Xt,Yt) be the coupling, then Pr⁡[XT≠YT] is the probability that after T steps, there exists cards still not chosen.

We continue by analyzing the coupon collector’s problem: with probability (1−n−1)N, a specific card is not chosen after N trials. By theorem 1.5.23, let N=n⁢ln⁡n+c⁢n, and by union bounding over all n cards,

Pr⁡[XN≠YN]≤n⁢(1−1n)N≤n⁢exp⁡(−Nn)=e−c,

where the second inequality holds by 1+x≤ex. When N=n⁢ln⁡(n/ε), we have Pr⁡[XN≠YN]≤ε.

We conclude by lemma 1.12.10, that the variation distance between the uniform distribution and the distribution of the state of the chain after n⁢ln⁡(n/ε) steps is at most ε, and τ⁢(ε)≤n⁢ln⁡(n/ε).

Exercise 1.12.13 (Exercise 12.2 [MU17]).

Considering the Markov chain for shuffling n cards as in example 1.12.12. Suppose that, instead of running the chain for a fixed number of steps, we stop the chain at the first step where every card has been moved to the top at least once. Show that, at the stopping time, the state of the chain is uniformly distributed over n! possible permutations of the cards.

Proof.

By the coupling in example 1.12.12, fix an initial state x for X0 and let Y0 be sampled uniformly from n! decks. Let N be the first time that every card has been moved to the top at least once, then XN=YN. We conclude that XN is uniformly distributed over n! possible decks. ∎

Exercise 1.12.14 (Exercise 12.3 [MU17]).

Considering the Markov chain for shuffling n cards as in example 1.12.12. Show that if the chain runs for only (1−ε)⁢n⁢ln⁡n steps for some constant ε>0, then the variation distance is 1−o⁢(1).

Proof.

We started by lower bounding d𝖳𝖵⁢(pxN,𝒟𝝅), where N=(1−ε)⁢n⁢ln⁡n, x be an initial state. Since

d𝖳𝖵⁢(pxN,𝒟𝝅)=maxA⊆S⁡|pxN⁢(A)−𝒟𝝅⁢(A)|≥|pxN⁢(B)−𝒟𝝅⁢(B)|

for all B⊆S, the lower bound can be derived from lower bounding |pxN⁢(B)−𝒟𝝅⁢(B)|.

Let the cards be initially unshuffled and ordered, then we define a subset of states by Aℓ such that the last ℓ cards preserve the relative order. We let Xi be the 0-1 indicator random variable for the ith card not being picked, and X=∑iXi be the random variable for the number of untouched cards.

Since X≥ℓ leads to Aℓ occurring, then {X≥ℓ}⊆Aℓ, and

Pr⁡[X≥ℓ]≤pxN⁢(Aℓ).

By the linearity of expectation,

𝔼[X]=∑i∈[1,n]𝔼[Xi]=n⁢(1−1n)N≤n⋅exp⁡(−(1−ε)⁢ln⁡n)=nε.

We let ℓ=nε/2, and hence for any sufficiently large n,

Pr⁡[X<ℓ]≤Pr⁡[X≤12⁢nε].

Moreover, for i≠j∈[1,n],

Cov⁢[Xi,Xj]=𝔼[Xi⁢Xj]−𝔼[Xi]⁢𝔼[Xj]=(1−2n)N−(1−1n)2⁢N<0,

hence

Var⁢[X]=∑i∈[1,n]Var⁢[Xi]+2⁢∑j<k∈[1,n]Cov⁢[Xj,Xk]≤∑i∈[1,n]Var⁢[Xi]≤∑i∈[1,n]𝔼[Xi]=𝔼[X],

then by Chebyshev’s inequality,

Pr⁡[X<ℓ]≤Pr⁡[X≤12⁢nε]≤4⁢V⁢a⁢r⁢[X]n2⁢ε≤4nε.

On the other hand, 𝒟𝝅⁢(Aℓ)=(ℓ!)−1=(nε/2!)−1. Hence,

d𝖳𝖵⁢(pxN,𝒟𝝅)=maxA⊆S⁡|pxN⁢(A)−𝒟𝝅⁢(A)|≥|pxN⁢(Aℓ)−𝒟𝝅⁢(Aℓ)|≥1−4nε−1nε/2!,

which completes the proof for d𝖳𝖵⁢(pxN,𝒟𝝅)=1−o⁢(1). ∎

Example 1.12.15 (Coupling for Random Walks on the Hypercube).

Consider the following Markov chain defined on a n-dimensional hypercube. At each step, it picks a coordinate i←r[1,n]. The new state 𝐱′ is obtained from the current state 𝐱 by keeping all coordinates the same, except possibly for xi. xi is set to 0 with probability 1/2, and to 1 with probability 1/2. The stationary distribution of the Markov chain is uniform distribution.

A coupling for the Markov chain can be obtained by enforcing the same move on the two copies: both changing xi to 0 or 1. The marginal probability of the coupling still follows the transition probability of the chain.

Moreover, once both copies make the same move on xi, they are surely agreeing on the ith coordinate, and they will couple after all n coordinates have each been chosen at least once. Immediate from the coupon collector’s problem, and by the same analysis in example 1.12.12, τ⁢(ε)≤n⁢ln⁡(n/ε).

Exercise 1.12.16 (Exercise 12.11 [MU17]).

Show that the Markov chain for sampling all independent sets of fixed size k≤n/(3⁢Δ+3) in a graph of n vertices and maximum degree Δ is ergodic and has a uniform stationary distribution. A move is made from the independent set Xt by choosing a vertex v←rXt and w←rV. If w∉Xt and Xt∖{v}∪{w} is an independent set, then Xt+1=Xt∖{v}∪{w}; otherwise, Xt+1=Xt.

Proof.

Consider an independent set A⊆V with |A|=k, and let Γ+⁢(A) be the inclusive neighborhood of A, such that

|Γ+⁢(A)|≤k⁢(Δ+1).

Suppose we want to transition from A to B, another independent set of fixed size with k, we know that

|Γ+⁢(A∪B)|≤|Γ+⁢(A)|+|Γ+⁢(B)|≤2⁢k⁢(Δ+1).

Since n≥3⁢k⁢(Δ+1), then |V∖Γ+⁢(A∪B)|≥k⁢(Δ+1).

We can greedily construct an independent set C⊆V∖Γ+⁢(A∪B): at each step choose a vertex, put it into C, and delete it together with all its neighbors. Since each step deletes at most Δ+1 vertices, we can greedily select at least k vertices from V∖Γ+⁢(A∪B) into C. Hence there exists an independent set C of size k.

Then for any transition in between states of independent sets of fixed size, one can first transition to an independent set of fixed size C⊆V∖Γ+⁢(A∪B), then transition to B. Hence, the irreducibility is proved.

Positive recurrence is immediate by finiteness and irreducibility, and aperiodicity is immediate by the existence of odd length loop, namely the loop back to a state itself. Hence, the ergodicity is proved by corollary 1.7.47. ∎

Example 1.12.17 (Independent Sets of Fixed Size).

For 1.12.16, consider a coupling Zt=(Xt,Yt), requiring a perfect matching M between vertices in Xt∖Yt and Yt∖Xt at each step. We choose a transition for Xt by sampling v←rXt and w←rV and perform the move. If v∈Yt, then perform the move over v, w, and Yt; otherwise, perform the move over M⁢(v), w, and Yt.

An alternative way of coupling is established by sampling v←rXt and w←rV and perform the move for Xt, if v∈Yt, perform the move over v, w, and Yt; otherwise, sample v′←rYt∖Xt and perform the move over v′, w, and Yt.

The coupling still remains valid, by

Pr⁡[v′⁢ chosen∧v′∈Xt∩Yt] =Pr⁡[v′⁢ chosen∣v←rXt⁢ and ⁢v∈Yt]⁢Pr⁡[v←rXt⁢ and ⁢v∈Yt]=1|Xt∩Yt|⋅|Xt∩Yt|k,
Pr⁡[v′⁢ chosen∧v′∈Yt∖Xt] =Pr⁡[v′⁢ chosen∣v←rXt⁢ and ⁢v∉Yt]⁢Pr⁡[v←rXt⁢ and ⁢v∉Yt]=1|Yt∖Xt|⋅|Xt∖Yt|k,

such that v∈Yt and w∈V are still chosen with probability 1/k⁢n. Note that, in the coupling, it is possible to transition in one chain and stay put in the other.

Let Dt=|Xt∖Yt| be the random variable for the difference size between Xt and Yt, and Dt can change by at most 1 at a step. We want to show Dt is more likely to decrease, and we want to upper bound the probability of Dt>0 for a sufficiently large t.

Suppose Dt>0. In order to make Dt+1=Dt+1, the vertex v to be removed has to be sampled from Xt∩Yt, while the vertex w to be introduced can only cause one of the two states to transition, such that 101010 w can be strengthened from causing one of the two states to transition, by observing if w∈(Xt∖Yt)∪(Yt∖Xt), the transition state’s shared component with the state staying put is still of size k−Dt, by removing 1 shared element and reintroducing 1 shared element. If w is sampled over the neighbors of (Xt∖Yt)∪(Yt∖Xt), then the transition state is surely decreasing the size of the shared component with the state staying put.

w∈Γ+⁢((Xt∖Yt)∪(Yt∖Xt)).

Then it follows that

Pr⁡[Dt+1=Dt+1⁢∣Dt>⁢0]≤k−Dtk⋅2⁢Dt⁢(Δ+1)n.

In order to make Dt+1=Dt−1, the vertex v to be removed has to be sampled from Xt∖Yt, while the vertex w to be introduced must cause both states to transition, such that

w∉Γ+⁢(Xt∪Yt∖{v,v′}),

hence

Pr⁡[Dt+1=Dt−1⁢∣Dt>⁢0]≥Dtk⋅n−(Δ+1)⁢(k+Dt−2)n.

We thus have, for Dt>0,

𝔼[Dt+1∣Dt] =Dt+Pr⁡[Dt+1=Dt+1⁢∣Dt>⁢0]−Pr⁡[Dt+1=Dt−1⁢∣Dt>⁢0]
≤Dt+k−Dtk⋅2⁢Dt⁢(Δ+1)n−Dtk⋅n−(Δ+1)⁢(k+Dt−2)n
=Dt⁢(1−n−(Δ+1)⁢(3⁢k−Dt−2)k⁢n)
≤Dt⁢(1−n−(Δ+1)⁢(3⁢k−3)k⁢n),

and once Dt=0, 𝔼[Dt+1∣Dt]=0. By conditional expectation,

𝔼[Dt+1]=𝔼[𝔼[Dt+1∣Dt]]≤𝔼[Dt]⁡(1−n−(Δ+1)⁢(3⁢k−3)k⁢n).

We then conclude that

Pr⁡[Dt≥1] ≤𝔼[Dt]≤𝔼[D0](1−n−(Δ+1)⁢(3⁢k−3)k⁢n)t
≤k⁢(1−n−(Δ+1)⁢(3⁢k−3)k⁢n)t
≤k⋅exp⁡(−t⋅n−(Δ+1)⁢(3⁢k−3)k⁢n),

the first inequality holds from Markov inequality, the third holds by 𝔼[D0]≤k, and the last holds by 1+x≤ex. It converges to 0 when k≤n/(3⁢Δ+3), then in this case,

τ⁢(ε)≤k⁢n⁢ln⁡(k/ε)n−(Δ+1)⁢(3⁢k−3).

It turns out that τ⁢(ε) is polynomial in n (which is logarithmic in the number of independent sets of fixed size k) and ln⁡(ε−1), hence it is rapidly mixing.

Exercise 1.12.18 (Exercise 12.8 [MU17]).

Consider the random walk on a non-bipartite, connected graph with |V|=n, where each vertex has the same degree n>d>n/2. Show that

τ⁢(ε)≤ln⁡εln⁡(1−(2⁢d−n)/d).
Proof.

By theorem 1.7.75, the stationary distribution of such a graph is uniform.

A coupling can be established by sampling one copy’s initial state from the stationary distribution, while the other’s initial state is any fixed state. Suppose they are on states u≠v, then on transition, construct a perfect matching M between Γ⁢(u) and Γ⁢(v), such that Γ⁢(u)∩Γ⁢(v) are matched to themselves, while the other neighboring vertices are randomly 1-to-1 matched. We randomly choose 1 out of d options in M, and since |Γ⁢(u)∩Γ⁢(v)|≥2⁢d−n, then

Pr⁡[Xt+1=Yt+1∣Xt≠Yt,X0=x,Y0=y]≥2⁢d−nd

for all initial states x≠y, hence by induction

Pr⁡[Xt≠Yt∣X0=x,Y0=y]≤(1−2⁢d−nd)t=ε,

then

t=ln⁡εln⁡(1−(2⁢d−n)/d).

By lemma 1.12.10, Δx⁢(t)≤Pr⁡[Xt≠Yt], then it is immediate that τ⁢(ε)≤t. ∎

Exercise 1.12.19 (Exercise 12.9 [MU17]).

Consider a Markov chain on n points [0,n−1] lying in order on a circle. At each step, the chain stays at the current point with probability 1/2, or moves to the next point in the clockwise direction with probability 1/2. Show that for any ε>0, the mixing time τ⁢(ε) is O⁢(n2⁢ln⁡(1/ε)).

Proof.

It is clear by the cutset argument that the stationary distribution is the uniform distribution.

Consider a coupling where each copy operates oppositely, namely if one stays, the other moves to the next point. Let the distance be the number of steps to take clockwise from a chain state to the other, then it can be modeled by the gambler’s ruin example 1.7.51: states are [0,n], absorbing states are 0 and n, moving ±1 with probability 1/2.

By 1.7.68, if the current distance is i, the expected number of moves is i⋅(n−i)≤n2/4. Let T be the random variable for the number of steps before coupling, then by Markov’s inequality, for all initial states x≠y,

Pr⁡[T≥n22|X0=x,Y0=y]≤12.

By Markov property,

Pr⁡[T≥n2|T≥n22,X0=x,Y0=y]≤12,

and by induction,

Pr⁡[T≥k2⁢n2|X0=x,Y0=y]≤2−k.

Hence,

Pr⁡[XT≠YT∣X0=x,Y0=y]=Pr⁡[T≥log⁡(ε−1)2⁢n2|X0=x,Y0=y]≤ε.

Immediate from lemma 1.12.10, we have τ⁢(ε)≤T=log⁡(ε−1)⁢n2/2, hence τ⁢(ε)=O⁢(ln⁡(ε−1)⁢n2). ∎

Exercise 1.12.20 (Exercise 12.12 [MU17]).

We improve the coupling in example 1.12.17: if an attempt is made to move v∈Xt∖Yt to a vertex w, then the same attempt is made with the matched vertex in the other chain; if, however, if an attempt is made to move v∈Xt∩Yt, we no longer attempt to make the same move.

  • •

    Assume there are sets S1=Γ+⁢(Xt∖Yt), and S2=Γ+⁢(Yt∖Xt), each of exactly Dt⁢(Δ+1) distinct vertices. Assume further that S1∩S2=∅. Suppose that we match up elements in S1 and S2 in a 1-to-1 fashion.

    Argue that the moves can be coupled that, when one chain attempts and fails to move v to a vertex in S1, it also attempts and fails to move v to the matching vertex in S2 on the other chain.

    Similarly, argue that the moves can be coupled that, when one chain attempts and succeeds in moving v to a vertex in S1, it also attempts and succeeds in moving v to the matching vertex in S2 on the other chain.

    Show that the coupling gives

    Pr⁡[Dt+1=Dt+1]≤k−Dtk⋅Dt⁢(Δ+1)n. (1.20)
  • •

    In the general case, S1 and S2 are not necessarily disjoint or of same size. Show that in the general case, by pairing up failing moves as much as possible, the number of choices for w that can increase Dt is max⁡(|S1|,|S2|)≤Dt⁢(Δ+1). Then argue that eq. 1.20 holds in all cases.

  • •

    Use this coupling to derive a polynomial bound on τ⁢(ε) that holds for any k≤n/(2⁢Δ+2).

Proof.

Consider in the optimal case, where S1 and S2 are Dt⁢(Δ+1) large, S1∩S2=∅, and M is the 1-to-1 mapping. Let M′ be the 1-to-1 mapping between Xt∖Yt and Yt∖Xt. The chain is coupled by sampling v←rXt and w←rV:

  • •

    If v∈Xt∖Yt, then let v′=M′⁢(v) for Yt; otherwise, let v′=v.

  • •

    If w∈S1, then let w′=M⁢(w) for Yt; if w∈S2, then let w′=M−1⁢(w) for Yt; otherwise, let w′=w.

Perform the move removing v for w on Xt and removing v′ for w′ on Yt.

When we want to remove v∈Xt∩Yt for chain Xt, the transition fails when w∈Γ+⁢(Xt∖{v}), hence the transitions for Xt fails when w∈S1=Γ+⁢(Xt∖Yt). Symmetrically, by the mapping M, if w′=M⁢(w)∈S2, transition for Yt fails.

Conversely, when v∈Xt∩Yt, for chain Xt, transition succeeds when w∈V∖Γ+⁢(Xt∖{v}), hence the transition for Xt succeeds when w∈S2. Symmetrically, by mapping M, if w′=M−1⁢(w)∈S1, transition for Yt succeeds.

In order for Dt+1=Dt+1, it must be at time t the vertex v chosen from Xt∩Yt, and w must be chosen from S2, or otherwise either w=w′, or w∈S1 fails to transition. Hence, by the same upper bound argument in example 1.12.17,

Pr⁡[Dt+1=Dt+1]≤|Xt∩Yt|k⋅|S2|n=k−Dtk⋅Dt⁢(Δ+1)n.

Moving on the general case. We reuse previous S1,S2,M′, and let M be the mapping between S1 and S2, such that S1∩S2 are mapped to itself, bijectively map elements between S1 and S2 as many as possible, and the remaining elements in the larger set map to itself.

In this way, if v∈Xt∩Yt, failing moves of moving v for w∈S1 in Xt and moving v for w′∈S2 in Yt are maximally paired. WLOG let S2 be the larger set, as the symmetric case can be analyzed in the same way.

  • •

    If w∈M⁢(S1∖S2), then the successful moves are also maximally paired.

  • •

    If w∈(S2∖S1)∖M⁢(S1∖S2), then w is mapped to itself because S2 is larger, only Xt transitions successfully.

  • •

    Otherwise, for w∈V∖(S1∪S2), then either both chains transition to same w, or neither chain transitions.

Dt increases only in the first 2 cases for at most max⁡(|S1|,|S2|)≤Dt⁢(Δ+1) elements. Hence eq. 1.20 holds by

Pr⁡[Dt+1=Dt+1]≤|Xt∩Yt|k⋅max⁡(|S1|,|S2|)n=k−Dtk⋅Dt⁢(Δ+1)n.

To decrease Dt, it has to be u∈Xt∖Yt moving to w∈V∖Γ+⁢(Xt∪Yt∖{u,u′}) in Xt. Continuing from example 1.12.17,

Pr⁡[Dt+1=Dt−1⁢∣Dt>⁢0]≥Dtk⋅n−(Δ+1)⁢(k+Dt−2)n.

By the same analysis,

𝔼[Dt+1∣Dt] =Dt+Pr⁡[Dt+1=Dt+1⁢∣Dt>⁢0]−Pr⁡[Dt+1=Dt−1⁢∣Dt>⁢0]
≤Dt+k−Dtk⋅Dt⁢(Δ+1)n−Dtk⋅n−(Δ+1)⁢(k+Dt−2)n
=Dt⁢(1−n−(Δ+1)⁢(2⁢k−2)k⁢n),

then by the same Markov inequality argument in example 1.12.17,

Pr⁡[Dt≥1] ≤𝔼[Dt]=𝔼[D0](1−n−(Δ+1)⁢(2⁢k−2)k⁢n)t
≤k⁢(1−n−(Δ+1)⁢(2⁢k−2)k⁢n)t
≤k⋅exp⁡(−t⋅n−(Δ+1)⁢(2⁢k−2)k⁢n),

which converges to 0 when k≤n/(2⁢Δ+2), and we have

τ⁢(ε)≤k⁢n⁢ln⁡(k/ε)n−(Δ+1)⁢(2⁢k−2).

∎

Remark 1.12.21.

The 1.12.20 is a finer analysis of example 1.12.17 derived from [BD97].

Exercise 1.12.22 (Exercise 12.14 [MU17]).

Consider the following variant of shuffling a deck of n cards: at each step, two cards are chosen independently and uniformly at random from the deck, and their positions are exchanged.

  • •

    Argue the following being equivalent: at each step, a specific card is chosen uniformly at random from the deck, and a position i←r[1,n] sampled independently. The ith card is exchanged with the specific chosen card.

  • •

    Consider the coupling where the two choices of card and position are the same for both copies of the chain. Let Xt be the number of cards whose positions differ in the two copies of the chain. Show Xt is nonincreasing,

    Pr⁡[Xt+1≤Xt−1⁢∣Xt>⁢0]≥(Xtn)2,

    and the expected time until Xt=0 is O⁢(n2), regardless of the initial states of the two chains.

Proof.

It suffices to show that, for a specific card, sampling i←r[1,n] and the ith card in the deck being this specific card has the same probability as choosing this card out of uniform randomness.

For every coupled move,

  • •

    If the chosen card is in the same position in both decks, then Xt+1=Xt.

  • •

    Otherwise, if the chosen card is in different positions in both decks,

    • –

      If the ith position cards are the same in both decks, then Xt+1=Xt.

    • –

      Otherwise, the coupled move at least introduces 1 correction, hence Xt+1≤Xt−1.

Therefore the coupled move makes Xt nonincreasing over time, and correction only happens in both the card chosen and the position chosen being in disagreeing section, hence

Pr⁡[Xt+1≤Xt−1⁢∣Xt>⁢0]≥(Xtn)2.

Conditioned on Xt=k, the steps to decrease Xt is geometrically distributed, with success probability (k/n)2. Let Yk be the steps to decrease from k differences, and Y=∑kYk be the steps before Xt=0,

𝔼[Y]≤∑k∈[1,n](nk)2=O⁢(n2),

which completes the proof. ∎

1.12.3 Variation Distance is Nonincreasing

Lemma 1.12.23 (Optimal Coupling Lemma).

Given distribution σX and σY on a state space S, let Z=(X,Y) be a random variable on S×S, where X is distributed according to σX and Y is distributed according to σY. Then

Pr⁡[X≠Y]≥d𝖳𝖵⁢(σX,σY).

Moreover, there exists a joint distribution Z=(X,Y), where X is distributed according to σX and Y is distributed according to σY, for which the equality holds.

Proof.

The proof idea of the first part is the same as lemma 1.12.11, where we replace 𝒟𝝅 with σY.

Alternatively, we can prove by

Pr⁡[X=x] =Pr⁡[X=x∧X=Y]+Pr⁡[X=x∧X≠Y]
=Pr⁡[Y=x∧X=Y]+Pr⁡[X=x∧X≠Y]
≤Pr⁡[Y=x]+Pr⁡[X=x∧X≠Y].

By symmetry, we have

Pr⁡[X=x]−Pr⁡[Y=x] ≤Pr⁡[X=x∧X≠Y],
Pr⁡[Y=x]−Pr⁡[X=x] ≤Pr⁡[Y=x∧X≠Y].

Let S+,S−⊆S be the sets, such that S−=S∖S+, ∀a∈S+, σX⁢(a)≥σY⁢(a), and ∀a∈S−, σX⁢(a)<σY⁢(a), then

2⁢d𝖳𝖵⁢(σX,σY) =(σX⁢(S+)−σY⁢(S+))+(σY⁢(S−)−σX⁢(S−))
≤∑a∈S+Pr⁡[X=a∧X≠Y]+∑a∈S−Pr⁡[Yt=a∧X≠Y]
≤Pr⁡[X≠Y]+Pr⁡[X≠Y].

Or alternatively, by corollary 1.12.4, for each a∈S, both X and Y are a with probability at most m⁢(a)

Pr⁡[X=Y=a]≤m⁢(a),

where the equality holds by matching X and Y as much as possible, hence we complete the proof by corollary 1.12.4,

Pr⁡[X=Y]≤m⁢(S)=1−d𝖳𝖵⁢(σX,σY).

The equality case follows by the construction matching X and Y as much as possible in the joint distribution. If m⁢(S)=1, the equality holds by X and Y are same distribution. Otherwise, let Z=(X,Y),

Pr⁡[X=x,Y=y]={m⁢(x)x=y,(σX⁢(x)−m⁢(x))⁢(σY⁢(y)−m⁢(y))1−m⁢(S)x≠y.

The equality holds by corollary 1.12.4,

Pr⁡[X≠Y]=1−m⁢(S)=d𝖳𝖵⁢(σX,σY).

The marginal distribution is preserved as follows: if m⁢(x)=σX⁢(x), then Pr⁡[X=x]=σX⁢(x); otherwise m⁢(x)=σY⁢(x),

Pr⁡[X=x]=m⁢(x)+σX⁢(x)−m⁢(x)1−m⁢(S)⁢∑y≠x(σY⁢(y)−m⁢(y))=m⁢(x)+σX⁢(x)−m⁢(x)=σX⁢(x).

The case for Y holds by symmetry. ∎

Corollary 1.12.24.

Let (Xt,Yt) be two copies of a Markov chain Mt on a state space S. For any initial states x,y∈S and any time t≥0, there exists a coupling of the two copies, such that

d𝖳𝖵⁢(pxt,pyt)=Pr⁡[Xt≠Yt].
Proof.

There exists a coupled pair of random variables (U,V) of marginal distributions pxt and pyt

Pr⁡[U≠V]=d𝖳𝖵⁢(pxt,pyt)

by lemma 1.12.23. We now extend this optimal coupling of the endpoints to a coupling of full trajectories.

First sample the endpoint pair (U,V). Conditioned on U=u, sample a path

X0,…,Xt−1,Xt

by the transition probability of Mt, conditioned on the events Xt=u and X0=x.

Similarly, conditioned on V=v, sample a path

Y0,…,Yt−1,Yt

conditioned on the events Yt=v and Y0=y.

For any path X0=x,…,Xt−1=xt−1,Xt=u, the conditional probability is

Pr⁡[X1=x1,…,Xt−1=xt−1∣X0=x,Xt=u]=1pxt⁢(u)⁢∏i∈[1,t]Pxi−1,xi.

Since pxt⁢(u)>0 by U having marginal distribution pxt, the conditional probability is well-defined.

By construction, the marginal distribution of (X0,…,Xt) is that of the chain Mt started from x, and the marginal distribution of (Y0,…,Yt) is that of the chain Mt started from y.

Moreover, since Xt=U and Yt=V, then

Pr⁡[U≠V]=Pr⁡[Xt≠Yt]=d𝖳𝖵⁢(pxt,pyt),

and we have constructed a coupling of two copies of the Markov chain reaching optimal coupling at time t. ∎

Lemma 1.12.25.

For any ergodic Markov chain, Δ⁢(T+1)≤Δ⁢(T).

Proof.

Keep in mind that Δx⁢(t) is a concrete deterministic value of variation distance between pxt and 𝒟𝝅. The proof idea is to couple optimally at time T, then show that Δx⁢(T+1) has a lower upper bound than Pr⁡[XT≠YT].

Fix an initial state x∈S. If we sample y←𝒟𝝅 for the initial state of pyT, then

Δx⁢(T)=d𝖳𝖵⁢(pxT,pyT).

By corollary 1.12.24, there exists a coupling for the chains such that they are optimally coupled at time T, we have

Pr⁡[XT≠YT]=Δx⁢(T).

Next, we couple the chains XT and YT by: if XT=YT, for all s≥T, Xs=Ys; otherwise, they transition independently. By the sticky step-by-step coupling, since {XT=YT}⊆{XT+1=YT+1},

Pr⁡[XT≠YT]≥Pr⁡[XT+1≠YT+1].

Hence, Δx⁢(T) is non-increasing by

Δx⁢(T)=Pr⁡[XT≠YT]≥Pr⁡[XT+1≠YT+1]≥Δx⁢(T+1),

where the last inequality holds by lemma 1.12.11. Since it holds for all x∈S, we have Δ⁢(T)≥Δ⁢(T+1). ∎

Exercise 1.12.26 (Exercise 12.13 [MU17]).

Consider a Markov chain with state space S and a stationary distribution 𝒟𝝅. For any nonnegative integer t define

Δ‾⁢(t)=maxx,y∈S⁡d𝖳𝖵⁢(pxt,pyt).
  • •

    For any positive s and t, show Δ‾⁢(s+t)≤Δ‾⁢(s)⋅Δ‾⁢(t).

  • •

    For any positive s and t, show Δ⁢(s+t)≤Δ⁢(s)⋅Δ‾⁢(t).

  • •

    For any positive t, show Δ⁢(t)≤Δ‾⁢(t)≤2⁢Δ⁢(t).

Proof.

Fix initial states (X0,Y0)=(x,y). By corollary 1.12.24, there exists a coupling for the chains such that they are optimally coupling at time t, then

Pr⁡[Xt≠Yt]=d𝖳𝖵⁢(pxt,pyt).

Consider any coupling for the chains in such a way that, whenever Xt=Yt, then Xt+i=Yt+i for all i≥1. Then

Pr⁡[Xt+s≠Yt+s] =Pr⁡[Xt+s≠Yt+s∣Xt≠Yt]⁢Pr⁡[Xt≠Yt]+Pr⁡[Xt+s≠Yt+s∣Xt=Yt]⁢Pr⁡[Xt=Yt]
=Pr⁡[Xt+s≠Yt+s∣Xt≠Yt]⁢Pr⁡[Xt≠Yt].

Conditioned on (Xt,Yt)=(x′,y′), again by corollary 1.12.24, there exists a coupling for the chains such that they are optimally coupling at time t+s, then

Pr⁡[Xt+s≠Yt+s∣Xt=x′,Yt=y′]=d𝖳𝖵⁢(px′s,py′s)≤maxx′≠y′∈S⁡d𝖳𝖵⁢(px′s,py′s)=Δ‾⁢(s), (1.21)

Hence,

Pr⁡[Xt+s≠Yt+s∣Xt≠Yt]≤Δ‾⁢(s). (1.22)

Therefore, we prove Δ‾⁢(t+s)≤Δ‾⁢(t)⋅Δ‾⁢(s) by showing the following holds for all initial states x and y,

d𝖳𝖵⁢(pxt+s,pyt+s)≤Pr⁡[Xt+s≠Yt+s]≤Δ‾⁢(s)⋅d𝖳𝖵⁢(pxt,pyt)≤Δ‾⁢(s)⋅Δ‾⁢(t).

Fix initial states (X0,Y0)=(x,y), where y←𝒟𝝅. Let (Xs,Ys) be optimally coupled at time s by corollary 1.12.24, then

Pr⁡[Xs≠Ys]=Δx⁢(s).

Continue with the same sticky coupling after time s. Conditioned on (Xs,Ys)=(x′,y′), by corollary 1.12.24, there exists an optimal coupling for the next t steps. Then, again by corollary 1.12.24,

Pr⁡[Xt+s≠Yt+s∣Xs≠Ys]≤Δ‾⁢(t)

by eq. 1.21 and eq. 1.22. Hence, Δ⁢(t+s)≤Δ⁢(s)⋅Δ‾⁢(t) holds by the same argument.

It is immediate from the triangle inequality that Δ‾⁢(t)≤2⁢Δ⁢(t). To see Δ⁢(t)≤Δ‾⁢(t), by theorem 1.7.13, for any t

𝒟𝝅⁢(a)=∑y∈S𝒟𝝅⁢(y)⋅pyt⁢(a),

then by lemma 1.12.2, let S+⊆S be the set of all elements in S such that pxt⁢(a)≥𝒟𝝅⁢(a), we have

Δ⁢(t) =pxt⁢(S+)−𝒟𝝅⁢(S+)
=pxt⁢(S+)−∑y∈S𝒟𝝅⁢(y)⋅pyt⁢(S+)=∑y∈S𝒟𝝅⁢(y)⋅(pxt⁢(S+)−pyt⁢(S+))
≤∑y∈S𝒟𝝅⁢(y)⋅d𝖳𝖵⁢(pxt,pyt)≤Δ‾⁢(t).

Alternatively, by definition 1.12.1,

Δ⁢(t) =12⁢∑a∈S|pxt⁢(a)−𝒟𝝅⁢(a)|
=12⁢∑a∈S|pxt⁢(a)−∑y∈S𝒟𝝅⁢(y)⋅pyt⁢(a)|=12⁢∑a∈S|∑y∈S𝒟𝝅⁢(y)⋅(pxt⁢(a)−pyt⁢(a))|
≤12⁢∑a∈S∑y∈S|𝒟𝝅⁢(y)⋅(pxt⁢(a)−pyt⁢(a))|=∑y∈S𝒟𝝅⁢(y)⋅12⁢∑a∈S|pxt⁢(a)−pyt⁢(a)|
=∑y∈S𝒟𝝅⁢(y)⋅d𝖳𝖵⁢(pxt,pyt)≤Δ‾⁢(t).

∎

Remark 1.12.27.

The lemma 1.12.25 and 1.12.26 121212 Quite a bit of the unsticking came from reading Daskalakis’s https://people.csail.mit.edu/costis/6896sp11/. are deriving from [Dob40], and well noted in [LP17].

Lemma 1.12.28.
d𝖳𝖵⁢(pxt+s,pyt+s)≤d𝖳𝖵⁢(pxt,pyt).
Proof.

Let A⊆S be all the elements a∈S such that pxt+s⁢(a)≥pyt+s⁢(a). By theorem 1.7.13, we have

d𝖳𝖵⁢(pxt+s,pyt+s)=pxt+s⁢(A)−pyt+s⁢(A)=∑c∈S(pxt⁢(c)−pyt⁢(c))⁢pcs⁢(A).

Let B⊆S be all the elements a∈S such that pxt⁢(a)≥pyt⁢(a), then

d𝖳𝖵⁢(pxt+s,pyt+s)≤∑c∈B(pxt⁢(c)−pyt⁢(c))⁢pcs⁢(A)≤pxt⁢(B)−pyt⁢(B)=d𝖳𝖵⁢(pxt,pyt),

where the second inequality holds by pcs⁢(A)≤1, and the last equality holds by lemma 1.12.2. ∎

1.12.4 Geometric Convergence

Theorem 1.12.29 (Geometric Convergence).

Let 𝐏 be the transition matrix for a finite, irreducible, aperiodic Markov chain, mj be the smallest entry in the jth column of 𝐏, and m=∑jmj. Then, for all x∈S and t,

Δx⁢(t)=d𝖳𝖵⁢(pxt,𝒟𝝅)≤(1−m)t.
Proof.

Given mj is the smallest entry in the jth column, then in one step the chain reaches state j with probability at least mj from every state. Consider a coupling similar to the Optimal Coupling lemma 1.12.23, such that the two copies of the chain both move to state j with probability mj. Since ∑jPi,j=1, then m≤1.

Concretely, a possible construction for m<1 follows

Pr⁡[Xt+1=x,Yt+1=y∣Xt=x′,Yt=y′]={mxx=y,(Px′,x−mx)⁢(Py′,y−my)1−mx≠y.

The chains couple with probability m at a step, and the probability they haven’t coupled after t steps is (1−m)t. By lemma 1.12.11, Δx⁢(t)≤Pr⁡[Xt≠Yt]=(1−m)t. ∎

A side product for theorem 1.12.29 is the following corollary.

Corollary 1.12.30.

If m=1 in theorem 1.12.29, then all rows in 𝐏 are identical, and pxt=𝒟𝛑 for all x and t≥1.

Proof.

Since mj is the smallest entry in the jth column, then for each column, there is no Pi,j that is smaller than mj.

On the other hand, by m=∑jmj=1 and ∑jPi,j=1 for any i, there is no mj that is smaller than Pi,j.

Therefore, any mj=Pi,j for all i, which proves all rows in 𝐏 are identical.

Moreover, when mj=p, then by the cutset, the outflowing probability is (1−p)⁢πj, while inflowing probability is (1−πj)⁢p, and we have πj=p. Since any state reaches state j with probability Pi,j=mj=p, this applies to any target state j∈S, and hence reaching stationarity is only 1 step. ∎

Theorem 1.12.31 (Frobenius’s Coin Problem).

Given m,n∈ℤ+ with gcd⁡(m,n)=1, every integer k>m⁢n−m−n can be represented by a⁢m+b⁢n where a,b∈ℕ.

Proof.

We first show that m⁢n−m−n cannot be represented by a⁢m+b⁢n where a,b∈ℕ. Suppose there are a,b∈ℕ+, such that m⁢n−m−n=a⁢m+b⁢n, then

(a+1)⁢m=(m−1−b)⁢n. (1.23)

But we notice that m⁢n−m−n<m⁢n, then a<n and b<m. Since m and n are coprime, then there is no a and b such that a+1≤n, m>m−1−b≥0, and eq. 1.23 is satisfied.

We now show for every k>m⁢n−m−n, there is a non-negative linear combination representation a⁢m+b⁢n. 131313 The idea derives from https://math.stackexchange.com/a/66978/794321. Since m and n are coprime, then {c⁢n}c∈[0,m−1] represents different residue classes modulo m, and (m−1)⁢n is the first element among the linear representation a⁢m+b⁢n that

(m−1)⁢n≡−n(modm).

Hence, for any q≢−n(modm), there always exists b∈[0,m−2] such that b⁢n≡q(modm), and b⁢n<(m−1)⁢n. Moreover, the elements d∈[(m−1)⁢n−m+1,(m−1)⁢n−1] lie in distinct residue classes, so for each d, there is always b⁢n≡d(modm). Since d<(m−1)⁢n, then each d=a⁢m+b⁢n for some a.

Since every d∈[(m−1)⁢n−m+1,(m−1)⁢n] is representable, and adding m preserves representability, any integer k>m⁢n−m−n is representable. ∎

Exercise 1.12.32 (Exercise 12.6 [MU17]).

The theorem 1.12.29 is useful only if there exists at least one column j in the transition matrix with mj>0. Argue that for any finite, aperiodic, irreducible Markov chain, there exists a time T such that every entry of 𝐏T is nonzero.

Proof.

Since the chain is aperiodic, then for any state j, there are 2 paths back to itself of length ℓj0 and ℓj1, such that

gcd⁡(ℓj0,ℓj1)=1.

By theorem 1.12.31, let tj=(ℓj0−1)⁢(ℓj1−1), then there always exist loops starting and ending in j of any length ℓ≥tj.

Since the chain is irreducible, then all states are in the same communicating class, such that for any pair of i≠j, there is a time ti,j such that i reaches j, and Pi,jti,j>0.

Given the threshold tj for self looping path length and ti,j for i to reach j, then there must exist a time

T>maxi,j⁡(ti,j+tj),

such that all entries in 𝐏T are positive. ∎

A more general result than theorem 1.12.29 is the following: suppose we upper-bound τ⁢(c) for some constant c≤1/2, then we can bootstrap a bound for τ⁢(ε) for any ε>0.

Theorem 1.12.33.

Let Mt be a finite, irreducible, aperiodic Markov chain with τ⁢(c)≤T for some c≤1/2, then for Mt,

τ⁢(ε)≤⌈ln⁡εln⁡(2⁢c)⌉⁢T.
Proof.

The proving strategy is similar to 1.12.26. Since for all initial states x∈S, we have

Δx⁢(T)=d𝖳𝖵⁢(pxT,𝒟𝝅)≤c,

then by the triangle inequality, d𝖳𝖵⁢(pxT,pyT)≤2⁢c for all x,y∈S, and hence Δ‾⁢(T)≤2⁢c.

Therefore, on a pair of initial states x,y, we couple the copies of Mt such that (XT,YT) are optimally coupled by

Pr⁡[XT≠YT]=d𝖳𝖵⁢(pxT,pyT)

from lemma 1.12.23.

Then we couple the chains such that: if XT=YT, they stay together onwards; otherwise, (X2⁢T,Y2⁢T) are optimally coupled conditioned that (XT,YT)=(x′,y′) by

Pr⁡[X2⁢T≠Y2⁢T∣XT=x′,YT=y′]=d𝖳𝖵⁢(px′T,py′T).

By induction, we have

Pr⁡[Xk⁢T≠Yk⁢T∣X0=x,Y0=y]≤(2⁢c)k,

then Δx⁢(k⁢T)≤(2⁢c)k for all x∈S by lemma 1.12.10. If (2⁢c)k=ε, then

k≤⌈ln⁡εln⁡(2⁢c)⌉,

and we have τ⁢(ε)≤k⁢T by lemma 1.12.10. ∎

1.12.5 Application in Approximately Sampling Proper Colorings

We now present a Markov chain Monte Carlo (MCMC) process that generates an almost uniformly at random sample of a proper coloring of a graph, then use a coupling technique to show that it is rapidly mixing.

The Markov chain on proper coloring works as follows: At each step, choose a vertex v and a color ℓ uniformly at random. Recolor vertex v with color ℓ if the new coloring is proper, that v is not neighboring a vertex colored ℓ, or otherwise let the state of the chain be unchanged.

The Markov chain is aperiodic, as there exists loop of length 1 back to itself; and it is irreducible if c≥Δ+2, as recoloring in any order can be unblocked by recoloring a later unrecolored neighbor to an unconflicting color: the degree of the graph is at most Δ, then |Γ+⁢(v)|≤Δ+1 for every vertex, such that the recoloring is always unblocked. Therefore, the Markov chain is ergodic and has stationary distribution being uniform distribution.

When c≥4⁢Δ+1, we can use a trivial coupling for (Xt,Yt) by choosing the same vertex and color at each step, allowing us to almost uniformly sample colorings efficiently.

Theorem 1.12.34.

For an n-vertex graph with maximum degree Δ, the mixing time of the graph-coloring Markov chain satisfies

τ⁢(ε)≤⌈n⁢cc−4⁢Δ⁢ln⁡(nε)⌉,

provided that c≥4⁢Δ+1.

Proof.

The proof strategy is similar to example 1.12.17. Fix initial states x,y be distinct c-colorings. Let Dt be the set of vertices with different colors in the two chains at time t, and let dt=|Dt|.

Consider any vertex v∈Dt, but colored same after a move. There are at least c−2⁢Δ colors that have not appeared on the at most 2⁢Δ neighbors among 2 chains, then

Pr⁡[dt+1=dt−1⁢∣dt>⁢0]≥dtn⋅c−2⁢Δc.

Consider any vertex v∈V∖Dt, but colored differently after a move. It has to be the case that the move succeeded in one chain, but not the other. Moreover, v must have at least one neighbor in Dt, such that the move’s color may work in one chain, but not the other. Hence, for every w∈Dt, it can affect at most Δ neighbors with 2 colors, and

Pr⁡[dt+1=dt+1⁢∣dt>⁢0]≤Δ⁢dtn⋅2c.

By the linearity of expectation,

𝔼[dt+1∣dt]≤dt+Δ⁢dtn⋅2c−dtn⋅c−2⁢Δc=dt⋅(1−c−4⁢Δn⁢c),

then by the Markov inequality argument,

Pr⁡[dt≥1]≤𝔼[dt]≤𝔼[d0]⋅(1−c−4⁢Δn⁢c)t≤n⁢(1−c−4⁢Δn⁢c)t≤n⁢exp⁡(−c−4⁢Δn⁢c⋅t).

The proof is immediate by lemma 1.12.10. ∎

We then show how to improve the coupling to reduce the number of colors necessary to 2⁢Δ+1. On one hand, for v∈Dt, if some neighboring vertices are same colored in both chains, then the color options should be much greater than c−2⁢Δ. On the other hand, for v∈V∖Dt, we can decrease the number of bad moves of increasing differences by a careful coupling.

Theorem 1.12.35.

For an n-vertex graph with maximum degree Δ, the mixing time of the graph-coloring Markov chain satisfies

τ⁢(ε)≤⌈n⁢cc−2⁢Δ⁢ln⁡(nε)⌉,

provided that c≥2⁢Δ+1.

Proof.

The proof strategy is similar to 1.12.20.

We reuse all notions in theorem 1.12.34, and let At=V∖Dt be the set of vertices that are colored same in both chains. For v∈At, d′⁢(v)=|Γ⁢(v)∩Dt|, that is the number of neighboring vertices colored differently in both chains; for w∈Dt, d′⁢(w)=|Γ⁢(w)∩At|, that is the number of neighboring vertices colored same in both chains.

Hence, we explore the invariant that

m=∑v∈Atd′⁢(v)=∑w∈Dtd′⁢(w),

which can be viewed as the number of edges between vertices in Dt and vertices in At.

For v∈Dt, a move on v sends v to At+1 if both chains recolor v to the same valid color. Taking into account the neighbors of v that are colored the same in both chains, the forbidden color options for v have union size at most 2⁢Δ−d′⁢(v), since those d′⁢(v) neighbors are double-counted. Therefore,

Pr⁡[dt+1=dt−1⁢∣dt>⁢0]≥1n⁢∑v∈Dtc−2⁢Δ+d′⁢(v)c=1n⋅dt⁢(c−2⁢Δ)+mc.

For w∈At, but colored distinctly after move by w∈Dt+1, consider the coupling in a similar way in 1.12.20.

Suppose in the particular case where d′⁢(w)=1, then instead of assigning w the same color and causing 2 potential bad moves, on c1 and c2 being the disagreeing colors of neighbor v of w, if w is assigned one of the two colors in Xt, assign the other color to w in Yt. In this case, 2 bad moves are halved down to 1, as either they both fail, or they both move through and cause 1 more difference.

Moving to the general case. Let S1⁢(w) be the colors of neighboring vertices of w over Xt that are in Dt, and S2⁢(w) be the colors of neighboring vertices of w over Yt that are in Dt. Using the same strategy in 1.12.20, we pair the distinct colors between S1⁢(w) and S2⁢(w) as much as possible: if c1∈S1⁢(w) is chosen for one chain, c2∈S2⁢(w) is chosen for the other; otherwise they are mapped to the same color. In this way, the bad moves are reduced down to max⁡(|S1⁢(w)|,|S2⁢(w)|)≤d′⁢(w). As a result, we have

Pr⁡[dt+1=dt+1⁢∣dt>⁢0]≤1n⁢∑w∈Atd′⁢(w)c=mc⁢n.

By the linearity of expectation,

𝔼[dt+1∣dt]≤dt+mc⁢n−1n⋅dt⁢(c−2⁢Δ)+mc=dt⋅(1−c−2⁢Δn⁢c),

then by the Markov inequality argument,

Pr⁡[dt≥1]≤𝔼[dt]≤𝔼[d0]⋅(1−c−2⁢Δn⁢c)t≤n⋅exp⁡(−c−2⁢Δn⁢c⋅t).

The proof is immediate by lemma 1.12.10. ∎

Remark 1.12.36.

By definition 1.12.6, the theorem 1.12.34 and theorem 1.12.35 are rapidly mixing.

Remark 1.12.37.

The theorem 1.12.34 and theorem 1.12.35 are from [Jer95].

1.12.6 Path Coupling

The motivation of using “path coupling” is that, it starts with coupling between pairs of states differ in small ways, then generalize to arbitrary pairs of states. It may be easier to construct coupling of adjacent states, and any pairs of states can be connected with a path, then we couple all pairs of states along the path, such that the expected distance contracts at each step; by summing along the path, this implies contraction for any pairs of states.

Similar to example 1.12.17, 1.12.20, theorem 1.12.34, and theorem 1.12.35, we conclude by utilizing the expected-distance bound for bounding disagreement probability via a Markov inequality argument, hence bounding the mixing-time with lemma 1.12.10. Eventually, this makes coupling argument easier to be established.

Example 1.12.38 (Markov Chain for Independent Sets).

Consider a Markov chain for sampling independent sets over a graph with Δ≤4. Let Xt be the independent set at time t. At a step, the chain samples (u,v)←rE, and

  • •

    With probability 1/3, Xt+1=Xt∖{u,v}.

  • •

    With probability 1/3, let Y=Xt∖{u}∪{v}. If Y is an independent set, Xt+1=Y; otherwise, Xt+1=Xt.

  • •

    With probability 1/3, let Y=Xt∖{v}∪{u}. If Y is an independent set, Xt+1=Y; otherwise, Xt+1=Xt.

Similar to 1.12.16, the stationary distribution of Xt is uniform over all independent sets: By the cutset theorem 1.7.56, the total probability of adjacent states transitioning to the current state is the same as the total probability that the current state transitioning to adjacent states. Since Pa,b=(3⁢|E|)−1 for any pair of adjacent states (a,b), then uniform distribution is a trivial solution.

We start by coupling a pair of states (Xt,Yt) that differ by just one vertex, and this coupling can be extended to all pairs of states. Let Zt=(Xt∖Yt)∪(Yt∖Xt), and we say a vertex v is bad if v∈Z; otherwise v is good. Let dt=|Zt|, then dt is the random variable counting bad vertices.

We continue by assuming dt=1, and WLOG let Xt=I, Yt=I∪{x}. We apply a simple coupling by performing the same move on both chains, and show 𝔼[dt+1∣dt]≤dt when dt=1, or equivalently, 𝔼[dt+1−dt∣dt=1]≤0.

Since a change in dt is caused only by a move involving x or the neighbors of x, we restrict our attention to the edges sampled adjacent to x, neighbors of x, or neighbors of neighbors of x 141414 Self noting: need to consider the case where an edge is chosen with one end in I, and the other is a neighbor of x. . Let δz be a random variable over {−1,1} for a vertex z between time t and t+1: δz=1 when z goes from good to bad, and δz=−1 when z goes from bad to good. By linearity of expectation,

𝔼[dt+1−dt∣dt=1]=𝔼[∑w∈Γ+⁢(Γ+⁢(x))δw|dt=1]=∑w∈Γ+⁢(Γ+⁢(x))𝔼[δw∣dt=1].

We shall show that when Δ≤4, 𝔼[δw∣dt=1]≤0. For each vertex y∈Γ⁢(x):

  • •

    If |Γ⁢(y)∩I|≥2, only moves on edge (x,y) changes dt+1−dt, either removing y and adding x, or removing {x,y}.

    With probability 2⋅(3⁢|E|)−1, if the (x,y) edge is chosen, then di+1−di decreases by 1.

  • •

    If |Γ⁢(y)∩I|=0, for moves on edges with y,

    • –

      For increasing dt+1−dt, for w∈Γ⁢(y)∖{x}, removing w and adding x works on Xt but fails on Yt.

      Since |Γ⁢(y)∖{x}|≤3 by Δ≤4, by union bound, dt+1−dt increases with probability at most 3⋅(3⁢|E|)−1=|E|−1.

    • –

      For decreasing dt+1−dt, any option among 3 possible moves on (x,y) decreases bad vertices.

      With probability |E|−1, if the (x,y) edge is chosen, then dt+1−dt decreases by 1.

    Hence, for moves on edges with y, 𝔼[dt+1−dt∣dt=1]≤0.

  • •

    If |Γ⁢(y)∩I|=1, and let z∈I∩Γ⁢(y), for moves on edges with y,

    • –

      For increasing dt+1−dt, removing z and adding y works on Xt but not Yt.

      With probability (3⁢|E|)−1, dt+1−dt increases by 2 if (y,z) edge is chosen and removes z and adds y.

    • –

      For decreasing dt+1−dt, both adding x and removing y, and removing {x,y} works.

      With probability 2⋅(3⁢|E|)−1, if the (x,y) edge is chosen, then dt+1−dt decreases by 1.

    Hence, for move on edge with y, 𝔼[dt+1−dt∣dt=1]=0.

Since for every pair of edge, we have

∑w∈Γ+⁢(Γ+⁢(x))𝔼[δw∣dt=1,move on edge ⁢(a,b)]≤0,

as was shown in the previous discussion of y∈Γ⁢(x), then

𝔼[dt+1−dt∣dt=1] =∑w∈Γ+⁢(Γ+⁢(x))𝔼[δw∣dt=1]
=1|E|⁢∑w∈Γ+⁢(Γ+⁢(x))∑(a,b)∈E𝔼[δw∣dt=1,move on edge ⁢(a,b)]
=1|E|⁢∑(a,b)∈E∑w∈Γ+⁢(Γ+⁢(x))𝔼[δw∣dt=1,move on edge ⁢(a,b)]≤0.

We now generalize the coupling for dt>1 case. To couple (Xt,Yt) where dt>1, we create a chain of states

Z0=Xt,…,Zdt=Yt,

where neighboring pair of states (Zi−1,Zi) has |Zi−1∖Zi|+|Zi∖Zi−1|=1, that each successive Zi is obtained from Zi−1 by either removing an element in Xt∖Yt or adding an element in Yt∖Xt.

Our coupling arises as follows. When a move is made in Z0=Xt, the coupling for dt=1 case gives a move for the state Z1. This move in Z1 can similarly be coupled with a move in state Z2, and so on, until the move in Zdt−1 yields a move for Zdt=Yt. Let Zi′ be the state after the move is made from state Zi, and define

Δ⁢(Zi−1′,Zi′)=|Zi−1′∖Zi′|+|Zi′∖Zi−1′|.

Since 𝔼[di+1−di∣di=1]≤0, then

𝔼[Δ⁢(Zi−1′,Zi′)]≤1.

Moreover, note that (Z0′,Zdt′)=(Xt+1,Yt+1), then by the triangle inequality for sets

(A∖C)∪(C∖A)⊆(A∖B)∪(B∖C)∪(B∖A)∪(C∖B),

as for any element a∈A∖C, either a∈B, then a∈B∖C; or a∉B, then a∈A∖B. Then

Δ⁢(Z0′,Zdt′)=|Z0′∖Zdt′|+|Zdt′∖Z0′|≤∑i∈[1,dt]|Zi−1′∖Zi′|+∑i∈[1,dt]|Zi′∖Zi−1′|,

and by linearity of expectation,

𝔼[dt+1∣dt]=𝔼[Δ⁢(Z0′,Zdt′)]≤∑i∈[1,dt]𝔼[Δ⁢(Zi−1′,Zi′)]≤dt,

and eventually

𝔼[dt+1]=𝔼[𝔼[dt+1∣dt]]≤𝔼[dt].

Suppose 𝔼[dt+1∣dt]≤β⁢dt for β<1, the rest is taken over by lemma 1.12.10, given a sufficient number of steps and a Markov inequality argument.

Remark 1.12.39.

The example 1.12.38 derives from [BD97].

The example 1.12.38 illustrates the philosophy of path coupling: global distance is controlled by understanding local disagreements. Rather than constructing a coupling for arbitrary pairs of states, we first choose a pre-metric on the state space, whose edges represent elementary discrepancies between configurations.

In example 1.12.38, the natural choice is to connect two states when they differ at a vertex, so that the induced path metric is Hamming distance. Once such a pre-metric is fixed, any pair of states can be joined by a shortest path of discrepancies, and contraction on adjacent pairs propagates to contraction for all pairs. Thus the pre-metric is the structure that makes the path-coupling argument possible: it identifies the right local geometry of the state space.

Definition 1.12.40 (Pre-Metric).

A pre-metric on Ω is a positively-weighted connected undirected graph such that all edges are shortest paths. More specifically, if (x,y) are adjacent in the pre-metric, the weight of the edge should be the least weight of any path from x to y in the pre-metric.

Theorem 1.12.41 (Path Coupling Theorem [BD97]).

Suppose there exists a coupling defined for all adjacent pair of states in the pre-metric such that for all adjacent (X,Y),

𝔼[d⁢(X′,Y′)∣X,Y]≤(1−α)⁢d⁢(X,Y),

where d is the shortest path metric, then this coupling can be extended to a coupling between all pair of states that also satisfy the contraction inequality.

Exercise 1.12.42 (Exercise 12.7 [MU17]).

Continuing from example 1.12.38, we have shown there is β<1 such that

𝔼[dt+1∣dt]≤β⁢dt.

Let d∗ be the maximum distance over all possible pairs of initial states for the coupling.

  • •

    Give an upper bound for τ⁢(ε) in terms of β and d∗.

  • •

    Suppose we have 𝔼[dt+1∣dt]≤dt, dt+1∈[dt−1,dt+1], and Pr⁡[dt≠dt+1]≥γ.

    Give an upper bound for τ⁢(ε) in terms of β, d∗, and γ.

  • •

    Show the mixing time of the graph coloring chain in theorem 1.12.34 and theorem 1.12.35, is 𝗉𝗈𝗅𝗒⁢(|V|,ln⁡(1/ε)), even when the number of colors is only 2⁢Δ.

  • •

    Show the mixing time of the Markov chain for independent sets in example 1.12.38 is 𝗉𝗈𝗅𝗒⁢(|V|,ln⁡(1/ε)).

Proof.

Suppose we have the β<1, that 𝔼[dt+1∣dt]≤β⁢dt, then

𝔼[dt+1]=𝔼[𝔼[dt+1∣dt]]≤β⋅𝔼[dt].

Since d∗ is the maximum distance over all possible pairs of states for the coupling, then

𝔼[dt]≤βt⋅d∗.

By the same Markov inequality argument, we have

Pr⁡[dt≥1]≤𝔼[dt]≤βt⋅d∗.

Supposing ε=βt⋅d∗, then

τ⁢(ε)≤⌈ln⁡ε−ln⁡d∗ln⁡β⌉.

If Pr⁡[dt+1≠dt]≥γ, then let p++p−=Pr⁡[dt+1≠dt], where p+=Pr⁡[dt+1=dt+1], and p−=Pr⁡[dt+1=dt−1]. Consider dt as a Markov chain for random walking over [0,d∗], where d0=d∗, state 0 is the absorbing state, and the transition probability from state d∗ to state d∗−1 is p++p−=Pr⁡[dt+1≠dt]. Let hi,0 be the expected number of steps to be absorbed in 0, then we have the following linear system

(p++p−)⁢h1,0 =1+p+⁢h2,0+p−⁢h0,0
(p++p−)⁢h2,0 =1+p+⁢h3,0+p−⁢h1,0
…
(p++p−)⁢hd∗−1,0 =1+p+⁢hd∗,0+p−⁢hd∗−2,0
(p++p−)⁢hd∗,0 =1+p+⁢hd∗−1,0+p−⁢hd∗−1,0,

where h0,0=0.

The chain is lazy, as it stays put with probability at most 1−γ. We continue by deriving the expected number of active moves. Let q=Pr⁡[di+1≠di], then conditioned that a move is made,

q+ =Pr⁡[di+1=di+1∣di+1≠di]=p+/q
q− =Pr⁡[di+1=di−1∣di+1≠di]=p−/q,

and let gi,0 be the expected number of active moves, then

g1,0 =1+q+⁢g2,0+q−⁢g0,0
g2,0 =1+q+⁢g3,0+q−⁢g1,0
…
gd∗−1,0 =1+q+⁢gd∗,0+q−⁢gd∗−2,0
gd∗,0 =1+gd∗−1,0,

where g0,0=h0,0=0. Since q++q−=1, and q−≥1/2, then consider a Markov chain with q+=q−=1/2, and

gi,0=(2⁢d∗−i)⁢i,

and therefore gd∗,0=(d∗)2. Since q−≥1/2, the real gd∗,0≤(d∗)2.

Since Pr⁡[dt+1≠dt]≥γ, then the expected wait time before an active move is at most γ−1, and therefore

hd∗,0≤γ−1⁢(d∗)2.

Hence, when L=⌈2⁢γ−1⁢(d∗)2⌉, let T be the random variable for the steps before being absorbed, by Markov inequality

Pr⁡[T≥L]≤𝔼[T]L≤12.

Similar to 1.12.19, by the Markov property, Pr⁡[T≥k⁢L]≤2−k. Then when ε=2−k,

τ⁢(ε)≤⌈log⁡1ε⌉⁢L. (1.24)

For path coupling in the Markov chain sampling graph coloring, we first show a pre-metric over all valid coloring, such that any valid pair of adjacent valid coloring differ at the color of a single vertex. Supposing that X0 and Y0 are disagreeing only at v, let c1 and c2 be the colors of v at X0 and Y0, and apply the prior coupling in theorem 1.12.35: if we change w∈Γ⁢(v) in Xt to one of the colors in {c1,c2}, we change w in Yt to the other color; otherwise, apply the same move on both chains.

One thing to beware is, in theorem 1.12.34 and theorem 1.12.35, the distance function dt is measuring the number of disagreeing vertices, while the current dt is measuring the minimal number of steps to transition from one valid coloring to the other, as the pre-metric is defined on Ω of valid colorings. Therefore, after a bad move in the coupling, where v is c1, w is c2 in Xt, while v is c2, w is c1 in Yt, the dt is 3 rather than 2 151515 Self noting: check Daskalakis’s slides https://people.csail.mit.edu/costis/6896sp11/lec7s.pdf. .

We continue bounding 𝔼[dt+1∣dt=1]. Since v can be corrected with at least c−Δ colors, then

Pr⁡[dt+1=dt−1∣dt=1]≥1n⋅c−Δc.

On the other hand, a bad move happens only on Γ⁢(v) with 1 color configuration on both chains, hence

Pr⁡[dt+1=dt+2∣dt=1]≤Δn⋅1c.

Therefore,

𝔼[dt+1∣dt=1]≤1+2⋅Δn⋅1c−1n⋅c−Δc=1−c−3⁢Δn⁢c=β.

Now let the maximal distance be d∗, and construct a path joined by adjacent valid states over Ω with the pre-metric by Z0=Xt and Zdt=Yt. When a move is made on Zi, the move from coupling is made on Zi+1, and let Zi′ be the state after the move is made on state Zi. By linearity of expectation,

𝔼[dt+1∣dt]=𝔼[Δ⁢(Z0′,Zdt′)]≤∑i∈[1,dt]𝔼[Δ⁢(Zi−1′,Zi′)]≤dt⋅β,

where Δ⁢(Zi−1′,Zi′) is defined as the distance between Zi−1′ and Zi′ in the pre-metric, and finally,

𝔼[dt]=𝔼[𝔼[dt∣dt−1]]≤𝔼[dt−1]⋅β≤d∗⋅βt,

which gives a similar result to theorem 1.12.34 and theorem 1.12.35 but c≥3⁢Δ+1.

Now we use Hamming distance as pre-metric: the states along the path are not all valid states, yet it still serves as a path coupling. Let Ω~ be the set for all possible coloring states, and Ω⊆Ω~, then any adjacent states (X0,Y0) are still differing at the color of a vertex, but they are not necessarily valid states.

A move is made by choosing a vertex v and a color c, if c is not appearing in the neighboring Γ⁢(v). One observation is, if X0∈Ω, then the chain stays in Ω; otherwise, the chain will turn into Ω at some time step, and it will stay in Ω. Hence, coupling any pair of (X0,Y0)∈Ω2 over the enlarged state space Ω~ still preserves the marginal probabilities, while the path may pass through Ω~∖Ω does not hurt the argument, because the path is only used to define the metric for the path coupling theorem.

Applying the same coupling in theorem 1.12.35, conditioned that (X0,Y0) are adjacent in the Hamming metric, then on the bad move, dt increases by 1. Therefore, with the same probability bounds on distance changing,

𝔼[dt+1∣dt=1]≤1−c−2⁢Δn⁢c=β,

and by the same path coupling argument, 𝔼[dt]≤𝔼[dt−1]⋅β gives the same result as theorem 1.12.35 for c≥2⁢Δ+1.

For c=2⁢Δ, 𝔼[dt+1∣dt]≤dt. We can loosely lower bound by

Pr⁡[dt+1≠dt]≥γ=(n⁢c)−1,

as there is at least 1 move fixing a disagreeing vertex, then the eq. 1.24 is 𝗉𝗈𝗅𝗒⁢(|V|=n,log⁡(1/ε)).

For independent set sampling in example 1.12.38, we can also loosely lower bound by

Pr⁡[dt+1≠dt]≥γ=(3⁢n)−1,

as a disagreeing vertex v can be removed by choosing an edge (u,v), and removing {u,v}. By eq. 1.24, the mixing time bound is 𝗉𝗈𝗅𝗒⁢(|V|=n,log⁡(1/ε)). ∎

Exercise 1.12.43 (Exercise 12.16 [MU17]).

Consider the Markov chain sampling independent set in a graph G=(V,E). On a step, sample v←rV and b←r{0,1}. If v∈Xt, Xt+1=Xt∖{v} on b=1, if v∉Xt and Xt∪{v} is independent, Xt+1=Xt∪{v} on b=0; otherwise, Xt+1=Xt.

  • •

    Show that the stationary distribution of the chain is uniform over all independent sets.

  • •

    Consider the chain over cycles and line graphs, where a line graph over n vertices is constructed by connecting vertex 1,…,n with an edge, and a cycle graph is the same with an addition of an additional edge (1,n).

    Devise a coupling (Xt,Yt) for the Markov chain on line graphs and cycle graphs: if dt=|Xt∖Yt|+|Yt∖Xt|, then at each step the coupling is at least as likely to reduce dt as to increase dt. Show that it is rapidly mixing.

  • •

    For the cases of line graphs and cycle graphs, derive the exact formulas for the number of independent sets.

Proof.

The stationary argument is similar to the one in example 1.12.38: for any pair of adjacent state of independent sets, which are differing by a vertex, the transition probability Pa,b=(2⁢n)−1, then uniform distribution is a trivial solution for stationary distribution.

We use Hamming metric as the pre-metric: though we use the enlarged state space Ω~ of all subsets of V, for the initial states (X0,Y0)∈Ω2, the coupling Markov chains still preserve their marginal probabilities, hence the coupling is still valid. This follows the same argument in 1.12.42. Now consider the same coupling by taking on same sampled v and b on both (Xt,Yt) chains, where (Xt,Yt) are adjacent states. WLOG let w be the disagreeing vertex, Xt=I, and Yt=I∪{w}. We are interested in v∈Γ+⁢(w), as v∈V∖Γ+⁢(w) does not change dt.

  • •

    If v=w, any b decreases the difference, and 𝔼[dt+1−dt∣dt=1,v=w]=−1.

  • •

    If v∈Γ⁢(w), then by Δ≤2, we know |Γ⁢(v)∩I|≤1.

    • –

      If |Γ⁢(v)∩I|=0, then the distance is unchanged when b=1, and the distance increases by 1 when b=0.

      Hence, conditioned that v∈Γ⁢(w) and |Γ⁢(v)∩I|=0, 𝔼[dt+1−dt∣dt=1]=1/2.

    • –

      If |Γ⁢(v)∩I|=1, then no operation changes dt.

      Conditioned that v∈Γ⁢(w) and |Γ⁢(v)∩I|=1, 𝔼[dt+1−dt∣dt=1]=0.

Moreover, since Δ≤2, then |Γ⁢(w)|≤2. Let X be the random variable for the vertex to choose, then Pr⁡[X=v]=n−1. By linearity of expectation,

𝔼[dt+1−dt∣dt=1]=𝔼[𝔼[dt+1−dt∣dt=1,X]]≤0.

With the same trick from 1.12.42, we loosely lower bound by Pr⁡[dt+1≠dt]≥(2⁢n)−1=γ, as there is a choice out of 2⁢n choices to fix the disagreement at w, then eq. 1.24 is 𝗉𝗈𝗅𝗒⁢(|V|=n,log⁡(1/ε)).

For the number of independent sets in line graphs and cycle graphs, this is basically dynamic programming. Let Li be the number of independent sets of line graph with i vertices. By including the first vertex or not, we have

Li=Li−1+Li−2.

Let Ci be the number of independent sets of cycle graph with i vertices. If the first vertex is not chosen, then there are Li−1 independent sets, while if the first vertex is chosen, then there are Li−3 independent sets, hence

Ci=Li−1+Li−3.

∎

Exercise 1.12.44 (Exercise 12.18 [MU17]).

Use path coupling to simplify example 1.12.17 and 1.12.20.

Proof.

We enhance the result in 1.12.16, by showing that the Markov chain over fixed size independent sets of size k≤n/(2⁢Δ+2) is ergodic. Let I=Xt∩Yt, At=Xt∖I, and Bt=Yt∖I. Consider following 2 easier corner case:

  • •

    If |Bt|=|Bt∖Γ⁢(At)|, then Bt∩Γ⁢(Xt)=∅, and the transition takes |At|=|Bt| steps by moving from At to Bt.

  • •

    If |Bt|=|Bt∩Γ⁢(At)|, since |At|≤|Xt|≤k, then |V∖Γ+⁢(Xt)|≥n/2, and Bt can move to V∖Γ+⁢(Xt).

    The transition can take 2⁢|At| steps by moving At to an independent set in V∖Γ+⁢(Xt), then moving back into Bt.

In general case, Xt can be broken into 3 parts: I, At∩Γ⁢(Bt), and At∖Γ⁢(Bt). Since |At|≤k and |V∖Γ+⁢(Xt)|≥n/2, then there exists a way to move At to V∖Γ+⁢(Xt) in |At| steps, such that Bt∖Γ⁢(At) are all occupied. The remaining steps are transitioning occupied vertices back into Bt∖Γ⁢(At).

The uniform distribution being stationary distribution argument is immediate by the cutset, that the neighboring pair of independent sets transition to each other with transition probability 1/k⁢n everywhere, and the chain has odd length loop of going back to itself, hence it is aperiodic.

Let Dt be the pre-metric over all valid k-sized independent sets, which is the least number of steps to transition from Xt to Yt. Conditioned that Dt=1, let Xt=I∪{u} and Yt=I∪{v}. At a step, sample w←rXt and x←rV, and a transition happens when w∈Xt and Γ⁢(x)∩Xt=∅.

If w≠u, wx=wy=w; otherwise (wx,wy)=(u,v). Let S1=Γ+⁢(u), S2=Γ+⁢(v), and M be the mapping between S1 and S2, such that elements in S1∩S2 are mapped to themselves, elements are mapped bijectively between S1∖S2 and S2∖S1 as many as possible, bijectively map u and v, with the remaining mapped to itself. Hence, if x∈S1∪S2, zx=x and zy=M⁢(x); otherwise, zx=zy=x.

The transition step is coupled by: Try removing wx and adding zx to Xt, and removing wy and adding zy to Yt. To decrease the distance, (wx,wy)=(u,v) and x∉Γ+⁢(Xt∪Yt∖{u,v}), then the probability is lower bounded by

Pr⁡[Dt+1=Dt−1∣Dt=1]≥1k⋅n−(Δ+1)⁢(k−1)n.

To increase the distance, w∈I and zx∈S2, such that the number of moves where at least a chain transitions is upper bounded by max⁡(|S1|,|S2|)≤Δ+1 by 1.12.20, hence the probability is upper bounded by

Pr⁡[Dt+1=Dt+1∣Dt=1]≤k−1k⋅Δ+1n.

By linearity of expectation,

𝔼[Dt+1∣Dt=1]≤1−1k⋅n−(Δ+1)⁢(k−1)n+k−1k⋅Δ+1n=1−n−2⁢(Δ+1)⁢(k−1)k⁢n.

Again by path coupling argument, let

Z0=Xt,…,Zdt=Yt

be a chain of states where neighboring states have pre-metric distance 1. The move in Z0 gives a coupled move for Z1, and eventually leads to a coupled move for Zdt. Let Zi′ be the state after the move is made from Zi, and let

Δ⁢(Zi−1′,Zi′)=|Zi−1′∖Zi′|.

By linearity of expectation,

𝔼[Dt+1∣Dt]=∑i∈[1,Dt]𝔼[Δ⁢(Zi−1′,Zi′)]≤Dt⋅(1−n−2⁢(Δ+1)⁢(k−1)k⁢n),

and we conclude the proof. ∎