Interpretable Forecasting of Realized Volatility with Temporal Fusion Transformer
With Google's Transformer forecasting model
![](https://substackcdn.com/image/fetch/w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff0a7589b-9f38-463d-8af0-5898fd4a3745_1664x882.png)
Our previous article discussed Temporal Fusion Transformer (TFT) – a highly accurate and interpretable model.
Personally, I have use TFT for 3 reasons:
Heterogeneous Inputs: TFT integrates past observed covariates, future known inputs, and exogenous static covariates.
Probabilistic Forecasting: The original TFT included probabilistic forecasting through quantiles – but it can be further refined (e.g., conformalized quantile regression).
Interpretability: One of the few DL models explicitly designed for interpretable forecasts.
This article uses TFT to forecast realized volatility – a key metric for assessing a stock's future risk. Additionally, we’ll leverage TFT’s advanced interpretability features to provide explainable forecasts.
Let’s get started!
✅ Find the hands-on project for this article in the AI Projects folder (Project 13), along with other cool projects!
About Realized Volatility in Forecasting
What is realized volatility and why it’s useful?