Tutorials › Stochastic Processes › Propagating Initial Distributions Through n Steps

Chapman-Kolmogorov Equations and n-Step Transitions · Tutorial 113 of 994

Propagating Initial Distributions Through n Steps

Learn why the distribution at step \(n\) is the initial row distribution multiplied by the \(n\)th power of the transition matrix, and how to check the resulting probabilities.

Intermediate 11 min read

What You'll Learn

  • Derive the one-step update from the Markov property and conditional probability.
  • Prove the distribution formula for any nonnegative integer number of steps.
  • Use row-vector multiplication to compute exact finite-chain state probabilities.
  • Check distributions by summing their entries and applying another transition.
  • Avoid the common error of multiplying a row distribution on the wrong side.

How an Initial Distribution Evolves

A transition matrix describes what happens over one step when the current state is known. Often, however, the chain starts in a state that is itself random. To find the probability of each state after several steps, we combine the initial uncertainty with the one-step transition rule. The resulting calculation is compact: multiply a row distribution by the transition matrix once for each step.

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})\). Write \(\mathcal{F}_n=\sigma(X_0,\ldots,X_n)\) for the information observed through time \(n\). Its transition matrix is \(P=(p_{ij})\), where \(p_{ij}=\mathbb{P}(X_{n+1}=j\mid\mathcal{F}_n)\) when \(X_n=i\), almost surely. The transition rule is specified for every state, including states that have probability zero under a particular initial distribution. Each row of \(P\) is a probability distribution.

Definition: The distribution of \(X_n\) is the row vector \(\mu_n\) with entries \(\mu_n(j)=\mathbb{P}(X_n=j)\). In particular, \(\mu_0\) is the initial distribution. For a nonnegative integer \(n\), \(P^n\) is the \(n\)-step transition matrix, with \(P^0=I\), the identity matrix.

Keeping distributions as row vectors fixes the order of multiplication. If the chain is in state \(i\) with probability \(\mu_n(i)\), then it contributes \(\mu_n(i)p_{ij}\) to the probability of being in state \(j\) at the next step. Adding those contributions over possible current states gives the one-step update.

Theorem (Distribution propagation): For a time-homogeneous Markov chain with transition matrix \(P\) and initial row distribution \(\mu_0\), the distribution at time \(n\) is \(\mu_n=\mu_0P^n\) for every integer \(n\ge0\). In coordinates, \(\mu_{n+1}(j)=\sum_{i\in S}\mu_n(i)p_{ij}\).

Proof. First consider one step. For any \(j\in S\), partition the event \(\{X_{n+1}=j\}\) according to the value \(i\) of \(X_n\). The law of total probability and the Markov property give \(\mathbb{P}(X_{n+1}=j)=\sum_{i\in S}\mathbb{P}(X_n=i)\mathbb{P}(X_{n+1}=j\mid X_n=i)=\sum_{i\in S}\mu_n(i)p_{ij}\). For countable \(S\), these are sums of nonnegative terms. This is precisely the \(j\)th coordinate of \(\mu_nP\), so \(\mu_{n+1}=\mu_nP\). At \(n=0\), the claim \(\mu_0=\mu_0P^0\) follows from \(P^0=I\). If \(\mu_n=\mu_0P^n\), then the one-step update gives \(\mu_{n+1}=\mu_nP=(\mu_0P^n)P=\mu_0P^{n+1}\). Induction proves the formula for all \(n\ge0\). \(\square\)

This calculation depends on the distribution at the current time, not just on the initial state. Each multiplication incorporates one more transition. The time-homogeneity assumption matters: it lets us use the same matrix \(P\) at each step. For a chain with a different transition matrix at each time, the update would instead multiply by the matrix for the next transition.

Proposition (Probabilities of events and expectations): For any subset \(A\subseteq S\), \(\mathbb{P}(X_n\in A)=\sum_{j\in A}\mu_n(j)\). If \(S\) is finite and \(f:S\to\mathbb{R}\), then \(\mathbb{E}[f(X_n)]=\mu_n f\), where \(f\) is viewed as a column vector.

Proof. The events \(\{X_n=j\}\), for \(j\in A\), are disjoint and their union is \(\{X_n\in A\}\). Countable additivity therefore gives \(\mathbb{P}(X_n\in A)=\sum_{j\in A}\mathbb{P}(X_n=j)=\sum_{j\in A}\mu_n(j)\). For finite \(S\), the expectation of \(f(X_n)\) is \(\sum_{j\in S}f(j)\mathbb{P}(X_n=j)=\sum_{j\in S}\mu_n(j)f(j)\), which is the row-by-column product \(\mu_n f\). \(\square\)

The proposition shows how to extract a quantity of interest once the distribution is known. For example, the probability of a specified collection of states is found by summing its entries; the expected value of a numerical state label is found by weighting each entry by that label.

