Tutorials › Stochastic Processes › Stationary Marginals from an Invariant Initial Law

Stationary Distributions · Tutorial 179 of 994

Stationary Marginals from an Invariant Initial Law

Use the Markov transition rule to prove that an invariant initial law is preserved at every time, then verify the result in finite-state examples.

Intermediate 10 min read

What You'll Learn

  • Define an invariant probability distribution for a time-homogeneous Markov chain.
  • Prove that starting from an invariant law preserves every one-time marginal.
  • Compute successive marginal distributions using row vectors and transition matrices.
  • Verify invariant laws by checking the matrix product and normalization.
  • Distinguish stationary marginals from convergence of distributions started elsewhere.
  • Identify and correct the error of multiplying a row distribution as a column vector.

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\).

Definition: A probability distribution \(\pi\) on \(S\), written as a row vector, is invariant for \(P\) if \(\pi P=\pi\). A chain started with \(X_0\) distributed as \(\pi\) has stationary marginals if \(\mathbb{P}(X_n=i)=\pi_i\) for every \(i\in S\) and every \(n\ge0\).

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.

Theorem: Suppose \(S\) is finite or countable, \(P\) is a time-homogeneous transition matrix on \(S\), and the initial distribution is \(\mu_0=\pi\), where \(\pi\) is a probability distribution satisfying \(\pi P=\pi\). Then \(\mu_n=\pi\) for every integer \(n\ge0\).

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

$$ P=\begin{bmatrix}\tfrac34&\tfrac14\\[2pt]\tfrac12&\tfrac12\end{bmatrix}, \qquad \pi=\left(\tfrac23,\tfrac13\right). $$

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:

$$ \pi P =\left( \tfrac23\cdot\tfrac34+\tfrac13\cdot\tfrac12,\ \tfrac23\cdot\tfrac14+\tfrac13\cdot\tfrac12 \right) =\left(\tfrac12+\tfrac16,\ \tfrac16+\tfrac16\right) =\left(\tfrac23,\tfrac13\right) =\pi. $$

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

$$ P=\begin{bmatrix}0&1&0\\0&0&1\\1&0&0\end{bmatrix}, \qquad \pi=\left(\tfrac13,\tfrac13,\tfrac13\right). $$

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

$$ \pi P =\left( \tfrac13\cdot0+\tfrac13\cdot0+\tfrac13\cdot1,\ \tfrac13\cdot1+\tfrac13\cdot0+\tfrac13\cdot0,\ \tfrac13\cdot0+\tfrac13\cdot1+\tfrac13\cdot0 \right) =\left(\tfrac13,\tfrac13,\tfrac13\right). $$

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

$$ P=\begin{bmatrix} \tfrac12&\tfrac12&0\\ \tfrac14&\tfrac12&\tfrac14\\ 0&\tfrac12&\tfrac12 \end{bmatrix}, \qquad \pi=\left(\tfrac14,\tfrac12,\tfrac14\right). $$

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:

$$ \begin{aligned} (\pi P)_1&=\tfrac14\cdot\tfrac12+\tfrac12\cdot\tfrac14+\tfrac14\cdot0 =\tfrac18+\tfrac18=\tfrac14,\\ (\pi P)_2&=\tfrac14\cdot\tfrac12+\tfrac12\cdot\tfrac12+\tfrac14\cdot\tfrac12 =\tfrac18+\tfrac14+\tfrac18=\tfrac12,\\ (\pi P)_3&=\tfrac14\cdot0+\tfrac12\cdot\tfrac14+\tfrac14\cdot\tfrac12 =\tfrac18+\tfrac18=\tfrac14. \end{aligned} $$

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\).

Consequence: Under the theorem’s assumptions, for every bounded \(f:S\to\mathbb{R}\) and every \(n\ge0\), \(\mathbb{E}[f(X_n)]=\sum_{i\in S}\pi_i f(i)\). In particular, probabilities of state sets and expectations of bounded state functions are constant over time.

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.

  1. State the one-step distribution rule and the condition that makes a probability law invariant.
  2. If \(\pi P=\pi\) and \(\mu_0=\pi\), explain how induction gives \(\mu_n=\pi\) for every \(n\).
  3. For the two-state example, compute \(\mathbb{P}(X_n=2)\) when \(X_0\sim(\tfrac23,\tfrac13)\).
  4. 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?
  5. Why is \(P\begin{bmatrix}\pi_1\\\pi_2\end{bmatrix}\) not the invariance calculation under the course’s row-vector convention?