IDEAS home Printed from https://ideas.repec.org/a/gam/jjrfmx/v15y2022i8p350-d882225.html
   My bibliography  Save this article

Can Ensemble Machine Learning Methods Predict Stock Returns for Indian Banks Using Technical Indicators?

Author

Listed:
  • Sabyasachi Mohapatra

    (Indian Institute of Management, Bodhgaya 824234, India)

  • Rohan Mukherjee

    (Indian Institute of Management, Bodhgaya 824234, India)

  • Arindam Roy

    (Birla Institute of Technology & Science, Pilani 333031, India)

  • Anirban Sengupta

    (Indian Institute of Management, Bodhgaya 824234, India)

  • Amit Puniyani

    (Goa Institute of Management, Goa 403505, India)

Abstract

This paper develops ensemble machine learning models (XGBoost, Gradient Boosting, and AdaBoost in addition to Random Forest) for predicting stock returns of Indian banks using technical indicators. These indicators are based on three broad categories of technical analysis: Price, Volume, and Turnover. Various error metrics like Mean Absolute Error (MAE), Mean Squared Error (MSE), Mean Absolute Percentage Error (MAPE), Root-Mean-Squared-Error (RMSE) have been used to check the performance of the models. Results show that the XGBoost algorithm performs best among the four ensemble models. The mean of absolute error and the root-mean-square -error vary around 3–5%. The feature importance plots generated by the models depict the importance of the variables in predicting the output. The proposed machine learning models help traders, investors, as well as portfolio managers, better predict the stock market trends and, in turn, the returns, particularly in banking stocks minimizing their sole dependency on macroeconomic factors. The techniques further assist the market participants in pre-empting any price-volume action across stocks irrespective of their size, liquidity, or past turnover. Finally, the techniques are incredibly robust and display a strong capability in predicting trend forecasts, particularly with any large deviations.