Worked Example: Three Steps from a Known Initial State

Let \(S=\{1,2\}\), with transition matrix \(P=\begin{bmatrix}\tfrac34&\tfrac14\\ \tfrac12&\tfrac12\end{bmatrix}\), and suppose \(X_0=1\) with probability \(1\). The first row sums to \(\tfrac34+\tfrac14=1\), and the second sums to \(\tfrac12+\tfrac12=1\). Thus \(\mu_0=(1,0)\) is a row distribution, and we can propagate it by multiplication.

For the first step, \(\mu_1=\mu_0P=(1,0)P=(\tfrac34,\tfrac14)\). For the second step,

$$ \mu_2 = \left(\tfrac34,\tfrac14\right) \begin{bmatrix}\tfrac34&\tfrac14\\ \tfrac12&\tfrac12\end{bmatrix} = \left(\tfrac9{16}+\tfrac18,\ \tfrac3{16}+\tfrac18\right) = \left(\tfrac{11}{16},\tfrac5{16}\right). $$

For the third step,

$$ \mu_3 = \left(\tfrac{11}{16},\tfrac5{16}\right) \begin{bmatrix}\tfrac34&\tfrac14\\ \tfrac12&\tfrac12\end{bmatrix} = \left(\tfrac{33}{64}+\tfrac{10}{64},\ \tfrac{11}{64}+\tfrac{10}{64}\right) = \left(\tfrac{43}{64},\tfrac{21}{64}\right). $$

Check: The entries of \(\mu_1,\mu_2,\mu_3\) sum respectively to \(\tfrac34+\tfrac14=1\), \(\tfrac{11}{16}+\tfrac5{16}=1\), and \(\tfrac{43}{64}+\tfrac{21}{64}=1\). The third-step answer also satisfies the update: \(\tfrac{11}{16}\cdot\tfrac34+\tfrac5{16}\cdot\tfrac12=\tfrac{43}{64}\) for state \(1\), and \(\tfrac{11}{16}\cdot\tfrac14+\tfrac5{16}\cdot\tfrac12=\tfrac{21}{64}\) for state \(2\).

Worked Example: Propagating a Random Initial State

Consider \(S=\{0,1,2\}\) and \(P=\begin{bmatrix}\tfrac12&\tfrac12&0\\ 0&\tfrac13&\tfrac23\\ \tfrac14&0&\tfrac34\end{bmatrix}\), with initial distribution \(\mu_0=(\tfrac12,\tfrac13,\tfrac16)\). The row sums of \(P\) are \(\tfrac12+\tfrac12+0=1\), \(0+\tfrac13+\tfrac23=1\), and \(\tfrac14+0+\tfrac34=1\). The initial entries sum to \(\tfrac12+\tfrac13+\tfrac16=1\).

Multiplying by \(P\), the probability of state \(0\) after one step is \(\tfrac12\cdot\tfrac12+\tfrac13\cdot0+\tfrac16\cdot\tfrac14=\tfrac14+\tfrac1{24}=\tfrac7{24}\). The probability of state \(1\) is \(\tfrac12\cdot\tfrac12+\tfrac13\cdot\tfrac13+\tfrac16\cdot0=\tfrac14+\tfrac19=\tfrac{13}{36}\). The probability of state \(2\) is \(\tfrac12\cdot0+\tfrac13\cdot\tfrac23+\tfrac16\cdot\tfrac34=\tfrac29+\tfrac18=\tfrac{25}{72}\). Hence \(\mu_1=(\tfrac7{24},\tfrac{13}{36},\tfrac{25}{72})\); its entries sum to \(\tfrac{21}{72}+\tfrac{26}{72}+\tfrac{25}{72}=1\).

Multiplying \(\mu_1\) by \(P\), the three entries of \(\mu_2\) are

$$ \begin{aligned} \mu_2(0)&=\tfrac7{24}\cdot\tfrac12+\tfrac{13}{36}\cdot0+\tfrac{25}{72}\cdot\tfrac14 =\tfrac7{48}+\tfrac{25}{288}=\tfrac{67}{288},\\ \mu_2(1)&=\tfrac7{24}\cdot\tfrac12+\tfrac{13}{36}\cdot\tfrac13+\tfrac{25}{72}\cdot0 =\tfrac7{48}+\tfrac{13}{108}=\tfrac{115}{432},\\ \mu_2(2)&=\tfrac7{24}\cdot0+\tfrac{13}{36}\cdot\tfrac23+\tfrac{25}{72}\cdot\tfrac34 =\tfrac{13}{54}+\tfrac{25}{96}=\tfrac{433}{864}. \end{aligned} $$

