Skip to content
The book

Markov chains: classification of states, stationary distributions

Why this is asked: Classify states (recurrent/transient, periodicity), then use irreducible + aperiodic + positive recurrent ⇒ unique stationary distribution with πⱼ = 1/mⱼⱼ.

In one sentence

Irreducibility makes the stationary distribution unique, positive recurrence makes it exist, and aperiodicity makes it the limit — three separate conditions doing three separate jobs.

Why the exam asks it

Because those three get compressed into "nice chains converge", and each can fail on its own with a small example. And because the classification of states is a definition-heavy area where precise statements can be tested directly.

The idea

A chain on a countable state space with transition matrix PP, pij=P(Xn+1=j∣Xn=i)p_{ij}=P(X_{n+1}=j\mid X_n=i). Chapman–Kolmogorov: p(m+n)=p(m)p(n)p^{(m+n)} = p^{(m)}p^{(n)}, so nn-step probabilities are matrix powers.

Classifying states

  • Accessible: jj is reachable from ii. Communicating: each reaches the other. This is an equivalence relation, and its classes partition the space.
  • Irreducible: one class — everything reaches everything.
  • Recurrent: return is certain, Pi(Ti<∞)=1P_i(T_i<\infty)=1. Transient otherwise.
  • Positive recurrent: recurrent and Ei[Ti]<∞E_i[T_i]<\infty. Null recurrent: recurrent with infinite expected return time.
  • Period d(i)=gcd⁡{n:pii(n)>0}d(i)=\gcd\{n: p^{(n)}_{ii}>0\}. Aperiodic means d=1d=1.

Recurrence, positivity and period are class properties: constant within a communicating class, so on an irreducible chain they describe the whole chain.

The three conditions

you have you get missing it costs irreducible at most one π several π, one per class + positive recurrent π exists, πᵢ = 1/Eᵢ[Tᵢ] no π at all + aperiodic pⁿ(i,j) → πⱼ π exists, no limit Finite and irreducible ⇒ positive recurrent automatically. Infinite chains are where it bites. Simple random walk on ℤ: recurrent, and null recurrent — returns with probability 1, expected return time infinite, so no stationary distribution exists. Pólya: recurrent in one and two dimensions, transient from three up.
Three conditions, three separate guarantees. Irreducibility gives uniqueness, positive recurrence gives existence, aperiodicity gives convergence.

A stationary distribution satisfies πP=π\pi P=\pi with ∑πi=1\sum\pi_i=1.

Existence needs positive recurrence. Uniqueness needs irreducibility. Convergence pij(n)→πjp^{(n)}_{ij}\to\pi_j needs aperiodicity as well.

And πi=1Ei[Ti]\pi_i = \dfrac{1}{E_i[T_i]} — the long-run fraction of time in a state is the reciprocal of its expected return time, which is the most useful formula in the topic.

A finite irreducible chain is automatically positive recurrent, so existence is free there and the only question is periodicity. All the interesting failures are on infinite state spaces.

Null recurrence is real. Simple symmetric random walk on Z\mathbb{Z} returns to the origin with probability 11 and takes infinite expected time to do it. Recurrent, not positive recurrent, and no stationary distribution exists — the walk spreads out forever. Pólya's theorem: the walk is recurrent in one and two dimensions and transient from three up, which is the memorable form.

Periodicity blocks the limit without blocking π\pi. The two-state chain that always switches has P=(0110)P=\begin{pmatrix}0&1\\1&0\end{pmatrix}, period 22, and stationary distribution (12,12)(\tfrac12,\tfrac12). But p11(n)p^{(n)}_{11} alternates between 11 and 00 forever. The stationary distribution exists and describes the long-run average, not a limit.

Computing π\pi

Solve πP=π\pi P=\pi with ∑πi=1\sum\pi_i=1 — that is, a left eigenvector for eigenvalue 11, normalised. For two states with p12=ap_{12}=a and p21=bp_{21}=b,

π=(ba+b,aa+b).\pi = \left(\frac{b}{a+b}, \frac{a}{a+b}\right).

With a=13a=\tfrac13, b=12b=\tfrac12: π=(35,25)\pi=(\tfrac35,\tfrac25), and the expected return time to state one is 53\tfrac53.

Detailed balance πipij=πjpji\pi_i p_{ij}=\pi_j p_{ji} is sufficient for stationarity and not necessary. A chain satisfying it is reversible, and when it holds it is much the fastest route to π\pi — but a chain can be stationary without being reversible, and options treat the two as equivalent.

Where intuition breaks

"Every chain has a stationary distribution." Needs positive recurrence. Random walk on Z\mathbb{Z} has none.

"Recurrent means positive recurrent." Null recurrence sits between transient and positive recurrent, and the symmetric walk on Z\mathbb{Z} is the standard case.

"Irreducible implies convergence to π\pi." Needs aperiodicity too. The alternating two-state chain has a π\pi and no limit.

"π\pi is the limit of p(n)p^{(n)}." Only in the aperiodic case. Otherwise it is the long-run average occupancy, which is what the ergodic theorem gives.

"Detailed balance is required for stationarity." Sufficient, not necessary. Non-reversible stationary chains are common.

"A finite chain can be null recurrent." Finite plus irreducible gives positive recurrence. Null recurrence needs infinitely many states.

"Random walk in three dimensions is recurrent." Transient. Pólya's dividing line is between two and three dimensions.

The exam's angle

  1. Check irreducibility by drawing the graph. Communicating classes are visible immediately and determine how many stationary distributions there are.
  2. Compute the period as a gcd of return lengths. A single self-loop makes a chain aperiodic.
  3. Solve πP=π\pi P=\pi with the normalisation — for small chains this is two equations.
  4. Use πi=1/Ei[Ti]\pi_i=1/E_i[T_i] whenever an expected return time is wanted.
  5. Try detailed balance first on chains with a nearest-neighbour structure; if it fails, fall back to the full system.

The night before

  • Chapman–Kolmogorov: nn-step probabilities are matrix powers.
  • Recurrence, positivity and period are class properties.
  • Existence of π\pi needs positive recurrence; uniqueness needs irreducibility; convergence needs aperiodicity.
  • πi=1/Ei[Ti]\pi_i = 1/E_i[T_i].
  • Finite ++ irreducible ⇒\Rightarrow positive recurrent.
  • SRW on Z\mathbb{Z}: null recurrent, no π\pi. Pólya: recurrent in d≤2d\le2, transient for d≥3d\ge3.
  • Period 22 chain: π=(12,12)\pi=(\tfrac12,\tfrac12) exists, p(n)p^{(n)} never converges.
  • Two states: π=(ba+b,aa+b)\pi=\left(\frac{b}{a+b},\frac{a}{a+b}\right).
  • Detailed balance is sufficient, not necessary.

See it move

Why periodic chains never settleinteractive

This visual is part of Trap Analysis

A cycle with stationary distribution (⅓,⅓,⅓) that never converges to it — until one slider makes it aperiodic.

Unlock interactive visuals

The trap here

“An irreducible chain with a stationary distribution converges to it” — false

The two-state chain that swaps deterministically (period 2)

π=(\pi = (½, ½) is stationary and unique, but pnijp_{nij} oscillates between 0 and 1. Aperiodicity is required.

More on this →

More in Limit Theorems and Markov Chains

Take it further

Last revised . Found a mistake? Tell us — corrections are the fastest thing we act on.

Next: Sufficiency, completeness, UMVUE, Cramér–Rao

Create a free account to keep your place and have this feed your study plan.

ShareWhatsAppTelegram

Open this in the full syllabus view · Unit 4