Volatility you cannot see
Returns come in calm stretches and in storms, so the spread of a return changes from day to day, and nobody reports it. The stochastic volatility model treats the log of the variance, , as a hidden state. It moves as a first-order autoregression around a long-run level : a fraction of yesterday's gap stays, and a fresh shock of size arrives. The return is a bell curve with variance . Using the log keeps the variance positive and makes shocks multiply it. Three numbers describe the model: the level , the persistence (near means volatility shocks last) and the volatility of volatility .
The hidden state sits inside an exponential, so the observation is a non-linear function of it and the Kalman filter has no exact answer. A bootstrap particle filter does. Start the particles from the long-run distribution of . Each day, move every particle with the autoregression, weight it by the normal density of the return with variance , and resample when the effective sample size is low. The filtered volatility is the square root of the weighted average of , and multiplying by turns a daily figure into an annual one. The average of the particle likelihoods also gives the log-likelihood of the parameters, which the next topic uses.
On the SPY returns since 2005, with , , and particles, the filtered annual volatility averages in 2017 and in 2008, and peaks at on 15 October 2008. The log-likelihood is , against for a constant volatility, a gain of about . The effective sample size has a median of out of , but it falls to on 10 October 2018 ( after a calm spell, the filtered volatility jumping from to ). After calm, almost no particle has a high enough volatility to explain a shock.
- Hidden state is the log-variance: it keeps the variance positive and makes shocks multiply it.
- Weights favour the volatility that explains the return: a big return lifts the stormy particles and a small one lifts the calm ones.
- Watch the ESS after calm: a big surprise can leave very few useful particles.
Lab · what's graded
- The long-run spread15 pts
- Annual volatility of a particle10 pts
- The predicted mean15 pts
- A normal density10 pts
- A weight ratio15 pts
- Why the log-variance10 pts
- Match the vocabulary10 pts
- Why not just use the return15 pts