Recent Articles

Read more about our latest published articles.

Review’s Archive

Corresponding Author:
Roselyn Dimingo, University of Johannesburg, South Africa

Coauthors:
John Weirstrass Muteba Mwamba, University of Johannesburg, South Africa
Lumengo Bonga-Bonga, University of Johannesburg, South Africa

Prediction of Stock Market Direction: Application of Machine Learning Models

Volume 74 - Issue 4, November 2021
(pp. 499-536)
JEL classification: C55, C58, G11, G17
Keywords: Machine Learning, Cross Validation, Confusion Matrix and Performance Evaluation

Abstract

Prediction of market direction has gained more attention than the prediction of point returns over the past few years as it is essential in determining buy and sell signals. A correct forecast of the market trend leads investors and asset managers to make knowledgeable decisions about their future investments. It is in this context that this study seeks to predict the market direction of two developed markets (USA and UK) and two emerging markets (South Africa and Brazil) using five machine learning techniques, namely Support Vector Machines (SVM), Decision Trees (DTs), Random Forest (RF), K-Nearest Neighbours (K-NN) and Linear Discriminant Analysis (LDA). We use the LDA algorithm as a benchmark since it is the only algorithm that is closely related to logistic regression model. Our empirical results show that the random forest (RF) is the best model in predicting the market direction of all the markets, developed or emerging. Moreover, the study finds that stock markets in both developed and emerging markets are determined by their previous day price and the stock dividend yield.


Read the full article

Download the article in PDF format to read and print.


Bibliography

Akgiray, V. (1989), “Conditional Heteroscedasticity in Time Series of Stock Returns: Evidence and Forecasts”, Journal of Business, 62(1), 55-80.

Ballings, M., D. Van den Poel, N. Hespeels and R. Gryp (2015), “Evaluating Multiple Classifiers for Stock Price Direction Prediction”, Expert Systems with Applications, 42(20), 7046-7056.

Basak, S., S. Kar, S. Saha, L. Khaidem and S.R. Dey, (2019), “Predicting the Direction of Stock Market Prices Using Tree-Based Classifiers”, The North American Journal of Economics and Finance, 47(1), 552-567.

Chang, C-C., C-W. Hsu and C-J. Lin (2000), “The Analysis of Decomposition Methods for Support Vector Machines”, IEEE Transactions on Neural Networks, 11(4), 1003-1008.

Chatfield, C. (1993), “Calculating Interval Forecasts”, Journal of Business & Economic Statistics, 11(2), 121-135.

Han, J., J. Pei and M. Kamber (2012), Data Mining: Concepts and Techniques, Morgan Kaufman: London.

Hu, C. and L.T. He (2007), “An Application of Interval Methods to Stock Market Forecasting”, Reliable Computing, 13(5), 423-434.

Huang, W., Y. Nakamori and S-Y. Wang (2005), “Forecasting Stock Market Movement Direction with Support Vector Machine”, Computers & Operations Research, 32(10), 2513-2522.

Imandoust, S.B. and M. Bolandraftar (2014), “Forecasting the Direction of Stock Market Index Movement Using Three Data Mining Techniques: The Case of Tehran Stock Exchange”, International Journal of Engineering Research and Applications, 4(6), 106-117.

Jegadeesh, N. (1990), “Evidence of Predictable Behavior of Security Returns”, The Journal of finance, 45(3), 881-898.

Khaidem, L., S. Saha and S.R. Dey (2016), “Predicting the Direction of Stock Market Prices Using Random Forest”, <https://arxiv.org/abs/1605.00003>, accessed 12 January 2020.

Khang, P.R., M. Hernes, K. Kuziak, A. Rot and W. Gryncewicz (2020), “Liquidity Prediction on Vietnamese Stock Market Using Deep Learning”, Procedia Computer Science, 176, 2050-2058.

Kuhn, M. and Johnson, K. (2013), Applied Predictive Modelling Volume 13, Springer: New York.

Lahiri, K., H. Peng and Y. Zhao (2013), “Machine Learning and Forecast Combination in Incomplete Panels”, Discussion Papers 13-01, University at Albany, SUNY, Department of Economics.

Leung, M.T., H. Daouk and A-S. Chen (2000), “Forecasting Stock Indices: A Comparison of Classification and Level Estimation Models”, International Journal of Forecasting, 16(2), 173-190.

Malkiel, B.G. (1999), A Random Walk Down Wall Street: Including a Life-Cycle Guide to Personal Investing, WW Norton & Company: New York.

Malkiel, B.G. (2003), “The Efficient Market Hypothesis and its Critics”, Journal of Economic Perspectives, 17(1), 59-82.

McQueen, G. and S. Thorley (1991), “Are Stock Returns Predictable? A Test Using Markov Chains”, The Journal of Finance, 46(1), 239-263.

Nayak, A., M.M.M. Pai and R.M. Pai (2016). “Prediction Models for Indian Stock Market”, Procedia Computer Science, 89, 441-449.

Pascual, L., J. Romo and E. Ruiz (2006), “Bootstrap Prediction for Returns and Volatilities in Garch Models”, Computational Statistics & Data Analysis, 50(9), 2293-2312.

Patel, J., S. Shah, P. Thakkar and K. Kotecha (2015), “Predicting Stock and Stock Price Index Movement Using Trend Deterministic Data Preparation and Machine Learning Techniques”, Expert Systems with Applications, 42(1), 259-268.

Sarno, L. and G. Valente (2005), “Modelling and Forecasting Stock Returns: Exploiting the Futures Market, Regime Shifts and International Spillovers”, Journal of Applied Econometrics, 20(3), 345-376.

Srinivasan, S. and Petkovic, D. (2000), Phonetic Confusion Matrix Based Spoken Document Retrieval, Proceedings of the 23rd Annual International ACM SIGIR Conference on Research and Development in Information Retrieval ACM.

Vapnik, V. (2005), The Nature of Statistical Learning Theory, Springer Science & Business Media: New York.

Wang, S. and W. Shang (2014), “Forecasting Direction of China security Index 300 Movement with Least Squares Support Vector Machine”, Procedia Computer Science, 31, 869-874.

Wang, Y. and I.C. Choi (2013), Market Index and Stock Price Direction Prediction Using Machine Learning Techniques: An Empirical Study on the KOSPI and HIS, at <https://arxiv.org/abs/1309.7119v1>, retrieved 23 April 2020.

Ye, J. (2005), “Characterization of a Family of Algorithms for Generalized Discriminant Analysis on Undersampled Problems”, Journal of Machine Learning Research, 6(17), 483-502.

Zimmerman, D.W. (2014), “Consequences of Choosing Samples in Hypothesis Testing to Ensure Homogeneity of Variance”, British Journal of Mathematical and Statistical Psychology, 67(1), 1-29.

Register your account

First-time users should click on “Register your account” and enter the requested information. Upon successful registration, you will receive an e-mail with instructions to verify your registration.

Submission Guidelines

Authors’ login

Use the assigned user ID and password to login. Please, do not register again. Usernames and passwords may be changed after.

Quick search by author:
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Back to the top

Institute for International Economics
of the Genoa Chamber of Commerce


Istituto di Economia Internazionale
Camera di Commercio di Genova
Via Garibaldi, 4 (III piano) - 16124 Genova (Italy)
www.ge.camcom.gov.it