← All experiments
EXPERIMENT 01 / REGRESSION / BTC & ETH

Volatility Forecasting

Hourly forecasts of forward 24-hour realized volatility using HAR benchmarks, market features and machine learning.

This HTML edition follows the existing research note.

In this article

1. Abstract

This study examines the predictive value of market-derived features for forecasting realized volatility (RV) in BTC and ETH. Using high-frequency cryptocurrency market data, we construct hourly forecasts of forward 24-hour annualized RV. We investigate several predictors: RV, trading volume, returns, historical volatility percentile ranks, options-implied volatility (DVOL), and calendar effects. Each feature is examined through descriptive statistical analysis, hypothesis formulation, and out-of-sample forecasting experiments across multiple estimators.

Forecasting performance is evaluated using walk-forward validation and a separate held-out test. The analysis aims to identify which features provide robust incremental information, and to explain why statistically apparent relationships do not necessarily translate into improved forecasting accuracy.

Results

The HAR-D + DoW specification reduces validation RMSE relative to HAR for both BTC and ETH. Alternative regression algorithms yield larger improvements in QLIKE than in RMSE. On the held-out test, LinearSVR outperformed the classical HAR benchmark in both metrics, reducing RMSE and QLIKE by approximately 13.4% and 27.8% for BTC, and 4.5% and 19.0% for ETH, respectively. Among the evaluated models, HistGB achieved the lowest test RMSE for ETH, while LinearSVR achieved the lowest QLIKE.

2. Data and Methodology

2.1. Realized Volatility and Forecast Target

RV is estimated from ByBit 5-minute OHLC price data using five variance estimators: close-to-close (Raw), Parkinson, Garman–Klass, Rogers–Satchell, and Yang–Zhang. The annualized variance estimates are averaged across estimators before taking the square root to obtain realized volatility. The resulting RV measures over 1-day, 7-day, and 30-day windows are denoted by rv₁, rv₇, and rv₃₀, respectively.

The forecasting target is defined as:

yt = rv1, t+24

2.2. Forecasting Framework

Models are evaluated using an expanding-window walk-forward procedure. The development period extends from April 24, 2021, for BTC and April 14, 2022, for ETH, through December 31, 2025. The held-out test period covers January 1 through October 31, 2026. Test data are reserved for a held-out test, while train data is used for model development and validation. Following an initial 12-month training period, models are refitted monthly using all available historical observations and evaluated on the subsequent calendar month. The final 24 training observations are excluded to ensure that all training targets are fully observed before the validation period begins. Model selection is based exclusively on validation performance, with selected configurations subsequently evaluated on the held-out test.

Model Evaluation and Selection

Model configurations were selected based on both RMSE and QLIKE. While RMSE provides a symmetric measure of average forecasting error, QLIKE is our primary metric for practical application because it heavily penalizes the underestimation of volatility. Initial experiments focused on RMSE revealed that adding Day-of-Week (DoW) and replacing RV30 with DVOL improved RMSE. However, this came at the cost of degraded QLIKE. Subsequent experiments were therefore designed to find a model that retains the RMSE benefits of these features while restoring or improving QLIKE.

3. Validation

3.1. Feature Definitions

rv₁, rv₇, rv₃₀ — RV over 1, 7, and 30 days (see 2.1).
vol_d, vol_w — trading volume aggregated over rolling 24-hour and 168-hour windows.
ret_d, ret_w — log returns calculated over 24-hour and 168-hour periods.
prank₁, prank₇, prank₃₀ — historical percentile ranks of the corresponding RV estimates, calculated against the preceding 8,760 hourly observations.
DVOL — Deribit DVOL index.
dow₁–dow₆ — day-of-week dummy variables, with Monday as the reference category.
ModelSpecification
NaiveRV₁,t → RV₁,t+24 (persistence forecast)
HARrv₁, rv₇, rv₃₀
HAR-Drv₁, rv₇, DVOL
HAR-XHAR-D + DoW
HAR-X-AllHAR-X + vol_d, vol_w, ret_d, ret_w, prank₁, prank₇, prank₃₀
Table 1. Models

3.2. Feature–Target Correlations

FeatureBTC PearsonBTC SpearmanETH PearsonETH Spearman
rv₁0.610.650.620.66
rv₇0.580.640.540.63
rv₃₀0.440.530.410.51
prank₁0.440.490.480.55
prank₇0.410.470.430.51
prank₃₀0.270.340.290.38
vol_D0.190.220.420.51
vol_W0.040.120.330.47
ret_D−0.13−0.05−0.18−0.07
ret_W−0.26−0.11−0.26−0.12
DVOL0.560.620.520.58
Table 2. Correlations between features and target

Table 2 reports correlations between the candidate features and target. RV and DVOL exhibit the strongest positive associations with the target, while percentile ranks and trading volume show moderate relationships. Returns exhibit relatively weak negative correlations. These results provide an initial descriptive assessment of the predictors but do not establish their incremental forecasting value beyond the benchmark model.

