From size classes to real returns
Real returns are not Small or Large, they are numbers like or . So the emission of each state becomes a bell curve: in state the return is normal with its own mean and standard deviation . The emission probability is the height of that curve at the observed return . Everything else in the algorithms stays the same: forward, Viterbi, forward-backward and Baum-Welch only ask for the numbers . In the M-step the new and are the weighted mean and weighted standard deviation of the returns, with the smoothed probabilities as weights.
A model with a calm and a stormy state is a mixture of two normal curves. Each curve alone has thin tails, but the mixture has fat tails: the stormy state, with its large , produces big moves far more often than a single normal curve with the average volatility would. This is one reason HMMs fit real returns well. The states also tell a story. Typically one finds a calm state with a small positive mean and low volatility, and a stormy state with a negative mean and high volatility, and the stormy state is sticky, so crashes arrive in clusters.
- Gaussian emission: in each state the return is normal with its own mean and volatility.
- M-step for returns: weighted mean and weighted standard deviation, with as weights.
- Fat tails for free: a mixture of calm and stormy normals has heavier tails than one normal.
Lab · what's graded
- A z-score15 pts
- A curve height15 pts
- An annual volatility15 pts
- Which state was it?15 pts
- Why a mixture has fat tails10 pts
- Match the symbols15 pts
- What the stormy state is15 pts