Hybrid machine learning for stock price prediction in the Moroccan banking sector

Bouzgarne Itri, Youssfi Mohamed, Bouattane Omar, El Madani Latifa, Moumoun Lahcen, Oualid Adil


Analyzing historical stock market data using machine-learning techniques is crucial for data scientists and researchers to optimize stock price prediction models. This study uses machine learning regression algorithms and feature selection methods to optimize a simulated stock price prediction model using real historical data from Bank of Africa, a Moroccan bank. The approach compares multiple supervised regression algorithms, such as linear regression, extreme gradient boosting, ordinary least squared, random forest regressor, a linear least-squares L2-regularized, epsilon-support vector regression, and linear support vector regression. Each of these algorithms is associated with different feature selection algorithms to improve the performance of the prediction model. The analysis results revealed that hybridizing algorithms between the highest score percentiles, univariate linear regression, and linear support vector regression perform better according to the root mean squared error and R2-Score measures. This approach overcomes the problems associated with high-dimensional data by reducing the number of features and improving prediction accuracy.


Banking stock market; Feature selection; Linear support vector regression; Machine learning; Regression algorithm

Full Text:


DOI: http://doi.org/10.11591/ijece.v14i3.pp3197-3207

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

International Journal of Electrical and Computer Engineering (IJECE)
p-ISSN 2088-8708, e-ISSN 2722-2578

This journal is published by the Institute of Advanced Engineering and Science (IAES) in collaboration with Intelektual Pustaka Media Utama (IPMU).