Tutorials › Stochastic Processes › Mixing Profiles and Accuracy Thresholds

Convergence to Equilibrium and Ergodic Theorems · Tutorial 223 of 994

Mixing Profiles and Accuracy Thresholds

Learn to read a mixing profile, compare accuracy thresholds correctly, and compute exact mixing times in finite chains.

Advanced 9 min read

What You'll Learn

  • Define the worst-case total-variation mixing profile for a finite Markov chain.
  • Prove that the profile is nonincreasing in time.
  • Relate profile values to mixing times at specified accuracy thresholds.
  • Compute exact profiles and thresholds for finite chains.
  • Distinguish worst-case distance from distance under one chosen initial distribution.
  • Avoid threshold errors caused by averaging over starting states.

The Profile Behind a Mixing Time

A mixing time is a single number attached to a chosen accuracy level. The full sequence of distances from stationarity contains more information: it shows how quickly the chain approaches equilibrium and how that rate changes as the required accuracy becomes stricter. This sequence is called the worst-case mixing profile. Reading it carefully also prevents a common mistake: measuring convergence from one convenient initial distribution and treating that result as a worst-case guarantee.

Let \((X_n)_{n\ge0}\) be a discrete-time Markov chain on a finite state space \(S\), defined on a probability space \((\Omega,\mathcal{F},\mathbb{P})\), with row-stochastic transition matrix \(P=(p_{ij})\). Its natural filtration is \(\mathcal{F}_n=\sigma(X_0,\ldots,X_n)\). Assume throughout that the chain is irreducible and aperiodic, and let \(\pi\) be its stationary distribution, written as a row vector, so \(\pi P=\pi\). The standard finite-state convergence theorem says that under these hypotheses \(\pi\) is unique and \(P^n(i,\cdot)\) converges to \(\pi\) for every \(i\); that theorem was established in the earlier material on finite-state convergence.

For probability distributions \(\nu\) and \(\eta\) on \(S\), their total variation distance is \(\|\nu-\eta\|_{\mathrm{TV}}=\tfrac12\sum_{j\in S}|\nu(j)-\eta(j)|\). It lies between \(0\) and \(1\). For each integer \(n\ge0\), define the worst-case distance from stationarity by

$$ d(n)=\max_{i\in S}\left\|P^n(i,\cdot)-\pi\right\|_{\mathrm{TV}}. $$

Thus \(d(n)\) asks how far the chain can still be from equilibrium after \(n\) steps, when the starting state is chosen as unfavourably as possible. For an accuracy threshold \(\varepsilon>0\), define the mixing time

$$ t_{\mathrm{mix}}(\varepsilon)=\min\{n\ge0:d(n)\le\varepsilon\}. $$

If the set in this definition is empty, its minimum is taken to be \(\infty\). Under the finite, irreducible, aperiodic assumptions above, \(d(n)\to0\), so the mixing time is finite for every \(\varepsilon>0\). In the one-state case, \(d(n)=0\) for all \(n\), and \(t_{\mathrm{mix}}(\varepsilon)=0\) for every positive \(\varepsilon\).

Definition: The sequence \(d(0),d(1),\ldots\) is the worst-case mixing profile. It records the largest total variation distance to the stationary distribution among all starting states at each time. The mixing time at accuracy \(\varepsilon\) is the first time the profile is at most \(\varepsilon\).

Why the Profile Cannot Increase

The Markov transition itself cannot increase total variation distance between two distributions. Here is the finite-state calculation. For row distributions \(\nu,\eta\), the \(j\)th coordinate of \((\nu-\eta)P\) is \(\sum_i(\nu(i)-\eta(i))p_{ij}\). Since \(p_{ij}\ge0\), the triangle inequality and the row sums of \(P\) give

