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

The Application of Machine Learning Techniques to Predict Stock Market Crises in Africa

Author

Listed:
  • Muhammad Naeem

    (Mathematics & Computer Science Department, Modern College of Business and Science, Muscat 133, Oman
    UCP Business School, University of Central Punjab, Lahore 54782, Pakistan)

  • Hothefa Shaker Jassim

    (Mathematics & Computer Science Department, Modern College of Business and Science, Muscat 133, Oman)

  • David Korsah

    (Department of Finance, University of Ghana Business School, Legon, Accra LG78, Ghana)

Abstract

This study sought to ascertain a machine learning algorithm capable of predicting crises in the African stock market with the highest accuracy. Seven different machine-learning algorithms were employed on historical stock prices of the eight stock markets, three main sentiment indicators, and the exchange rate of the respective countries’ currencies against the US dollar, each spanning from 1 May 2007 to 1 April 2023. It was revealed that extreme gradient boosting (XGBoost) emerged as the most effective way of predicting crises. Historical stock prices and exchange rates were found to be the most important features, exerting strong influences on stock market crises. Regarding the sentiment front, investors’ perceptions of possible volatility on the S&P 500 (Chicago Board Options Exchange (CBOE) VIX) and the Daily News Sentiment Index were identified as influential predictors. The study advances an understanding of market sentiment and emphasizes the importance of employing advanced computational techniques for risk management and market stability.

Suggested Citation

  • Muhammad Naeem & Hothefa Shaker Jassim & David Korsah, 2024. "The Application of Machine Learning Techniques to Predict Stock Market Crises in Africa," JRFM, MDPI, vol. 17(12), pages 1-19, December.
  • Handle: RePEc:gam:jjrfmx:v:17:y:2024:i:12:p:554-:d:1540423
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/1911-8074/17/12/554/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/1911-8074/17/12/554/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Oet, Mikhail V. & Bianco, Timothy & Gramlich, Dieter & Ong, Stephen J., 2013. "SAFE: An early warning system for systemic banking risk," Journal of Banking & Finance, Elsevier, vol. 37(11), pages 4510-4533.
    2. Sandeep A. Patel & Asani Sarkar, 1998. "Crises in Developed and Emerging Stock Markets," Financial Analysts Journal, Taylor & Francis Journals, vol. 54(6), pages 50-61, November.
    3. Hassan Raza & Zafar Akhtar, 2024. "Predicting stock prices in the Pakistan market using machine learning and technical indicators," Modern Finance, Modern Finance Institute, vol. 2(2), pages 46-63.
    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. Antunes, António & Bonfim, Diana & Monteiro, Nuno & Rodrigues, Paulo M.M., 2018. "Forecasting banking crises with dynamic panel probit models," International Journal of Forecasting, Elsevier, vol. 34(2), pages 249-275.
    2. Domenico Di Gangi & Fabrizio Lillo & Davide Pirino, 2015. "Assessing systemic risk due to fire sales spillover through maximum entropy network reconstruction," Papers 1509.00607, arXiv.org, revised Jul 2018.
    3. Varotto, Simone & Zhao, Lei, 2018. "Systemic risk and bank size," Journal of International Money and Finance, Elsevier, vol. 82(C), pages 45-70.
    4. Corsi, Fulvio & Lillo, Fabrizio & Pirino, Davide & Trapin, Luca, 2018. "Measuring the propagation of financial distress with Granger-causality tail risk networks," Journal of Financial Stability, Elsevier, vol. 38(C), pages 18-36.
    5. Huotari, Jarkko, 2015. "Measuring financial stress – A country specific stress index for Finland," Bank of Finland Research Discussion Papers 7/2015, Bank of Finland.
    6. Di Gangi, Domenico & Lillo, Fabrizio & Pirino, Davide, 2018. "Assessing systemic risk due to fire sales spillover through maximum entropy network reconstruction," Journal of Economic Dynamics and Control, Elsevier, vol. 94(C), pages 117-141.
    7. Wang, Jiaxin & Huang, Xiang & Gu, Qiankun & Song, Zilong & Sun, Ruiyi, 2023. "How does fintech affect bank risk? A perspective based on financialized transfer of government implicit debt risk," Economic Modelling, Elsevier, vol. 128(C).
    8. Constantin, Andreea & Peltonen, Tuomas A. & Sarlin, Peter, 2018. "Network linkages to predict bank distress," Journal of Financial Stability, Elsevier, vol. 35(C), pages 226-241.
    9. Irma Alonso & Luis Molina, 2019. "The SHERLOC: an EWS-based index of vulnerability for emerging economies," Working Papers 1946, Banco de España.
    10. repec:zbw:bofrdp:2015_007 is not listed on IDEAS
    11. John Dooley & Dieter Gramlich & Mikhail V. Oet & Stephen J. Ong & Peter Sarlin, 2015. "Evaluating the Information Value for Measures of Systemic Conditions," Working Papers (Old Series) 1513, Federal Reserve Bank of Cleveland.
    12. Ren, Tingting & Li, Shaofang & Zhang, Siying, 2024. "Stock market extreme risk prediction based on machine learning: Evidence from the American market," The North American Journal of Economics and Finance, Elsevier, vol. 74(C).
    13. Yali Cao & Yue Shao & Hongxia Zhang, 2022. "Study on early warning of E-commerce enterprise financial risk based on deep learning algorithm," Electronic Commerce Research, Springer, vol. 22(1), pages 21-36, March.
    14. Jian Min & Jiaojiao Zhu & Jian-Bo Yang, 2020. "The Risk Monitoring of the Financial Ecological Environment in Chinese Outward Foreign Direct Investment Based on a Complex Network," Sustainability, MDPI, vol. 12(22), pages 1-26, November.
    15. Suss, Joel & Treitel, Henry, 2019. "Predicting bank distress in the UK with machine learning," Bank of England working papers 831, Bank of England.
    16. Firano, Zakaria & Filali adib, Fatine, 2018. "Prevision des difficultes bancaires : un modele d'alerte precoce pour le cas du maroc [Prediction of banking difficulties: an early warning model for moroccan banking system]," MPRA Paper 95165, University Library of Munich, Germany.
    17. Oet, Mikhail V. & Gramlich, Dieter & Sarlin, Peter, 2016. "Evaluating measures of adverse financial conditions," Journal of Financial Stability, Elsevier, vol. 27(C), pages 234-249.
    18. Peltonen, Tuomas A. & Sarlin, Peter & Piloiu, Andreea, 2015. "Network linkages to predict bank distress," Working Paper Series 1828, European Central Bank.
    19. Huotari, Jarkko, 2015. "Measuring financial stress – A country specific stress index for Finland," Research Discussion Papers 7/2015, Bank of Finland.
    20. Mariña Martínez-Malvar & Laura Baselga-Pascual, 2020. "Bank Risk Determinants in Latin America," Risks, MDPI, vol. 8(3), pages 1-20, September.
    21. Aikman, David & Kiley, Michael & Lee, Seung Jung & Palumbo, Michael G. & Warusawitharana, Missaka, 2017. "Mapping heat in the U.S. financial system," Journal of Banking & Finance, Elsevier, vol. 81(C), pages 36-64.

    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:17:y:2024:i:12:p:554-:d:1540423. 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.