Markov chains
A Markov chain moves between states, and the next state depends only on the current one. The transition matrix has entries , and each row sums to 1. The -step transition probabilities are the entries of .
A stationary distribution is a row vector with and entries summing to 1. If the chain is irreducible (every state reachable from every other) and aperiodic, it converges to from any starting point, and is the long-run fraction of time spent in state .
For two states with switching probabilities (from 1 to 2) and (from 2 to 1), balancing the flow between them, , gives
Worked example
regime switching
A market is "trending" or "choppy". From trending it moves to choppy with probability 0.2 each day; from choppy to trending with probability 0.3. What fraction of days are trending in the long run, and how long does a trending spell last on average?
Show solutionHide solution
.
A trending spell ends each day with probability 0.2, so its length is geometric with mean days. Another useful fact: the expected time to return to a state is , so starting trending, you next re-enter trending after days on average.
Absorbing chains
Many puzzles end when the chain hits an absorbing state, such as ruin or a target. Let be the probability of being absorbed in a particular state from state , or the expected number of steps until absorption. Conditioning on one step gives linear equations:
with at the target, at the other absorbing states, and at all absorbing states. Exploit symmetry to cut down the number of unknowns before solving.
Random walks: recurrence
The simple symmetric random walk on the integers returns to its start with probability 1 (it is recurrent), but the expected return time is infinite. The same is true on the 2D grid. In three or more dimensions the walk is transient: it returns with probability only about 0.34 and then drifts away for ever.
A biased walk on the integers is transient: it drifts off in the direction of its bias. Starting one step above 0 with up-probability , the probability of ever reaching 0 is .
Branching processes
Each individual independently has a random number of offspring with generating function . Starting from one individual, the extinction probability is the smallest non-negative root of
If the mean number of offspring is at most 1, extinction is certain (unless every individual has exactly one child). If it is greater than 1, there is a positive chance the population survives for ever.
Worked example
splitting cells
Each cell either dies (probability ) or splits into two (probability ). Starting from one cell, what is the probability the population dies out?
Show solutionHide solution
. Solving gives , so or . The extinction probability is the smaller root, . As a check, the mean offspring is , so extinction should not be certain.
Knowledge check
A chain's stationary distribution gives state A probability 0.25. Starting in A, what is the expected number of steps until the chain is next in A?
Knowledge check
In a branching process, each individual has 0, 1 or 2 offspring with probabilities 0.3, 0.4 and 0.3. What is the extinction probability starting from one individual?
Knowledge check
An irreducible Markov chain on three states has a transition matrix whose columns, as well as its rows, each sum to 1. What is its stationary distribution?
Practice problems
Finished reading?
Answer the 3 knowledge checks to complete this lesson (0 done).