Hamza Kadiri , Hassan Oukhouya , Khalid Belkhoutout
{"title":"A comparative study of hybrid and individual models for predicting the Moroccan MASI index: Integrating machine learning and deep learning approaches","authors":"Hamza Kadiri , Hassan Oukhouya , Khalid Belkhoutout","doi":"10.1016/j.sciaf.2025.e02671","DOIUrl":null,"url":null,"abstract":"<div><div>Forecasting financial market fluctuations is inherently challenging due to its complexity, volatility, and non-linear behavior. This research investigates the predictive accuracy of novel machine learning (ML) approaches for forecasting stock prices. Our approach combines individual ML and deep learning (DL) techniques to predict the daily price of the Moroccan all-share index (MASI). This study introduces novel hybrid models, specifically SVR-XGBoost, MLP-XGBoost, and LSTM-XGBoost. Daily closing price data for the MASI index and sector indices, from 2013 to 2023, is collected. The dataset is used to train and optimize Support Vector Regression (SVR), XGBoost, Multilayer Perceptron (MLP), and Long Short-Term Memory (LSTM) models using the Grid search (GS) algorithm. The performance of these individual models is compared with the hybrid model using standard metrics such as mean absolute error (MAE), mean square error (MSE), mean absolute percentage error (MAPE), and root mean square error (RMSE). In addition, backtesting and bootstrapping interval from the Skforecast library are used. The results demonstrate that the hybrid model achieves the highest accuracy. Moreover, this research holds significant value for investors, financial analysts, and policymakers by refining investment strategies and improving risk management practices.</div></div>","PeriodicalId":21690,"journal":{"name":"Scientific African","volume":"28 ","pages":"Article e02671"},"PeriodicalIF":2.7000,"publicationDate":"2025-04-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Scientific African","FirstCategoryId":"1085","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S2468227625001413","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"MULTIDISCIPLINARY SCIENCES","Score":null,"Total":0}
引用次数: 0
Abstract
Forecasting financial market fluctuations is inherently challenging due to its complexity, volatility, and non-linear behavior. This research investigates the predictive accuracy of novel machine learning (ML) approaches for forecasting stock prices. Our approach combines individual ML and deep learning (DL) techniques to predict the daily price of the Moroccan all-share index (MASI). This study introduces novel hybrid models, specifically SVR-XGBoost, MLP-XGBoost, and LSTM-XGBoost. Daily closing price data for the MASI index and sector indices, from 2013 to 2023, is collected. The dataset is used to train and optimize Support Vector Regression (SVR), XGBoost, Multilayer Perceptron (MLP), and Long Short-Term Memory (LSTM) models using the Grid search (GS) algorithm. The performance of these individual models is compared with the hybrid model using standard metrics such as mean absolute error (MAE), mean square error (MSE), mean absolute percentage error (MAPE), and root mean square error (RMSE). In addition, backtesting and bootstrapping interval from the Skforecast library are used. The results demonstrate that the hybrid model achieves the highest accuracy. Moreover, this research holds significant value for investors, financial analysts, and policymakers by refining investment strategies and improving risk management practices.