← Home

Mixing Rates of Markov Chains and Learning Dynamics

Shreshth Rajan · May 2026
Abstract

For a finite Markov chain that is irreducible, aperiodic, and reversible, the total variation distance between the time-$n$ distribution and the stationary distribution $\pi$ is at most a constant times $\lambda_*^n$, where $\lambda_*$ is the largest modulus of an eigenvalue of the transition matrix $M$ other than $1$ (Theorem 4.4). This is a quantitative form of the mixing definition for measure-preserving transformations, and it is tight for the symmetric two-state chain. The proof uses a small set of standard tools: Perron-Frobenius, which gives a unique stationary $\pi$ when $M$ has positive entries, Birkhoff's ergodic theorem, an eigenfunction expansion, and one application of the Cauchy-Schwarz inequality. The last third of the paper applies the bound to reinforcement learning (RL). A stationary policy on a Markov decision process induces a Markov chain, and when that chain is reversible its spectral gap $\gamma = 1 - \lambda_*$ bounds the variance of on-policy averages, so $n$ steps of data are worth roughly $n\gamma$ independent samples. That part is interpretive and proves no new theorem.

1. Introduction

Start a finite Markov chain at one state and apply its transition matrix $M$ repeatedly. The distribution of the current state spreads out and eventually forgets where it began. This paper computes how fast it forgets. The short answer is the second eigenvalue of $M$. The precise answer is Theorem 4.4 below.

The qualitative version of this statement is the mixing definition for measure-preserving transformations [4]. A measure-preserving $T$ on $(\Omega, \mathcal{A}, P)$ is called mixing if

$$P[T^{-n}(A) \cap B]\ \longrightarrow\ P[A]\, P[B]$$

for every $A, B \in \mathcal{A}$. The definition gives no rate. In the finite Markov setting, this paper turns it into a bound with an explicit dependence on the spectrum of $M$. For $M$ with positive entries, Perron-Frobenius gives a unique stationary $\pi$ at eigenvalue $1$, with positive entries (Theorem 2.3). The full Perron-Frobenius theorem also places the rest of the spectrum strictly inside the unit disk [7, 8, 6]; this paper does not prove that part, and Section 4 obtains the bound it needs on the other eigenvalues from reversibility and aperiodicity.

The paper asks two questions: what controls the rate at which a Markov chain forgets its initial distribution, and what that rate tells us about systems that learn from their own trajectories.

The second question motivates the reinforcement learning (RL) interpretation in Section 5. An RL agent following a fixed policy on a Markov decision process induces a Markov chain on the state space [17]. Most quantities the agent estimates from data, such as value functions, on-policy expectations, and policy gradients, are time averages along trajectories of that chain. Slow mixing therefore means high-variance estimates, slow exploration, and unstable updates, and fast mixing gives the opposite. For a fixed policy, the mixing rate sets how fast the agent's estimates settle.

Section 2 reviews finite Markov chains in the left-stochastic convention and proves Perron-Frobenius. Section 3 places the chain in ergodic theory and states Birkhoff's theorem. Section 4 proves the spectral mixing bound. Section 5 applies it to RL, and Section 6 lists open directions.

2. Markov Chains and Stationary Distributions

Throughout the paper, $S = \{1, 2, \dots, s\}$ is a finite state space, $(\Omega, \mathcal{A}, P)$ is a probability space, and $X_0, X_1, X_2, \dots$ are $S$-valued random variables [6].

Definition 2.1 (Markov chain)

The sequence $(X_n)_{n \ge 0}$ is a (time-homogeneous) Markov chain on $S$ if for every $n \ge 0$ and every $i_0, \dots, i_{n+1} \in S$,

$$P[X_{n+1} = i_{n+1} \mid X_0 = i_0, \dots, X_n = i_n]\ =\ P[X_{n+1} = i_{n+1} \mid X_n = i_n],$$

and the right-hand side does not depend on $n$.

We use the left-stochastic convention [6]: the matrix $M$ acts on column probability vectors. Each entry $M_{ij}$ is the probability of going from state $j$ to state $i$, so entries are non-negative and each column sums to $1$:

