Markov chains: states, transitions and hitting times
PROB · Chapter 422 min readAsked at Jane Street, SIG, Citadel, Optiver
Assumes Random walks and gambler’s ruin.
After this lesson you should be able to
- Choose a state that contains everything needed to predict the next step.
- Read a transition diagram as a matrix and use its powers for multi-step probabilities.
- Solve absorption probabilities and expected hitting times by first-step equations.
- Explain why stationary probabilities differ from the chance of hitting a boundary.
A Markov chain is a way of turning a story into states and arrows. The arrows carry the one-step probabilities. Once the state is sufficient, questions about tomorrow, eventual victory and time to finish become different equations on the same diagram. The main interview skill is drawing the right diagram before calculating.
Definition 4.19
What counts as a state?
Markov state, — The present state must retain all information relevant to the next move. A dragon’s current head count is sufficient if each swing has the same rules. For a coin pattern such as HTH, the last flip alone is insufficient: you must remember how much of the target pattern is already matched.
State means the smallest useful memory. A state is not necessarily the last observation. In weather, today’s condition is enough. In a pattern game, today’s flip is not: the sequence HT and the sequence TT both end in T, but only HT can finish HTH on the next head. Good state design keeps that distinction and discards everything else.
Equation 4.21
Turn arrows into a matrix
Rows are today’s state and columns are tomorrow’s, in the order Clear, Storm. Matrix multiplication sums over the possible intermediate states. Every row of a transition matrix sums to one.
Example 4.22
Two days: enumerate the routes
It is clear today. What is the chance it is clear in two days? Give the two routes that contribute.
Show the worked solutionHide the worked solution
Worked solution
- Formula
- Substitute
- Solve
- Answer
Sanity check. The answer lies between 0.8, the immediate chance of staying clear, and the long-run clear share of about 0.714. Both routes matter.
The rest of this lesson is in Premium
You have read the opening. 10 more sections follow, including 2 worked examples and 2 quick checks.
Nothing is charged for 7 days, and you can cancel before then. Or read Arithmetic that survives a clock in full, free.