Visual walkthrough — Stochastic processes — Markov chains, steady-state, random walks
We use the 2-state weather chain from the parent as our running example, because two states can be drawn on a flat picture and watched frame by frame.
Step 1 — Draw the world: states and arrows
WHAT. Our system has exactly two possible situations, called states. We name them:
- S = "today is Sunny"
- R = "today is Rainy"
Each morning the weather is in exactly one of these two boxes. Tomorrow it may jump to the other box or stay. The chance of each jump is a fixed number that never changes — that is the whole "rule".
WHY draw arrows. A number like "80%" is invisible. An arrow from S back to S labelled makes "if sunny, 80% chance still sunny tomorrow" something you can point at. Four arrows carry the entire law of the system.
PICTURE. Look at Step figure 1. Two circles (states), four arrows (possible one-day moves), each arrow tagged with its probability.
Reading the arrows off the picture:
Step 2 — Pack the arrows into a grid (the matrix )
WHAT. Instead of four loose labels, arrange them in a grid so the machine is one object.
WHY a grid, and why this layout. We want a bookkeeping table where row = today, column = tomorrow. Then "the arrows leaving today's row" sit together and must sum to 1 — the picture's rule becomes "every row adds to 1".
PICTURE. Step figure 2: the same four arrows, now dropped into their grid cells; the row-sum highlighted.
Nothing new has happened — we only reorganised the four arrows. But now the whole rule is a single symbol .
Step 3 — Describe belief, not fact: the probability vector
WHAT. We rarely know today's weather for certain; we hold a belief: "70% chance sunny, 30% chance rainy". Write that as a pair of numbers.
WHY a vector, and why a row. Two beliefs need two slots — a length-2 list. We write it horizontally (a row) on purpose: in Step 4 the row will slide across the grid's rows, and that motion is exactly what mixes belief with the arrows. Writing it as a column would multiply the wrong way (that is the classic mistake from the parent note).
PICTURE. Step figure 3: a horizontal bar split into a blue chunk (weight on S) and an orange chunk (weight on R), the two chunks filling the bar completely.
Step 4 — Push belief forward one day (where is born)
WHAT. Given today's belief , compute tomorrow's chance of Sun.
WHY we sum two channels. Tomorrow can be sunny via two separate roads:
- it was sunny today (weight ) and stayed sunny (arrow ),
- it was rainy today (weight ) and flipped to sunny (arrow ).
These roads don't overlap (today is either S or R, never both), so we add their chances — again the Law of Total Probability, now summing over where you were.
PICTURE. Step figure 4: two coloured streams pouring into the S circle — a blue stream and an orange stream — merging into tomorrow's sunny probability.
Notice the pattern: to get tomorrow's S entry we ran the row down the S-column , multiplying pairs and adding. That "slide-and-add across each column" is the operation we call multiplying a row vector by a matrix.
Step 5 — Watch the numbers march (and freeze)
WHAT. Start from a lopsided belief, say (certain it is sunny today), and apply Step 4 over and over.
WHY iterate at all. The stationary claim is about the long run. We cannot see "long run" in one equation — we see it by watching the sequence and noticing it stops moving.
Check the step against Step 4: sunny inflow , and rainy . Every day the gap to shrinks.
PICTURE. Step figure 5: the S-probability plotted against day number, starting at and curving down to a flat dashed line at . Two different starting beliefs both drain toward the same line.
Step 6 — The frozen equation:
WHAT. "Frozen" means: applying one more day changes nothing. Call the frozen belief .
WHY this becomes an eigen-equation. "One more day does nothing" is literally . That is the definition of being a left eigenvector of with eigenvalue (see Linear Algebra — Eigenvalues and Eigenvectors): a direction the machine leaves unchanged.
Set in Step 4's S-equation:
PICTURE. Step figure 6: the S circle with inflow arrows balanced by an equal outflow arrow — a see-saw exactly level. Flow into S equals flow out of S.
Step 7 — Edge & degenerate cases (so no scenario surprises you)
A picture that only shows the nice case is a trap. Here are the ways the "settle to a unique " story can break, each with its own frame in Step figure 7.
Case A — a trap door (reducible). If some arrows are missing so a state, once entered, can never be left (an absorbing state), belief drains into it and stays. There can then be several stationary distributions — one for each trap — so is not unique.
Case B — a forced pendulum (periodic). Suppose from S you always go to R and from R you always go back to S (arrows replaced by and ). Then belief flips forever. A stationary still exists, but a lopsided start never converges to it — it just oscillates.
Case C — the healthy case (irreducible + aperiodic). Our weather chain has some chance of staying put () and every state reaches every other. This kills both diseases: no traps, no forced cycle. Then is unique and every start converges to it — the guarantee comes from the Perron–Frobenius Theorem.
PICTURE. Step figure 7: three mini-diagrams side by side — a trap door, a rigid two-cycle, and our healthy self-looping chain — with a ✓ only on the third.
The one-picture summary
Everything above compressed into one frame: a lopsided starting bar, the arrow-grid acting once per day, the belief-bar re-splitting and drifting, and the frozen line where inflow balances outflow.
Recall Feynman retelling (explain the whole walkthrough to a 12-year-old)
Picture a frog on two lily pads, Sunny-pad and Rainy-pad. Each morning it flips a loaded coin whose odds depend only on the pad it's sitting on right now — never on yesterday. I drew those odds as arrows (Step 1) and stacked them into a little 2×2 table (Step 2). My "guess" about where the frog is I wrote as a bar split into a blue part and an orange part (Step 3). To guess tomorrow, I pour today's blue and orange into each pad through the arrows and see how much lands on each (Step 4) — that pouring is multiplying my row-guess by the table, written . When I keep pouring day after day, the split stops sliding and locks at two-thirds Sunny, one-third Rainy (Step 5), no matter where I started. "Locked" means pouring one more day changes nothing, , which is just "as much probability flows into a pad as flows out" — a level see-saw (Step 6). The one catch: this only locks nicely if the frog can reach every pad and isn't forced to alternate like a metronome; a trap-pad or a rigid flip-flop breaks it (Step 7).
Connections
- Parent topic — the full theory this page draws.
- Linear Algebra — Eigenvalues and Eigenvectors — is a left eigenvector for eigenvalue 1.
- Perron–Frobenius Theorem — guarantees uniqueness/convergence in Case C.
- Law of Total Probability — the summing-over-yesterday that builds Step 4.
- Google PageRank — the same solved on the whole web.