$$M_{ij}\ =\ P[X_{n+1} = i \mid X_n = j], \qquad \sum_{i \in S} M_{ij}\ =\ 1 \quad \text{for every } j.$$
Knill's lecture notes [6] write this as $M_{ij} = P[X_{n+1} = j \mid X_n = x_i]$, which would actually make $M$ right-stochastic. The formula above is the one consistent with the rest of the same notes, where $M$ is asserted to be left-stochastic with $M^\top \mathbf{1} = \mathbf{1}$, and with the random-walk normalization $M_{xy} = A_{xy}/d(y)$ in [5]. I use the corrected version throughout.

Equivalently, $M^{\top} \mathbf{1} = \mathbf{1}$, where $\mathbf{1} = (1, \dots, 1)^{\top}$. So $1$ is an eigenvalue of $M^{\top}$, and hence of $M$. An eigenvector of $M$ at eigenvalue $1$, normalized to a probability vector, is a stationary distribution.

Definition 2.2 (Stationary distribution)

A probability vector $\pi = (\pi_1, \dots, \pi_s)^{\top}$ on $S$, that is, one with $\pi_i \ge 0$ and $\sum_i \pi_i = 1$, is a stationary distribution of $M$ if $M \pi = \pi$.

If $X_0 \sim \pi$ then $X_n \sim \pi$ for all $n \ge 0$. Perron-Frobenius shows that, when $M$ has positive entries, such a $\pi$ exists and is unique. The proof follows [6].

Theorem 2.3 (Perron-Frobenius)

Let $M$ be an $s \times s$ left-stochastic matrix with strictly positive entries, $M_{ij} > 0$. Then there is a unique probability vector $\pi$ with $M \pi = \pi$, and every entry of $\pi$ is strictly positive.

Proof. Let $X = \{x \in \mathbb{R}^s : x_i \ge 0,\ \sum_i x_i = 1\}$ be the standard simplex. It is closed, bounded, and convex. Because $M$ is left-stochastic, for any $v \in X$ the vector $Mv$ has non-negative entries and total mass $\sum_i (Mv)_i = \sum_j v_j = 1$, so $Mv \in X$ already. The map $v \mapsto Mv$ is continuous, so by the Brouwer fixed point theorem there is some $\pi \in X$ with $M \pi = \pi$.

For uniqueness we use a strict-inequality argument. Suppose $Mw = w$ for some $w \in \mathbb{R}^s$ that has at least one negative entry, normalized so $\sum_i |w_i| = 1$. Let $|w|$ denote the vector with entries $|w_j|$. Then

$$\sum_i (M|w|)_i\ =\ \sum_j |w_j|\ =\ 1,$$

so $M|w|$ is also a probability vector. For each $i$,

$$|w_i|\ =\ \Bigl| \sum_j M_{ij} w_j \Bigr|\ \le\ \sum_j M_{ij} |w_j|\ =\ (M|w|)_i.$$

The triangle inequality is strict at any $i$ where the $w_j$ have mixed signs, since $M_{ij} > 0$ for every $j$. But $\sum_i |w_i| = \sum_i (M|w|)_i = 1$ forces equality everywhere. So $w$ cannot have entries of both signs. Hence $w$, after possibly multiplying by $-1$, lies in $X$. Now suppose $\pi'$ is another fixed point in $X$. Then $\pi - \pi'$ is a $1$-eigenvector summing to $0$. If it is nonzero it has entries of both signs, which the argument above just ruled out. So $\pi = \pi'$.

For positivity, $\pi_i = (M\pi)_i = \sum_j M_{ij} \pi_j > 0$, since $M_{ij} > 0$ and $\pi$ is a nonzero probability vector. $\square$

Remark.

The positive-entries hypothesis is stronger than needed. If $M$ is irreducible and aperiodic, some power $M^k$ has all entries positive, and Theorem 2.3 applied to $M^k$ gives the same conclusion for $M$ [16, 9].

2.1 Worked example: the two-state chain

The two-state chain is the running example. Fix $a, b \in (0, 1)$ and let

$$M\ =\ \begin{pmatrix} 1-a & b \\ a & 1-b \end{pmatrix}.$$

Column $1$ is the transition law from state $1$, and column $2$ from state $2$. Solving $M\pi = \pi$ with $\pi_1 + \pi_2 = 1$ gives

$$\pi\ =\ \frac{1}{a+b} \begin{pmatrix} b \\ a \end{pmatrix}.$$