$$ \begin{aligned} \|(\nu-\eta)P\|_{\mathrm{TV}} &=\frac12\sum_j\left|\sum_i(\nu(i)-\eta(i))p_{ij}\right|\\ &\le\frac12\sum_j\sum_i|\nu(i)-\eta(i)|p_{ij}\\ &=\frac12\sum_i|\nu(i)-\eta(i)|\sum_jp_{ij}\\ &=\|\nu-\eta\|_{\mathrm{TV}}. \end{aligned} $$
Theorem (Monotonicity of the mixing profile): For every finite Markov chain with stationary distribution \(\pi\), \(d(n+1)\le d(n)\) for all \(n\ge0\). Consequently, if \(0<\varepsilon_1\le\varepsilon_2\), then \(t_{\mathrm{mix}}(\varepsilon_1)\ge t_{\mathrm{mix}}(\varepsilon_2)\).

Proof. Fix any state \(i\). Since \(\pi P=\pi\), we have \(P^{n+1}(i,\cdot)=P^n(i,\cdot)P\) and \(\pi=\pi P\). Apply the total variation contraction just calculated with \(\nu=P^n(i,\cdot)\) and \(\eta=\pi\). This gives \(\|P^{n+1}(i,\cdot)-\pi\|_{\mathrm{TV}}\le\|P^n(i,\cdot)-\pi\|_{\mathrm{TV}}\). Taking the maximum over \(i\) on the left and using the defining maximum on the right proves \(d(n+1)\le d(n)\). If \(\varepsilon_1\le\varepsilon_2\), every \(n\) satisfying \(d(n)\le\varepsilon_1\) also satisfies \(d(n)\le\varepsilon_2\). The first such time for the stricter threshold cannot be earlier, proving the mixing-time comparison. \(\square\)

Monotonicity gives a precise way to interpret a reported mixing time. If \(t_{\mathrm{mix}}(\varepsilon)=m\ge1\), then \(d(m)\le\varepsilon\), while \(d(m-1)>\varepsilon\); otherwise the threshold would have been reached earlier. Equivalently, the thresholds for which the mixing time is exactly \(m\) are those satisfying \(d(m)\le\varepsilon<d(m-1)\). For \(m=0\), the condition is simply \(d(0)\le\varepsilon\). Equality at the first time counts as having met the threshold.

Result (Threshold intervals): If \(m\ge1\), then \(t_{\mathrm{mix}}(\varepsilon)=m\) exactly when \(d(m)\le\varepsilon<d(m-1)\). A plateau in the profile can therefore make the same mixing time apply to a whole interval of accuracy thresholds.

Proof. Suppose first that \(t_{\mathrm{mix}}(\varepsilon)=m\). The definition gives \(d(m)\le\varepsilon\); if \(d(m-1)\le\varepsilon\), then \(m-1\) would be an earlier time satisfying the defining condition, a contradiction. Hence \(d(m-1)>\varepsilon\). Conversely, if \(d(m)\le\varepsilon<d(m-1)\), time \(m\) satisfies the condition and time \(m-1\) does not. Since \(d(n)\) is nonincreasing, every \(n<m\) has \(d(n)\ge d(m-1)>\varepsilon\). Thus \(m\) is the first qualifying time. \(\square\)

Exact Profiles and Threshold Comparisons

Worked Example: A Three-State Chain with a Geometric Profile

Let \(S=\{1,2,3\}\), let \(\pi=(\tfrac13,\tfrac13,\tfrac13)\), and take the transition matrix

$$ P=\begin{bmatrix} \tfrac23&\tfrac16&\tfrac16\\ \tfrac16&\tfrac23&\tfrac16\\ \tfrac16&\tfrac16&\tfrac23 \end{bmatrix}. $$

Each row sums to \(\tfrac23+\tfrac16+\tfrac16=1\), and all entries are positive, so the chain is irreducible and aperiodic. Each column also sums to \(1\), so multiplying \(\pi\) by \(P\) gives \(\pi P=(\tfrac13,\tfrac13,\tfrac13)=\pi\).

