Tutorials › Stochastic Processes › Generator Equations for Stationarity

Stationary Distributions and Limit Theorems for CTMCs · Tutorial 537 of 994

Generator Equations for Stationarity

Learn how generator equations express stationarity in finite-state continuous-time Markov chains, and why the same calculations need extra justification on countable spaces.

Advanced 11 min read

What You'll Learn

  • Define the generator and stationary distribution of a continuous-time Markov chain.
  • Derive the equation \(\pi Q=0\) from invariance in a finite state space.
  • Interpret each generator equation as equality of incoming and outgoing probability rates.
  • Check generator equations and normalize stationary probabilities in worked examples.
  • Identify why infinite rates, sums, and boundary terms require care on countable spaces.

From Stationarity to a Generator Equation

For a continuous-time Markov chain, stationarity means that its distribution does not change as time passes. The generator records the instantaneous rates of those changes. In a finite state space, differentiating the stationarity condition at time zero gives a compact system of linear equations. Each component of that system says that, at equilibrium, the rate of probability flowing into a state matches the rate flowing out.

Let \((X_t)_{t\ge0}\) be a continuous-time Markov chain on a finite or countable state space \(S\), defined on a probability space \((\Omega,\mathcal{F},\mathbb{P})\), with natural filtration \(\mathcal{F}_t=\sigma(X_s:0\le s\le t)\). Write \(P(t)=(p_{ij}(t))\), where \(p_{ij}(t)=\mathbb{P}_i(X_t=j)\). Its generator is \(Q=(q_{ij})\), with \(q_{ij}=\lim_{h\downarrow0}(p_{ij}(h)-\mathbf{1}_{\{i=j\}})/h\) when the limit exists. For \(i\ne j\), \(q_{ij}\ge0\) is the instantaneous rate from \(i\) to \(j\); the diagonal entry is \(q_{ii}=-q_i\), where \(q_i=\sum_{j\ne i}q_{ij}\) is the total rate of leaving \(i\). Thus each generator row sums to zero.

Definition: A stationary distribution is a probability row vector \(\pi=(\pi_i)_{i\in S}\) such that \(\pi P(t)=\pi\) for every \(t\ge0\). In a finite state space, the transition semigroup satisfies \(P(t)=e^{tQ}\). The generator equations for stationarity are \(\pi Q=0\), together with \(\sum_{i\in S}\pi_i=1\) and \(\pi_i\ge0\).

The probability-space definition of stationarity refers to the distribution at each time: if \(X_0\) has distribution \(\pi\), then \(X_t\) has distribution \(\pi P(t)\). The equation \(\pi P(t)=\pi\) is the invariance condition. The generator equations are obtained by differentiating this condition; for finite \(S\), all sums are finite and the differentiation is justified directly.

Theorem: For a finite-state continuous-time Markov chain with generator \(Q\), every stationary distribution \(\pi\) satisfies \(\pi Q=0\).

Proof. Since \(S\) is finite, \(Q\) is a finite matrix and \(P(t)=e^{tQ}\). By the power-series definition of the matrix exponential, \(P(t)=I+tQ+R(t)\), where every entry of \(R(t)/t\) tends to zero as \(t\downarrow0\). Stationarity gives \(\pi P(t)=\pi\), so \((\pi P(t)-\pi)/t=0\) for every \(t>0\). Substituting the expansion gives \(0=\pi Q+\pi R(t)/t\). Taking \(t\downarrow0\) yields \(\pi Q=0\). \(\square\)

Reading the Equations as Rate Balances

Because distributions are row vectors, the \(j\)th component of \(\pi Q\) is \(\sum_{i\in S}\pi_iq_{ij}\). Separating the diagonal term, and using \(q_{jj}=-q_j\), gives a useful state-by-state interpretation.

$$ (\pi Q)_j=0 \quad\Longleftrightarrow\quad \sum_{i\ne j}\pi_iq_{ij}=\pi_jq_j. $$

The left side is the total rate of probability flow into state \(j\): the chain is in state \(i\) with stationary probability \(\pi_i\), and moves from \(i\) to \(j\) at rate \(q_{ij}\). The right side is the rate of flow out of \(j\): the chain is in \(j\) with probability \(\pi_j\), and leaves at rate \(q_j\). The equality is a balance of rates, not an assertion that the probability of entering \(j\) in a time interval equals the probability of leaving it on every individual path.