The eigenvalues of $M$ are $\lambda_1 = 1$ and $\lambda_2 = 1 - a - b$, the latter visible from $\lambda_1 + \lambda_2 = \mathrm{tr}(M) = 2 - a - b$. As long as $(a,b) \ne (0,0)$ and $(a,b) \ne (1,1)$, we have $|\lambda_2| < 1$. Section 4 shows that $|\lambda_2|$ is the rate at which the chain forgets its initial state.

1 2 a b 1−a 1−b
Figure 1: Two-state Markov chain. Stationary distribution $\pi = (b, a)^{\top} / (a+b)$, second eigenvalue $\lambda_2 = 1 - a - b$.

3. Ergodicity, Birkhoff, and Mixing

A stationary Markov chain is a measure-preserving system, so the definitions of ergodic theory apply to it [2, 3, 4]. Take the chain $(X_n)$ with transition matrix $M$ and stationary distribution $\pi$. Let $\Omega = S^{\mathbb{N}}$ be the space of one-sided sequences with the product $\sigma$-algebra, and $T : \Omega \to \Omega$ the shift $(T \omega)_n = \omega_{n+1}$. The Kolmogorov extension theorem gives a unique probability $P$ on $\Omega$ for which the coordinate maps $X_n(\omega) = \omega_n$ form the chain in question. Stationarity of $\pi$ is exactly the statement that $T$ is measure-preserving [6]. Properties of the chain correspond to properties of the shift: irreducibility of the chain matches ergodicity of the shift, and irreducibility plus aperiodicity matches mixing in the sense below.

Definition 3.1 (Ergodicity)

$T$ is ergodic if every $T$-invariant set is trivial: $T^{-1}(A) = A$ implies $P[A] \in \{0, 1\}$.

Theorem 3.2 (Birkhoff 1931 [10, 2])

Let $T$ be ergodic and $X \in L^1(P)$. Set $X_k = X(T^k)$ and $S_n = \sum_{k=0}^{n-1} X_k$. Then $S_n / n \to E[X]$ almost everywhere.

For a Markov chain at stationarity, Birkhoff's theorem says that the time average of any integrable reward function along a trajectory converges almost surely to the space average $E_{\pi}[X]$. The proof goes through Hopf's maximal ergodic theorem [2] and is omitted. The theorem gives no rate of convergence.

Mixing is a stronger property than ergodicity.

Definition 3.3 (Mixing and weak mixing [4])

$T$ is mixing if for every $A, B \in \mathcal{A}$,

$$P[T^{-n}(A) \cap B]\ \longrightarrow\ P[A]\, P[B] \qquad (n \to \infty).$$

$T$ is weakly mixing if for every $A, B \in \mathcal{A}$,

$$\frac{1}{n} \sum_{k=0}^{n-1} \bigl| P[T^{-k}(A) \cap B] - P[A]\, P[B] \bigr|\ \longrightarrow\ 0.$$

The lecture notes [4] prove the strict hierarchy

$$\{\text{Bernoulli}\} \subset \{\text{Mixing}\} \subset \{\text{Weakly mixing}\} \subset \{\text{Ergodic}\}$$

and characterizes weak mixing in terms of the Koopman operator $U_T(X) = X(T^{-1})$ on $L^2$. This paper needs only the definition: $T$ mixing means $P[T^{-n}(A) \cap B] \to P[A]\, P[B]$, with no rate specified.

Remark.

Poincaré recurrence [3] is the closely related qualitative fact that any set $A$ with $P[A] > 0$ is hit again by the orbit, that is, $P[T^n(A) \cap A] > 0$ for some $n \le 1/P[A]$. Recurrence says trajectories return. Mixing says they decorrelate, and Section 4 bounds how fast.

4. Mixing Rates and the Spectral Gap

Mixing in the sense of Definition 3.3 says only that $P[T^{-n}(A) \cap B] - P[A]\, P[B]$ goes to zero. A rate needs a distance between probability vectors (Definition 4.1), a mixing time (Definition 4.2), and a property of $M$ that controls the mixing time. That property is the spectral gap.

Definition 4.1 (Total variation distance)

For probability vectors $\mu, \nu$ on $S$,

$$\| \mu - \nu \|_{TV}\ :=\ \tfrac{1}{2} \sum_{i \in S} |\mu_i - \nu_i|\ =\ \max_{A \subseteq S} |\mu(A) - \nu(A)|.$$
Definition 4.2 (Mixing time)