Write \(\Pi\) for the matrix with every row equal to \(\pi\). Then \(P=\tfrac12 I+\tfrac12\Pi\). For any distribution \(\mu\), \(\mu\Pi=\pi\), and therefore \(\mu P=\tfrac12\mu+\tfrac12\pi\). Subtracting \(\pi\) gives \(\mu P-\pi=\tfrac12(\mu-\pi)\). Iterating this identity yields \(\mu P^n-\pi=2^{-n}(\mu-\pi)\).

Starting at any state \(i\), the initial distance is \(\|\delta_i-\pi\|_{\mathrm{TV}}=\tfrac12(\tfrac23+\tfrac13+\tfrac13)=\tfrac23\), where \(\delta_i\) puts probability one on \(i\). Thus

$$ d(n)=\frac23\,2^{-n}. $$

For \(\varepsilon=\tfrac16\), \(d(1)=\tfrac13>\tfrac16\), while \(d(2)=\tfrac16\), so \(t_{\mathrm{mix}}(\tfrac16)=2\). For the stricter threshold \(\varepsilon=\tfrac1{10}\), \(d(2)=\tfrac16>\tfrac1{10}\), whereas \(d(3)=\tfrac1{12}<\tfrac1{10}\). Hence \(t_{\mathrm{mix}}(\tfrac1{10})=3\). The threshold interval for mixing time \(2\) is \([\tfrac16,\tfrac13)\), in agreement with the characterization above.

Check: At \(n=2\), the formula gives \(\tfrac23\cdot 2^{-2}=\tfrac16\). At \(n=3\), it gives \(\tfrac23\cdot 2^{-3}=\tfrac1{12}\). Both values agree with the threshold calculations.

Worked Example: Asymmetric Two-State Thresholds

Consider the chain on \(S=\{0,1\}\) with transition matrix

$$ P=\begin{bmatrix} \tfrac34&\tfrac14\\ \tfrac12&\tfrac12 \end{bmatrix}. $$

The first row sums to \(\tfrac34+\tfrac14=1\), and the second to \(\tfrac12+\tfrac12=1\). Both directions have positive transition probability, and both states have positive self-transition probability, so the chain is irreducible and aperiodic. Solving \(\pi P=\pi\) with \(\pi_0+\pi_1=1\) gives \(\pi=(\tfrac23,\tfrac13)\). Indeed, \((\tfrac23,\tfrac13)P=(\tfrac12+\tfrac16,\tfrac16+\tfrac16)=(\tfrac23,\tfrac13)\).

If the probability of state \(0\) under a current distribution is \(u\), its probability of state \(0\) after one step is \(\tfrac34u+\tfrac12(1-u)=\tfrac14u+\tfrac12\). Subtracting the stationary probability \(\tfrac23\), the difference becomes \(\tfrac14(u-\tfrac23)\). On a two-state space, total variation distance is the absolute difference in the probability assigned to either one of the states. Starting from \(0\), the initial distance is \(\tfrac13\); starting from \(1\), it is \(\tfrac23\). Each step multiplies either difference by \(\tfrac14\), so the maximum is

$$ d(n)=\frac23\left(\frac14\right)^n. $$

At threshold \(\varepsilon=\tfrac16\), \(d(0)=\tfrac23>\tfrac16\) and \(d(1)=\tfrac23\cdot\tfrac14=\tfrac16\), so \(t_{\mathrm{mix}}(\tfrac16)=1\). At threshold \(\varepsilon=\tfrac1{32}\), \(d(2)=\tfrac23\cdot\tfrac1{16}=\tfrac1{24}>\tfrac1{32}\), while \(d(3)=\tfrac23\cdot\tfrac1{64}=\tfrac1{96}<\tfrac1{32}\). Therefore \(t_{\mathrm{mix}}(\tfrac1{32})=3\).

