Abstract
Investors, researchers and finance practitioners are continuously looking for the best technique that can assist them in accurately predicting the stock markets. The ability to predict stock prices contradicts the efficient market hypothesis (EMH) and can yield substantial monetary rewards for investors. Various stock price prediction techniques are used to predict the stock market and they range from statistical to machine learning methods. Statistical models fall short in handling nonlinear data which characterizes most stock markets. Artificial Neural Networks (ANNs), one of the widely used techniques are able to handle nonlinear data but have low prediction accuracy due to their inability to handle long term dependencies and memory capacity handling. Prediction models that have an ability to learn long-term dependency information are ideal for stock market prediction. The current study uses deep learning techniques, namely, Long Short Term Memory (LSTM), Recurrent Neural Networks (RNNs), Gated Recurrent Units (GRUs), Bidirectional LSTM (BLSTM), Bidirectional RNN (BRNN), Bidirectional GRU (BGRU) to predict stock markets in ten sub-Saharan African countries. The prediction techniques were run on a python 3.5 environment using Theano and Keras libraries. Limited computing capacity was of great concern. However, for the purpose of this study, access to high performance computing facilities was granted in order to run the experiments. Experimental results show that both unidirectional and bidirectional architectures greatly improved prediction accuracy in this research. However, both architectures were found not to be significantly different in predicting the stock markets of the ten African countries. In general, LSTMs followed by BGRUs proved to be the best models in predicting the African stock markets.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsReferences
Leung, M.T., Daouk, H., Chen, A.S.: Forecasting stock indices: a comparison of classification and level estimation models. Int. J. Forecast. 16(2), 173–190 (2000)
Manish, K., Thenmozhi, M.: Forecasting stock index movement: a comparison of support vector machines and random forest. In: Proceedings of Ninth Indian Institute of Capital Markets Conference, Mumbai, India (2005)
Shan, R., Dai, H., Zhao, J., Liu, W.: Forecasting study of Shanghai’s and Shenzhen’s stock markets using a hybrid forecast method. Commun. Stat.-Simul. Comput. 44, 1066–1072 (2015)
Sanjeev, G.S.K.: Forecasting inflation in G-7 countries- an application of artificial neural network. Foresight 17(1), 63–73 (2015)
Li, S., Hou, Y.: The impact of the CSI 300 stock index futures:positive feedback trading and autocorrelation of stock returns. Int. Rev. Econ. Financ. 33, 319–337 (2014)
Taran, C., Roy, D., Srinivasan, N.: Stock price prediction - a novel survey. Int. J. Appl. Eng. Res. 10(4), 11375–11383 (2015)
Malkiel, B.G.: The efficient market hypothesis and its critics. J. Econ. Perspect. 17(1), 59–82 (2003)
Ballings, M., Poel, D.V., Hespeels, N., Gryp, R.: Evaluating multiple classifiers for stock price direction prediction. Expert Syst. Appl. 42, 7046–7056 (2015)
Kim, K.-J.: Financial time series forecasting using support vector machines. Neurocomputing 55(1–2), 307–319 (2003)
Huang, W., Nakamori, Y., Wang, S.-Y.: Forecasting stock market movement direction with support vector machine. Comput. Oper. Res. 32(10), 2513–2522 (2005)
Lee, M.: Using support vector machine with a hybrid feature selection method to the stock trend prediction. Expert Syst. Appl. 36, 10896–10904 (2009)
Wu, M.-C., Lin, S.-Y., Lin, C.-H.: An effective application of decision tree to stock trading. Expert Syst. Appl. 31(2), 270–274 (2006)
Browstone, D.: Using percentage accuracyto measure neural network predictions in stock market movements. Neurocomputing 10(3), 237–250 (1996)
Ou, P., Wang, H.: Prediction of stock market index movement by ten data mining techniques. Mod. Appl. Sci. 3(12), 28 (2009)
Subha, M.-V., Nambi, S.-T.: Classification of stock index movement using k-nearest neighbours(k-NN) algorithm. WSEAS Trans. Inf. Sci. Appl. 9(9), 261–270 (2012)
Oliveira, F.A., Nobre, E.N., Zarate, L.E.: Applying artificial neural networks to prediction of stock price and improvement of the directional prediction index- case study of PETR4, Petrobas. Braz. Expert Syst. Appl. 40, 7596–7606 (2013)
Kara, Y., Boyacioglu, M.A., Baykan, O.M.: Predicting direction of stock price index movement using artificial neural networks and support vector machines: the sample of the istanbul stock exchange. Expert Syst. Appl. 38, 5311–5319 (2011)
Kadari, R., Zhang, Y., Zhang, W., Liu, T.: CCG supertagging via bidirectional LSTM-CRF neural architecture. Neurocomputing 283, 31–37 (2018)
Huynh, H.D., Dang, L.M., Duong, D.: A new model for stock price movements prediction using deep neural networks. SoICT 17, 57–62 (2017)
Dixon, M., Klabjan, D., Bang, J.H.: Implementing deep neural networks for financial market prediction on the intel xeon phi. ACM 978(1), 4015–4503 (2015)
Sreelekshmy, S., Vinayakmar, R., Gopalakrishnan, E.A., Vijay, K.M., Soman, K.P.: Stock price prediction using LSTM, RNN and CNN sliding window model. IEEE, pp. 1643–1647 (2017)
Wang, J., Wang, J.: Forecasting stock market indexes using principle component analysis and stochastic time effective neural networks. Neurocomputing 156, 68–78 (2015)
Najafadabi, M., Villahustre, F., Khoshgoftaar, T.-M., Seliya, N., Wald, R., Muharemagic, E.: Deep learning applications and challenges in big data analytics. J. Big Data 2(11), 1 (2015)
Wang, J., Hou, R., Wang, C., Shen, L.: Improved v-support vector regression model based on variable selection and brain storm optimisation for stock price forecasting. Appl. Soft Comput. 49, 164–178 (2016)
Lawrence, R.: Using neural networks to forecast stock market prices. University of Manitoba, pp. 1–21 (1997)
Rather, A.M., Agarwal, A., Sastry, V.N.: Recurrent neural networks and a hybrid model for prediction of stock returns. Expert Syst. Appl. 42(6), 3234–3241 (2015)
Rout, A., Dash, P.K., Dash, R., Bisio, R.: Forecasting financial time series using a low complexity recurrent neural network and evolutionary learning approach. J. King Saud Univ.- Comput. Inf. Sci. 29(4), 1–17 (2015)
Lin, Y., Guo, H., Hu, J.: An SVM based approach for stock market trend prediction. In: Neural Networks (2013)
Kim, K.J., Han, I., Chandler, J.S.: Extracting trading rules from the multiple classifiers and technical indicators in stock market. In: AI Applications (1998)
Gamboa, J.: Deep learning for time- series analysis (2017). arXiv:1701.01887.1,1-13
Zhuge, Q., Xu, L., Zhang, G.: LSTM neural network with emotional analysis for prediction of stock price. Eng. Lett. 25(2), EL_25_2_09 (2017)
Akita, R., Yoshihara, A., Matsubara, T., Uehara, K.: Deep learning for stock prediction using numerical and textual information. ICIS-978-1-5090-0806-3/16, IEEE (2016)
Liu, F.-J., Wang, J.: Fluctuation prediction of stock market index by legendre neural network with random time strength function. Neurocomputing 83, 12–21 (2009)
Shao, X., Ma, D., Liu, Y., Yin, Q.: Short term forecast of stock price of multi-branch LSTM based on K-means. In: The 2017 4th International Conference on Systems and Informatics, pp. 1546-1551. IEEE (2017)
Fischer, T., Krauss, C.: Deep learning with long short term memory networks for financial market prediction. Euro. J. Oper. Res. 270(2), 654–669 (2018)
Jozefowicz, R., Zaremba, W., Sutskever, I.: An empirical exploration of recurrent neural network architectures. In: Proceedings of the 32nd International Conference on Machine Learning, p. 37 ( 2015)
Cho, K., Merrienboer, V., Yoshua, B.: Learning phrase representations using rnn encoder-decoder per statistical machine translation (2014). ArXiv. 1406.1708
Chung, J., Gukehre, C., Cho, K., Bengio, Y.: Empirical evaluation of gated recurrent neural network sequence modelling (2014). ArXiv. 1412.3555
Fama, E.F.: Efficient capital markets: a review of theory and empirical work. J. Financ. 25(2), 383–417 (1970)
Milkolov, T., Karafiat, N., Burget, L., Cernocky, J., Khudaripur, S.: Recurrent neural network based language model. In: Interspeech, pp. 1045–1048 (2010)
Graves, A., Liwicki, M., Fernandez, S., Bertolami, R., Bunke, H., Schimidhuber, J.: A novel connectionist system for unconstrained handwriting recognition. IEEE Trans. Pattern Anal. Mach. Intell. 31(5), 855–868 (2009)
Persio, L.D., Honchar, O.: Recurrent neural networks approach to the financial forecast of google assets. Int. J. Math. Comput. Simul. 11, 7–13 (2017)
Graves, A., Schmidhuber, J.: Framewise phoneme classification with bidirectional lstm and other neural network architectures. In: Proceedings of the International Joint Conference on Neural Networks, vol. 4, pp. 2047–2052. IEEE (2005)
Kingma, D.P., Adam, J.L.B.: A method for stochastic optimization. In: 3rd International Conference for Learning Representations (2015)
Greff, K., Srivastava, R.K., Koutnik, J., Steunebrink, B.-R., Schmidhuber, J.: LSTM: a search space odyssey. IEEE Trans. Neural Netw. Learn. Syst. 28(10), 2222–2232 (2017)
Khandelwal, S., Lecouteux, B., Besaciu, L.: Comparing GRU and LSTM for automatic speech recognition. In: HAL Archives-Ouvertes, pp. 1–7 (2017)
Amodei, D., Anubhai, R., Battenburg, E., Case, C.: Deep speech 2: end to end speech recognition in English and Mandrin (2015). ArXiv.1512.02595
Morgan Stanley : Capital international emerging market index (MSCI) (2019)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2020 Springer Nature Switzerland AG
About this paper
Cite this paper
Murekachiro, D., Mokoteli, T., Vadapalli, H. (2020). Predicting Emerging and Frontier Stock Markets Using Deep Neural Networks. In: Bi, Y., Bhatia, R., Kapoor, S. (eds) Intelligent Systems and Applications. IntelliSys 2019. Advances in Intelligent Systems and Computing, vol 1037. Springer, Cham. https://doi.org/10.1007/978-3-030-29516-5_68
Download citation
DOI: https://doi.org/10.1007/978-3-030-29516-5_68
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-29515-8
Online ISBN: 978-3-030-29516-5
eBook Packages: Intelligent Technologies and RoboticsIntelligent Technologies and Robotics (R0)