Open Access

Hassan Oukhouya, Hamza Kadiri, Khalid El Himdi, Raby Guerbaz

2023.11.3Statistics, Optimization and Information Computing

DOI: 10.19139/soic-2310-5070-1822

tlooto Summary

Results show that the hybrid LSTM-XGBoost model, optimized using Grid Search (GS), outperforms other models, achieving high accuracy in forecasting daily prices.

Abstract

Forecasting time series is crucial for financial research and decision-making in business. The nonlinearity of stock market prices profoundly impacts global economic and financial sectors. This study focuses on modeling and forecasting the daily prices of key stock indices - MASI, CAC 40, DAX, FTSE 250, NASDAQ, and HKEX, representing the Moroccan, French, German, British, US, and Hong Kong markets, respectively. We compare the performance of machine learning models, including Long Short-Term Memory (LSTM), eXtreme Gradient Boosting (XGBoost), and the hybrid LSTM-XGBoost, and utilize the skforecast library for backtesting. Results show that the hybrid LSTM-XGBoost model, optimized using Grid Search (GS), outperforms other models, achieving high accuracy in forecasting daily prices. This contribution offers financial analysts and investors valuable insights, facilitating informed decision-making through precise forecasts of international stock prices.

Citation format

OUKHOUYA, Hassan, et al. Forecasting international stock market trends: Xgboost, LSTM, LSTM-XGBoost, and backtesting xgboost models. Statistics, Optimization and Information Computing, 2023.