A process with a one-step memory
A Markov chain moves between a finite set of states, and the next state depends only on the current one: . The whole model is the transition matrix , whose rows are probability distributions (each row sums to 1). Markets are often described as switching between regimes such as calm and turbulent, or bull and bear, and a Markov chain is the simplest model of that switching.
The -step transition probabilities are the entries of the matrix power , which is matrix multiplication of the previous linear algebra topics at work. A stationary distribution satisfies : if the chain starts with it, it keeps it forever. For a chain in which every state can reach every other (irreducible) and that does not cycle with a fixed period (aperiodic), the stationary distribution is unique and the chain converges to it from any start; is the long-run fraction of time spent in state . The time spent in a state before leaving is geometric with mean .
- Markov property: the next state depends only on the current state.
- steps: use . Stationary: solve with the entries adding to 1.
- Duration: a state with self-transition lasts steps on average.
A real market never announces its regime. A fitted Markov chain gives you probabilities of switching, but you must infer the current regime from returns. When the state is hidden, the model becomes a hidden Markov model, treated in a later skill. Estimated transition probabilities are themselves noisy, so durations such as 10 days carry wide uncertainty.
Lab · what's graded
7 tasks · 100 pts- Two-day transitions20 pts
- The stationary distribution15 pts
- How long a regime lasts15 pts
- From bull to bear in two days10 pts
- The Markov property15 pts
- When it converges10 pts
- What the stationary distribution means15 pts