Check: With denominator \(864\), the entries are \(\tfrac{201}{864},\tfrac{230}{864},\tfrac{433}{864}\), which sum to \(\tfrac{864}{864}=1\). The state \(2\) probability, for instance, is confirmed by substituting the time-one distribution: \(\tfrac{13}{36}\cdot\tfrac23+\tfrac{25}{72}\cdot\tfrac34=\tfrac{208}{864}+\tfrac{225}{864}=\tfrac{433}{864}\).

Worked Example: Checking Two Steps with a Matrix Square

Let \(S=\{1,2\}\), \(P=\begin{bmatrix}\tfrac12&\tfrac12\\ \tfrac14&\tfrac34\end{bmatrix}\), and \(\mu_0=(\tfrac12,\tfrac12)\). Both rows sum to \(1\), and the initial entries also sum to \(1\). One step gives \(\mu_1=(\tfrac12\cdot\tfrac12+\tfrac12\cdot\tfrac14,\ \tfrac12\cdot\tfrac12+\tfrac12\cdot\tfrac34)=(\tfrac38,\tfrac58)\).

Applying the update again, \(\mu_2=(\tfrac38\cdot\tfrac12+\tfrac58\cdot\tfrac14,\ \tfrac38\cdot\tfrac12+\tfrac58\cdot\tfrac34)=(\tfrac{11}{32},\tfrac{21}{32})\). We can check the same answer by first squaring the transition matrix:

$$ P^2= \begin{bmatrix} \tfrac14+\tfrac18&\tfrac14+\tfrac38\\ \tfrac18+\tfrac3{16}&\tfrac18+\tfrac9{16} \end{bmatrix} = \begin{bmatrix}\tfrac38&\tfrac58\\ \tfrac5{16}&\tfrac{11}{16}\end{bmatrix}. $$

Each row of \(P^2\) sums to \(1\): \(\tfrac38+\tfrac58=1\) and \(\tfrac5{16}+\tfrac{11}{16}=1\). Then \(\mu_0P^2=(\tfrac12\cdot\tfrac38+\tfrac12\cdot\tfrac5{16},\ \tfrac12\cdot\tfrac58+\tfrac12\cdot\tfrac{11}{16})=(\tfrac{11}{32},\tfrac{21}{32})\), matching the repeated one-step update. The probability of being in state \(2\) after two steps is therefore \(\tfrac{21}{32}\).

Reading and Checking the Update

The formula \(\mu_n=\mu_0P^n\) separates two ingredients: the initial distribution and the transition mechanism. The matrix \(P^n\) describes the transition probabilities over \(n\) steps, while multiplying on the left by \(\mu_0\) averages those transitions over the possible starting states. In particular, if the initial state is known to be \(i\), then \(\mu_0\) has a \(1\) in position \(i\) and zeros elsewhere, so \(\mu_n\) is row \(i\) of \(P^n\).

For a set \(A\) of states, the desired probability is \(\sum_{j\in A}\mu_n(j)\), not a matrix entry unless \(A\) contains just one state. For a finite state space and a numerical function \(f\), the expected value is the row-by-column product \(\mu_n f\). These are direct uses of the time-\(n\) distribution; they do not require a separate calculation of the full sample path.

Common mistake: multiplying on the wrong side. In the first example, treating the initial row distribution \((1,0)\) as a column and computing \(P\begin{bmatrix}1\\0\end{bmatrix}\) gives \(\begin{bmatrix}\tfrac34\\\tfrac12\end{bmatrix}\). Its entries sum to \(\tfrac54\), so it cannot be a probability distribution. The correct calculation is \((1,0)P=(\tfrac34,\tfrac14)\), whose entries sum to \(1\). With the row-vector convention, distributions multiply on the left and transition matrices on the right.

Another useful check is to verify the answer in two ways when practical: update one step at a time, or compute \(P^n\) and then multiply by \(\mu_0\). Agreement does not replace checking the inputs: first confirm that the entries of the initial vector sum to \(1\) and that each row of \(P\) sums to \(1\). Then confirm that the computed distribution has nonnegative entries summing to \(1\).

Check Your Understanding

Use row-vector multiplication and exact fractions. Check the row sums and the final distribution in each calculation.

  1. If \(\mu_0=(0,1)\) and \(P=\begin{bmatrix}\tfrac34&\tfrac14\\ \tfrac12&\tfrac12\end{bmatrix}\), find \(\mu_1\).
  2. For the matrix and initial distribution in Question 1, compute the probability of state \(1\) at time \(2\).
  3. Explain why \(P^0=I\) implies \(\mu_0P^0=\mu_0\).
  4. For a finite state space, express \(\mathbb{E}[f(X_n)]\) using \(\mu_n\) and a column vector.
  5. A proposed time-\(n\) row vector has nonnegative entries but sums to \(\tfrac78\). What does this indicate about the calculation?