Skip to main content

Predicting Emerging and Frontier Stock Markets Using Deep Neural Networks

  • Conference paper
  • First Online:

Part of the book series: Advances in Intelligent Systems and Computing ((AISC,volume 1037))

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

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   169.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   219.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

References

  1. 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)

    Article  Google Scholar 

  2. 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)

    Google Scholar 

  3. 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)

    Article  MathSciNet  MATH  Google Scholar 

  4. Sanjeev, G.S.K.: Forecasting inflation in G-7 countries- an application of artificial neural network. Foresight 17(1), 63–73 (2015)

    Article  Google Scholar 

  5. 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)

    Article  Google Scholar 

  6. Taran, C., Roy, D., Srinivasan, N.: Stock price prediction - a novel survey. Int. J. Appl. Eng. Res. 10(4), 11375–11383 (2015)

    Google Scholar 

  7. Malkiel, B.G.: The efficient market hypothesis and its critics. J. Econ. Perspect. 17(1), 59–82 (2003)

    Article  Google Scholar 

  8. Ballings, M., Poel, D.V., Hespeels, N., Gryp, R.: Evaluating multiple classifiers for stock price direction prediction. Expert Syst. Appl. 42, 7046–7056 (2015)

    Article  Google Scholar 

  9. Kim, K.-J.: Financial time series forecasting using support vector machines. Neurocomputing 55(1–2), 307–319 (2003)

    Article  Google Scholar 

  10. Huang, W., Nakamori, Y., Wang, S.-Y.: Forecasting stock market movement direction with support vector machine. Comput. Oper. Res. 32(10), 2513–2522 (2005)

    Article  MATH  Google Scholar 

  11. Lee, M.: Using support vector machine with a hybrid feature selection method to the stock trend prediction. Expert Syst. Appl. 36, 10896–10904 (2009)

    Article  Google Scholar 

  12. 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)

    Article  Google Scholar 

  13. Browstone, D.: Using percentage accuracyto measure neural network predictions in stock market movements. Neurocomputing 10(3), 237–250 (1996)

    Article  Google Scholar 

  14. Ou, P., Wang, H.: Prediction of stock market index movement by ten data mining techniques. Mod. Appl. Sci. 3(12), 28 (2009)

    Article  MATH  Google Scholar 

  15. 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)

    Google Scholar 

  16. 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)

    Article  Google Scholar 

  17. 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)

    Article  Google Scholar 

  18. Kadari, R., Zhang, Y., Zhang, W., Liu, T.: CCG supertagging via bidirectional LSTM-CRF neural architecture. Neurocomputing 283, 31–37 (2018)

    Article  Google Scholar 

  19. 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)

    Google Scholar 

  20. 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)

    Google Scholar 

  21. 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)

    Google Scholar 

  22. Wang, J., Wang, J.: Forecasting stock market indexes using principle component analysis and stochastic time effective neural networks. Neurocomputing 156, 68–78 (2015)

    Article  Google Scholar 

  23. 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)

    Article  Google Scholar 

  24. 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)

    Article  Google Scholar 

  25. Lawrence, R.: Using neural networks to forecast stock market prices. University of Manitoba, pp. 1–21 (1997)

    Google Scholar 

  26. 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)

    Article  Google Scholar 

  27. 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)

    Google Scholar 

  28. Lin, Y., Guo, H., Hu, J.: An SVM based approach for stock market trend prediction. In: Neural Networks (2013)

    Google Scholar 

  29. 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)

    Google Scholar 

  30. Gamboa, J.: Deep learning for time- series analysis (2017). arXiv:1701.01887.1,1-13

  31. 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)

    Google Scholar 

  32. 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)

    Google Scholar 

  33. 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)

    Article  Google Scholar 

  34. 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)

    Google Scholar 

  35. 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)

    Article  MathSciNet  MATH  Google Scholar 

  36. 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)

    Google Scholar 

  37. Cho, K., Merrienboer, V., Yoshua, B.: Learning phrase representations using rnn encoder-decoder per statistical machine translation (2014). ArXiv. 1406.1708

  38. Chung, J., Gukehre, C., Cho, K., Bengio, Y.: Empirical evaluation of gated recurrent neural network sequence modelling (2014). ArXiv. 1412.3555

  39. Fama, E.F.: Efficient capital markets: a review of theory and empirical work. J. Financ. 25(2), 383–417 (1970)

    Article  Google Scholar 

  40. Milkolov, T., Karafiat, N., Burget, L., Cernocky, J., Khudaripur, S.: Recurrent neural network based language model. In: Interspeech, pp. 1045–1048 (2010)

    Google Scholar 

  41. 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)

    Article  Google Scholar 

  42. 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)

    Google Scholar 

  43. 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)

    Article  Google Scholar 

  44. Kingma, D.P., Adam, J.L.B.: A method for stochastic optimization. In: 3rd International Conference for Learning Representations (2015)

    Google Scholar 

  45. 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)

    Article  MathSciNet  Google Scholar 

  46. Khandelwal, S., Lecouteux, B., Besaciu, L.: Comparing GRU and LSTM for automatic speech recognition. In: HAL Archives-Ouvertes, pp. 1–7 (2017)

    Google Scholar 

  47. Amodei, D., Anubhai, R., Battenburg, E., Case, C.: Deep speech 2: end to end speech recognition in English and Mandrin (2015). ArXiv.1512.02595

  48. Morgan Stanley : Capital international emerging market index (MSCI) (2019)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Dennis Murekachiro .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

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

Publish with us

Policies and ethics