Calm days and stormy days
A Markov chain is a system that hops between states, where the next state depends only on the current one, not on the whole past. Think of a market that is either Calm (C) or Stormy (S) each day. The rules fit in a transition matrix : the entry is the probability of going from state today to state tomorrow. Each row adds up to . Say a calm day is followed by a calm day with probability and by a stormy day with probability , and a stormy day is followed by a calm day with probability and by another stormy day with probability .
To look two days ahead, multiply the matrix by itself: holds the two-step probabilities. Run the chain for a long time and the share of days in each state settles at the stationary distribution , which satisfies : one more step does not change it. A state with self-probability is kept for days on average, so persistent states produce long streaks. These are the same ideas that later let us describe market regimes: calm periods and stormy periods that last for a while.
- Markov property: tomorrow depends only on today's state, not on how we got here.
- Stationary distribution : the long-run share of days in each state, with .
- Duration: a state with self-probability lasts days on average.
Lab · what's graded
- Two days ahead15 pts
- The long-run share of calm days15 pts
- A calm stretch10 pts
- A stormy stretch10 pts
- A short path10 pts
- The Markov property10 pts
- Match the vocabulary15 pts
- Why stormy days come in streaks15 pts