For $\varepsilon \in (0, 1)$, the $\varepsilon$-mixing time of $M$ is

$$t_{\mathrm{mix}}(\varepsilon)\ :=\ \min \Bigl\{ n \ge 0 : \max_{x \in S} \| M^n \delta_x - \pi \|_{TV} \le \varepsilon \Bigr\},$$

where $\delta_x$ is the unit mass at $x$.

For an irreducible aperiodic chain, $\| M^n \delta_x - \pi \|_{TV} \to 0$ for every $x$ [9]. The rate has its simplest form when the chain is reversible.

Definition 4.3 (Reversibility)

$M$ is reversible with respect to $\pi$ if $\pi_j M_{ij} = \pi_i M_{ji}$ for all $i, j \in S$.

Reversibility makes the transition operator self-adjoint in a weighted inner product. Equip $\mathbb{R}^S$ with the $\ell^2(\pi)$ inner product

$$\langle f, g \rangle_{\pi}\ :=\ \sum_{i \in S} \pi_i\, f(i)\, g(i),$$

and consider $L f := M^{\top} f$ acting on functions $f : S \to \mathbb{R}$. Reversibility gives self-adjointness $\langle f, L g \rangle_{\pi} = \langle L f, g \rangle_{\pi}$. (Check: $\langle f, L g \rangle_{\pi} = \sum_{i,j} \pi_j M_{ij} f(j) g(i)$, and reversibility rewrites $\pi_j M_{ij} = \pi_i M_{ji}$, which gives $\langle L f, g \rangle_{\pi}$.)

By the spectral theorem, $L$ has $s$ real eigenvalues

$$1\ =\ \lambda_1\ >\ \lambda_2\ \ge\ \cdots\ \ge\ \lambda_s\ \ge\ -1$$

and an orthonormal basis $\{f_k\}_{k=1}^s$ of eigenfunctions in $\ell^2(\pi)$ with $f_1 \equiv 1$. Aperiodicity rules out $\lambda_s = -1$ [9], so

$$\lambda_*\ :=\ \max(|\lambda_2|,\ |\lambda_s|)\ <\ 1, \qquad \gamma\ :=\ 1 - \lambda_*$$

is the absolute spectral gap. Eigenvalues of $L = M^{\top}$ and $M$ coincide, so $\lambda_*$ also bounds the modulus of every non-unit eigenvalue of $M$.

Theorem 4.4 (Spectral mixing bound, cf. [12, 11, 9])

Let $M$ be irreducible, aperiodic, and reversible with respect to $\pi$. For every $x \in S$ and every $n \ge 1$,

$$\| M^n \delta_x - \pi \|_{TV}\ \le\ \tfrac{1}{2} \sqrt{\frac{1 - \pi(x)}{\pi(x)}}\ \lambda_*^n.$$
Proof. Define $\rho_n : S \to \mathbb{R}$ by $\rho_n(y) = (M^n \delta_x)(y) / \pi(y)$, the density of the time-$n$ distribution started at $x$ relative to $\pi$. The key observation is that $\rho_n = L^n \rho_0$. To see this, write
$$\frac{(M\mu)(y)}{\pi(y)}\ =\ \sum_z \frac{M_{yz}}{\pi(y)}\, \mu(z)\ =\ \sum_z \frac{M_{zy}}{\pi(z)}\, \mu(z),$$

where the second equality uses reversibility (Definition 4.3 with $i = y$, $j = z$), $\pi_z M_{yz} = \pi_y M_{zy}$. The right-hand side is $\sum_z M_{zy} (\mu(z) / \pi(z)) = (L (\mu / \pi))(y)$. Iterating gives $\rho_n = L^n \rho_0$.

Expand $\rho_0$ in the eigenbasis of $L$. The coefficients are $\langle \rho_0, f_k \rangle_{\pi} = \sum_y \pi(y) (\delta_x(y) / \pi(y)) f_k(y) = f_k(x)$, so

$$\rho_0\ =\ 1 + \sum_{k=2}^s f_k(x)\, f_k.$$

Applying $L^n$,

$$\rho_n\ =\ 1 + \sum_{k=2}^s \lambda_k^n\, f_k(x)\, f_k.$$

By orthonormality of $\{f_k\}$ in $\ell^2(\pi)$,