Proposition: For a finite-state generator \(Q\) and probability row vector \(\pi\), the equation \(\pi Q=0\) holds if and only if the incoming and outgoing rates balance at every state: \(\sum_{i\ne j}\pi_iq_{ij}=\pi_jq_j\) for each \(j\in S\).

Proof. For any \(j\), the definition of matrix multiplication and the generator diagonal give \((\pi Q)_j=\sum_{i\ne j}\pi_iq_{ij}+\pi_jq_{jj}=\sum_{i\ne j}\pi_iq_{ij}-\pi_jq_j\). Thus \((\pi Q)_j=0\) exactly when the stated balance holds at \(j\). Applying this identity to each state proves both directions. \(\square\)

The balance equations are necessary for stationarity in a finite state space. They are often used to find candidate stationary probabilities, but the normalization and nonnegativity conditions remain essential. The calculations below illustrate how to form and check the equations; the question of when generator equations alone ensure invariance requires additional care, especially on countable spaces.

Worked Example: A Two-State Chain

Let \(S=\{0,1\}\). From state \(0\), the chain jumps to \(1\) at rate \(3\); from state \(1\), it jumps to \(0\) at rate \(2\). The generator is

$$ Q=\begin{bmatrix}-3&3\\2&-2\end{bmatrix}. $$

Check the generator rows: the first row sums to \(-3+3=0\), and the second sums to \(2-2=0\). Let \(\pi=(\pi_0,\pi_1)\). The equation for state \(0\) is \(-3\pi_0+2\pi_1=0\), or \(3\pi_0=2\pi_1\). The equation for state \(1\) is \(3\pi_0-2\pi_1=0\), the same balance with the opposite sign. Together with \(\pi_0+\pi_1=1\), these give \(\pi_1=\tfrac32\pi_0\), hence \(\tfrac52\pi_0=1\). Therefore \(\pi_0=\tfrac25\) and \(\pi_1=\tfrac35\).

Check: the probabilities sum to \(\tfrac25+\tfrac35=1\), and \(\pi Q=(\tfrac25,\tfrac35)\begin{bmatrix}-3&3\\2&-2\end{bmatrix}=(-\tfrac65+\tfrac65,\tfrac65-\tfrac65)=(0,0)\). The incoming rate at state \(0\) is \(\pi_1\cdot2=\tfrac65\), and its outgoing rate is \(\pi_0\cdot3=\tfrac65\). At state \(1\), the incoming and outgoing rates are both \(\tfrac65\) as well.

Worked Example: A Three-State Directed Cycle

Consider \(S=\{0,1,2\}\), with jumps \(0\to1\) at rate \(2\), \(1\to2\) at rate \(3\), and \(2\to0\) at rate \(1\). The generator, in the order \(0,1,2\), is

$$ Q=\begin{bmatrix}-2&2&0\\0&-3&3\\1&0&-1\end{bmatrix}. $$

Check the generator rows: \(-2+2+0=0\), \(0-3+3=0\), and \(1+0-1=0\). Writing \(\pi=(\pi_0,\pi_1,\pi_2)\), the three component equations are \(-2\pi_0+\pi_2=0\), \(2\pi_0-3\pi_1=0\), and \(3\pi_1-\pi_2=0\). The first gives \(\pi_2=2\pi_0\); the second gives \(\pi_1=\tfrac23\pi_0\). The third is then satisfied because \(3(\tfrac23\pi_0)-2\pi_0=0\). Normalization gives \(\pi_0+\pi_1+\pi_2=(1+\tfrac23+2)\pi_0=\tfrac{11}{3}\pi_0=1\). Thus \(\pi_0=\tfrac3{11}\), \(\pi_1=\tfrac2{11}\), and \(\pi_2=\tfrac6{11}\).

Check: \(\pi Q\) has components \(-2(\tfrac3{11})+\tfrac6{11}=0\), \(2(\tfrac3{11})-3(\tfrac2{11})=0\), and \(3(\tfrac2{11})-\tfrac6{11}=0\). The entries sum to \(\tfrac3{11}+\tfrac2{11}+\tfrac6{11}=1\). In rate terms, the common flow around the cycle is \(\tfrac6{11}\): each state’s stationary probability times its exit rate equals that value.

