Particle filters for stochastic volatility
In a stochastic-volatility model, volatility is a hidden state that evolves over time, while returns are noisy observations of it. A particle filter represents uncertainty about that state with a weighted collection of simulated paths. This works when nonlinear dynamics or non-Gaussian observations make a single Gaussian summary too restrictive.
Particle Monte Carlo error
Idealized 1/√N scaling; degeneracy and resampling can change the effective sample size.
A latent-volatility model
Let be log variance and a demeaned return. A common state-space specification is
where and are standard normal innovations. Usually so log variance is mean reverting. Conditional on , the return is Gaussian with variance ; marginally, uncertainty about creates heavier tails than a single normal distribution.
The filtering target is the posterior distribution . It carries more information than a point estimate: quantiles and the shape of the state distribution can matter for risk forecasts, especially after an outlier.
Sequential Monte Carlo update
Represent the previous filtered distribution with particles and normalized weights , for . In the bootstrap filter:
- Propagate: draw from the state transition conditional on .
- Weight: multiply the prior particle weight by the observation likelihood. For the Gaussian return model,
- Normalize: set .
- Resample when needed: draw a new equally weighted particle set according to , preserving high-weight particles and dropping low-weight ones.
A filtered mean is . The full weighted sample also approximates posterior probabilities and quantiles. The one-step predictive return distribution is a mixture over particles, rather than a plug-in normal at .
Effective sample size and a numerical reading
A standard degeneracy diagnostic is the effective sample size,
It ranges from 1 (one particle carries almost all weight) to (equal weights). If 1,000 particles have equal weights, ESS is 1,000. If one particle has weight 0.9 and the remaining 999 share 0.1, ESS is about 1.23. An implementation can resample when ESS falls below a chosen fraction of , for example , rather than resampling at every time step.
Resampling reduces weight concentration but creates duplicate particles. Repeated resampling can remove diversity in the state paths, so monitor both ESS and the spread of the particle cloud. Systematic or stratified resampling often reduces extra Monte Carlo variation relative to drawing every index independently.
What the filter can and cannot do
The bootstrap filter is a general filtering algorithm, not a guarantee of good approximation with a small particle count. If the observation is surprising under nearly all propagated particles, all weights can collapse. Better proposals that use the current observation, more particles, or specialized filters can help. Log weights and log-sum-exp normalization are important numerically when likelihoods are tiny.
Filtering estimates the current latent state conditional on observations through time . Smoothing estimates past states using later observations; it is a different target. Likewise, unknown parameters such as and are not automatically learned by the basic state filter. They need an outer estimation procedure, such as likelihood optimization using particle estimates or a Bayesian method designed to handle parameter uncertainty.
A leverage effect can be included by correlating and . Heavy-tailed return innovations, jumps, or realized-volatility measurements can also be incorporated through a changed observation likelihood. The observation model is a substantive assumption: a misspecified likelihood can make a numerically stable filter confidently wrong.
Filtering is online inference
At each timestamp, the filter uses the new observation and the state transition to update its current distribution. It does not look ahead. Avoid using future returns to construct features or parameters in a historical backtest unless the method is explicitly a smoothing procedure.
Show answer
A filter has 500 particles with normalized weights. What is the largest possible ESS, and what does a low ESS tell you? Why can resampling improve the next update while still reducing path diversity?
Further reading
- Gordon, Salmond, and Smith, “Novel approach to nonlinear/non-Gaussian Bayesian state estimation,” the original bootstrap filter paper, PDF.