Machine learning, stock market forecasting, and market efficiency: a comparative study
Open Access
- 25 July 2025
- journal article
- research article
- Published by Springer Nature in International Journal of Data Science and Analytics
- Vol. 20 (7) , 6815-6839
Abstract
Analyses of the accuracy of machine learning algorithms for predicting stock market indices typically employ only one or a small set of stock indices and a small number of time periods. Moreover, these analyses generally ignore the influence of market efficiency on algorithm accuracy, despite theoretical evidence of the potential for such an effect. This paper aims to fill this gap by proposing and applying a method focused on the analysis of the accuracy of stock market prediction models in comparison with market efficiency. This method is applied to a dataset comprising 55 markets and 65 periods to compare the most accurate and frequently used algorithms for stock index prediction: support vector machines, artificial neural networks, gradient-boosted trees, Naive Bayes, random forest, logistic regression, and long-short term memory. These algorithms were trained to predict stock market indices using technical indicators as input. After analyzing the algorithms’ results, we present a detailed comparative analysis of their accuracy supported by a set of nonparametric measures. In addition, dynamic panel data analysis is used to determine whether there is a relationship between stock market’s efficiency and algorithmic precision. We highlight the algorithms that tend to show the best performance in terms of accuracy and obtain interesting results regarding market efficiency.Keywords
Funding Information
- Pontifical Xavierian University
This publication has 65 references indexed in Scilit:
- What (If Anything) is Wrong with High-Frequency Trading?Journal of Business Ethics, 2022
- A Black Swan event-based hybrid model for Indian stock markets’ trends predictionInnovations in Systems and Software Engineering, 2022
- An improved deep learning model for predicting stock market price time seriesDigital Signal Processing, 2020
- Econometrics in Theory and Practice2019
- Development of stock market and economic growth: the G-20 evidenceEurasian Economic Review, 2018
- Application of artificial neural network for the prediction of stock market returns: The case of the Japanese stock marketChaos, Solitons & Fractals, 2016
- Predicting the Direction of Movement for Stock Price Index Using Machine Learning Methods2016
- An Introduction to Statistical Learning2013
- Efficient Market Hypothesis1989
- Some recent development in a concept of causalityJournal of Econometrics, 1988