SAUDI ARABIA STOCK PRICES PREDICTION USING MACHINE LEARNING
Keywords:
stock price prediction, machine learning, linear regression, random forest, XGB, AdaBoostDOI:
https://doi.org/10.17654/0972361725034Abstract
The Saudi stock market holds a significant position in the Middle East’s financial landscape, attracting global investors due to its status as the tenth-largest market worldwide by market value. However, forecasting stock prices in this market presents notable challenges owing to its intricate nature and volatility. This study aims to construct a predictive model capable of forecasting Saudi stock prices for the following day, leveraging diverse datasets and algorithms. Specifically, we apply machine learning algorithms for stock price prediction in the Saudi market, focusing on datasets from four prominent companies: Almarai, Saudi Telecommunication Company (STC), Sabic, and Alrajhi Bank. Spanning from 2018 to 2022, our analysis employs various algorithms including linear regression, random forest, XGB, and AdaBoost. Through this research, we aim to assess the accuracy of these models and determine the factors influencing their performance. Our findings consistently demonstrate that linear regression outperforms other models across all datasets, followed by random forest and XGB. Notably, AdaBoost consistently exhibits the lowest accuracy among the models tested. Further data analysis uncovers varying distributions and skewness across datasets, exerting influence on model performance. While machine learning models exhibit promise in stock price prediction, their efficacy is subject to various factors, necessitating ongoing research to refine accuracy and applicability.
Received: February 6, 2025
Accepted: March 21, 2025
References
The four factors that affect the rise and fall of stock prices, Argaam, 2022. [Online]. Available: https://www.argaam.com/ar/article/articledetail/id/1545454
N. Al-Nassar, On the informational efficiency of Saudi exchange-traded funds listed at home and away from home, Cogent Economics and Finance 9(1) (2021), Art. No. 1902654. [Online]. Available:
https://doi.org/10.1080/23322039.2021.1902654
I. Alsedrah, Behavioral finance and speculative behavior of investors: Evidence from Saudi stock market, Proceedings of the European Proceedings of Social and Behavioral Sciences, 2018, pp. 604-618. [Online]. Available:
https://doi.org/10.15405/epsbs.2018.07.02.65
G. Bonaccorso, Machine Learning Algorithms: Popular Algorithms for Data Science and Machine Learning, Packt Publishing, 2018.
L. Breiman, Random forests, Machine Learning 45(1) (2001), 5-32.
T. Chen and C. Guestrin, XGBoost: A scalable tree boosting system, Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, ACM, 2016, pp. 785-794.
T. Chen and C. Guestrin, XGBoost: A Scalable Tree Boosting System, 2024. [Online]. Available: https://xgboost.readthedocs.io/en/latest/tutorials/model.html.
C.-Y. Tsai and C.-L. Huang, A hybrid SOFM-SVR with a filter-based feature selection for stock market forecasting, Expert Systems with Applications 36(2) (2009), 1529-1539. [Online]. Available:
https://doi.org/10.1016/j.eswa.2007.11.062
J. Elliott, C. Karacadag and V. Sundararajan, Managing risks in financial market development: The role of sequencing, SSRN Electronic Journal (2003). [Online]. Available: https://doi.org/10.2139/ssrn.1930789
D. A. Freedman, Statistical Models: Theory and Practice, Cambridge University Press, 2009.
J. Frost, Regression Analysis: An Intuitive Guide for Using and Interpreting Linear Models, Statistics by Jim Publishing, 2020.
T. Hastie, R. Tibshirani and J. Friedman, The Elements of Statistical Learning, Springer, California, USA, 2008.
S. Hitti and G. Abed, The Economy and Finances of Saudi Arabia, International Monetary Fund 1974 (1974), 323.
J. Kamiri and G. W. Mariga, Research methods in machine learning: A content analysis, International Journal of Computer and Information Technology (2021). [Online]. Available: https://api.semanticscholar.org/CorpusID:234890566
J. Kim and I. Han, Genetic algorithms approach to feature discretization in artificial neural networks for the prediction of stock price index, Expert Systems with Applications 19(2) (2000), 125-132. [Online]. Available:
https://doi.org/10.1016/S0957-4174(00)00027-0
L.-P. Ni, Z.-W. Ni and Y.-Z. Gao, Stock trend prediction based on fractal feature selection and support vector machine, Expert Systems with Applications 38(5) (2011), 5569-5576. [Online]. Available:
https://doi.org/10.1016/j.eswa.2010.10.079
The Board of the Capital Market Authority, Market Conduct Regulations, The Capital Market Authority, Kingdom of Saudi Arabia, 2021.
M. A. Poole and P. N. O’Farrell, The assumptions of the linear regression model, Transactions of the Institute of British Geographers 52 (1971), 145-158. [Online]. Available: https://doi.org/10.2307/621706
P. R. Read, Saudi Capital Market Rules and Regulations, 1st ed., Chartered Institute for Securities Investment, London, United Kingdom, 2022.
P. Agarwal, S. Idrees and A. Alam, A Prediction Approach for Stock Market Volatility Based on Time Series Data, IEEE Access, 7(2) (2019), pp. 1529-1539. [Online]. Available: https://doi.org/10.1109/ACCESS.2019.2895252
B. Weng, L. Lu, X. Wang, F. M. Megahed and W. Martinez, Predicting short-term stock prices using ensemble methods and online data sources, Expert Systems with Applications 112 (2018), 258-273. [Online]. Available:
https://doi.org/10.1016/j.eswa.2018.06.016
Z.-H. Zhou, Ensemble Methods: Foundations and Algorithms, Chapman and Hall/CRC, 2012.
Downloads
Published
Issue
Section
License
Copyright (c) 2025 Pushpa Publishing House, Prayagraj, India

This work is licensed under a Creative Commons Attribution 4.0 International License.
____________________________
Attribution: Credit Pushpa Publishing House as the original publisher, including title and author(s) if applicable.
No Derivatives: Modifying or creating derivative works not allowed without written permission.
Contact Pushpa Publishing House for more info or permissions.
Journal Impact Factor: 