Why Countable State Spaces Need Care

For countable \(S\), the component expression \((\pi Q)_j=\sum_i\pi_iq_{ij}\) may involve an infinite sum. The finite-state proof used a finite matrix expansion and finite sums; it cannot simply be repeated without checking convergence and whether differentiation can be interchanged with summation. Even if each individual rate \(q_i\) is finite, the stationary average exit rate \(\sum_i\pi_iq_i\) need not be finite. Also, summing component equations over infinitely many states can discard or conceal probability flow at the boundary “at infinity.”

One useful sufficient condition for the differentiation step is a uniform bound on exit rates: \(\sup_{i\in S}q_i<\infty\). In that case \(Q\) is a bounded operator on summable row vectors, and its exponential series converges in operator norm. If \(\pi P(t)=\pi\), the same difference-quotient argument as in the finite case gives \(\pi Q=0\). Without a condition that justifies the operation, the coordinate equations should not be obtained by formally differentiating an infinite sum. This is a statement about the derivation; it does not assert that bounded rates are necessary for a stationary distribution to satisfy suitable balance equations.

A countable example shows both how the equations can work and why their normalization must be checked. Consider the immigration-death chain on \(S=\{0,1,2,\ldots\}\), with immigration rate \(2\) from \(n\) to \(n+1\), and death rate \(n\) from \(n\) to \(n-1\) for \(n\ge1\). Its exit rate is \(q_0=2\) and \(q_n=2+n\) for \(n\ge1\), so exit rates are not uniformly bounded. The candidate probabilities \(\pi_n=e^{-2}2^n/n!\) are normalized because \(\sum_{n=0}^{\infty}2^n/n!=e^2\). For \(n=0\), the component balance is \(\pi_1\cdot1=\pi_0\cdot2\), since \(\pi_1=2\pi_0\). For \(n\ge1\), incoming flow is \(\pi_{n-1}\cdot2+\pi_{n+1}(n+1)\), while outgoing flow is \(\pi_n(2+n)\). The identities \(\pi_{n-1}\cdot2=n\pi_n\) and \(\pi_{n+1}(n+1)=2\pi_n\) make both sides equal to \((n+2)\pi_n\). These coordinate balances are well-defined and verify the equations state by state. They do not license arbitrary rearrangements of an infinite sum of rates.

The distinction between coordinate equations and a global sum is important. In this example, the expected exit rate under \(\pi\) is \(\sum_n\pi_n(2+n)=4\), which is finite, but in general that quantity needs its own check. Another warning comes from the critical birth-death chain on the nonnegative integers with upward rate \(1\) from every state and downward rate \(1\) from every positive state. The formal balance equations admit constant weights: at zero, \(\pi_1=\pi_0\), and for \(n\ge1\), \(\pi_{n-1}+\pi_{n+1}=2\pi_n\). A nonzero constant sequence cannot be normalized to sum to \(1\), so those formal solutions are not stationary probability distributions. Equations must be paired with the probability constraints and the appropriate conditions for the countable-state chain.

Common mistake. A frequent error is to omit the diagonal outflow term and equate only the off-diagonal entries of a generator column. In the two-state example, this would incorrectly write the state-\(0\) equation as \(2\pi_1=0\), since \(q_{10}=2\) is the only off-diagonal inflow. The correction is to include the diagonal contribution \(\pi_0q_{00}=-3\pi_0\): the actual equation is \(2\pi_1-3\pi_0=0\). Equivalently, incoming rate \(\pi_1\cdot2\) must equal outgoing rate \(\pi_0\cdot3\). The diagonal records total departure and cannot be dropped.

Check Your Understanding

For each question, distinguish the finite-state derivation from any additional issue created by an infinite state space.

  1. For a finite-state chain with stationary distribution \(\pi\), identify the difference quotient that yields \(\pi Q=0\).
  2. For a state \(j\), write the component equation \((\pi Q)_j=0\) as an equality of incoming and outgoing rates.
  3. For the generator \(Q=\begin{bmatrix}-4&4\\1&-1\end{bmatrix}\), check both row sums and find the probability vector satisfying \(\pi Q=0\) and \(\sum_i\pi_i=1\).
  4. Why does a formal solution to countably many component equations not by itself establish a stationary probability distribution?
  5. Which step in the finite-state proof needs extra justification when the state space is countable?