Markov Chains
A system that forgets everything except where it is now. Start it anywhere and it settles in the same place.
Markov Chains
This module needs JavaScript: the numbers are computed in the page rather than recorded.
Worth knowing
Overview
Transition probabilities
A chain has a state space and transition probabilities. With a row-vector convention, a transition matrix P has entries Pᵢⱼ = P(next state = j | current state = i); each row sums to 1. If πₜ is the row vector of state probabilities at time t, then πₜ₊₁ = πₜP.
For two states, sunny and rainy, a matrix such as [[0.8, 0.2], [0.4, 0.6]] says that a sunny day is followed by a sunny day with probability 0.8, while a rainy day is followed by a sunny day with probability 0.4. Starting from π₀ = [1, 0], after one step π₁ = [0.8, 0.2].
Transition probabilities
A chain has a state space and transition probabilities. With a row-vector convention, a transition matrix P has entries Pᵢⱼ = P(next state = j | current state = i); each row sums to 1. If πₜ is the row vector of state probabilities at time t, then πₜ₊₁ = πₜP.
For two states, sunny and rainy, a matrix such as [[0.8, 0.2], [0.4, 0.6]] says that a sunny day is followed by a sunny day with probability 0.8, while a rainy day is followed by a sunny day with probability 0.4. Starting from π₀ = [1, 0], after one step π₁ = [0.8, 0.2].