$$\| \rho_n - 1 \|_{\ell^2(\pi)}^2\ =\ \sum_{k=2}^s \lambda_k^{2n}\, f_k(x)^2\ \le\ \lambda_*^{2n} \sum_{k=2}^s f_k(x)^2.$$

Parseval gives $\sum_{k=1}^s f_k(x)^2 = \| \rho_0 \|_{\ell^2(\pi)}^2 = \sum_y \pi(y) (\delta_x(y) / \pi(y))^2 = 1 / \pi(x)$, and since $f_1 \equiv 1$ we get $\sum_{k=2}^s f_k(x)^2 = (1 - \pi(x)) / \pi(x)$. So

$$\| \rho_n - 1 \|_{\ell^2(\pi)}\ \le\ \lambda_*^n\, \sqrt{\frac{1 - \pi(x)}{\pi(x)}}.$$

Now apply the Cauchy-Schwarz inequality [1]: with the constant random variable $1$ on $(S, \pi)$,

$$\sum_y \pi(y)\, |\rho_n(y) - 1|\ \le\ \Bigl( \sum_y \pi(y)\, (\rho_n(y) - 1)^2 \Bigr)^{1/2}\ =\ \| \rho_n - 1 \|_{\ell^2(\pi)}.$$

The left side is $\sum_y |M^n \delta_x(y) - \pi(y)| = 2 \| M^n \delta_x - \pi \|_{TV}$, which finishes the proof. $\square$

Solving the bound for $n$ gives a mixing-time bound, which is the more useful form for comparing chains of different sizes.

Corollary 4.5

$\displaystyle t_{\mathrm{mix}}(\varepsilon)\ \le\ \frac{1}{\gamma}\, \log\!\left( \frac{1}{2 \varepsilon \sqrt{\pi_{\min}}} \right)$, where $\pi_{\min} = \min_{x \in S} \pi(x)$.

Proof. Theorem 4.4 gives $\| M^n \delta_x - \pi \|_{TV} \le \tfrac{1}{2} \lambda_*^n / \sqrt{\pi_{\min}}$. We want this $\le \varepsilon$, that is, $\lambda_*^n \le 2 \varepsilon \sqrt{\pi_{\min}}$, which after taking logarithms holds whenever $n \gamma \ge \log(1 / (2 \varepsilon \sqrt{\pi_{\min}}))$, since $\log \lambda_* = \log(1 - \gamma) \le -\gamma$. $\square$

Corollary 4.5 is the main quantitative statement of the paper. The mixing time is at most $1/\gamma$ times a logarithmic factor, so a large spectral gap guarantees fast mixing.

Remark (Cheeger and conductance).

The spectral gap $1 - \lambda_2$ has a geometric counterpart. The conductance of $M$ is

$$\Phi\ :=\ \min_{\substack{A \subseteq S \\ 0 < \pi(A) \le 1/2}} \frac{1}{\pi(A)} \sum_{i \in A,\, j \notin A} \pi(i)\, M_{ji},$$

the minimum probability of escaping a set, weighted by stationary mass. Cheeger's inequality, in the discrete form due to Sinclair-Jerrum [14] (after [13]), gives

$$\frac{\Phi^2}{2}\ \le\ 1 - \lambda_2\ \le\ 2 \Phi.$$

This bounds the spectral gap $1 - \lambda_2$, not the absolute gap $\gamma = 1 - \lambda_*$. Since $\gamma \le 1 - \lambda_2$, the upper bound $\gamma \le 2\Phi$ also holds. The lower bound transfers to $\gamma$ only when $\lambda_* = \lambda_2$, for example for a lazy chain, whose eigenvalues are all non-negative; a chain with an eigenvalue near $-1$ has a small $\gamma$ without a bottleneck. So a bottleneck, a set that the chain rarely leaves, forces a small spectral gap, and a small spectral gap $1 - \lambda_2$ forces a bottleneck. The exploration paragraph in Section 5 uses this: a state space with a narrow neck has a small spectral gap.

4.1 Decay of correlations

The same eigenexpansion gives a decay-of-correlations bound. For $f, g \in \ell^2(\pi)$ with $E_{\pi}[f] = E_{\pi}[g] = 0$,

