Forecasting realized volatility of stock indices using the extra trees algorithm: an ablation study of hyperparameters

Received: 18.07.2026

Published: 29.06.2025

Abstract

This paper presents a systematic study of the influence of three key hyperparameters of the ExtraTreesRegressor algorithm — the number of base trees N, maximum depth max_depth, and minimum number of samples in a leaf min_samples_leaf — on the forecasting accuracy of realized volatility for stock indices and equities over a horizon of k = 5 trading days. The experiments were conducted on four financial instruments (AAPL, TSLA, ^GSPC, ^IXIC) using 11 years of daily trading data (2015–2026) and an expanding-window walk-forward protocol with K = 22 expanding folds. Based on 13 unique ExtraTrees configurations (a total of 1144 independent runs), the following findings were obtained: increasing N beyond 100 provides only a negligible reduction in RMSE while increasing training time by a factor of 10; restricting max_depth to 6–9 achieves the lowest RMSE, reflecting the bias–variance tradeoff under conditions of a highly noisy target variable; increasing min_samples_leaf from 5 to 50 monotonically reduces RMSE by 11–16% due to leaf regularization. The best configuration achieves RMSE = 0.00403 for the ^GSPC index, comparable to LightGBM (0.00392) and XGBoost (0.00403). The results provide practical recommendations for hyperparameter selection in daily-frequency volatility forecasting. Keywords: realized volatility; extremely randomized trees; ExtraTrees; volatility forecasting; ablation study; stock indices; walk-forward cross-validation; machine learning for finance.

List of references

  1. Andersen T.G., Bollerslev T., Diebold F.X., Labys P. The distribution of realized exchange rate volatility // Journal of the American Statistical Association. — 2001. — Vol. 96(453). — P. 42–55.

  2. Geurts P., Ernst D., Wehenkel L. Extremely randomized trees // Machine Learning. — 2006. — Vol. 63(1). — P. 3–42.

  3. Breiman L. Random Forests // Machine Learning. — 2001. — Vol. 45(1). — P. 5–32.

  4. Chen T., Guestrin C. XGBoost: A scalable tree boosting system // Proc. 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining. — 2016. — P. 785–794.

  5. Ke G., Meng Q., Finley T., Wang T., Chen W., Ma W., Ye Q., Liu T.-Y. LightGBM: A highly efficient gradient boosting decision tree // Advances in Neural Information Processing Systems (NeurIPS). — 2017. — Vol. 30. — P. 3146–3154.

  6. Gu S., Kelly B., Xiu D. Empirical asset pricing via machine learning // Review of Financial Studies. — 2020. — Vol. 33(5). — P. 2223–2273.

  7. Fischer T., Krauss C. Deep learning with LSTM for financial market predictions // European Journal of Operational Research. — 2018. — Vol. 270(2). — P. 654–669.

  8. Sezer O.B., Gudelek M.U., Ozbayoglu A.M. Financial time series forecasting with deep learning: A systematic literature review // Applied Soft Computing. — 2020. — Vol. 90. — Art. 106181.

  9. Lo´pez de Prado M. Advances in Financial Machine Learning. — Hoboken: Wiley, 2018. — 395 p.

  10. Hamilton J.D. Time Series Analysis. — Princeton University Press, 1994. — 799 p.

  11. Tsay R.S. Analysis of Financial Time Series. — 3rd ed. — Hoboken: Wiley, 2010. — 720 p.

  12. Friedman J.H. Greedy function approximation: a gradient boosting machine // Annals of Statistics. — 2001. — Vol. 29(5). — P. 1189–1232.

  13. Pedregosa F., Varoquaux G., Gramfort A. et al. Scikit-learn: Machine learning in Python // Journal of Machine Learning Research. — 2011. — Vol. 12. — P. 2825–2830.

  14. Efron B., Tibshirani R.J. An Introduction to the Bootstrap. — New York: Chapman & Hall, 1993. — 436 p.

  15. Engle R.F. Autoregressive conditional heteroscedasticity with estimates of the variance of United Kingdom inflation // Econometrica. — 1982. — Vol. 50(4). — P. 987–1007.

About the Authors

Asadbek U.Ikromov
Elvira R.Tadjikhodjaeva

License

How to Cite

Forecasting realized volatility of stock indices using the extra trees algorithm: an ablation study of hyperparameters. (2025). Acta Education, 2(2), 29-39. https://doi.org/10.61587/ActaEducation-2025-3-00002

Similar Articles

You may also start an advanced similarity search for this article.

Most read articles by the same author(s)


ISSN 3030-3141 (Online)