LightMySky

Stationary Distributions and Long-Run Behaviour

A stationary probability row vector satisfies pi P = pi and is a left eigenvector for eigenvalue 1. For a finite chain with fixed transitions, irreducibility and aperiodicity give convergence to a unique stationary distribution from every starting distribution.

No account needed. Progress saves in this browser.

What a learner can do afterwards

  • Solve pi P = pi and check nonnegative entries totaling one
  • Decide whether a chain is irreducible and aperiodic
  • Say what periodicity does to the long-run behaviour

1 · Read

Markov updates weight and add, as expected value does. Multiply each transition to a target by its current-state probability and add: a row distribution u becomes uP. Use finite chains with fixed P and one order for rows (current) and columns (next). A stationary row vector pi has nonnegative entries totaling 1 and satisfies pi P = pi. It is a left eigenvector for eigenvalue 1. Transposing gives P^T pi^T = pi^T, where T means transpose. Check all three conditions.

Try it together

Use state order (0, 1) and transition rows (0.9, 0.1), (0.4, 0.6). Write pi = (a, 1 - a). The state 0 equation is a = 0.9a + 0.4(1 - a), so 0.5a = 0.4 and a = 0.8. Thus pi = (0.8, 0.2). The state 1 update is 0.8 × 0.1 + 0.2 × 0.6 = 0.2. Both entries are nonnegative and total 1.

0 to 1: 0.8 × 0.1 = 0.081 to 0: 0.2 × 0.4 = 0.08
For two states, the probability moving from 0 to 1 balances the probability moving back.

A current row distribution u becomes uP after one step. For destination j, add u_i × P_ij over current states i. Repeat for further steps. With order (0, 1) and rows (0.6, 0.4), (0.1, 0.9), starting at 0 gives (0.6, 0.4) after one step. After two steps, the state 1 probability is 0.6 × 0.4 + 0.4 × 0.9 = 0.60.

0, 0, 1: 0.240, 1, 1: 0.36State 1 total: 0.60
Try it together

For three states, write pi = (a, b, c). Form one equation per destination column and use a + b + c = 1. With order (0, 1, 2) and rows (0.6, 0.4, 0), (0.2, 0.4, 0.4), (0, 0.2, 0.8), the outer equations give 0.4a = 0.2b and 0.2c = 0.4b. Thus a = b/2 and c = 2b. Normalizing gives pi = (1/7, 2/7, 4/7). Substitute into every component equation to check.

a = b/2c = 2bb/2 + b + 2b = 1pi = (1/7, 2/7, 4/7)

A chain is irreducible when every state can reach every other along a path of positive-probability transitions. The path may take several steps; a zero one-step entry does not prove reducibility. A state that stays at itself with probability 1 is absorbing. In a chain with other states, it cannot reach them, so the whole chain is reducible.

A state's period is the greatest common divisor of its possible positive return times. Period 1 means aperiodic. A self-loop makes time 1 possible, so that state has period 1. All states of an irreducible chain share a period; one self-loop therefore makes that chain aperiodic. An absorbing state has period 1. Without self-loops, inspect longer return paths: possible times 2 and 3 already give greatest common divisor 1.

The deterministic flip moves 0 to 1 and 1 to 0. It is irreducible, but returns occur at times 2, 4, 6 and so on, giving period 2. Its stationary distribution is (0.5, 0.5): exchanging equal weights leaves them unchanged. Starting at state 0 instead gives alternating distributions, so its matrix powers do not converge. Any stationary starting distribution stays fixed, even in a periodic chain.

time 0: (1, 0)time 1: (0, 1)time 2: (1, 0)time 3: (0, 1)

Every finite chain has a stationary distribution. Irreducibility makes it unique. If the chain is also aperiodic, uP^n approaches pi for every starting distribution u; every row of P^n approaches pi. Irreducibility and aperiodicity together are sufficient, not necessary, for a common limit. Rows (1, 0), (0.5, 0.5) give state 1 weight b × 0.5^n from starting weight b, so every start approaches (1, 0).