$$E_{\pi}[f(X_0)\, g(X_n)]\ =\ \langle f, L^n g \rangle_{\pi}\ =\ \sum_{k=2}^s \lambda_k^n\, \langle f, f_k \rangle_{\pi}\, \langle g, f_k \rangle_{\pi}.$$

Pulling out $\lambda_*^n$ and applying Cauchy-Schwarz to the remaining sum,

$$\bigl| E_{\pi}[f(X_0)\, g(X_n)] \bigr|\ \le\ \lambda_*^n\, \| f \|_{\ell^2(\pi)}\, \| g \|_{\ell^2(\pi)}.$$

Choosing $f = \mathbf{1}_A - \pi(A)$, $g = \mathbf{1}_B - \pi(B)$ recovers

$$\bigl| P_{\pi}[X_0 \in B,\, X_n \in A] - \pi(A)\, \pi(B) \bigr|\ \le\ \lambda_*^n\, \sqrt{\pi(A)(1 - \pi(A))\, \pi(B)(1 - \pi(B))}.$$

This is the mixing statement of Definition 3.3 for events determined by $X_0$ and $X_n$, with the explicit geometric rate $\lambda_*^n$.

4.2 Worked example continued

For the two-state chain of Section 2.1, $\lambda_2 = 1 - a - b$ and $\pi_{\min} = \min(a, b) / (a + b)$. The chain is reversible: $\pi_2 M_{12} = (a / (a+b)) \cdot b = ab/(a+b) = (b/(a+b)) \cdot a = \pi_1 M_{21}$. Theorem 4.4 then gives

$$\| M^n \delta_x - \pi \|_{TV}\ \le\ \tfrac{1}{2} \sqrt{\tfrac{1 - \pi(x)}{\pi(x)}}\, |1 - a - b|^n.$$

When $a + b$ is close to $1$ the gap is large and the chain mixes essentially in one step. When $a + b$ is close to $0$ or $2$ the gap is small and mixing is slow. Rare transitions ($a + b$ near $0$) and near-deterministic switching ($a + b$ near $2$) both give the chain a long memory.

The bound of Theorem 4.4 is sharp here. A direct computation using $\delta_1 = \pi + (a/(a+b))(1, -1)^{\top}$ and the second eigenvector $(1, -1)^{\top}$ gives

$$\| M^n \delta_1 - \pi \|_{TV}\ =\ \frac{a}{a+b}\, |1 - a - b|^n.$$

In the symmetric case $a = b = p$, the prefactor $a/(a+b) = 1/2$ matches $\tfrac{1}{2}\sqrt{(1-\pi(1))/\pi(1)} = 1/2$ exactly, so Theorem 4.4 is tight at every $n$. For $a = 0.2,\ b = 0.1$ the formula above gives $(2/3)(0.7)^n$ while the bound gives $(\sqrt{2}/2)(0.7)^n$; the ratio is $4/(3\sqrt{2}) \approx 0.94$, so the bound overshoots by under $7\%$.

5. Reinforcement Learning Interpretation

This section applies the spectral bound to reinforcement learning. Standard RL references write $\pi$ for the policy and $d^\pi$ for the stationary distribution of the induced chain [17]. Here $\pi$ already denotes the stationary distribution of $M$, so this section writes $\rho$ for the policy and $\mu^{\rho}$ for the stationary distribution of the chain it induces.

5.1 Policies as Markov chains

