Tutorials › Stochastic Processes › Stationary Distribution Case Studies

Stationary Distributions · Tutorial 203 of 994

Stationary Distribution Case Studies

Learn to choose a suitable stationary-distribution calculation for two-state, reducible finite, and irreducible countable Markov chains, and verify each answer.

Intermediate 12 min read

What You'll Learn

  • Solve the stationary equations for a general two-state chain, including degenerate cases.
  • Describe all stationary distributions of a finite reducible chain with multiple closed classes.
  • Compute stationary probabilities from expected visits during return cycles.
  • Verify normalization and invariance by checking every relevant coordinate.
  • Distinguish an invariant distribution from a description of how the chain evolves over time.

Choosing a Method for a Stationary Distribution

A stationary distribution is a probability distribution that is unchanged by one transition of a Markov chain. In a small finite chain, the equations \(\pi P=\pi\) are usually the most direct route. In a reducible chain, those equations also reveal why there may be many stationary distributions. For a countable chain with a useful return state, it can be simpler to count expected visits during a return cycle and normalize those counts.

Throughout, a discrete-time Markov chain \((X_n)_{n\ge0}\) is defined on a probability space \((\Omega,\mathcal{F},\mathbb{P})\), has state space \(S\), and has transition matrix \(P=(p_{ij})\), with \(p_{ij}=\mathbb{P}(X_{n+1}=j\mid X_n=i)\). Its natural filtration is \(\mathcal{F}_n=\sigma(X_0,\ldots,X_n)\). A distribution is written as a row vector. It is stationary if it is a probability distribution \(\pi\) satisfying \(\pi P=\pi\). This is an invariance property; by itself, it does not say that the chain’s distribution converges to \(\pi\) from every initial distribution.

Definition: A stationary distribution on a finite or countable state space \(S\) is a family \((\pi_i)_{i\in S}\) with \(\pi_i\ge0\), \(\sum_{i\in S}\pi_i=1\), and \(\pi_j=\sum_{i\in S}\pi_i p_{ij}\) for every \(j\in S\). For a countable state space, the sums are sums of nonnegative terms.

Two States: Solve the Balance Equations

For a two-state chain, write \(\alpha\) for the probability of moving from state \(0\) to state \(1\), and \(\beta\) for the probability of moving from state \(1\) to state \(0\). Both parameters lie in \([0,1]\). The remaining entries are determined by the requirement that each row sum to one.

Proposition: For \(P=\begin{bmatrix}1-\alpha&\alpha\\ \beta&1-\beta\end{bmatrix}\), if \(\alpha+\beta>0\), the unique stationary distribution is \(\pi=(\frac{\beta}{\alpha+\beta},\frac{\alpha}{\alpha+\beta})\). If \(\alpha=\beta=0\), every distribution on the two states is stationary.

Proof. Write an arbitrary probability distribution as \((x,1-x)\), where \(0\le x\le1\). The state \(1\) coordinate of its product with \(P\) is \(x\alpha+(1-x)(1-\beta)\). Stationarity requires this to equal \(1-x\). Rearranging gives \(x\alpha=(1-x)\beta\), or \(x(\alpha+\beta)=\beta\). If \(\alpha+\beta>0\), this forces \(x=\beta/(\alpha+\beta)\), and then \(1-x=\alpha/(\alpha+\beta)\). These values are nonnegative and sum to one. The coordinate equation for state \(1\) holds by construction; since both the original and resulting vectors sum to one, the state \(0\) coordinates also agree. If \(\alpha+\beta=0\), nonnegativity implies \(\alpha=\beta=0\), so \(P\) is the identity matrix and every probability vector is unchanged. \(\square\)

Worked Example: A Two-State Chain

Let \(S=\{0,1\}\), and let \((X_n)_{n\ge0}\) be a chain on a probability space with transition matrix \(P=\begin{bmatrix}\tfrac34&\tfrac14\\[2pt]\tfrac13&\tfrac23\end{bmatrix}\). Each row sums to one: \(\tfrac34+\tfrac14=1\) and \(\tfrac13+\tfrac23=1\). Here \(\alpha=\tfrac14\) and \(\beta=\tfrac13\), so \(\alpha+\beta=\tfrac7{12}>0\).

The proposition gives \(\pi_0=(\tfrac13)/(\tfrac7{12})=\tfrac47\) and \(\pi_1=(\tfrac14)/(\tfrac7{12})=\tfrac37\). Thus \(\pi=(\tfrac47,\tfrac37)\), with \(\tfrac47+\tfrac37=1\).