State 1 starts with bAfter n: b × 0.5^nState 1 weight tends to 0

Stationary distributions need not be unique. The identity transition matrix leaves every (a, 1 - a), with 0 <= a <= 1, unchanged. To turn a nonzero, nonnegative stationary row vector v into a probability distribution, divide every entry by the sum of its entries. If vP = v, this scaling preserves the equation and makes the total 1.

For two states, let r = P_01 and s = P_10. Stationarity gives pi_0 × r = pi_1 × s. Derive this by cancelling the stay-in-state-0 term from pi_0 = pi_0(1 - r) + pi_1s. If pi_0 is positive, an unknown r equals pi_1 × s divided by pi_0. Check that the result lies between 0 and 1, then check the completed matrix and stationary update.

In order (L, M, R), let L and R be absorbing and M's row be (r, t, s), with t < 1. From M, the limiting R probability h satisfies h = s + th. Solve: h = s/(1 - t).

Direct to R: sStay, then reach R: thh = s + thh = s/(1 - t)

Check pi P = pi, nonnegative entries and total 1. Finite irreducible, aperiodic chains converge to one stationary distribution from every start. A stationary start stays fixed.

The lesson, practice questions and flashcards were written for this dataset.

The three readings, ten extra questions and six flashcards were written for this dataset. Background video links: Khan Academy's Mean (expected value) of a discrete random variable and Interpreting expected value. Video reuse terms have not been verified.

More to read

Check the update as well as the total

A vector can contain valid probabilities without being stationary. Stationarity asks whether one transition leaves those probabilities unchanged.

Use state order (A, B) and transition rows (0.85, 0.15), (0.45, 0.55). Consider the candidate (0.75, 0.25). Both entries are nonnegative and their sum is 1. Its next A probability is 0.75 × 0.85 + 0.25 × 0.45 = 0.75. Its next B probability is 0.75 × 0.15 + 0.25 × 0.55 = 0.25. The candidate passes all three checks.

Under the row convention, this is pi P = pi. The same equation written for columns uses the transpose: P^T pi^T = pi^T. Changing notation does not change the probabilities, but it does change which side the matrix multiplies.

A fixed distribution and a limiting distribution

For a fixed transition matrix P, a stationary distribution solves pi P = pi. Starting at pi keeps the distribution unchanged at every step. A limiting-distribution question instead starts with some distribution u and asks whether uP^n approaches a limit as n grows.

The deterministic cycle A to B to C to A has stationary distribution (1/3, 1/3, 1/3). Starting with those weights leaves them fixed. Starting at A gives distributions concentrated successively on A, B and C. Those distributions repeat rather than approach a limit.

For finite irreducible chains, aperiodicity gives convergence to the unique stationary distribution from every starting distribution. A stationary vector alone does not establish that conclusion. Check the transition paths and possible return times before applying the convergence theorem.

One-time spread and variation across a run

A stationary distribution describes the state at each individual time when the chain starts in that distribution. It can give the mean and variance of a reward observed at one time. Those quantities do not by themselves describe the variation of an average over several times, because successive states can depend on each other.

Compare two chains on states 0 and 1, both starting with probabilities (0.5, 0.5). One always flips to the other state. The other always stays where it is. Both preserve the starting distribution, so their probabilities at any individual time match.

In an even-length run, the flip chain spends half its observations in each state. The stay-put chain spends the entire run at its randomly chosen starting state. Their averages of the state number have different spread despite identical stationary distributions. The transitions matter as well as the stationary weights.

Explore more

2 · Watch

Take it off screen

Print a worksheetA4 with an answer key page for grown-ups. No screen, no internet.

Where it sits

Where this leads

Jobs that lean on this skill. Follow one to see everything it is built on.

Then practise

18 questions wait behind this lesson, each with its answer explained. Every answer feeds the sky: stars light as they are learned, and dim when it is time to come back.

Spotted a problem on this page? Tell us
Stationary Distributions and Long-Run Behaviour · Mathematics, ages 22 to 24 · LightMySky