5.5 Stochastic Matrices and the Steady State
The last section ended on a rule: the largest eigenvalue decides the long run. Almost always that means growth without bound or decay to nothing. The interesting case is the one where the largest eigenvalue is exactly — the long run then goes somewhere and stays.
Model a system that is always in one of three states, and let the numbers be the probability of moving to state given that you are currently in state . Take
Read the columns: from state 1, the chances of going to states 1, 2, 3 are , , — you never jump from state 1 to state 3 in a single step. Each column sums to , because from wherever you are you must end up somewhere. A matrix with non-negative entries whose columns each sum to is called stochastic.
A distribution records the probability of being in each state; its entries are non-negative and sum to , so distributions form a triangle inside the plane . Applying advances the system one step, and the column condition is exactly what guarantees the result is another distribution — the entries of sum to whenever 's do.
Explore in 3D (opens in a new tab)Explore the figure
- At the defaults , — a system almost certainly in state 3 — the amber arrow is long. One step takes this start to , a displacement of : probability is draining out of state 3 and splitting evenly between states 1 and 2.
- Drag the sliders to , . The arrow shrinks to nothing. That is the steady state: one step changes it not at all, which is what "steady" means.
- Move a little away from those values in any direction. The arrow reappears, and it points back toward the red dot. Every start is pulled the same way.
- Try a corner, , — the system definitely in state 1. One step gives , which is still on the edge where state 3 has probability zero: the arrow runs along that edge rather than into the interior, because has a in the row-3, column-1 position and you cannot reach state 3 from state 1 in a single step. Take a second step and the interior opens up; the destination is unchanged either way.
The steady state is an eigenvector
A distribution that a step leaves alone satisfies — which is the eigenvector equation for eigenvalue . Finding it means solving , so the steady state is simply the null space of , with one extra condition to pin down the scale: its entries must sum to .
Why should be available at all? Because the columns of each sum to , the columns of each sum to . That is a dependency among the rows: adding all three rows of gives the zero row. Dependent rows means a determinant of zero, which means is not invertible, which means its null space contains something other than . Every stochastic matrix has as an eigenvalue, and the argument used nothing about the particular numbers.
Be careful about what that buys. It produces a nonzero vector fixed by , and no more. Nothing in the determinant forces that vector's entries to be non-negative, or even to sum to something other than zero so that it could be rescaled to sum to — and a fixed vector failing either test is not a distribution. That every stochastic matrix does in fact fix a genuine distribution is a separate and harder theorem (Perron–Frobenius), which this book takes on trust. What the argument above settles is the easy half: that there is something to look for.
The determinant of is exactly zero. This is not a numerical coincidence of the chosen entries: the columns of sum to , so the columns of sum to , and a matrix whose columns sum to zero has dependent rows. So is guaranteed before any of it is computed — though, as the text notes, turning the fixed vector that guarantees into an honest distribution takes a theorem this determinant does not supply.
The reduced form of : two pivots and one free variable, so the null space is a line. Reading it off, and , so every solution is a multiple of . Those three numbers sum to , so dividing by gives the one solution that is a distribution.
That division is the last step: , the red dot. Confirm it directly, since the check is short. The first coordinate of is , and the other two work out the same way.
Why everything drifts there
Existence is not convergence. What makes step 3 of the exploration true — that every start is pulled in — is the rest of the spectrum. The eigenvalues of are , and . They are distinct, and eigenvectors belonging to distinct eigenvalues are always independent, so these three form a basis — which is exactly the situation the last section needed in order to write .
Write any starting distribution in that basis. Its component is some multiple of , and the other two components lie along the remaining eigenvectors. Applying a total of times multiplies those pieces by , and . The first piece never moves; the other two shrink by a factor of one half and one fifth at every step, vanishing as grows. Since the sums stay equal to throughout, the surviving piece must be itself. So
and the rate is governed by the second-largest eigenvalue, : the distance to the steady state roughly halves each step. That is why the amber arrow is long far from the red dot and short near it.
An original work of XYZ Homework, built around interactive XYZ 3D figures. Its chapter sequence is aligned to Interactive Linear Algebra (Margalit & Rabinoff, Georgia Tech, GNU FDL); this work is original, copies nothing from it, and is not affiliated with or endorsed by its authors. License: CC-BY-NC-SA-4.0.