Check by multiplication: the state \(0\) coordinate of \(\pi P\) is \(\tfrac47\cdot\tfrac34+\tfrac37\cdot\tfrac13=\tfrac37+\tfrac17=\tfrac47\). The state \(1\) coordinate is \(\tfrac47\cdot\tfrac14+\tfrac37\cdot\tfrac23=\tfrac17+\tfrac27=\tfrac37\). Therefore \(\pi P=\pi\).

Reducibility: Stationary Mass Can Be Split Across Closed Classes

A chain is reducible if its states do not all communicate with one another. A closed class is a set of states that, once entered, cannot be left. In a reducible chain, stationary distributions need not be unique: probability mass can be assigned to distinct closed classes in different proportions. Transient states, which may be left and never revisited, cannot carry stationary mass in the finite example below; the equations show this directly.

Worked Example: Two Absorbing States and a Transient State

Let \(S=\{0,1,2\}\) and consider a chain on a probability space with transition matrix \(P=\begin{bmatrix}1&0&0\\0&1&0\\\tfrac13&\tfrac23&0\end{bmatrix}\). The first two rows each sum to \(1\), and the third row sums to \(\tfrac13+\tfrac23+0=1\). States \(0\) and \(1\) are absorbing; state \(2\) moves to \(0\) or \(1\) and cannot be entered from either absorbing state.

Let \(\pi=(x_0,x_1,x_2)\) be stationary, where the entries are nonnegative and sum to one. Direct multiplication gives \(\pi P=(x_0+\tfrac13x_2,\ x_1+\tfrac23x_2,\ 0)\). Equality with \(\pi\) forces \(x_2=0\) from the third coordinate. The other coordinates then impose no further restriction beyond \(x_0+x_1=1\). Consequently, every stationary distribution is \((\theta,1-\theta,0)\) for some \(0\le\theta\le1\).

Check: for any such \(\theta\), \((\theta,1-\theta,0)P=(\theta,1-\theta,0)\), and its entries are nonnegative and sum to \(\theta+(1-\theta)=1\). The endpoint choices \(\theta=1\) and \(\theta=0\) put all stationary mass on state \(0\) and state \(1\), respectively; intermediate choices are mixtures of those two stationary distributions.

This calculation illustrates an important distinction: the stationary equations characterize invariant distributions, but do not select a particular mixture of closed classes. Which mixture describes a chain started from a given state is a separate question about its evolution and eventual behavior.

Countable State Space: Count Visits During a Return Cycle

On a countable state space, solving infinitely many balance equations and then checking that the proposed weights sum to one can be awkward. If a state is revisited in finite expected time, a return-cycle calculation offers another route. For a state \(0\), define \(T_0^+=\inf\{n\ge1:X_n=0\}\). The occupation count of state \(j\) in this cycle is \(\sum_{n=0}^{T_0^+-1}\mathbf{1}_{\{X_n=j\}}\). Its expectation counts the visits to \(j\) from the start of the cycle up to, but not including, the return. When the expected cycle length is finite, the expected occupation counts, divided by that length, form a stationary distribution.

The invariance behind this method follows by comparing visits before and after one transition. We give the argument so the normalization and the role of the return are explicit.

Proposition (Return-cycle occupation): Suppose a Markov chain has a state \(0\), starts at \(X_0=0\), and \(T_0^+<\infty\) almost surely with \(\mathbb{E}_0[T_0^+]<\infty\). Define \(v_j=\mathbb{E}_0[\sum_{n=0}^{T_0^+-1}\mathbf{1}_{\{X_n=j\}}]\). Then \(\pi_j=v_j/\mathbb{E}_0[T_0^+]\) is a stationary distribution.

Proof. Each \(v_j\) is nonnegative, and summing the occupation counts over all states gives exactly \(T_0^+\), since at each time \(0\le n<T_0^+\) the chain occupies one state. Taking expectations of these nonnegative sums gives \(\sum_jv_j=\mathbb{E}_0[T_0^+]\), so the proposed \(\pi\) has total mass one. To check invariance, fix \(j\). For each \(n\ge0\), the event \(\{T_0^+>n\}\) is determined by \(X_0,\ldots,X_n\). By the Markov property, conditional on \(\mathcal{F}_n\), the probability that \(X_{n+1}=j\) is \(p_{X_nj}\). Summing these conditional expectations over \(n\) gives \(\sum_i v_i p_{ij}=\mathbb{E}_0[\sum_{n=0}^{T_0^+-1}\mathbf{1}_{\{X_{n+1}=j\}}]\). The sum on the right counts visits at times \(1,\ldots,T_0^+\). Since \(X_{T_0^+}=X_0=0\), this list has the same state counts as the times \(0,\ldots,T_0^+-1\): the initial and final state are both \(0\), and all intervening times are included once in each list. Thus the right side is \(v_j\). We have shown \(\sum_i v_i p_{ij}=v_j\); dividing by the finite positive number \(\mathbb{E}_0[T_0^+]\) gives \(\pi P=\pi\). \(\square\)