Check: The profile is nonincreasing because each step multiplies it by \(\tfrac14\). Also \(d(1)=\tfrac16\) meets the first threshold exactly, while \(d(2)=\tfrac1{24}\) fails the second and \(d(3)=\tfrac1{96}\) meets it.

Worst-Case Starts and a Common Error

The maximum over starting states is essential. More generally, allowing any initial distribution \(\mu\) does not change the worst-case value: \(\sup_\mu\|\mu P^n-\pi\|_{\mathrm{TV}}=d(n)\). To see this, write \(\mu=\sum_i\mu(i)\delta_i\). The triangle inequality gives \(\|\mu P^n-\pi\|_{\mathrm{TV}}\le\sum_i\mu(i)\|P^n(i,\cdot)-\pi\|_{\mathrm{TV}}\le d(n)\). In the other direction, each point mass \(\delta_i\) is itself an allowed initial distribution, so the supremum is at least the maximum over states. The two quantities are equal.

Worked Example: A Typical Start Can Understate the Worst Case

Use the three-state matrix from the first example and start from \(\mu=(\tfrac12,\tfrac12,0)\). Its initial difference from \(\pi\) is \((\tfrac16,\tfrac16,-\tfrac13)\), so \(\|\mu-\pi\|_{\mathrm{TV}}=\tfrac12(\tfrac16+\tfrac16+\tfrac13)=\tfrac13\). The identity \(\mu P^n-\pi=2^{-n}(\mu-\pi)\) gives distance \(\tfrac13\,2^{-n}\). In particular, at \(n=1\) this initial distribution has distance \(\tfrac16\), while the worst-case profile is \(d(1)=\tfrac13\).

For threshold \(\varepsilon=\tfrac15\), the chosen initial distribution is within the threshold at time \(1\), because \(\tfrac16<\tfrac15\). But the chain is not within the worst-case threshold at time \(1\), since \(\tfrac13>\tfrac15\). At time \(2\), the profile is \(d(2)=\tfrac16<\tfrac15\), so the actual worst-case mixing time is \(2\). The first initial distribution alone would have suggested the wrong answer.

Check: At time \(1\), the chosen-start distance is \(\tfrac13\cdot\tfrac12=\tfrac16\); the worst-case distance is \(\tfrac23\cdot\tfrac12=\tfrac13\). Their different values explain why only the latter determines \(t_{\mathrm{mix}}(\tfrac15)\).

Common pitfall. A mixing-time statement must specify both the distance and the worst-case convention. Averaging distances over starting states is not the same as taking their maximum. In the last example, an average or a favourable starting distribution can lie below a threshold while another starting state remains above it. A second error is to use \(d(n)<\varepsilon\) instead of the defined condition \(d(n)\le\varepsilon\): exact equality counts as having reached the threshold, as the first example at \(n=2\) demonstrates.

The profile and the threshold answer related but distinct questions. The profile compares distances at each fixed time; the threshold mixing time asks for the first time that a selected accuracy is reached. Monotonicity guarantees that once the threshold is reached it remains satisfied, and the interval characterization tells exactly which thresholds correspond to each integer mixing time. The explicit examples show why it is useful to retain the profile rather than report only one mixing-time value.

Check Your Understanding

Use the definition of the profile and remember that its threshold condition is inclusive.

  1. If \(d(4)=\tfrac18\) and \(d(3)=\tfrac14\), for which \(\varepsilon\) does the mixing time equal \(4\)?
  2. Why does stationarity imply that applying one transition cannot increase the distance to \(\pi\)?
  3. For the asymmetric two-state chain, what is \(d(2)\), and which starting state gives the larger distance?
  4. In the three-state example, does \(d(2)=\tfrac16\) meet the threshold \(\varepsilon=\tfrac16\)? What is the resulting mixing time?
  5. Explain why a distance computed from one initial distribution can give a lower value than the worst-case profile at the same time.