Realized GARCH

The Realized GARCH of Hansen, Huang and Shek (2012) adds a second source of information on the volatility, a realized measure \(x_{t}\) of every period, and models how it relates to the conditional variance; a realized measure reacts to a change in volatility faster than squared returns do.

The formula for the Realized GARCH takes the daily Parkinson (1980) variance of the High and Low prices as the realized measure \(x_{t}\):

\[x_{t} = \frac{\ln\left(\frac{\text{High}_{t}}{\text{Low}_{t}}\right)^{2}}{4 \cdot \ln\left(2\right)}\]

The log variance then follows the last log variance and the last log realized measure, with Omega a constant, Beta the weight of the last log variance and Gamma that of the realized measure:

\[\ln\left(\sigma_{t}^{2}\right) = \Omega + \text{Beta} \cdot \ln\left(\sigma_{t-1}^{2}\right) + \Gamma \cdot \ln\left(x_{t-1}\right)\]

A measurement equation ties the realized measure to the conditional variance, with Xi and Phi its level and slope, \(\text{Tau}_{1}\) and \(\text{Tau}_{2}\) a leverage function of the standardized shock \(z_{t} = e_{t} / \sigma_{t}\) and \(u_{t}\) a normal measurement error with mean 0 and variance Sigma \(U^{2}\):

\[\ln\left(x_{t}\right) = \Xi + \Phi \cdot \ln\left(\sigma_{t}^{2}\right) + \text{Tau}_{1} \cdot z_{t} + \text{Tau}_{2} \cdot \left(z_{t}^{2} - 1\right) + u_{t}\]

A high Gamma means the realized measure drives the variance; the persistence is Beta + Gamma * Phi. A negative \(\text{Tau}_{1}\) means that a fall raises the realized measure more than a rise of the same size.

The conditional variance is the variance of a return given everything known before it. Returns themselves are hard to predict, but their size is not: large moves follow large moves and small moves follow small moves, so turbulent and calm periods alternate (volatility clustering). Engle (1982) captured this with the Autoregressive Conditional Heteroskedasticity (ARCH) model, in which the variance of a period depends on the squared shocks of the periods before it, and Bollerslev (1986) generalized it to GARCH by letting the variance also depend on its own past, which describes long clusters with few parameters. The variants change how a shock feeds into the variance: bad news can weigh more than good news, the volatility can be modelled in logs or in another power, and a shock can fade slowly or never.

Every model works with the shock \(e_{t}\) of a period, the return \(r_{t}\) less its expected value (the return itself when the mean is zero), and the standardized shock \(z_{t} = e_{t} / \sigma_{t}\), which the model assumes to be drawn from a fixed distribution with mean 0 and variance 1, such as the normal or the fat-tailed Student-t. The parameters are those that make the observed returns most likely (maximum likelihood), and the model then filters a variance for every period; its square root is the conditional volatility.

A high conditional variance marks a turbulent period. How fast it returns to its long-run level after a shock, the persistence, sets how long a turbulent period lasts; daily returns typically show a persistence close to one, the observation behind the integrated GARCH (Engle and Bollerslev, 1986). The variance is only as good as the model: when the standardized shocks are not independent draws from the assumed distribution, the model misses part of the dynamics.

Also known as: RealGARCH, realGARCH.

In the Finance Toolkit this is get_garch with method="realized", the same function as GARCH Volatility Model.

Example · BTCUSD · 2021 to 2025

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

from financetoolkit import Toolkit

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

toolkit.risk.get_garch(method="realized")

Which returns:

References

  • Paper Fractionally Integrated GARCH, ARFIMA mean: Granger, C.W.J. and Joyeux, R. (1980). “An Introduction to Long-Memory Time Series Models and Fractional Differencing.” Journal of Time Series Analysis, 1(1), 15-29.
  • Paper Fractionally Integrated GARCH, ARFIMA mean: Hosking, J.R.M. (1981). “Fractional Differencing.” Biometrika, 68(1), 165-176.
  • Paper Hansen, P.R., Huang, Z. and Shek, H.H. (2012). “Realized GARCH: A Joint Model for Returns and Realized Measures of Volatility.” Journal of Applied Econometrics, 27(6), 877-906.
  • Paper Parkinson, M. (1980). “The Extreme Value Method for Estimating the Variance of the Rate of Return.” Journal of Business, 53(1), 61-65.
  • Paper GARCH-in-mean: Engle, R.F., Lilien, D.M. and Robins, R.P. (1987). “Estimating Time Varying Risk Premia in the Term Structure: The ARCH-M Model.” Econometrica, 55(2), 391-407.
  • Library Shares similar logic as rugarch (R)’s ugarchspec (Generalized Autoregressive Conditional Heteroskedasticity Model, Integrated GARCH, Asymmetric Power ARCH, Threshold GARCH, Nonlinear GARCH, Absolute Value GARCH, Nonlinear Asymmetric GARCH, Component GARCH, Realized GARCH, ARFIMA mean)
Share