Tutorials › Stochastic Processes › Time Reversal of a Stationary Markov Chain

Reversibility and Detailed Balance · Tutorial 256 of 994

Time Reversal of a Stationary Markov Chain

Learn how stationary path probabilities determine the chain’s law when time is read backward.

Advanced 10 min read

What You'll Learn

  • Define the reversed process from a stationary chain’s finite-window distributions.
  • Derive the reverse transition probabilities from the joint law of consecutive states.
  • Prove the finite-dimensional path-probability formula in reverse time.
  • Identify the states on which the reverse kernel is defined by conditioning.
  • Check reverse laws using asymmetric, cyclic, and zero-mass examples.
  • Avoid confusing a forward transition with the probability of its reversed transition.

Reading a Stationary Chain Backward

A Markov chain evolves forward by choosing its next state from its current state. If the chain is observed in equilibrium, its past also has a precise probability law when viewed from the present. That law is determined by the joint probabilities of consecutive states. In general, reading the chain backward changes its transition probabilities: the chance that the previous state was \(j\), given that the current state is \(i\), need not equal the forward probability of moving from \(i\) to \(j\).

Let \((X_n)_{n\ge 0}\) be a discrete-time Markov chain on a finite or countable state space \(S\), defined on a probability space \((\Omega,\mathcal{F},\mathbb{P})\), with transition matrix \(P=(p_{ij})\). The matrix is row-stochastic, so \(\sum_{j\in S}p_{ij}=1\) for every \(i\). Suppose the chain starts with distribution \(\pi\), a row vector satisfying \(\pi P=\pi\). Then \(X_n\) has distribution \(\pi\) at every time \(n\); this is the stationarity assumption used below.

For a finite window \(X_0,\ldots,X_m\), reading backward gives \(X_m,\ldots,X_0\). The distribution of this reversed window does not depend on where the window starts, by stationarity. We define the reversed chain in law by starting with distribution \(\pi\) and using the transition probabilities obtained from those backward windows. This definition concerns distributions: it does not assert that a one-sided chain already defined on \(\Omega\) has values \(X_{-1},X_{-2},\ldots\) on that same probability space.

Definition: Let \(S_\pi=\{i\in S:\pi_i>0\}\). For \(i,j\in S_\pi\), define the reverse transition probability \(q_{ij}=\mathbb{P}(X_{n-1}=j\mid X_n=i)\), where the conditional probability is under the stationary law. The reversed chain \((Y_n)_{n\ge0}\) has initial distribution \(\pi\) and transition matrix \(Q=(q_{ij})\) on \(S_\pi\). The formula below gives \(q_{ij}\) explicitly. States with \(\pi_i=0\) are not visited under the stationary law, so conditioning on \(X_n=i\) is not defined there.

Deriving the Reverse Transition Probabilities

For \(i,j\in S_\pi\), the event that the chain is at \(j\) and then moves to \(i\) has probability \(\pi_jp_{ji}\). Also, \(\mathbb{P}(X_n=i)=\pi_i>0\). Thus the conditional probability of the previous state \(j\), given current state \(i\), is

$$ q_{ij}=\frac{\pi_jp_{ji}}{\pi_i}. $$

This calculation requires \(\pi_i>0\). It also shows why the order of the indices matters: \(p_{ji}\) is the forward probability of moving from the proposed previous state \(j\) to the current state \(i\).

Theorem (Reverse-chain path law): Suppose \(P\) is a transition matrix on a finite or countable state space \(S\), and \(\pi\) is a stationary probability distribution, so \(\pi P=\pi\). On \(S_\pi\), the values \(q_{ij}=\pi_jp_{ji}/\pi_i\) form a row-stochastic transition matrix. The chain \((Y_n)_{n\ge0}\) with initial distribution \(\pi\) and transition matrix \(Q\) has, for every \(m\ge0\) and \(i_0,\ldots,i_m\in S_\pi\), path probabilities \(\mathbb{P}(Y_0=i_0,\ldots,Y_m=i_m)=\pi_{i_m}p_{i_m i_{m-1}}\cdots p_{i_1 i_0}\). These are exactly the stationary probabilities of observing the original chain’s consecutive states in the order \(X_m=i_0,\ldots,X_0=i_m\).

Proof. First fix \(i\in S_\pi\). Since \(\pi P=\pi\), the \(i\)th component of this equality is \(\pi_i=\sum_{j\in S}\pi_jp_{ji}\). Therefore \[ \sum_{j\in S_\pi}q_{ij} =\frac{1}{\pi_i}\sum_{j\in S_\pi}\pi_jp_{ji} =\frac{\pi_i}{\pi_i}=1. \] Terms with \(j\notin S_\pi\) vanish because \(\pi_j=0\), so restricting the sum to \(S_\pi\) changes nothing. Each \(q_{ij}\) is nonnegative, and if \(q_{ij}>0\), then \(\pi_j>0\); hence the reverse transition stays within \(S_\pi\). Thus \(Q\) is row-stochastic on \(S_\pi\).

