In this series on volatility forecasting, I previously detailed the Heterogeneous AutoRegressive (HAR) volatility forecasting model that has become the workhorse of the volatility forecasting literature1 since its introduction by Corsi2. I will now describe an extension of that model due to Bollerslev et al.3, called the Heterogeneous Exponential (HExp) volatility forecasting model, in which the lagged HAR volatility components are exponentially - rather than arithmetically - averaged. In addition, I will also discuss the panel-based estimation procedure for the HExp and the HAR model parameters proposed in Bollerslev et al.3, which is empirically demonstrated3 to improve the out-of-sample forecasting performances of these two volatility forecasting models when compared to the standard2 individual asset-based procedure. Finally, I will illustrate the practical performances of the HExp volatility forecasting model and its panel-based parameters estimation procedure in the context of monthly volatility forecasting for various ETFs. Mathematical preliminaries (reminders) This section contains reminders from the first blog post of this series. Volatility modelling and volatility proxies Let be the logarithmic return of an asset over a time period (a day, a week, a month..), over which its (conditional) mean return is supposed to be null. Then: The asset (conditional) variance is defined as From this definition, the squared return of an asset is a (noisy4) variance estimator - or variance proxy4 - for that asset variance over the considered time period. Another example of an asset variance proxy is the Parkinson range of an asset. Yet another example of an asset variance proxy, this time over a specific time period of one day, is the daily realized variance , which is defined as the sum of the asset squared intraday returns sampled at a high frequency (1 minutes, 5 minutes, 15 minutes…). The generic notation for an asset variance proxy in this blog post is . The asset (conditional) volatility is defined as The generic notation for an asset volatility proxy in this blog post is . Weighted moving average volatility forecasting model Boudoukh et al.5 shows that many seemingly different methods of volatility forecasting actually share the same underlying representation of the estimate of an asset next period’s variance as a weighted moving average of that asset past periods’ variance proxies , , with [\hat{\sigma}{T+1}^2 = w_0 + \sum{i=1}^{k} w_i \tilde{\sigma}^2_{T+1-i}] , where: , with , is the size of the moving average, possibly time-dependent are the weights of the moving average, possibly time-dependent as well The original HAR volatility forecasting model The HAR volatility forecasting model is an additive cascade model of different volatility components2 subject to economically meaningful restrictions2. Under that model, an asset next day’s daily realized variance is forecasted through the formula4: [\hat{RV}{T+1} = \beta + \beta_d RV{T} + \beta_w RV_{T}^w + \beta_m RV_{T}^m] , where: is the forecast at time of the asset next day’s daily realized variance is the asset daily realized variance at time is the asset weekly realized variance at time is the asset monthly realized variance at time , , and are the HAR model parameters, to be determined The HExp volatility forecasting model Discontinuity of the HAR volatility forecasting model Under the HAR volatility forecasting model, forecasted future volatilities depends on the past volatilities in a way that is [dis]continuous […] in the lag lengths3 due to the presence of simple moving averages, which might lead to potential variance estimation issues3. As noted by Bollerslev et al.3: The stepwise nature of the volatility factors employed in the HAR models, imply that the forecasts from the models are subject to potentially abrupt changes as an unusually large/small daily lagged [realized variance] drops out of the sums for the longer-horizon lagged volatility factors. Figure 1, adapted from Bollerslev et al.3, illustrates the lag coefficients implied by the regression coefficients3 of the HAR model together with those of a 21-day simple moving average model. Figure 1. Lag coefficients of the HAR and of the 21-day simple moving average volatility forecasting models. Source: Bollerslev et al. The discontinuity of the HAR model at the 1-day, 5-day and 21-day lags6 is apparent, similar in spirit to the discontinuity of the 21-day simple moving average model at the 21-day lag. The original HExp volatility forecasting model In order to avoid the stepwise changes inherent in the forecast from the HAR component-type structure3, Bollerslev et al.3 proposes to replace the simple moving averages appearing in the HAR model by exponentially weighted moving averages. Under the resulting volatility forecasting model - denoted the Heterogenous Exponential realized volatility model (HExp for short)3 - an asset next day’s daily realized variance is forecasted through the formula37 [\hat{RV}{T+1} = \beta + \beta_d ExpVP_T^{\lambda(1)} + \beta_w ExpVP_T^{\lambda(5)} + \beta_m ExpVP_T^{\lambda(25)} + \beta_h ExpVP_T^{\lambda(125)}] , where: is the forecast at time of the asset next day’s daily realized variance , with CoM standing for center-of-mass3 is the asset daily realized variance at time , , , , and are the HExp model parameters, to be determined To be noted that each center-of-mass used in the HExp model (1, 5, 25 and 125) effectively summarizes the “average” horizon of the lagged realized volatilities that it uses3 and that they all have been chosen in Bollerslev et al.3 so as to “span” the universe of past [realized variance]’s in a way that is both parsimonious and “smooth”3. Speaking of smoothness, Figure 2, again adapted from Bollerslev et al.3, compares the lag coefficients implied by the regression coefficients3 of the HAR model with those of the HExp model. Figure 2. Lag coefficients of the HAR and of the HExp volatility forecasting models. Source: Bollerslev et al. The continuous nature of the HExp volatility forecasting model is clearly visible. In terms of practical performances, the HExp model perform[s] well in out-of-sample risk forecasting3 and is even slightly more performant than the HAR model in terms of -squared, as can be seen on Figure 3 adapted from Bollerslev et al.3. Figure 3. Out-of-sample -squared of the HAR model v.s. the HExp model for predicting the 20-day future realized volatility of several assets and for different methods of parameters estimation (Ind, Panel, Mega, that will be discussed in the next section). Source: Bollerslev et al. Realized variance v.s. generic variance proxy The original HExp model described in the previous subsection relies on a very specific asset variance proxy - the realized variance of an asset - over a very specific time period - a day - for its definition. Similarly to the HAR model, it is possible to replace the daily realized variance by any generic daily variance estimator like daily squared returns8 or any daily range-based variance estimator (Parkinson, Garman-Klass, Rogers-Satchell…). This leads to the generic HExp volatility forecasting model, under which an asset next days’s conditional variance is forecasted through the formula [\hat{\sigma}{T+1}^2 = \beta + \beta_d ExpVP_T^{\lambda(1)} + \beta_w ExpVP_T^{\lambda(5)} + \beta_m ExpVP_T^{\lambda(25)} + \beta_h ExpVP_T^{\lambda(125)}] , where: is the forecast at time of the asset next day’s conditional variance is the asset daily variance estimator at time , , , , and are the HExp model parameters, to be determined Relationship with the generic weighted moving average model From its definition, it is not too difficult to see that the HExp volatility forecasting model is a specific kind of weighted moving average volatility forecasting model, with: Volatility forecasting formulas Under an HExp volatility forecasting model, the generic weighted moving average volatility forecasting formula becomes: To estimate an asset next day’s volatility: [\hat{\sigma}{T+1} = \sqrt{ \beta + \beta_d ExpVP_T^{\lambda(1)} + \beta_w ExpVP_T^{\lambda(5)} + \beta_m ExpVP_T^{\lambda(25)} + \beta_h ExpVP_T^{\lambda(125)} }] To estimate an asset next -day’s ahead volatility9, , using an indirect1 multi-step ahead forecast scheme: [\hat{\sigma}{T+h} = \sqrt{ \beta + \beta_d ExpVP_{T+h-1}^{\lambda(1)} + \beta_w ExpVP_{T+h-1}^{\lambda(5)} + \beta_m ExpVP_{T+h-1}^{\lambda(25)} + \beta_h ExpVP_{T+h-1}^{\lambda(125)} }] , where: To estimate an asset aggregated volatility9 over the next days: [\hat{\sigma}{T+1:T+h} = \sqrt{ \sum{i=1}^{h} \hat{\sigma}^2_{T+i} }] Estimating the HExp model parameters Individual estimation As for the HAR model, the easiest way to estimate the HExp model parameters is by applying simple linear regression2 on an asset-by-asset basis3, in which case the asset-specific ordinary least squares (OLS) estimator of the parameters , , , and at time is the solution of the minimization problem4 [\argmin_{ \left( \beta, \beta_d, \beta_w, \beta_m, \beta_h \right) \in \mathbb{R}^{5}} \sum_{t=1}^T \left( \tilde{\sigma}{t}^2 - \beta - \beta_d ExpVP{t-1}^{\lambda(1)} - \beta_w ExpVP_{t-1}^{\lambda(5)} - \beta_m ExpVP_{t-1}^{\lambda(25)} - \beta_h ExpVP_{t-1}^{\lambda(125)} \right)^2] Alternatively, following Clements and Preve4 and Clements et al.1, more complex asset-specific least squares estimators than OLS can be used to try to improve forecast performances (weighted least squares estimators (WLS), robust least squares estimators (RLS)…) Panel-based estimation Bollerslev et al.3 establishes that the dynamics of realized volatility are common across many different financial assets. This is illustrated in Figure 4, directly taken from Bollerslev et al.3, which depicts the unconditional distributions of daily normalized realized volatilities for different asset classes. Figure 4. Normalized unconditional daily realized variance distributions for misc. asset classes. Source: Bollerslev et al. From this figure, volatility indeed seems to behave similarly across asset classes3 and Bollerslev et al.3 proposes to exploit these strong similarities in the distributions of the volatilities across and within asset classes3 by using panel regression techniques that force the [HExp model parameters] to be the same within and across different asset classes3. In more details, Bollerslev et al.3 reformulates the generic HExp volatility forecasting model as follows: [\hat{\sigma}{T+1}^2 = \tilde{\sigma}{T}^{2, LR} + \beta_d^P \left( ExpVP_T^{\lambda(1)} - \tilde{\sigma}{T}^{2, LR} \right) + \beta_w^P \left( ExpVP_T^{\lambda(5)} - \tilde{\sigma}{T}^{2, LR} \right) + \beta_m^P \left( ExpVP_T^{\lambda(25)} - \tilde{\sigma}{T}^{2, LR} \right) + \beta_h^P \left( ExpVP_T^{\lambda(125)} - \tilde{\sigma}{T}^{2, LR} \right)] , where: is a long-run volatility factor, equal to the expanding sample mean of [the asset daily variance estimator] from the start of the sample up until day 3. , , and are the HExp “panel” model parameters, to be determined Such a reformulation - called centering3 in Bollerslev et al.3 - eliminat[es] the level of the [asset] volatility3 from the HExp model and enables10 the parameters , , and to be estimated simultaneously for all assets by panel regression techniques that add power by exploiting the similarities in the cross-asset risk characteristics3. Additionally11, that specific reformulation ensures that the iterated long-run forecasts from the model constructed on day converges to this day estimate of the “unconditional” volatility3. From a practical perspective, Figure 3 shows that estimating the HExp parameters12 through panel-based estimation (lines Panel and Mega) leads to much better performances v.s. their individual estimation (lines Ind). Implementation in Portfolio Optimizer Portfolio Optimizer implements the HExp volatility forecasting model - together with all the extensions of its predecessor (the insanity filter described in Clements and Preve4, the log transformation…) - through the endpoint /assets/volatility/forecast/hexp. This endpoint supports the 4 variance proxies below: Squared close-to-close returns Demeaned squared close-to-close returns The Parkinson range The jump-adjusted Parkinson range This endpoint also supports: Individual and panel-based estimation of the HExp model parameters. Using up to 5 centers-of-mass for the variance proxies, the default ones being 1, 5 and 2513. Example of usage - Volatility forecasting at monthly level for various ETFs As an example of usage, I propose to enrich the results of the previous blog post, in which monthly forecasts produced by different volatility models14 are compared - using Mincer-Zarnowitz15 regressions - to the next month’s close-to-close observed volatility for 10 ETFs representative16 of misc. asset classes: U.S. stocks (SPY ETF) European stocks (EZU ETF) Japanese stocks (EWJ ETF) Emerging markets stocks (EEM ETF) U.S. REITs (VNQ ETF) International REITs (RWX ETF) U.S. 7-10 year Treasuries (IEF ETF) U.S. 20+ year Treasuries (TLT ETF) Commodities (DBC ETF) Gold (GLD ETF) Individual estimation Averaged results for all ETFs/regression models over each ETF price history17 are the following18, when adding the HExp volatility forecasting model and its log variation19: Volatility model Variance proxy EWMA, optimal Squared close-to-close returns 4.7% 0.73 45% HAR Squared close-to-close returns -0.7% 0.95 46% HAR (log) Squared close-to-close returns 0.5% 0.62 40% HExp Squared close-to-close returns -0.7% 0.93 48% HExp (log) Squared close-to-close returns 2.1% 0.57 42% EWMA, optimal Parkinson range 4.3% 1.06 48% HAR Parkinson range 0.1% 1.25 44% HAR (log) Parkinson range 1.9% 1.22 50% HExp Parkinson range -0.5% 1.29 47% HExp (log) Parkinson range 2.0% 1.21 51% EWMA, optimal Jump-adjusted Parkinson range 4.0% 0.76 45% HAR Jump-adjusted Parkinson range -1.4% 0.99 47% HAR (log) Jump-adjusted Parkinson range 0.9% 0.92 51% HExp Jump-adjusted Parkinson range -1.5% 0.98 49% HExp (log) Jump-adjusted Parkinson range 1.1% 0.91 52% Panel-based estimation Averaged results for all ETFs/regression models over the common ETF price history20 are the following18: When using the EWMA, HAR and HExp volatility forecasting models with an asset-specific parameters estimation procedure (for reference): Volatility model Variance proxy EWMA, optimal (individual est.) Squared close-to-close returns 5% 0.72 43% HAR (individual est.) Squared close-to-close returns -0.2% 0.89 46% HExp (individual est.) Squared close-to-close returns 0.02% 0.87 47% EWMA, optimal (individual est.) Parkinson range 4.8% 1.02 45% HAR (individual est.) Parkinson range 0.7% 1.17 46% HExp (individual est.) Parkinson range 1.2% 1.15 47% EWMA, optimal (individual est.) Jump-adjusted Parkinson range 4.5% 0.73 43% HAR (individual est.) Jump-adjusted Parkinson range -0.9% 0.94 46% HExp (individual est.) Jump-adjusted Parkinson range -0.4% 0.90 46% When using the HAR and HExp volatility forecasting models with a panel-based parameters estimation procedure comparable to the Mega procedure described in Bollerslev et al.3: Volatility model Variance proxy HAR (panel est.) Squared close-to-close returns 2.2% 0.76 47% HExp (panel est.) Squared close-to-close returns 1.1% 0.80 47% HAR (panel est.) Parkinson range 3.1% 1.11 50% HExp (panel est.) Parkinson range 3.6% 1.08 50% HAR (panel est.) Jump-adjusted Parkinson range 0.09% 0.88 46% HExp (panel est.) Jump-adjusted Parkinson range -0.07% 0.89 48% Comments From the results of the two previous subsections, it is possible to make the following comments: Consistent with Bollerslev et al.3, the HExp model is uniformly better than the HAR model in terms of r-squared. Contrary to Bollerslev et al.3, the panel-based estimation procedure does not seem to dramatically improve the HAR/HExp models performances, except when the Parkinson range is used as a daily variance proxy. Comparing lines #1,2,5,6 with lines #3,4 suggests to perform the same test with (high frequency) realized variances in order to confirm that this is due to the “quality” of the daily variance proxy used. Conclusion This blog post empirically confirmed that the HExp volatility forecasting model of Bollerslev et al.3 belongs to the category of the state-of-the-art dynamic [risk models]3 published in the litterature. This blog post also concludes this series on volatility forecasting by weighted moving average models, at least until I find a better such model than the HExp model. Waiting for that to happen or for a blog post on volatility forecasting by a non-weighted moving average model, feel free to connect with me on LinkedIn or to follow me on Twitter. – See Clements, Adam and Preve, Daniel P. A. and Tee, Clarence, Harvesting the HAR-X Volatility Model. ↩ ↩2 ↩3 See Fulvio Corsi, A Simple Approximate Long-Memory Model of Realized Volatility, Journal of Financial Econometrics, Volume 7, Issue 2, Spring 2009, Pages 174–196. ↩ ↩2 ↩3 ↩4 ↩5 See Tim Bollerslev, Benjamin Hood, John Huss, Lasse Heje Pedersen, Risk Everywhere: Modeling and Managing Volatility, The Review of Financial Studies, Volume 31, Issue 7, July 2018, Pages 2729–2773. ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12 ↩13 ↩14 ↩15 ↩16 ↩17 ↩18 ↩19 ↩20 ↩21 ↩22 ↩23 ↩24 ↩25 ↩26 ↩27 ↩28 ↩29 ↩30 ↩31 ↩32 ↩33 ↩34 ↩35 ↩36 ↩37 ↩38 ↩39 See Adam Clements, Daniel P.A. Preve, A Practical Guide to harnessing the HAR volatility model, Journal of Banking & Finance, Volume 133, 2021. ↩ ↩2 ↩3 ↩4 ↩5 ↩6 See Boudoukh, J., Richardson, M., & Whitelaw, R.F. (1997). Investigation of a class of volatility estimators, Journal of Derivatives, 4 Spring, 63-71. ↩ These lags correspond to the daily, weekly and monthly realized variance components of the original HAR model. ↩ In Bollerslev et al.3, the calculation of uses only the first 500 lags (i.e., is truncated to ) because the influence of the
Volatility Forecasting: HExp Model
Roman R.
