Invariance Persists at Every Time
A transition matrix describes how a chain’s distribution changes in one step. If a probability distribution is unchanged by that step, it is natural to ask whether it stays unchanged after many steps. The answer follows by repeatedly applying the same transition rule: an invariant initial law is the marginal distribution at every time. This statement concerns a chain started from that law; it does not say that every initial distribution converges to it.
Let \((X_n)_{n\ge0}\) be a time-homogeneous Markov chain on a finite or countable state space \(S\), defined on a probability space \((\Omega,\mathcal{F},\mathbb{P})\). Let \(\mathcal{F}_n=\sigma(X_0,\ldots,X_n)\) be its natural filtration. Its transition matrix is \(P=(p_{ij})\), where \(p_{ij}=\mathbb{P}(X_{n+1}=j\mid X_n=i)\); each row is a probability distribution. Write the law of \(X_n\) as the row vector \(\mu_n\), so that \(\mu_n(i)=\mathbb{P}(X_n=i)\) and the one-step distribution rule is \(\mu_{n+1}=\mu_nP\).
The definition says that one application of the transition rule leaves \(\pi\) unchanged. The result below shows that this one-step property is enough for all times. It does not require irreducibility, aperiodicity, or finiteness of the state space; the transition probabilities must be defined for every state, and \(P\) must be the same at every time.
Proof. We use induction on \(n\). At \(n=0\), \(\mu_0=\pi\) by assumption. Suppose \(\mu_n=\pi\). The Markov property gives \(\mathbb{P}(X_{n+1}=j)=\sum_{i\in S}\mathbb{P}(X_n=i)p_{ij}\) for each \(j\in S\). Thus \(\mu_{n+1}(j)=\sum_{i\in S}\pi_i p_{ij}=(\pi P)_j=\pi_j\). The sum is well-defined because its terms are nonnegative and bounded in total by \(\sum_i\pi_i=1\). Hence \(\mu_{n+1}=\pi\), completing the induction. \(\square\)
Equivalently, repeated application of the distribution rule gives \(\mu_n=\mu_0P^n\). If \(\mu_0=\pi\), then \(\mu_n=\pi P^n=\pi\): this follows by induction from \(\pi P=\pi\), since \(\pi P^{n+1}=(\pi P^n)P=\pi P=\pi\) whenever \(\pi P^n=\pi\). The one-step proof makes explicit how each marginal is obtained; the matrix-power form is often convenient for calculations.
Finite-State Calculations
In each example, distributions are row vectors and states are listed in the same order in the matrix and vector. Before using a transition matrix, check its row sums. To verify an invariant law, compute every coordinate of \(\pi P\) and check that the proposed probabilities sum to one. Once verified, the theorem gives all later marginals without requiring a fresh multiplication at each time.
Worked Example: A Two-State Chain
Let \(S=\{1,2\}\), with transition matrix and initial distribution
Both rows sum to one: \(\tfrac34+\tfrac14=1\) and \(\tfrac12+\tfrac12=1\). The initial distribution is a probability law because \(\tfrac23+\tfrac13=1\). Check invariance by multiplying in the row-vector convention:
Therefore \(\mu_n=(\tfrac23,\tfrac13)\) for every \(n\ge0\). For a direct check of the first step, \(\mu_1=\pi P=(\tfrac23,\tfrac13)\). Applying the transition rule once more gives \(\mu_2=(\tfrac23\cdot\tfrac34+\tfrac13\cdot\tfrac12,\ \tfrac23\cdot\tfrac14+\tfrac13\cdot\tfrac12)=(\tfrac23,\tfrac13)\). These computations agree with the theorem.
Worked Example: Invariant Marginals in a Periodic Chain
Let \(S=\{1,2,3\}\), with the chain moving deterministically from \(1\) to \(2\), from \(2\) to \(3\), and from \(3\) to \(1\). Its transition matrix and a proposed initial law are
Every row sums to one: \(0+1+0=1\), \(0+0+1=1\), and \(1+0+0=1\). The entries of \(\pi\) sum to \(\tfrac13+\tfrac13+\tfrac13=1\). The product is
Thus if \(X_0\) has law \(\pi\), then every \(X_n\) also has law \(\pi\). This does not mean that the chain stays in its initial state. For instance, starting instead from state \(1\) with probability one gives \(\mu_0=(1,0,0)\), \(\mu_1=(0,1,0)\), and \(\mu_2=(0,0,1)\). These distributions keep cycling, rather than converging to \(\pi\). The example separates the claim proved here—preservation when the initial law is invariant—from a different claim about the long-run behavior of chains with other initial laws.
Worked Example: A Nonuniform Invariant Law
Consider the state space \(S=\{1,2,3\}\) and the transition matrix
The row sums are \(\tfrac12+\tfrac12+0=1\), \(\tfrac14+\tfrac12+\tfrac14=1\), and \(0+\tfrac12+\tfrac12=1\). The proposed law is normalized because \(\tfrac14+\tfrac12+\tfrac14=1\). Calculate the three coordinates of its image:
Therefore \(\pi P=\pi\), and starting with \(X_0\sim\pi\) gives \(\mu_n=\pi\) at every time. As a numerical check of the transition rule, applying it to the displayed initial law gives \(\mu_1=(\tfrac14,\tfrac12,\tfrac14)\), exactly as calculated coordinate by coordinate. Applying it again uses those same three coordinates, so \(\mu_2=\pi P=\pi\) as well.
Consequences and Limits of the Result
Stationary marginals make one-time probability calculations straightforward. If \(A\subseteq S\), then for a chain started from \(\pi\), \(\mathbb{P}(X_n\in A)=\sum_{i\in A}\pi_i\) for every \(n\). More generally, for any bounded function \(f:S\to\mathbb{R}\), the expectation of \(f(X_n)\) does not depend on \(n\).
Proof. Since \(\mu_n=\pi\), the definition of expectation for a countable-valued random variable gives \(\mathbb{E}[f(X_n)]=\sum_{i\in S}f(i)\mathbb{P}(X_n=i)=\sum_{i\in S}f(i)\pi_i\). The sum is absolutely convergent: if \(|f(i)|\le C\), then \(\sum_i|f(i)|\pi_i\le C\sum_i\pi_i=C\). For an event \(A\), take \(f=\mathbf{1}_A\), obtaining \(\mathbb{P}(X_n\in A)=\sum_{i\in A}\pi_i\). \(\square\)
This result is useful whenever a question concerns the state of a chain at a specified time and the chain is initialized from an invariant law. It lets us answer those questions using \(\pi\) alone, without computing \(P^n\). It also identifies the scope of the conclusion: it gives the marginal law at each time, not a claim that the realized state is constant, nor a claim that a chain started from an arbitrary law approaches \(\pi\). The three-state cycle illustrates why the latter claim would require additional hypotheses.
Common pitfall: treating a row distribution as a column vector. With the two-state matrix above, the convention is \(\mu_{n+1}=\mu_nP\), so \(\pi P=(\tfrac23,\tfrac13)\). If one incorrectly computes \(P\begin{bmatrix}\tfrac23\\\tfrac13\end{bmatrix}\), the result is \(\begin{bmatrix}\tfrac7{12}\\\tfrac12\end{bmatrix}\): its first coordinate is \(\tfrac34\cdot\tfrac23+\tfrac14\cdot\tfrac13=\tfrac7{12}\), and its second is \(\tfrac12\cdot\tfrac23+\tfrac12\cdot\tfrac13=\tfrac12\). That calculation does not test invariance under the row-vector convention. The correction is to multiply the row vector on the left, as in the verified calculation in the example.
Check Your Understanding
For each question, keep the state order fixed and write distributions as row vectors.
- State the one-step distribution rule and the condition that makes a probability law invariant.
- If \(\pi P=\pi\) and \(\mu_0=\pi\), explain how induction gives \(\mu_n=\pi\) for every \(n\).
- For the two-state example, compute \(\mathbb{P}(X_n=2)\) when \(X_0\sim(\tfrac23,\tfrac13)\).
- In the three-state cycle, what are the first three laws when \(X_0=1\) with probability one? Why do they not contradict the theorem?
- Why is \(P\begin{bmatrix}\pi_1\\\pi_2\end{bmatrix}\) not the invariance calculation under the course’s row-vector convention?