Suggested Citation

  • Sabyasachi Mohapatra & Rohan Mukherjee & Arindam Roy & Anirban Sengupta & Amit Puniyani, 2022. "Can Ensemble Machine Learning Methods Predict Stock Returns for Indian Banks Using Technical Indicators?," JRFM, MDPI, vol. 15(8), pages 1-16, August.
  • Handle: RePEc:gam:jjrfmx:v:15:y:2022:i:8:p:350-:d:882225
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/1911-8074/15/8/350/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/1911-8074/15/8/350/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Krauss, Christopher & Do, Xuan Anh & Huck, Nicolas, 2017. "Deep neural networks, gradient-boosted trees, random forests: Statistical arbitrage on the S&P 500," European Journal of Operational Research, Elsevier, vol. 259(2), pages 689-702.
    2. Madhavi Latha Challa & Venkataramanaiah Malepati & Siva Nageswara Rao Kolusu, 2020. "S&P BSE Sensex and S&P BSE IT return forecasting using ARIMA," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 6(1), pages 1-19, December.
    3. Shekar Shetty & Mohamed Musa & Xavier Brédart, 2022. "Bankruptcy Prediction Using Machine Learning Techniques," JRFM, MDPI, vol. 15(1), pages 1-10, January.
    4. Christopher Krauss & Anh Do & Nicolas Huck, 2017. "Deep neural networks, gradient-boosted trees, random forests: Statistical arbitrage on the S&P 500," Post-Print hal-01768895, HAL.
    5. Friedman, Jerome H., 2002. "Stochastic gradient boosting," Computational Statistics & Data Analysis, Elsevier, vol. 38(4), pages 367-378, February.
    6. Fama, Eugene F, 1970. "Efficient Capital Markets: A Review of Theory and Empirical Work," Journal of Finance, American Finance Association, vol. 25(2), pages 383-417, May.
    7. Luigi Guiso & Paola Sapienza & Luigi Zingales, 2008. "Trusting the Stock Market," Journal of Finance, American Finance Association, vol. 63(6), pages 2557-2600, December.
    8. Ajmi, Ahdi Noomen & Hammoudeh, Shawkat & Nguyen, Duc Khuong & Sarafrazi, Soodabeh, 2014. "How strong are the causal relationships between Islamic stock markets and conventional financial systems? Evidence from linear and nonlinear tests," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 28(C), pages 213-227.
    9. Molla Ramizur Rahman & Arun Kumar Misra, 2021. "Bank Competition Using Networks: A Study on an Emerging Economy," JRFM, MDPI, vol. 14(9), pages 1-18, August.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Baoqiang Zhan & Shu Zhang & Helen S. Du & Xiaoguang Yang, 2022. "Exploring Statistical Arbitrage Opportunities Using Machine Learning Strategy," Computational Economics, Springer;Society for Computational Economics, vol. 60(3), pages 861-882, October.
    2. Kentaro Imajo & Kentaro Minami & Katsuya Ito & Kei Nakagawa, 2020. "Deep Portfolio Optimization via Distributional Prediction of Residual Factors," Papers 2012.07245, arXiv.org.
    3. Moews, Ben & Ibikunle, Gbenga, 2020. "Predictive intraday correlations in stable and volatile market environments: Evidence from deep learning," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 547(C).
    4. Fischer, Thomas & Krauss, Christopher, 2017. "Deep learning with long short-term memory networks for financial market predictions," FAU Discussion Papers in Economics 11/2017, Friedrich-Alexander University Erlangen-Nuremberg, Institute for Economics.
    5. Alexander Jakob Dautel & Wolfgang Karl Härdle & Stefan Lessmann & Hsin-Vonn Seow, 2020. "Forex exchange rate forecasting using deep recurrent neural networks," Digital Finance, Springer, vol. 2(1), pages 69-96, September.
    6. Flori, Andrea & Regoli, Daniele, 2021. "Revealing Pairs-trading opportunities with long short-term memory networks," European Journal of Operational Research, Elsevier, vol. 295(2), pages 772-791.
    7. Fabian Waldow & Matthias Schnaubelt & Christopher Krauss & Thomas Günter Fischer, 2021. "Machine Learning in Futures Markets," JRFM, MDPI, vol. 14(3), pages 1-14, March.
    8. Pedro M. Mirete-Ferrer & Alberto Garcia-Garcia & Juan Samuel Baixauli-Soler & Maria A. Prats, 2022. "A Review on Machine Learning for Asset Management," Risks, MDPI, vol. 10(4), pages 1-46, April.
    9. Lohrmann, Christoph & Luukka, Pasi, 2019. "Classification of intraday S&P500 returns with a Random Forest," International Journal of Forecasting, Elsevier, vol. 35(1), pages 390-407.
    10. Sun-Youn Shin & Han-Gyun Woo, 2022. "Energy Consumption Forecasting in Korea Using Machine Learning Algorithms," Energies, MDPI, vol. 15(13), pages 1-20, July.
    11. Illia Baranochnikov & Robert Ślepaczuk, 2022. "A comparison of LSTM and GRU architectures with novel walk-forward approach to algorithmic investment strategy," Working Papers 2022-21, Faculty of Economic Sciences, University of Warsaw.
    12. Ma, T. & Fraser-Mackenzie, P.A.F. & Sung, M. & Kansara, A.P. & Johnson, J.E.V., 2022. "Are the least successful traders those most likely to exit the market? A survival analysis contribution to the efficient market debate," European Journal of Operational Research, Elsevier, vol. 299(1), pages 330-345.
    13. Keer Yang & Guanqun Zhang & Chuan Bi & Qiang Guan & Hailu Xu & Shuai Xu, 2023. "Improving CNN-base Stock Trading By Considering Data Heterogeneity and Burst," Papers 2303.09407, arXiv.org.
    14. Wang, Peiwan & Zong, Lu, 2023. "Does machine learning help private sectors to alarm crises? Evidence from China’s currency market," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 611(C).
    15. Schnaubelt, Matthias & Fischer, Thomas G. & Krauss, Christopher, 2018. "Separating the signal from the noise - financial machine learning for Twitter," FAU Discussion Papers in Economics 14/2018, Friedrich-Alexander University Erlangen-Nuremberg, Institute for Economics.
    16. Ben Moews & Gbenga Ibikunle, 2020. "Predictive intraday correlations in stable and volatile market environments: Evidence from deep learning," Papers 2002.10385, arXiv.org.
    17. Jinho Lee & Sungwoo Park & Jungyu Ahn & Jonghun Kwak, 2022. "ETF Portfolio Construction via Neural Network trained on Financial Statement Data," Papers 2207.01187, arXiv.org.
    18. Schnaubelt, Matthias & Fischer, Thomas G. & Krauss, Christopher, 2020. "Separating the signal from the noise – Financial machine learning for Twitter," Journal of Economic Dynamics and Control, Elsevier, vol. 114(C).
    19. Jinho Lee & Raehyun Kim & Yookyung Koh & Jaewoo Kang, 2019. "Global Stock Market Prediction Based on Stock Chart Images Using Deep Q-Network," Papers 1902.10948, arXiv.org.
    20. Fischer, Thomas & Krauss, Christopher, 2018. "Deep learning with long short-term memory networks for financial market predictions," European Journal of Operational Research, Elsevier, vol. 270(2), pages 654-669.

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jjrfmx:v:15:y:2022:i:8:p:350-:d:882225. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.