Using AI models in stocks prices prediction: Case of the Moroccan stock market

Authors

  • Mohammed EL MASSAADI Faculty of Economics and Management, Ibn Tofail University of Kenitra, Morocco
  • Hajar BOUDRAINE National School of Business and Management of Kenitra, Ibn Tofail University of Kenitra, Morocco
  • Hamid AIT LEMQEDDEM National School of Business and Management of Kenitra, Ibn Tofail University of Kenitra, Morocco

Abstract

The use of machine learning and deep learning to anticipate and capture stock market trends has captured the attention of the financial sector, offering the prospect of more accurate and efficient prediction of market dynamics. Faced with the growing complexity and highly volatile nature of financial markets, the adoption of advanced predictive models has become a necessity. This paper investigates the performance of four machine learning models for predicting the Moroccan stock market, namely Multilayer Perceptron (MLP), Recurrent Neural Networks (RNN), Convolutional Neural Networks (CNN) and the LSTM model, using historical daily stock price data. The results obtained, supported by the mean absolute percentage error (MAPE) values retained, show an alternation between MLP and RNN for the prediction and recognition of patterns in the time series studied. However, RNN stands out as a model offering, in the majority of cases, the best accuracy for anticipating stock price variations, underlining its effectiveness in this context.

 

Keywords: Prediction, Artificial Neural Network, CNN, RNN, MLP.

JEL Classification: G12

Paper type: Empirical research

Downloads

Download data is not yet available.

Published

2024-11-24

How to Cite

EL MASSAADI, M., BOUDRAINE, H., & AIT LEMQEDDEM, H. (2024). Using AI models in stocks prices prediction: Case of the Moroccan stock market. International Journal of Accounting, Finance, Auditing, Management and Economics, 5(11), 568–583. Retrieved from https://www.ijafame.org/index.php/ijafame/article/view/1824

Issue

Section

Articles