Why Stationary Equations Need a Normalization
A stationary distribution for a finite Markov chain is found by solving \(\pi P=\pi\), but this equation alone does not determine probabilities: it is homogeneous, so any scalar multiple of a solution is also a solution. The additional condition that the probabilities sum to one fixes the scale. There is a second issue: the stationary equations are linearly dependent. Gaussian elimination makes both facts visible and gives a reliable way to solve examples without guessing balance relations.
Let \((X_n)_{n\ge0}\) be a discrete-time Markov chain on a finite state space \(S=\{1,\ldots,m\}\), defined on a probability space \((\Omega,\mathcal{F},\mathbb{P})\). Its transition matrix \(P=(p_{ij})\) is row-stochastic, so \(\sum_{j=1}^m p_{ij}=1\) for every state \(i\). A stationary distribution is a row vector \(\pi=(\pi_1,\ldots,\pi_m)\) satisfying \(\pi_i\ge0\), \(\sum_i\pi_i=1\), and \(\pi P=\pi\). In the calculations below, we transpose this equation and treat \(\pi^T\) as a column of unknowns.
The normalization equation is \(\sum_i\pi_i=1\). It must be imposed along with stationarity, not inferred from the homogeneous equations. The key to reducing the system is that the stationary residual always sums to zero.
Proof. Let \(\mathbf{1}\) denote the column vector of \(m\) ones. Since \(P\) is row-stochastic, \(P\mathbf{1}=\mathbf{1}\). For any row vector \(\pi\), whether or not it is stationary,
Thus the sum of the \(m\) coordinates of \(r\) is zero. If any \(m-1\) coordinates of \(r\) are zero, the remaining coordinate must also be zero, proving the redundancy claim. Replacing one stationary equation by normalization retains the other \(m-1\) equations; those imply the omitted equation, and normalization adds exactly the required probability constraint. This reasoning also covers \(m=1\): there are no retained stationary equations, and normalization sets the sole probability to one. \(\square\)
In matrix language, set \(A=P^T-I\). The stationary equations are \(A\pi^T=0\). The dependence just proved implies \(\operatorname{rank}(A)\le m-1\), so there is at least one free direction before normalization. Row reduction reveals whether normalization leaves one solution or a family. If \(\operatorname{rank}(A)=m-1\), the nullspace has dimension one, and normalization gives at most one solution. If the rank is lower, there can be additional free variables; nonnegativity must still be imposed on any family of algebraic solutions.
A Practical Row-Reduction Procedure
For a finite chain, the calculation can be organized as follows. First check every row of \(P\) sums to one. Next form the stationary equations by equating the \(j\)th coordinate of \(\pi P\) with \(\pi_j\), for each \(j\). Select \(m-1\) of those equations, replace the remaining equation with \(\sum_i\pi_i=1\), and write the augmented matrix. Use exact fractions throughout. Finally, interpret any free variables and check both \(\pi P=\pi\) and \(\sum_i\pi_i=1\).
The choice of which stationary equation to omit does not affect the normalized solutions, by the theorem. A convenient choice is often the equation that makes the augmented matrix easiest to reduce. The method does not by itself assert that the stationary distribution is unique, nor does it say that the chain's distribution from an arbitrary initial law converges to the stationary distribution. Those are distinct questions.
Worked Example: A Three-State Chain
Let \(S=\{1,2,3\}\), and let the transition matrix be
Its row sums are \(0+1+0=1\), \(0+0+1=1\), and \(\tfrac12+\tfrac12+0=1\). For \(\pi=(\pi_1,\pi_2,\pi_3)\), multiplication gives \(\pi P=(\tfrac12\pi_3,\ \pi_1+\tfrac12\pi_3,\ \pi_2)\). Thus the three stationary equations are \(\tfrac12\pi_3-\pi_1=0\), \(\pi_1+\tfrac12\pi_3-\pi_2=0\), and \(\pi_2-\pi_3=0\). Replace the third with normalization. The augmented matrix is
Add the first row to the second, giving the second equation \(-\pi_2+\pi_3=0\), or \(\pi_2=\pi_3\). The first equation gives \(\pi_1=\tfrac12\pi_3\). Substitute both relations into normalization: \(\tfrac12\pi_3+\pi_3+\pi_3=1\), so \(\tfrac52\pi_3=1\) and \(\pi_3=\tfrac25\). Therefore \(\pi_1=\tfrac15\), \(\pi_2=\tfrac25\), and \(\pi_3=\tfrac25\).
Check: The probabilities sum to \(\tfrac15+\tfrac25+\tfrac25=1\). Also \(\pi P=(\tfrac12\cdot\tfrac25,\ \tfrac15+\tfrac12\cdot\tfrac25,\ \tfrac25)=(\tfrac15,\tfrac25,\tfrac25)=\pi\). The omitted equation holds as well.
Free Variables and More Than One Stationary Law
A rank-deficient system can remain underdetermined after normalization. In that case, row reduction describes the stationary vectors as a family, and the probability constraints determine which members of that family are distributions. The next example shows why it is important not to assume every finite chain has a unique stationary distribution.
Worked Example: Two Absorbing States
Consider the chain on \(S=\{1,2,3,4\}\) with transition matrix
The row sums are \(1\), \(1\), \(\tfrac12+\tfrac12=1\), and \(1\), respectively. States \(1\) and \(2\) are absorbing. Writing \(\pi P=\pi\) coordinate by coordinate gives \(\pi_1+\tfrac12\pi_3=\pi_1\), \(\pi_2+\tfrac12\pi_3=\pi_2\), \(\pi_4=\pi_3\), and \(0=\pi_4\). Replace the second stationary equation by normalization, retaining the first, third, and fourth. The first gives \(\pi_3=0\); the third then gives \(\pi_4=0\), and the fourth is satisfied. Normalization leaves \(\pi_1+\pi_2=1\).
Thus every vector \(\pi=(a,1-a,0,0)\) with \(0\le a\le1\) is a stationary distribution. To check, \(\pi P=(a,1-a,0,0)=\pi\), and its entries sum to one. For example, \(a=\tfrac13\) gives \((\tfrac13,\tfrac23,0,0)\), while \(a=1\) gives \((1,0,0,0)\). The free parameter is real information about the chain, not a failure of elimination.
Exact Elimination in a Four-State Example
In a larger system, Gaussian elimination is useful because it keeps the dependencies and arithmetic visible. A row operation replaces an equation by a linear combination that has the same solutions; multiplying an equation by a nonzero number or adding a multiple of one equation to another preserves the solution set. The following example displays the equations, reduces them using exact arithmetic, and verifies the resulting distribution in the original system.
Worked Example: A Four-State Stationary Distribution
Let \(S=\{1,2,3,4\}\), with
The row sums are \(\tfrac12+\tfrac12=1\), \(\tfrac14+\tfrac12+\tfrac14=1\), \(\tfrac13+\tfrac13+\tfrac13=1\), and \(\tfrac12+\tfrac12=1\). Equating coordinates of \(\pi P\) and \(\pi\) gives, in order, \(-\tfrac12\pi_1+\tfrac14\pi_2=0\), \(\tfrac12\pi_1-\tfrac12\pi_2+\tfrac13\pi_3=0\), \(\tfrac14\pi_2-\tfrac23\pi_3+\tfrac12\pi_4=0\), and \(\tfrac13\pi_3-\tfrac12\pi_4=0\). Replace the fourth equation with normalization. Multiplying the first three equations by \(4\), \(6\), and \(12\), respectively, gives the augmented system
The first row gives \(\pi_2=2\pi_1\). Add \(\tfrac32\) times the first row to the second: the new second row is \((0,-\tfrac32,2,0\mid0)\), which gives \(\pi_3=\tfrac34\pi_2=\tfrac32\pi_1\). Add twice this new second row to the third: the third row becomes \((0,0,-4,6\mid0)\), so \(\pi_4=\tfrac23\pi_3=\pi_1\). Normalization now gives \(\pi_1+2\pi_1+\tfrac32\pi_1+\pi_1=1\), hence \(\tfrac{11}{2}\pi_1=1\) and \(\pi_1=\tfrac2{11}\). It follows that \(\pi_2=\tfrac4{11}\), \(\pi_3=\tfrac3{11}\), and \(\pi_4=\tfrac2{11}\).
Check: The entries sum to \(\tfrac2{11}+\tfrac4{11}+\tfrac3{11}+\tfrac2{11}=1\). Direct multiplication gives the first coordinate \(\tfrac12\cdot\tfrac2{11}+\tfrac14\cdot\tfrac4{11}=\tfrac2{11}\); the second \(\tfrac12\cdot\tfrac2{11}+\tfrac12\cdot\tfrac4{11}+\tfrac13\cdot\tfrac3{11}=\tfrac4{11}\); the third \(\tfrac14\cdot\tfrac4{11}+\tfrac13\cdot\tfrac3{11}+\tfrac12\cdot\tfrac2{11}=\tfrac3{11}\); and the fourth \(\tfrac13\cdot\tfrac3{11}+\tfrac12\cdot\tfrac2{11}=\tfrac2{11}\). Thus \(\pi P=\pi\), including the stationary equation that was omitted during elimination.
Common Pitfalls and Interpretation
Common mistake: assuming a uniform vector is stationary without checking the columns. In the four-state example, the uniform candidate \((\tfrac14,\tfrac14,\tfrac14,\tfrac14)\) would give first coordinate of \(\pi P\) equal to \(\tfrac14(\tfrac12+\tfrac14)=\tfrac3{16}\), not \(\tfrac14\). So it is not stationary. Row-stochasticity means rows sum to one; it does not mean columns sum to one. Always substitute the candidate into \(\pi P\).
A second error is to treat all \(m\) stationary equations as independent and then infer uniqueness from having \(m\) equations. Their dependence is forced by row-stochasticity. Another is to omit normalization: the zero vector satisfies \(\pi P=\pi\) but is not a probability distribution. Finally, a valid stationary distribution describes an invariant law: if \(X_0\) has distribution \(\pi\), then the distribution remains \(\pi\) at every discrete time. Stationarity alone does not assert convergence to \(\pi\) from every starting distribution.
For a finite chain, existence of at least one stationary distribution is a standard finite-state result established in the earlier material on stationary distributions. Gaussian elimination addresses the calculation once the equations are written down. It also tells you when the normalized equations leave free variables, as in the two-absorbing-state example. A free parameter should be reported along with the constraints that make all entries nonnegative.
Check Your Understanding
Use exact fractions, and verify each proposed stationary vector by substitution.
- For a finite row-stochastic matrix, explain why the coordinates of \(\pi P-\pi\) sum to zero.
- Why is it valid to replace any one stationary equation by the normalization equation?
- For the three-state example, which row operation makes the second stationary equation equivalent to \(\pi_2=\pi_3\)?
- For the two-absorbing-state example, describe all values of the free parameter that give probability distributions.
- What does row-stochasticity tell you about row sums, and why does it not justify assuming the uniform distribution is stationary?