Deep Learning Enhanced Realized GARCH

Chen Liu, Chao Wang, Minh‐Ngoc Tran, Robert Kohn

Abstract

We propose a new approach to volatility modeling by combining deep learning (LSTM) and realized volatility measures. This LSTM-enhanced realized GARCH framework incorporates and distills modeling advances from financial econometrics, high-frequency trading data, and deep learning. Bayesian inference via the Sequential Monte Carlo (SMC) method is employed for statistical inference and forecasting. The new framework can jointly model returns and realized volatility measures, demonstrating excellent in-sample fit and superior predictive performance compared to several benchmark models. We report on a comprehensive empirical study using 31 widely traded stock indices over a time period that includes the COVID-19 pandemic, evaluating performance across marginal likelihood, volatility forecasting, tail risk forecasting, and option pricing.

Introduction

Predicting stock market volatility is a cornerstone of modern finance, essential for risk management, portfolio optimization, and derivative pricing. However, the task is notoriously difficult due to the complex, non-linear nature of financial markets. Traditional models, such as the Generalized Autoregressive Conditional Heteroskedasticity (GARCH) family, have long been the industry standard. While effective, standard GARCH models primarily rely on daily squared returns, which often fail to capture rapid intraday fluctuations.

The introduction of Realized GARCH (RealGARCH) marked a significant advancement by incorporating "realized volatility" measures—proxies for volatility calculated from high-frequency (e.g., 5-minute) intraday data. Yet, even RealGARCH assumes a largely linear relationship between past observations and future volatility. This assumption often fails to account for "stylized facts" such as long-term dependencies and complex non-linear shocks. To address these limitations, we introduce DeepRGARCH, a hybrid framework that bridges the gap between the structural rigor of financial econometrics and the non-linear pattern-recognition capabilities of deep learning.

Methodology: The DeepRGARCH Framework

DeepRGARCH is designed as an additive hybrid model, combining three distinct components to capture market dynamics:

  1. The Econometric Core: The model retains the foundational structure of a Realized GARCH model. It uses a linear combination of past realized measures and past variances to establish a baseline for volatility forecasting.
  2. The Deep Learning Component: A Long Short-Term Memory (LSTM) network is integrated to capture non-linearities. The LSTM processes a vector of inputs—including past returns, past variances, and past realized measures—to "distill" complex serial dependencies and long-memory effects that linear models typically miss.
  3. Positivity Constraint: To ensure the predicted conditional variance remains mathematically valid (positive), a Rectified Linear Unit (ReLU) activation function is applied to the LSTM output.

Bayesian Inference via SMC

Unlike typical deep learning models that rely on gradient descent, DeepRGARCH employs Sequential Monte Carlo (SMC) methods for parameter estimation. This Bayesian approach offers several advantages:

  • Robust Inference: It provides a full posterior distribution of parameters rather than a single point estimate.
  • Model Comparison: It allows for the calculation of Marginal Likelihood and "Bayes Factors," providing a rigorous statistical basis for model selection.
  • Dynamic Updating: SMC is naturally suited for "rolling-window" forecasts, allowing the model to update its parameters daily as new market data arrives.

Data and Empirical Study

The performance of DeepRGARCH was evaluated using a comprehensive dataset from the Oxford-Man Institute Realized Library.

  • Scope: 31 widely traded global stock indices, including the S&P 500, FTSE 100, DAX, and Nikkei 225.
  • Timeframe: January 1, 2004, to January 1, 2022. This period encompasses significant market stress events, most notably the 2008 Financial Crisis and the COVID-19 pandemic.
  • Input Features: The primary high-frequency proxy used was the 5-minute realized variance (RV5), alongside daily returns.

Key Results and Insights

The empirical study compared DeepRGARCH against several benchmarks, including standard GARCH, RealGARCH, and the RECH model (a previous RNN-GARCH hybrid).

Predictive Performance

  • In-Sample Fit: DeepRGARCH provided a superior fit for 28 out of the 31 indices. Bayes Factors decisively supported the hybrid model over traditional econometric alternatives.
  • Volatility Forecasting: Using metrics such as Mean Squared Error (MSE) and Mean Absolute Deviation (MAD), DeepRGARCH consistently achieved the lowest error rates across various realized volatility proxies.
  • Tail Risk Management: In forecasting Value-at-Risk (VaR) and Expected Shortfall (ES)—metrics critical for regulatory compliance and bank capital requirements—DeepRGARCH was the top performer for the majority of indices (winning in 22-23 out of 31 categories).

Economic Utility: Option Pricing

To test the model's practical utility, a simulated option trading experiment was conducted. An agent using DeepRGARCH-based forecasts generated the highest annual returns and Sharpe ratios, outperforming agents using traditional models. This suggests that the model's statistical gains translate directly into economic value.

Discussion: The "Best of Both Worlds"

The success of DeepRGARCH stems from its ability to maintain the "clustering" and "leverage" effects (where negative shocks increase volatility more than positive ones) familiar to economists, while the LSTM handles the complex, long-memory patterns. The fact that LSTM parameters were significantly different from zero across almost all indices confirms that the relationship between past market signals and future volatility is fundamentally non-linear.

Future Work

While DeepRGARCH represents a significant step forward, several avenues for improvement remain:

  • Multi-Measure Integration: Future iterations could utilize LSTMs with multiple outputs to capture interactions between different volatility proxies (e.g., combining realized range with realized variance).
  • Alternative Data: Incorporating exogenous variables such as financial news sentiment or macroeconomic indicators could further enhance predictive accuracy.
  • Transfer Learning: Exploring transfer learning techniques could allow models trained on data-rich indices (like the S&P 500) to be fine-tuned for smaller markets where high-frequency data is less abundant.

Summary updated

Abstract

We propose a new approach to volatility modeling by combining deep learning (LSTM) and realized volatility measures. This LSTM-enhanced realized GARCH framework incorporates and distills modeling advances from financial econometrics, high frequency trading data and deep learning. Bayesian inference via the Sequential Monte Carlo method is employed for statistical inference and forecasting. The new framework can jointly model the returns and realized volatility measures, has an excellent in-sample fit and superior predictive performance compared to several benchmark models, while being able to adapt well to the stylized facts in volatility. The performance of the new framework is tested using a wide range of metrics, from marginal likelihood, volatility forecasting, to tail risk forecasting and option pricing. We report on a comprehensive empirical study using 31 widely traded stock indices over a time period that includes COVID-19 pandemic.
BibTeX
@misc{liu2023deep,
  author = {Chen Liu and Chao Wang and Minh‐Ngoc Tran and Robert Kohn},
  title = {{Deep Learning Enhanced Realized GARCH}},
  year = {2023},
  eprint = {2302.08002},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2302.08002},
}
Figure