3.3 Experiments

Figure 1. BTC and ETH prices, RV and DVOL
Figure 1. BTC and ETH prices, RV and DVOL · Click to enlarge
AssetModelRMSEQLIKE
BTCNaive0.2300.618
BTCHAR0.2050.339
ETHNaive0.2960.482
ETHHAR0.2570.338
Table 3. HAR vs. Naive

Experiment 1: Replacing the 30-day RV component of HAR with DVOL, adding DoW

As shown in Table 2, DVOL exhibits a stronger correlation with target than the 30-day RV component for both BTC and ETH. This motivates testing whether replacing rv₃₀ with DVOL improves out-of-sample forecasting accuracy.

Given the continuous operation of cryptocurrency markets, trading activity and volatility may exhibit systematic differences across days of the week. This experiment also tests whether incorporating day-of-week dummy variables improves the forecasting performance of HAR-D.

Figure 2. Historical evolution of RV30 and DVOL for BTC and ETH
Figure 2. Historical evolution of RV30 and DVOL for BTC and ETH · Click to enlarge
AssetModelRMSEQLIKE
BTCHAR0.2050.339
BTCHAR-D0.2000.370
BTCHAR-X0.1890.428
ETHHAR0.2570.338
ETHHAR-D0.2510.357
ETHHAR-X0.2410.401
Table 4. HAR-X vs. HAR-D vs. HAR

The HAR-X specification achieves the lowest RMSE among the OLS specifications for both BTC and ETH, reducing validation RMSE by approximately 7.8% and 6.2%, respectively, relative to HAR. However, this improvement is accompanied by a substantial deterioration in QLIKE.

Experiment 2: Comparison of Regression Algorithms

The second experiment evaluates whether alternative regression algorithms improve forecasting accuracy relative to the best OLS results. The best OLS value for each metric, taken across the specifications in Table 1, serves only as a selection hurdle: an algorithm–feature combination had to beat the best OLS value for RMSE and for QLIKE separately to be considered. We compare Huber, ElasticNet, LinearSVR, histogram-based gradient boosting, trees and forest using the same expanding-window walk-forward validation procedure. Implementations and parameter settings are documented in the accompanying code.

Overall, alternative regression algorithms provided limited improvements over OLS. Only ElasticNet achieved lower QLIKE for both assets. Given the limited improvements obtained with the initial configurations, we next investigate whether hyperparameter optimization can improve forecasting performance.

AlgorithmBTC ModelBTC RMSEBTC QLIKEETH ModelETH RMSEETH QLIKE
OLSHAR-X / HAR0.18850.3393HAR-X / HAR0.24110.3375
HuberHAR-X-All0.19010.3353HAR-X / HAR0.24470.3788
ElasticNetHAR-X0.19080.3074HAR-X-All0.24110.2926
LinearSVRHAR-X-All0.18800.3150HAR-X / HAR-X-All0.24310.3671
HistGBHAR-X0.21570.3489HAR-X / HAR-X-All0.25920.3605
TreeHAR-X0.21200.3650HAR-X / HAR0.27860.4453
ForestHAR-X0.20300.3354HAR-X / HAR-X-All0.25380.3749
Table 5. Comparison of regression algorithms (walk-forward validation)

Note. For each algorithm and asset, RMSE and QLIKE are minimized independently across feature specifications. The OLS metrics are shown for reference. Bold indicates the lowest value within each metric and asset.

Figure 3. Relative validation loss by algorithm and asset (OLS metrics = 1)
Figure 3. Relative validation loss by algorithm and asset (OLS metrics = 1) · Click to enlarge

Experiment 3: Hyperparameter Optimization

Hyperparameters were selected to minimize QLIKE, subject to RMSE not exceeding the minimum RMSE obtained for the same algorithm and asset by more than 5%. This constraint was introduced because the configurations minimizing RMSE and QLIKE did not always coincide.

AssetAlgorithmSelected parametersModelRMSE beforeRMSE afterQLIKE beforeQLIKE after
BTCHuberα=0.001; ε=2.5HAR-X0.19010.18960.33530.3134
BTCElasticNetα=0.01; L1=0.4HAR-X0.19080.19020.30740.3071
BTCLinearSVRC=0.01; ε=0.2HAR-X-All0.18800.18850.31500.2819
BTCHistGBlr=0.05; i=100; n=7HAR-X0.21570.19980.34890.3183
ETHHuberα=0.001; ε=20.0HAR0.24470.25660.37880.3375
ETHElasticNetα=0.05; L1=0.1HAR-X-All0.24110.24180.29260.2910
ETHLinearSVRC=0.01; ε=0.25HAR-X-All0.24310.24170.36710.2729
ETHHistGBlr=0.05; i=100; n=7HAR-X-All0.25920.25250.36050.3133
Table 6. Hyperparameter optimization results