Worked Example: An Irreducible Chain on the Nonnegative Integers

Let \(S=\{0,1,2,\ldots\}\). From state \(0\), the chain stays at \(0\) with probability \(\tfrac12\) and moves to \(1\) with probability \(\tfrac12\). From each \(n\ge1\), it moves to \(n+1\) with probability \(\tfrac13\) and to \(0\) with probability \(\tfrac23\). These transition probabilities sum to one at \(0\), since \(\tfrac12+\tfrac12=1\), and at every \(n\ge1\), since \(\tfrac13+\tfrac23=1\). The chain is irreducible: from \(0\) it can reach any \(n\) by successive upward moves, each with positive probability, and from any positive state it can move to \(0\) with probability \(\tfrac23>0\).

Start at \(0\) and consider \(T_0^+\). At time \(0\), there is one visit to \(0\). Each later visit to a positive state occurs in the same cycle only if the chain first leaves \(0\) for \(1\) and then makes enough successive upward moves. For \(n\ge1\), the probability of visiting \(n\) in the cycle is \(\tfrac12(\tfrac13)^{n-1}\). There can be at most one visit to each positive state in a cycle, because after a downward transition the chain goes directly to \(0\). Thus \(v_0=1\) and \(v_n=\tfrac12(\tfrac13)^{n-1}\) for \(n\ge1\).

The expected cycle length is the sum of these expected occupation counts: \(\mathbb{E}_0[T_0^+]=1+\sum_{n=1}^{\infty}\tfrac12(\tfrac13)^{n-1}=1+\tfrac12\cdot\tfrac{1}{1-\tfrac13}=1+\tfrac34=\tfrac74\). The return-cycle proposition therefore gives \(\pi_0=1/(\tfrac74)=\tfrac47\), and for \(n\ge1\), \(\pi_n=\big[\tfrac12(\tfrac13)^{n-1}\big]/(\tfrac74)=\tfrac27(\tfrac13)^{n-1}\).

Normalization check: \(\sum_{n\ge1}\pi_n=\tfrac27\cdot\tfrac{1}{1-\tfrac13}=\tfrac37\), so \(\sum_{n\ge0}\pi_n=\tfrac47+\tfrac37=1\).

Invariance check: State \(1\) receives mass only from \(0\), giving \((\pi P)_1=\tfrac47\cdot\tfrac12=\tfrac27=\pi_1\). For \(n\ge2\), the only incoming transition is from \(n-1\), so \((\pi P)_n=\pi_{n-1}\cdot\tfrac13=\tfrac27(\tfrac13)^{n-2}\cdot\tfrac13=\pi_n\). At state \(0\), incoming mass is \(\pi_0\cdot\tfrac12+\sum_{n\ge1}\pi_n\cdot\tfrac23=\tfrac27+\tfrac37\cdot\tfrac23=\tfrac27+\tfrac27=\tfrac47=\pi_0\). Every coordinate agrees, so the distribution is stationary.

Common Pitfall and Method Selection

Common mistake: in the reducible example, solving the stationary equations within each absorbing class and assigning mass \(\tfrac12\) to each class might be presented as the unique answer. That gives the valid distribution \((\tfrac12,\tfrac12,0)\), but it is not unique: the calculation above shows that \((\theta,1-\theta,0)\) is stationary for every \(0\le\theta\le1\). The correction is to solve the full set of stationary equations and retain all free parameters, then impose nonnegativity and total mass one.

In practice, use the method that exposes the relevant structure. For two states, reduce the equations to a single balance relation and check separately whether its coefficient vanishes. For a reducible finite chain, solve the full equations rather than assuming a unique distribution. For a countable chain with a tractable return cycle, compute expected occupation counts and the expected cycle length, then verify normalization and invariance. In every case, stationarity is the equation \(\pi P=\pi\), not a claim about convergence from a chosen initial distribution.

Check Your Understanding

For each question, state the condition or calculation that justifies your answer.

  1. For the two-state chain with \(\alpha=\tfrac12\) and \(\beta=\tfrac14\), find its stationary distribution and check that its entries sum to one.
  2. What happens to the stationary distributions in the two-state formula when \(\alpha=\beta=0\), and why does the formula with denominator \(\alpha+\beta\) not apply?
  3. For the three-state reducible chain in the example, verify directly that \((\tfrac34,\tfrac14,0)\) is stationary.
  4. In the countable-chain example, why is the probability of visiting state \(n\ge1\) during the return cycle \(\tfrac12(\tfrac13)^{n-1}\)?
  5. Why must the expected return-cycle length be finite before the occupation counts can be normalized into a probability distribution?