Transition Matrices and Markov Chains
Stage 13 of 23 Strand 5 of 5 3 lessons
3 illustrated lessons, each teaching the why before the how.
Revise Transition Matrices and Markov Chains with flashcards →
Jump to a lesson
Transition Matrices #
Each column is where one group goes next.
A transition matrix holds the share moving from each state to each other, so its columns add to 1
Each year, 0.2 of the city moves out and 0.3 of the country moves in.
Take the labels away and those four numbers are a transition matrix T.
Column 1 is everyone who started in the city, so its entries have to add to 1.
Multiply T by this year’s split and the next year comes out: 550 and 450.
Two years on is T applied twice, which is on the start: 575 and 425.
After n years the split is times the start, and diagonalizing makes easy to find.
Now you
80 percent of the city stays. What goes under it in column 1?
In a transition matrix, which group of entries adds to 1?
Lesson complete. Continue your journey in the app — your progress saves there.
Transition Diagrams #
The same matrix, drawn as labeled arrows.
A transition diagram is the same information as T, with one labeled arrow for each entry
Each arrow carries the share moving that way, and a loop carries the share that stays.
Row 1 collects the arrows arriving in the city: 0.8 stays, 0.3 comes from the country.
Everything leaving one state adds to 1: 0.8 + 0.2. That total is a column of T.
A chain is regular when some power of T has every entry positive — here does.
A state whose only arrow loops back traps everyone, so no power of T can leave it: not regular.
Now you
Two arrows leave P for other states, carrying 0.6 and 0.3. What must P’s loop carry?
When is a Markov chain called regular?
Lesson complete. Continue your journey in the app — your progress saves there.
The Long-Run Steady State #
The split that stops moving, and PageRank.
The long-run split is the eigenvector for , scaled so its entries add to the whole
Start everyone in the city and the split settles: 800, 700, 650, 625.
A settled split is one T leaves alone, so it is an eigenvector with .
So subtract I and solve (T − I) s = 0, exactly as for any other eigenvector.
Both rows give 2x = 3y, so the settled split is always 3 city to 2 country.
Share 1000 people in that ratio and T returns 600 and 400, unchanged.
PageRank is this vector for a page link matrix: where a wandering reader ends up.
Now you
Share 600 in the steady ratio 2 : 1. How many are in the city?
Which equation does the long-run split satisfy?
Lesson complete. Continue your journey in the app — your progress saves there.