Note. For HistGB, lr denotes learning_rate, i denotes max_iter, and n denotes max_leaf_nodes. “Before” reports the independently minimized RMSE and QLIKE values from Experiment 2; these values may correspond to different feature specifications. “After” reports both metrics for the selected tuned configuration.

Figure 4. Validation performance before and after hyperparameter tuning (OLS metrics = 1)
Figure 4. Validation performance before and after hyperparameter tuning (OLS metrics = 1) · Click to enlarge

Hyperparameter tuning generally produced modest RMSE improvements, with a more substantial reduction for BTC HistGB. Improvements in QLIKE were more pronounced across several algorithms. The results suggest that hyperparameter selection can improve QLIKE even when RMSE changes only slightly or deteriorates.

Experiment 4: Ensemble Evaluation

We evaluated equally weighted and optimized weighted combinations of Huber, ElasticNet, and LinearSVR using expanding-window validation. The best ensembles provided only marginal RMSE improvements over the strongest individual models, while QLIKE showed little or no improvement. The optimal weights were often concentrated in a single estimator, suggesting limited incremental benefit from combining these models.

4. Test

AssetAlgorithmRMSE valRMSE testQLIKE valQLIKE test
BTCLinearSVR0.18850.11220.28190.1518
BTCHistGB0.19980.11380.31830.1637
BTCElasticNet0.19020.11840.30710.1700
BTCHuber0.18960.11650.31340.1773
BTCOLS HAR0.20500.12960.33930.2104
ETHLinearSVR0.24170.17280.27290.1741
ETHElasticNet0.24180.16890.29100.1816
ETHHistGB0.25250.16840.31330.1857
ETHOLS HAR0.25660.18100.33750.2150
ETHHuber0.25660.18240.33750.2243
Table 7. Walk-forward validation and held-out test performance (RMSE and QLIKE)

The selected model configurations were evaluated on the held-out test period, which was excluded from feature selection and hyperparameter optimization.

The lower test errors may partly reflect less volatile market conditions rather than an improvement in the models' underlying predictive ability. In particular, periods of elevated volatility and abrupt market movements present greater forecasting challenges. Therefore, performance differences between validation and test periods should be considered alongside comparisons with benchmark models evaluated over the same test observations.

Figure 5. Actual versus predicted 24-hour RV for BTC and ETH over the final 30 days of the held-out test period. LinearSVR forecasts are compared with the OLS HAR benchmark
Figure 5. Actual versus predicted 24-hour RV for BTC and ETH over the final 30 days of the held-out test period. LinearSVR forecasts are compared with the OLS HAR benchmark · Click to enlarge
Explore the entire held-out test

Interactive Plotly charts, January–October 2026. Zoom, pan, inspect hourly values and toggle model traces.

5. Conclusion

This study examined the predictive value of market-derived features and compared several regression algorithms for forecasting 24-hour RV for BTC and ETH.

Replacing the 30-day RV component of HAR with DVOL and incorporating day-of-week effects improved validation RMSE for both assets, although these improvements were accompanied by higher QLIKE values. Additional features, including trading volume, returns, and historical volatility percentile ranks, provided algorithm-dependent benefits rather than consistent improvements across all algorithms. The extended feature set did not provide consistent improvements across algorithms. Its benefits were more evident for regularized linear estimators, particularly LinearSVR and ElasticNet, suggesting that the effectiveness of additional predictors depends on the estimation method.

On the held-out test, LinearSVR achieved the lowest RMSE and QLIKE for BTC. For ETH, HistGB achieved the lowest RMSE, while LinearSVR provided the best QLIKE.

Overall, the findings suggest that feature selection, regression methodology, and the choice of evaluation metric all influence volatility forecasting performance. Improvements in one metric do not necessarily translate into improvements in another, highlighting the importance of evaluating forecasting models using multiple complementary criteria.

Explore or reproduce the experiment

Browse the complete study and interactive charts above, or reproduce the experiment from source. The verified PDF and Excel reports are published here in the Experiment 01 folder when ready.

View source code ↗ Excel reports ↗
OPEN REVIEW

Discussion & feedback

Questions, reproducibility checks, potential data leakage, and methodological critiques are welcome. Feel free to share your thoughts below.

I am particularly interested in two methodological questions:

  1. How appropriate is it to evaluate hourly realized volatility forecasts with overlapping 24-hour horizons, and what limitations does this impose on the interpretation of the results?
  2. What additional checks would you consider necessary to establish the robustness of LinearSVR's outperformance over HAR: evaluation across volatility regimes, non-overlapping targets, or sensitivity to the choice of RV estimator?

I would appreciate specific methodological criticism and pointers to potential flaws in the experimental design.