Volatility Clustering

Volatility clustering is the tendency of large price moves to be followed by large moves, of either sign, and of small moves to be followed by small moves. Mandelbrot (1963) observed it in commodity prices: calm stretches alternate with turbulent ones. The direction of tomorrow’s return is hard to predict, but its size is not: a volatile day makes another volatile day more likely, so the returns are uncorrelated while their squares are not.

Clustering means that volatility is not a constant but changes over time, and that it can be forecast from its own recent past. Engle (1982) captured this in the autoregressive conditional heteroskedasticity (ARCH) model, in which the variance of today’s return depends on yesterday’s squared return, and Bollerslev (1986) generalized it to the GARCH model, which adds yesterday’s variance as well.

The formula for the GARCH(1,1) variance is as follows:

\[\sigma_{t}^{2} = \omega + \alpha \cdot \epsilon_{t-1}^{2} + \beta \cdot \sigma_{t-1}^{2}\]

Where \(\sigma_{t}^{2}\) is the variance of the return on day t, epsilon(t-1) yesterday’s return shock, omega a constant, alpha the reaction to a new shock and beta the persistence of the variance. The closer alpha plus beta is to 1, the longer a volatile spell lasts.

A volatility measured over a long window averages over the calm and the turbulent spells, so it understates the risk right after a shock and overstates it after a long calm. The Finance Toolkit tests for clustering with Engle’s ARCH-LM test and models it with the GARCH family, whose parameters, fitted variance and forecasts show how strongly and for how long volatility persists. A rolling volatility shows the clusters directly.

Example · SPY, TLT, BTCUSD · 2021 to 2025

Install the Finance Toolkit with pip install financetoolkit -U, then:

from financetoolkit import Toolkit

toolkit = Toolkit(
    ["SPY", "TLT", "BTCUSD"],
    api_key="FINANCIAL_MODELING_PREP_KEY",
    start_date="2021-01-01",
    end_date="2025-12-31",
    benchmark_ticker=None,
)

toolkit.risk.get_garch_parameters(rounding=6)

Which returns:

Item SPY TLT BTCUSD
Omega 4e-06 0 1.9e-05
Alpha 0.109983 0.032889 0.059632
Beta 0.857866 0.96526 0.919879

References

  • Paper Mandelbrot, B. (1963). “The Variation of Certain Speculative Prices.” The Journal of Business, 36(4), 394-419.
  • Paper Engle, R.F. (1982). “Autoregressive Conditional Heteroscedasticity with Estimates of the Variance of United Kingdom Inflation.” Econometrica, 50(4), 987-1007.
  • Paper Bollerslev, T. (1986). “Generalized Autoregressive Conditional Heteroskedasticity.” Journal of Econometrics, 31(3), 307-327.

Updated:

Share