The stationary distribution π is the one the chain stops changing: π = πP. For a connected, aperiodic chain it is unique, and every start converges to it — it is the Perron–Frobenius eigenvector of the transition matrix, the one with eigenvalue exactly 1. You find it not by algebra but by pushing any distribution through P over and over until it stops moving.
Iterate an arbitrary start through P and watch the residual |πP − π| collapse to zero — the fixed point found by pure repetition, no matrix inverse: live demo
“You solve πP = π with linear algebra.” — you can, but the honest engine is iteration. A stochastic matrix has dominant eigenvalue exactly 1 (Perron–Frobenius), so repeatedly applying P drives any start onto π geometrically. No pivoting, no inverse — just multiply and wait. cited
The stationary distribution is computed, not stored: nowhere is π written down: it is the place iteration lands. Push any distribution through P enough times and it becomes π. Perron–Frobenius
On the canonical compiler, iterating the weather chain from a pure sunny start lands exactly on the algebraic answer π = (5/6, 1/6), with probability mass conserved: