Predict long-run behaviour with Markov chains
8 steps · about 2 h 22 min · Intermediate
- See a Markov chain hop between states (interactive, Setosa, 10 min)
Animated diagrams show states, transition probabilities and the matrix side by side.
- Define a Markov chain and the memoryless property (article, Wikipedia, 25 min)
Sets out states, transitions and the main kinds of chains with everyday examples.
- Write transitions as a stochastic matrix (article, Wikipedia, 15 min)
Shows why rows sum to one and how matrix powers give n-step probabilities.
- Work through discrete-time chain examples (tutorial, Introduction to Probability, Statistics and Random Processes, 30 min)
A textbook chapter with worked problems on n-step transitions and state diagrams.
- Find the stationary distribution (article, Wikipedia, 20 min)
Explains solving pi P = pi and when a chain converges to it.
- Compute absorption probabilities and expected steps (article, Wikipedia, 15 min)
Uses the fundamental matrix to answer how long until a chain stops and where.
- Solve the gambler's ruin problem (article, Wikipedia, 12 min)
A classic absorbing chain you can solve by hand and check against the matrix method.
- See a stationary distribution rank web pages (article, Wikipedia, 15 min)
Shows PageRank as the long-run behaviour of a random surfer.