A finite Markov decision process has a state space $S$, an action space $A$, transition kernels $P(s' \mid s, a)$, and a reward function $r : S \times A \to \mathbb{R}$. A stationary policy $\rho : S \to \Delta(A)$ collapses the MDP to a Markov chain on $S$ with transition matrix

$$M^{\rho}_{s' s}\ =\ \sum_{a \in A} \rho(a \mid s)\, P(s' \mid s, a),$$

left-stochastic in our convention, so $M^{\rho} \mu^{\rho} = \mu^{\rho}$ for the stationary distribution. When $M^{\rho}$ is irreducible and aperiodic, Theorem 2.3 and the remark after it give a unique $\mu^{\rho}$. When $M^{\rho}$ is also reversible, Theorem 4.4 shows that the spectral gap $\gamma^{\rho} = 1 - \lambda_*(M^{\rho})$ controls the rate at which on-policy trajectories forget where they started [17, 15].

5.2 Three consequences of the spectral gap

Sample complexity of value estimation.

Consider an agent estimating

$$J(\rho)\ =\ E_{\mu^{\rho}}[r(S, A)]$$

by the Monte Carlo estimator $\hat{J}_n = \tfrac{1}{n} \sum_{k=0}^{n-1} r(S_k, A_k)$ along a single trajectory. By Birkhoff (Theorem 3.2), $\hat{J}_n \to J(\rho)$ almost surely. The rate depends on the chain's autocovariances, which the spectral gap controls.

Proposition 5.1 (Asymptotic variance and effective sample size)

Suppose $M^{\rho}$ is irreducible, aperiodic, and reversible with respect to $\mu^{\rho}$, with absolute spectral gap $\gamma^{\rho} = 1 - \lambda_*(M^{\rho})$. Let $r_{\rho}(s) := \sum_{a \in A} \rho(a \mid s)\, r(s, a)$ be the expected reward at state $s$ under $\rho$, so that $J(\rho) = E_{\mu^{\rho}}[r_{\rho}]$, and let $\bar{r} := r_{\rho} - J(\rho)$, a function $S \to \mathbb{R}$ with $E_{\mu^{\rho}}[\bar{r}] = 0$. Then for the chain started at stationarity,

$$\mathrm{Var}_{\mu^{\rho}}(\hat{J}^{\rho}_n)\ \le\ \frac{2}{n\, \gamma^{\rho}}\, \| \bar{r} \|_{\ell^2(\mu^{\rho})}^2,$$

where $\hat{J}^{\rho}_n = \tfrac{1}{n} \sum_{k=0}^{n-1} r_{\rho}(S_k)$ and $\| \bar{r} \|_{\ell^2(\mu^{\rho})}^2 = \sum_{s \in S} \mu^{\rho}(s)\, \bar{r}(s)^2$.

Proof. By stationarity, $\mathrm{Var}_{\mu^{\rho}}(r_{\rho}(S_k)) = \| \bar{r} \|^2$ for every $k$. Since $\bar{r}$ is a centered function of the state, the decay-of-correlations bound of Section 4.1 for the chain $M^{\rho}$ gives $|\mathrm{Cov}_{\mu^{\rho}}(r_{\rho}(S_j), r_{\rho}(S_k))| \le \lambda_*^{|k-j|}\, \| \bar{r} \|^2$. Summing the variances and covariances,
$$n^2\, \mathrm{Var}(\hat{J}^{\rho}_n)\ \le\ n\, \| \bar{r} \|^2\, \Bigl( 1 + 2 \sum_{m=1}^{\infty} \lambda_*^m \Bigr)\ =\ n\, \| \bar{r} \|^2\, \frac{1 + \lambda_*}{1 - \lambda_*}\ \le\ \frac{2n}{\gamma^{\rho}}\, \| \bar{r} \|^2,$$

since $1 + \lambda_* \le 2$. Dividing by $n^2$ gives the claim. $\square$

The mean of $n$ independent samples of $r_{\rho}(S)$ with $S \sim \mu^{\rho}$ has variance $\| \bar{r} \|^2 / n$, so the effective sample size of $n$ on-policy steps is roughly $n \gamma^{\rho}$. A policy with a small spectral gap needs proportionally more data. The proposition averages the reward over the action at each visited state. The sampled-reward estimator $\hat{J}_n$ also carries the randomness of the actions, and the bound of Section 4.1, which covers functions of the state, does not apply to it directly.

Exploration.

The mixing time $t_{\mathrm{mix}}(\varepsilon)$ is the timescale over which the chain forgets where it started. By Corollary 4.5, it is at most $1 / \gamma^{\rho}$ times a logarithmic factor. For a tabular agent with $\varepsilon$-greedy or Boltzmann (softmax) exploration, it is the time after which on-policy data is distributed close to $\mu^{\rho}$. Together with the Cheeger remark in Section 4, the spectral gap gives a quantitative form of the observation that bottlenecked state spaces are hard to explore.

Stability and generalization.

Policy gradient and temporal-difference methods build updates from rolling averages along trajectories [17]. By the decay-of-correlations bound, samples $\Theta(1 / \gamma^{\rho})$ steps apart behave roughly independently, so the empirical estimates that drive these updates concentrate around their on-policy means at a rate set by $\gamma^{\rho}$. A large spectral gap plays the role that independence plays in classical generalization bounds for i.i.d. samples.

5.3 Relation to prior work

None of the three statements above is a new theorem. Each has a sharper form in the literature: asymptotic-variance theorems for Markov chain Monte Carlo [15, 12, 11], mixing-time regret bounds for tabular RL, and concentration inequalities for ergodic processes. The point of this section is that in a Markov system the spectrum of the transition operator controls these quantities [4, 6]. RL inherits this, because for a fixed policy each on-policy quantity above is controlled by the spectrum of $M^{\rho}$. Function approximation in modern RL hides this dependence. In the tabular case it is directly visible.

6. Discussion

Perron-Frobenius (Theorem 2.3) gives existence and uniqueness of $\pi$. Birkhoff's theorem (Theorem 3.2) says time averages along a trajectory converge almost surely to averages under $\pi$. Mixing (Definition 3.3) says the events $T^{-n}(A)$ and $B$ become independent as $n \to \infty$. The spectral gap $\gamma = 1 - \lambda_*$ gives the rate, through Theorem 4.4. Each of these results is standard [6, 4, 9], and Cauchy-Schwarz in $\ell^2(\pi)$ is the step that connects them.

Several directions remain open. Infinite or continuous state spaces require the Doeblin or Harris recurrence framework [15]. Non-reversible chains lose self-adjointness and need pseudo-spectral or Cheeger-type bounds [14]. On the lattice $\mathbb{Z}^d$ a Fourier-theoretic analysis governs recurrence (Pólya [18], see also [5]), which is the infinite analogue of the finite spectral picture above. On the learning side, function approximation breaks the tabular spectral picture, and policy updates make the induced chain change over time.

For a reversible induced chain, the spectral gap sets how fast an agent following a fixed policy can turn its trajectory into accurate estimates of on-policy averages: by Proposition 5.1, the variance of the policy-averaged reward estimate after $n$ steps is at most $2 \| \bar{r} \|^2 / (n \gamma^{\rho})$.

References

[1] O. Knill, Jensen-Hölder-Minkowski Inequalities, lecture notes, Harvard University, 2026.

[2] O. Knill, The Ergodic Theorem, lecture notes, Harvard University, 2026.

[3] O. Knill, Recurrence, lecture notes, Harvard University, 2026.

[4] O. Knill, Mixing, lecture notes, Harvard University, 2026.

[5] O. Knill, Random Walks, lecture notes, Harvard University, 2026.

[6] O. Knill, Markov Chains, lecture notes, Harvard University, 2026.

[7] O. Perron, "Zur Theorie der Matrices," Mathematische Annalen 64 (1907), 248–263.

[8] G. Frobenius, "Über Matrizen aus positiven Elementen," Sitzungsberichte der Preussischen Akademie der Wissenschaften zu Berlin (1908), 471–476.

[9] D. A. Levin, Y. Peres, and E. L. Wilmer, Markov Chains and Mixing Times, 2nd ed., American Mathematical Society, 2017.

[10] G. D. Birkhoff, "Proof of the ergodic theorem," Proceedings of the National Academy of Sciences 17 (1931), 656–660.

[11] D. Aldous and J. A. Fill, Reversible Markov Chains and Random Walks on Graphs, unfinished monograph (recompiled 2014).

[12] P. Diaconis and D. Stroock, "Geometric bounds for eigenvalues of Markov chains," Annals of Applied Probability 1 (1991), 36–61.

[13] J. Cheeger, "A lower bound for the smallest eigenvalue of the Laplacian," in Problems in Analysis (R. C. Gunning, ed.), Princeton University Press, 1970, 195–199.

[14] A. Sinclair and M. Jerrum, "Approximate counting, uniform generation and rapidly mixing Markov chains," Information and Computation 82 (1989), 93–133.

[15] S. Meyn and R. L. Tweedie, Markov Chains and Stochastic Stability, 2nd ed., Cambridge University Press, 2009.

[16] J. R. Norris, Markov Chains, Cambridge University Press, 1997.

[17] R. S. Sutton and A. G. Barto, Reinforcement Learning: An Introduction, 2nd ed., MIT Press, 2018.

[18] G. Pólya, "Über eine Aufgabe der Wahrscheinlichkeitsrechnung betreffend die Irrfahrt im Strassennetz," Mathematische Annalen 84 (1921), 149–160.