Predict long-run behaviour with Markov chains

8 steps · about 2 h 22 min · Intermediate

  1. See a Markov chain hop between states (interactive, Setosa, 10 min)

    Animated diagrams show states, transition probabilities and the matrix side by side.

  2. 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.

  3. Write transitions as a stochastic matrix (article, Wikipedia, 15 min)

    Shows why rows sum to one and how matrix powers give n-step probabilities.

  4. 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.

  5. Find the stationary distribution (article, Wikipedia, 20 min)

    Explains solving pi P = pi and when a chain converges to it.

  6. Compute absorption probabilities and expected steps (article, Wikipedia, 15 min)

    Uses the fundamental matrix to answer how long until a chain stops and where.

  7. 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.

  8. See a stationary distribution rank web pages (article, Wikipedia, 15 min)

    Shows PageRank as the long-run behaviour of a random surfer.