Stationarity Does Not Require Convergence
A chain can have a stationary distribution even when its distribution at time \(n\) never settles down. A particle moving deterministically around a cycle is the simplest example: its location keeps changing, but a uniform initial location remains uniform at every time. This distinction matters whenever a chain is periodic. The stationary equations describe distributions unchanged by one transition; they do not, by themselves, say that a chain started from a particular state approaches such a distribution.
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})\). Its transition matrix \(P=(p_{ij})\) is row-stochastic: \(p_{ij}=\mathbb{P}(X_{n+1}=j\mid X_n=i)\), and \(\sum_{j\in S}p_{ij}=1\) for each \(i\). Distributions are row vectors, so if the law of \(X_0\) is \(\mu_0\), then the law at time \(n\) is \(\mu_n=\mu_0P^n\).
For a finite chain, existence of a stationary distribution is a standard finite-state result established in the earlier material on existence of stationary laws. Irreducibility is not needed for existence on a finite state space, but it is useful here because it gives a single cyclic structure and, as shown below, a unique stationary distribution. Periodicity does not prevent stationarity.
Deterministic Cycles
On a deterministic cycle, each state has exactly one successor, and the last state returns to the first. Starting at a fixed state makes the distribution rotate forever. In contrast, the uniform distribution assigns the same mass to every point of the cycle, so one transition merely permutes its entries.
Worked Example: A Four-State Deterministic Cycle
Let \(S=\{1,2,3,4\}\), with transitions \(1\to2\), \(2\to3\), \(3\to4\), and \(4\to1\), each with probability \(1\). The transition matrix is
Every row sums to \(1\): the row sums are \(0+1+0+0=1\), \(0+0+1+0=1\), \(0+0+0+1=1\), and \(1+0+0+0=1\). To find a stationary distribution, write \(\pi=(\pi_1,\pi_2,\pi_3,\pi_4)\). The equation \(\pi P=\pi\) gives \(\pi_1=\pi_4\), \(\pi_2=\pi_1\), \(\pi_3=\pi_2\), and \(\pi_4=\pi_3\). Thus all four coordinates are equal. Since they sum to \(1\), each is \(1/4\), so \(\pi=(1/4,1/4,1/4,1/4)\).
Check: Multiplying gives \(\pi P=(1/4,1/4,1/4,1/4)\), and \(4(1/4)=1\). But from \(X_0=1\), the time-\(n\) distribution is \((1,0,0,0)\) when \(n\) is a multiple of \(4\), and rotates through the four point masses at other times. It does not converge to \(\pi\).
The example illustrates the distinction precisely. If \(X_0\) has law \(\pi\), then the law of \(X_1\) is \(\pi P=\pi\); repeating this argument gives \(\pi P^n=\pi\) for every \(n\ge0\). A stationary law is therefore a choice of initial distribution that remains unchanged. It is not a claim about the long-run behavior from every initial state.
Cyclic Classes and Equal Stationary Mass
In an irreducible chain of period \(d\), the states can be divided into \(d\) nonempty cyclic classes \(C_0,\ldots,C_{d-1}\), with indices read modulo \(d\), so that every transition from a state in \(C_r\) goes to a state in \(C_{r+1}\). This is the standard cyclic decomposition theorem from periodicity theory. The classes explain the time pattern: if \(X_0\in C_r\), then \(X_n\in C_{r+n\ {\rm mod}\ d}\) with probability \(1\).
Proof. Write \(\pi(C_r)=\sum_{i\in C_r}\pi_i\). Stationarity says that the mass in \(C_{r+1}\) after one step is the mass that was in \(C_r\) before the step: transitions from \(C_r\) all enter \(C_{r+1}\), and transitions from any other class cannot enter \(C_{r+1}\), because transitions go only to the next class. Hence \(\pi(C_{r+1})=\pi(C_r)\) for every \(r\). The \(d\) class masses are equal, and their sum is \(\sum_{i\in S}\pi_i=1\), so each is \(1/d\). For the second assertion, start in \(C_r\) and consider the event \(X_n\in C_r\). Its probability is \(1\) when \(n\) is divisible by \(d\), and \(0\) otherwise. For \(d>1\), these probabilities do not converge. On a finite state space, convergence of the distributions would imply convergence of the probability of every subset, including \(C_r\), so the time-specific distributions cannot converge. \(\square\)
For a finite irreducible chain, the stationary distribution is unique. The finite-state existence result supplies at least one stationary distribution; the following argument proves uniqueness and also verifies that its coordinates are positive.
Proof. Let \(\pi\) be a stationary distribution. It has at least one positive coordinate because its coordinates sum to \(1\). If \(\pi_j=0\), stationarity gives \(0=\pi_j=\sum_i\pi_i p_{ij}\). All terms are nonnegative, so \(p_{ij}=0\) for every \(i\) with \(\pi_i>0\). Repeating this argument along paths shows that no state reachable from a positive-mass state can have positive incoming transition probability from the preceding state. Irreducibility supplies a path from a positive-mass state to \(j\), a contradiction. Thus \(\pi_j>0\) for every \(j\).
Now suppose \(\nu\) is another stationary distribution. Define \(r_i=\nu_i/\pi_i\), which is well-defined because \(\pi_i>0\). For each \(j\), stationarity of \(\nu\) and \(\pi\) gives \[ r_j=\sum_i \frac{\pi_i p_{ij}}{\pi_j}r_i. \] The coefficients \(\pi_i p_{ij}/\pi_j\) are nonnegative and sum to \(1\), since \(\sum_i\pi_i p_{ij}=\pi_j\). Choose \(j\) where \(r_j\) is maximal. A weighted average of values no larger than \(r_j\) equals \(r_j\), so every \(i\) with \(p_{ij}>0\) has \(r_i=r_j\). Applying the same argument backwards along paths ending at \(j\), irreducibility implies \(r_i=r_j\) for every state \(i\). Thus \(\nu=c\pi\) for a constant \(c\). Since both distributions sum to \(1\), \(c=1\) and \(\nu=\pi\). \(\square\)
Computing Stationary Laws in Periodic Chains
The stationary equations are ordinary balance equations: the mass assigned to a state must equal the total mass flowing into it in one step. Periodicity affects how the chain moves between classes, but it does not change how these equations are solved. The next examples show the equations and the cyclic structure together.
Worked Example: A Four-State Chain of Period Two
Let \(S=\{1,2,3,4\}\). From state \(1\), move to \(3\) with probability \(1\); from \(2\), move to \(3\) or \(4\) with probability \(1/2\) each; from \(3\), move to \(1\) with probability \(1/3\) or \(2\) with probability \(2/3\); and from \(4\), move to \(2\) with probability \(1\). The matrix is
The row sums are \(1\), \(0+0+1+0=1\), \(0+0+\tfrac12+\tfrac12=1\), \(\tfrac13+\tfrac23+0+0=1\), and \(0+1+0+0=1\). The two classes are \(C_0=\{1,2\}\) and \(C_1=\{3,4\}\); all transitions go between them, and the chain is irreducible. Hence its period is \(2\).
Writing \(\pi=(\pi_1,\pi_2,\pi_3,\pi_4)\), the balance equations are \[ \pi_1=\tfrac13\pi_3,\quad \pi_2=\tfrac23\pi_3+\pi_4,\quad \pi_3=\pi_1+\tfrac12\pi_2,\quad \pi_4=\tfrac12\pi_2. \] Set \(\pi_3=x\). The first equation gives \(\pi_1=x/3\), and the fourth gives \(\pi_4=\pi_2/2\). Substituting into the second gives \(\pi_2=2x/3+\pi_2/2\), so \(\pi_2=4x/3\) and \(\pi_4=2x/3\). The coordinates sum to \(x/3+4x/3+x+2x/3=10x/3\), so normalization requires \(x=3/10\). Therefore \(\pi=(1/10,2/5,3/10,1/5)\).
Check: The entries sum to \(1/10+2/5+3/10+1/5=1\). Multiplication gives \[ \pi P=(\tfrac13\cdot\tfrac3{10},\ \tfrac23\cdot\tfrac3{10}+\tfrac15,\ \tfrac1{10}+\tfrac12\cdot\tfrac25,\ \tfrac12\cdot\tfrac25) =(\tfrac1{10},\tfrac25,\tfrac3{10},\tfrac15)=\pi. \] The class masses are \(\pi(C_0)=1/10+2/5=1/2\) and \(\pi(C_1)=3/10+1/5=1/2\), as required. From a start in \(C_0\), however, the distribution assigns probability \(1\) to \(C_0\) at even times and to \(C_1\) at odd times.
Worked Example: A Period-Three Chain with a Split Transition
Let \(S=\{1,2,3,4\}\). States \(1\) and \(2\) each move to \(3\) with probability \(1\); state \(3\) moves to \(4\) with probability \(1\); and state \(4\) moves to \(1\) or \(2\) with probability \(1/2\) each. The matrix is
Each row sums to \(1\): the sums are \(1\), \(1\), \(1\), and \(\tfrac12+\tfrac12=1\). The cyclic classes are \(C_0=\{1,2\}\), \(C_1=\{3\}\), and \(C_2=\{4\}\). The chain is irreducible, and returns can occur only at multiples of \(3\), with a return possible in \(3\) steps; its period is \(3\).
The stationary equations give \(\pi_1=\pi_4/2\), \(\pi_2=\pi_4/2\), \(\pi_3=\pi_1+\pi_2\), and \(\pi_4=\pi_3\). Setting \(\pi_4=x\) yields \(\pi_1=\pi_2=x/2\) and \(\pi_3=x\). Normalization gives \(x/2+x/2+x+x=3x=1\), so \(x=1/3\) and \(\pi=(1/6,1/6,1/3,1/3)\).
Check: The entries sum to \(1/6+1/6+1/3+1/3=1\). Also, \[ \pi P=(\tfrac12\cdot\tfrac13,\ \tfrac12\cdot\tfrac13,\ \tfrac16+\tfrac16,\ \tfrac13) =(\tfrac16,\tfrac16,\tfrac13,\tfrac13)=\pi. \] Each cyclic class has mass \(1/3\): the first has \(1/6+1/6=1/3\), the second has \(1/3\), and the third has \(1/3\). Starting in state \(1\), the chain lies in \(C_0,C_1,C_2,C_0,\ldots\) at successive times, so its distribution does not converge.
A Common Mistake: Confusing Invariance with a Limit
A common error is to average the states visited over a cycle and call that average the time-\(n\) distribution. For the four-state deterministic cycle started at state \(1\), the chain visits each state once in every four steps, so its long-run fraction of visits to each state is \(1/4\). But at time \(n=4k\), its distribution is the point mass at state \(1\), not the uniform distribution. The visit-frequency calculation describes an average across times, not the distribution at one specified time. In particular, it does not show convergence of \(\mu_0P^n\).
When computing a stationary law, check the balance equation \(\pi P=\pi\) and normalization \(\sum_i\pi_i=1\). When interpreting the result, separately check whether the chain is periodic. If it is irreducible with period \(d>1\), its cyclic classes force time-specific oscillation from any fixed starting state, even though the unique stationary law exists and assigns mass \(1/d\) to each class.
Check Your Understanding
Use the balance equations and cyclic classes to support each answer.
- For a deterministic cycle on \(m\) states, what is the stationary distribution? Verify the balance equation using the fact that each state has exactly one predecessor.
- In a finite irreducible chain of period \(d\), why must every cyclic class have stationary mass \(1/d\)?
- A chain starts in one cyclic class of a period-two chain. What is the probability of being in that same class at even times and at odd times?
- Explain why a stationary distribution does not imply that the distributions from a fixed starting state converge.
- For the period-three example, verify the stationary balance equation for state \(4\) and state the mass of each cyclic class.