Research article Special Issues

Machine learning models and ensemble methods for stock index return forecasting

  • Published: 06 May 2026
  • Reliable prediction of financial market movements remains a challenging task due to high volatility, complex interdependencies, and sensitivity to external shocks. This study assessed the performance of advanced machine learning models, including long short-term memory (LSTM), gated recurrent unit (GRU), transformer networks, extreme gradient boosting (XGBoost), and deep multi-layer perceptron (DMLP), as well as proposes their ensemble combinations, in forecasting daily closing prices of five major stock indices (S&P 500, NASDAQ-100, Dow Jones Industrial Average, FTSE 100, and DAX). Results indicate that although all models achieved high predictive accuracy, profitability outcomes varied substantially across models and markets. Among single-model approaches, LSTM generally exhibited more stable positive returns in several indices, while other models showed pronounced variability depending on market conditions. Meanwhile ensemble strategies frequently ranked among the top-performing configurations, often matching or exceeding the performance of adaptive weighting schemes. Performance was strongly index-dependent, with S&P 500 and NASDAQ-100 exhibiting comparatively stronger profitability, whereas FTSE and Dow Jones showed weaker and less differentiated results. These findings emphasize that statistical accuracy (e.g., RMSE, $R^2$ metrics) alone is insufficient for profitable trading, underscoring the importance of financial performance metrics, such as total return, drawdown, and risk-adjusted measures, when evaluating predictive models.

    Citation: Aivaras Bielskis, Igoris Belovas. Machine learning models and ensemble methods for stock index return forecasting[J]. Networks and Heterogeneous Media, 2026, 21(3): 848-864. doi: 10.3934/nhm.2026035

    Related Papers:

  • Reliable prediction of financial market movements remains a challenging task due to high volatility, complex interdependencies, and sensitivity to external shocks. This study assessed the performance of advanced machine learning models, including long short-term memory (LSTM), gated recurrent unit (GRU), transformer networks, extreme gradient boosting (XGBoost), and deep multi-layer perceptron (DMLP), as well as proposes their ensemble combinations, in forecasting daily closing prices of five major stock indices (S&P 500, NASDAQ-100, Dow Jones Industrial Average, FTSE 100, and DAX). Results indicate that although all models achieved high predictive accuracy, profitability outcomes varied substantially across models and markets. Among single-model approaches, LSTM generally exhibited more stable positive returns in several indices, while other models showed pronounced variability depending on market conditions. Meanwhile ensemble strategies frequently ranked among the top-performing configurations, often matching or exceeding the performance of adaptive weighting schemes. Performance was strongly index-dependent, with S&P 500 and NASDAQ-100 exhibiting comparatively stronger profitability, whereas FTSE and Dow Jones showed weaker and less differentiated results. These findings emphasize that statistical accuracy (e.g., RMSE, $R^2$ metrics) alone is insufficient for profitable trading, underscoring the importance of financial performance metrics, such as total return, drawdown, and risk-adjusted measures, when evaluating predictive models.



    加载中


    [1] A. Timmermann, C. W. J. Granger, Efficient market hypothesis and forecasting, Int. J. Forecast., 20 (2004), 15–27. https://doi.org/10.1016/S0169-2070(03)00012-8 doi: 10.1016/S0169-2070(03)00012-8
    [2] M. C. Jensen, Some anomalous evidence regarding market efficiency, J. Financ. Econ., 6 (1978), 95–101. https://doi.org/10.1016/0304-405X(78)90025-9 doi: 10.1016/0304-405X(78)90025-9
    [3] K. Olorunnimbe, H. L. Viktor, Ensemble of temporal transformers for financial time series, J. Intell. Inf. Syst., 62 (2024), 1–25. https://doi.org/10.1007/s10844-024-00851-2 doi: 10.1007/s10844-024-00851-2
    [4] W. Chen, Z. Liu, L. Jia, A hybrid approach for portfolio construction: Combining two-stage ensemble forecasting model with portfolio optimization, Comput. Intell., 40 (2024), e12617. https://doi.org/10.1111/coin.12617 doi: 10.1111/coin.12617
    [5] Y. Ma, R. Han, W. Wang, Portfolio optimization with return prediction using deep learning and machine learning, Expert Syst. Appl., 165 (2021), 113973. https://doi.org/10.1016/j.eswa.2020.113973 doi: 10.1016/j.eswa.2020.113973
    [6] A. Dezhkam, M. T. Manzuri, Forecasting stock market for an efficient portfolio by combining XGBoost and Hilbert–Huang transform, Eng. Appl. Artif. Intell., 118 (2023), 105626. https://doi.org/10.1016/j.engappai.2022.105626 doi: 10.1016/j.engappai.2022.105626
    [7] S. Daul, T. Jaisson, A. Nagy, Performance attribution of machine learning methods for stock returns prediction, J. Finance Data Sci., 8 (2022), 86–104. https://doi.org/10.1016/j.jfds.2022.04.002 doi: 10.1016/j.jfds.2022.04.002
    [8] B. Gezici, E. Sefer, Deep transformer-based asset price and direction prediction, IEEE Access, 12 (2024), 24164–24178. https://doi.org/10.1109/ACCESS.2024.3358452 doi: 10.1109/ACCESS.2024.3358452
    [9] J. K. Mutinda, A. K. Langat, Stock price prediction using combined GARCH-AI models, Sci. Afr., 26 (2024), e02374. https://doi.org/10.1016/j.sciaf.2024.e02374 doi: 10.1016/j.sciaf.2024.e02374
    [10] T. Yue, Y. Liu, Multi-scale price forecasting based on data augmentation, Appl. Sci., 14 (2024), 8737. https://doi.org/10.3390/app14198737 doi: 10.3390/app14198737
    [11] J. Huang, Y. Wang, Comparative analysis of different machine learning techniques in forecasting stock price, in Proceedings of the International Conference on Artificial Intelligence Innovation (ICAII), (2023), 50–64. https://doi.org/10.1109/ICAII59460.2023.10497212
    [12] K. Y. Yan, Z. H. Yue, C. C. Wu, Q. Q. He, J. M. Zhou, Z. H. Hao, et al., Flexible target prediction for quantitative trading in the American stock market: A hybrid framework integrating ensemble models, fusion models and transfer learning, Entropy, 28 (2026), 84. https://doi.org/10.3390/e28010084 doi: 10.3390/e28010084
    [13] A. Hayati, S. S. Gharehveran, K. Shirini, Electricity price forecasting with ensemble meta-models and SHAP explainers: A PCA-driven approach, Sci. Rep., 16 (2026), 6466. https://doi.org/10.1038/s41598-026-35839-1 doi: 10.1038/s41598-026-35839-1
    [14] A. Brusaferri, A. Ballarino, L. Grossi, F. Laurini, On-line conformalized neural networks ensembles for probabilistic forecasting of day-ahead electricity prices, Appl. Energy, 398 (2025), 126412. https://doi.org/10.1016/j.apenergy.2025.126412 doi: 10.1016/j.apenergy.2025.126412
    [15] Y. Choi, D. Kim, J. Lee, Temporal consistency ensemble empirical mode decomposition for forecasting practical metal price, Eng. Appl. Artif. Intell., 158 (2025), 111490. https://doi.org/10.1016/j.engappai.2025.111490 doi: 10.1016/j.engappai.2025.111490
    [16] Yahoo Finance, S&P 500 index. Available from: https://finance.yahoo.com/quote/
    [17] Yahoo Finance, NASDAQ-100 index. Available from: https://finance.yahoo.com/quote/
    [18] Yahoo Finance, Dow Jones industrial average. Available from: https://finance.yahoo.com/quote/
    [19] Yahoo Finance, FTSE 100 index. Available from: https://finance.yahoo.com/quote/
    [20] Yahoo Finance, DAX performance index. Available from: https://finance.yahoo.com/quote/
    [21] A. Bielskis, Machine learning financial dataset repository. Available from: https://github.com/AivarasBi/ML.
    [22] S. Hochreiter, J. Schmidhuber, Long short-term memory, Neural Comput., 9 (1997), 1735–1780. https://doi.org/10.1162/neco.1997.9.8.1735 doi: 10.1162/neco.1997.9.8.1735
    [23] J. B. Heaton, N. G. Polson, J. H. Witte, Deep learning for finance: Deep portfolios, Appl. Stochastic Model Bus. Ind., 33 (2017) 3–12. https://doi.org/10.1002/asmb.2209 doi: 10.1002/asmb.2209
    [24] S. I. Lee, S. J. Yoo, Threshold-based portfolio: The role of the threshold and its applications, J. Supercomput., 76 (2020), 8040–8057. https://doi.org/10.1007/s11227-018-2577-1 doi: 10.1007/s11227-018-2577-1
    [25] A. Bielskis, I. Belovas, Comparative analysis of stock price ARIMA and LSTM forecasting methods, Proc. Lith. Math. Soc., 63 (2022). https://doi.org/10.15388/LMR.2022.29755 doi: 10.15388/LMR.2022.29755
    [26] J. Chung, C. Gulcehre, K. Cho, Y. Bengio, Empirical evaluation of gated recurrent neural networks on sequence modeling, preprint, arXiv: 1412.3555, 2014. https://doi.org/10.48550/arXiv.1412.3555
    [27] W. Wu, W. Liao, J. Miao, G. Du, Using gated recurrent unit network to forecast short-term load considering impact of electricity price, Energy Procedia, 158 (2019), 3369–3374. https://doi.org/10.1016/j.egypro.2019.01.950 doi: 10.1016/j.egypro.2019.01.950
    [28] T. S. Mian, Evaluation of stock closing prices using transformer learning, Eng. Technol. Appl. Sci. Res., 13 (2023), 11635–11642. https://doi.org/10.48084/etasr.6017 doi: 10.48084/etasr.6017
    [29] W. Chen, H. Zhang, M. K. Mehlawat, L. Jia, Mean–variance portfolio optimization using machine learning-based stock price prediction, Appl. Soft Comput., 100 (2021), 106943. https://doi.org/10.1016/j.asoc.2020.106943 doi: 10.1016/j.asoc.2020.106943
    [30] L. O. Orimoloye, M. C. Sung, T. Ma, J. E. V. Johnson, Comparing the effectiveness of deep feedforward neural networks and shallow architectures for predicting stock price indices, Expert Syst. Appl., 139 (2020), 112828. https://doi.org/10.1016/j.eswa.2019.112828 doi: 10.1016/j.eswa.2019.112828
    [31] R. Singh, S. Srivastava, Stock prediction using deep learning, Multimed. Tools Appl., 76 (2016), 18569–18584. https://doi.org/10.1007/s11042-016-4159-7 doi: 10.1007/s11042-016-4159-7
    [32] M. Magdon-Ismail, A. F. Atiya, A. Pratap, Y. S. Abu Mostafa, On the maximum drawdown of a Brownian motion, J. Appl. Probab., 41 (2004), 99–102. https://doi.org/10.1239/jap/1077134674 doi: 10.1239/jap/1077134674
  • Reader Comments
  • © 2026 the Author(s), licensee AIMS Press. This is an open access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/4.0)
通讯作者: 陈斌, bchen63@163.com
  • 1. 

    沈阳化工大学材料科学与工程学院 沈阳 110142

  1. 本站搜索
  2. 百度学术搜索
  3. 万方数据库搜索
  4. CNKI搜索

Metrics

Article views(21) PDF downloads(6) Cited by(0)

Article outline

Figures and Tables

Figures(5)  /  Tables(4)

Other Articles By Authors

/

DownLoad:  Full-Size Img  PowerPoint
Return
Return

Catalog