For the path formula, the Markov property gives the forward stationary path probability \[ \mathbb{P}(X_0=i_m,\ldots,X_m=i_0) =\pi_{i_m}p_{i_m i_{m-1}}\cdots p_{i_1 i_0}. \] The probability for the reversed chain, by its initial distribution and transition rule, is \[ \pi_{i_0}\prod_{r=1}^{m}q_{i_{r-1}i_r} =\pi_{i_0}\prod_{r=1}^{m} \frac{\pi_{i_r}p_{i_r i_{r-1}}}{\pi_{i_{r-1}}}. \] The factors involving \(\pi\) cancel consecutively: the initial \(\pi_{i_0}\) cancels the first denominator, and each subsequent numerator cancels the next denominator, leaving \(\pi_{i_m}\). The remaining factors are \(p_{i_r i_{r-1}}\), giving the stated forward path probability in reverse order. This proves equality of the finite-dimensional path probabilities. For \(m=0\), the formula reduces to \(\mathbb{P}(Y_0=i_0)=\pi_{i_0}\), so the zero-step case also holds. \(\square\)

The proof identifies more than the probability of one reversed step. It shows that every consecutive block has the right reversed law. In particular, the reverse process is Markov: the probability of its next state, conditional on any positive-probability history ending at \(i\), is \(q_{ij}\). This follows from the path factorization, since the factors for the earlier part of the history cancel when the conditional probability is formed. Conditional probabilities given a history of probability zero are not required to have a specified value.

The reverse chain is stationary as well. For \(j\in S_\pi\), its probability of being at \(j\) after one step when it starts from \(\pi\) is \[ \sum_{i\in S_\pi}\pi_iq_{ij} =\sum_{i\in S_\pi}\pi_jp_{ji} =\pi_j\sum_{i\in S}p_{ji} =\pi_j. \] In the penultimate equality, states outside \(S_\pi\) add zero to the sum. The final sum is row \(j\) of \(P\), so it is \(1\). Thus \(\pi Q=\pi\). Repeating the same one-step argument shows that every \(Y_n\) has distribution \(\pi\).

Worked Path Calculations

Worked Example: Reversing a Two-State Chain

Let \(S=\{0,1\}\) and \[ P=\begin{bmatrix}\tfrac34&\tfrac14\\[2pt]\tfrac12&\tfrac12\end{bmatrix}. \] The first row sums to \(\tfrac34+\tfrac14=1\), and the second sums to \(\tfrac12+\tfrac12=1\). Find the stationary distribution and the reverse transition probabilities.

Writing \(\pi=(a,1-a)\), stationarity in component \(0\) requires \[ a=\tfrac34a+\tfrac12(1-a)=\tfrac14a+\tfrac12. \] Thus \(\tfrac34a=\tfrac12\), so \(a=\tfrac23\) and \(\pi=(\tfrac23,\tfrac13)\). Check both components: \(\tfrac23\cdot\tfrac34+\tfrac13\cdot\tfrac12=\tfrac12+\tfrac16=\tfrac23\), and \(\tfrac23\cdot\tfrac14+\tfrac13\cdot\tfrac12=\tfrac16+\tfrac16=\tfrac13\). The entries of \(\pi\) are nonnegative and sum to \(1\).

Use \(q_{ij}=\pi_jp_{ji}/\pi_i\). For the first row, \(q_{00}=(\tfrac23\cdot\tfrac34)/(\tfrac23)=\tfrac34\) and \(q_{01}=(\tfrac13\cdot\tfrac12)/(\tfrac23)=\tfrac14\). For the second row, \(q_{10}=(\tfrac23\cdot\tfrac14)/(\tfrac13)=\tfrac12\) and \(q_{11}=(\tfrac13\cdot\tfrac12)/(\tfrac13)=\tfrac12\). Each row sums to \(1\), and here \(Q=P\).

Check by a path probability. The reversed path \((Y_0,Y_1,Y_2)=(0,1,0)\) has probability \(\tfrac23\cdot\tfrac14\cdot\tfrac12=\tfrac1{12}\). The matching forward path is \((X_0,X_1,X_2)=(0,1,0)\), whose probability is also \(\tfrac23\cdot\tfrac14\cdot\tfrac12=\tfrac1{12}\). This verifies the path formula on this particular path.

Worked Example: Reversing a Directed Cycle

Let \(S=\{0,1,2\}\), with transitions \(0\to1\), \(1\to2\), and \(2\to0\), each with probability \(1\): \[ P=\begin{bmatrix}0&1&0\\0&0&1\\1&0&0\end{bmatrix}. \] Every row sums to \(1\). The distribution \(\pi=(\tfrac13,\tfrac13,\tfrac13)\) is stationary: each coordinate of \(\pi P\) is \(\tfrac13\), and the entries of \(\pi\) sum to \(1\).

For current state \(0\), the previous state is \(2\) with probability \(q_{02}=\pi_2p_{20}/\pi_0=(\tfrac13\cdot1)/(\tfrac13)=1\). For current state \(1\), the previous state is \(0\), since \(q_{10}=\pi_0p_{01}/\pi_1=(\tfrac13\cdot1)/(\tfrac13)=1\). For current state \(2\), the previous state is \(1\), since \(q_{21}=\pi_1p_{12}/\pi_2=(\tfrac13\cdot1)/(\tfrac13)=1\). All other reverse entries are zero because the corresponding forward transitions have probability zero. Therefore \[ Q=\begin{bmatrix}0&0&1\\1&0&0\\0&1&0\end{bmatrix}. \] Its rows sum to \(1\). The backward direction is the opposite cycle, not the original cycle.

Check by a path probability. The reversed path \((Y_0,Y_1,Y_2)=(0,2,1)\) has probability \(\tfrac13\cdot1\cdot1=\tfrac13\). Its corresponding forward path is \((X_0,X_1,X_2)=(1,2,0)\), which has probability \(\tfrac13\cdot1\cdot1=\tfrac13\). In particular, \(p_{20}=1\), so \(q_{02}=1\), as calculated above.

Worked Example: States with Zero Stationary Probability

Consider \(S=\{0,1,2\}\) and \[ P=\begin{bmatrix}1&0&0\\0&0&1\\0&1&0\end{bmatrix}. \] Each row sums to \(1\). Take \(\pi=(1,0,0)\). Direct multiplication gives \(\pi P=(1,0,0)=\pi\), and \(\pi\) is a probability distribution.

Here \(S_\pi=\{0\}\). On this support, the reverse transition is \(q_{00}=\pi_0p_{00}/\pi_0=1\); its row sums to \(1\). Under the stationary law the chain starts at \(0\), and because \(p_{00}=1\), it stays at \(0\) at every time. Reading any finite window backward therefore also gives only zeros. For \(i=1\) or \(i=2\), the expression defining \(q_{ij}\) would divide by \(\pi_i=0\). Those conditional probabilities are undefined under this stationary law because \(\mathbb{P}(X_n=i)=0\).

Check: The reversed path of length two consisting of three zeros has probability \(1\cdot1\cdot1=1\). Its corresponding forward path also has probability \(1\cdot1\cdot1=1\). No path involving state \(1\) or \(2\) has positive probability under the stationary initial distribution.

Reading the Formula Correctly

The reverse transition is a conditional probability under the stationary joint law. It combines two ingredients: the stationary chance \(\pi_j\) of being at the proposed previous state and the forward chance \(p_{ji}\) of then arriving at the current state. Dividing by \(\pi_i\) conditions on that current state. This also explains why stationary probabilities are essential: without the stationary joint law, the distribution of a previous state can depend on the time and the initial distribution.

Common mistake: reversing the indices incorrectly. In the directed-cycle example, a tempting but wrong calculation is to use \(p_{02}\) for the probability that the previous state was \(2\) given current state \(0\). Since \(p_{02}=0\), this would incorrectly give \(q_{02}=0\). The forward transition that must be used is from \(2\) to \(0\), namely \(p_{20}=1\). The correct calculation is \(q_{02}=\pi_2p_{20}/\pi_0=(\tfrac13\cdot1)/(\tfrac13)=1\). The direction in \(p_{ji}\) runs from the proposed past state \(j\) to the present state \(i\).

Another important distinction is between a stationary chain and a chain whose reversed transition matrix happens to equal its forward matrix. Stationarity gives a well-defined backward law on states with positive stationary probability; it does not require the backward and forward transition probabilities to agree. The directed cycle demonstrates this: the stationary distribution is uniform, but the reverse cycle runs in the opposite direction.

For a finite set of observation times rather than consecutive times, the same path-law principle applies. One can fill in the unobserved times between observations and sum the consecutive-path probabilities over those intermediate states. Equivalently, the resulting probabilities use the corresponding multi-step transition probabilities. The essential point remains that the reversed finite-dimensional laws are fixed by the stationary probabilities of forward paths, read in reverse order.

Check Your Understanding

For each question, keep the conditioning state and the direction of the forward transition explicit.

  1. For a stationary chain, derive \(q_{ij}\) by writing the joint probability of \(X_{n-1}=j\) and \(X_n=i\), then conditioning on \(X_n=i\).
  2. Why does stationarity imply that \(\sum_{j\in S_\pi}q_{ij}=1\) for every \(i\in S_\pi\)?
  3. In the directed-cycle example, compute the reverse probability of moving from \(1\) to \(0\), and identify the corresponding forward transition.
  4. For the two-state example, calculate \(\mathbb{P}(Y_0=1,Y_1=0)\) and check it against the probability of the corresponding forward pair.
  5. In the zero-mass example, why is \(q_{10}\) not determined by conditioning under the stationary law?