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. José Brambila-Macias & Isabella Massa, 2010. "The Global Financial Crisis and Sub-Saharan Africa: The Effects of Slowing Private Capital Inflows on Growth," African Development Review, African Development Bank, vol. 22(3), pages 366-377.
    3. 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.
    4. 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.
    5. Mensi, Walid & Boubaker, Ferihane Zaraa & Al-Yahyaee, Khamis Hamed & Kang, Sang Hoon, 2018. "Dynamic volatility spillovers and connectedness between global, regional, and GIPSI stock markets," Finance Research Letters, Elsevier, vol. 25(C), pages 230-238.
    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. Friday Osemenshan Anetor, 2020. "Foreign Capital Inflows, Financial Development and Growth In Nigeria: A Structural VAR Approach," Journal of Developing Areas, Tennessee State University, College of Business, vol. 54(3), pages 69-86, July-Sept.
    2. Zhang, Hua & Chen, Jinyu & Shao, Liuguo, 2021. "Dynamic spillovers between energy and stock markets and their implications in the context of COVID-19," International Review of Financial Analysis, Elsevier, vol. 77(C).
    3. 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.
    4. Yuan, Ying & Du, Xinyu, 2023. "Dynamic spillovers across global stock markets during the COVID-19 pandemic: Evidence from jumps and higher moments," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 628(C).
    5. Wan, Yang & He, Shi, 2021. "Dynamic connectedness of currencies in G7 countries: A Bayesian time-varying approach," Finance Research Letters, Elsevier, vol. 41(C).
    6. Baumöhl, Eduard & Shahzad, Syed Jawad Hussain, 2019. "Quantile coherency networks of international stock markets," Finance Research Letters, Elsevier, vol. 31(C), pages 119-129.
    7. Yizhuo Zhang & Rui Chen & Ding Ma, 2020. "A Weighted and Directed Perspective of Global Stock Market Connectedness: A Variance Decomposition and GERGM Framework," Sustainability, MDPI, vol. 12(11), pages 1-23, June.
    8. Steve Motsi & Oluseye Samuel Ajuwon & Collins Ntim, 2018. "Bank Competition in Sub-Saharan African Countries: Has Anything Changed in the Light of 2007-2008 Global FinancialCrisis?," SPOUDAI Journal of Economics and Business, SPOUDAI Journal of Economics and Business, University of Piraeus, vol. 68(1), pages 59-83, January-M.
    9. Dhingra, Barkha & Saini, Mohit & Yadav, Mahender & Kumar, Gaurav & Kumar, Pankaj, 2025. "Exploring global financial interdependencies among ASEAN-5, major developed and developing markets," The Journal of Economic Asymmetries, Elsevier, vol. 31(C).
    10. 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.
    11. Nguyen, Thi Thu Ha & Naeem, Muhammad Abubakr & Balli, Faruk & Balli, Hatice Ozer & Syed, Iqbal, 2021. "Information transmission between oil and housing markets," Energy Economics, Elsevier, vol. 95(C).
    12. Varotto, Simone & Zhao, Lei, 2018. "Systemic risk and bank size," Journal of International Money and Finance, Elsevier, vol. 82(C), pages 45-70.
    13. 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.
    14. Huotari, Jarkko, 2015. "Measuring financial stress – A country specific stress index for Finland," Bank of Finland Research Discussion Papers 7/2015, Bank of Finland.
    15. Samarakoon, S.M.R.K. & Pradhan, Rudra P. & Tripathy, Sasikanta & Jayakumar, Manju, 2025. "Does the VIX act as the main transmitter of mispricing in index futures markets? Insights from European and American regions," The North American Journal of Economics and Finance, Elsevier, vol. 76(C).
    16. Esparcia, Carlos & Gubareva, Mariya & Sokolova, Tatiana & Jareño, Francisco, 2025. "Cross-border ESG rating dynamics: An in-depth connectedness analysis of portfolio returns and volatilities in the USA and Canada," The North American Journal of Economics and Finance, Elsevier, vol. 75(PA).
    17. 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.
    18. Assaf, Ata & Al-Shboul, Mohammad & Mokni, Khaled & Demir, Ender, 2025. "Are Latin American stock markets connected? Exploring spillovers and the impact of risk factors," Emerging Markets Review, Elsevier, vol. 65(C).
    19. Guhathakurta, Kousik & Dash, Saumya Ranjan & Maitra, Debasish, 2020. "Period specific volatility spillover based connectedness between oil and other commodity prices and their portfolio implications," Energy Economics, Elsevier, vol. 85(C).
    20. Bouri, Elie & Lucey, Brian & Saeed, Tareq & Vo, Xuan Vinh, 2020. "Extreme spillovers across Asian-Pacific currencies: A quantile-based analysis," International Review of Financial Analysis, Elsevier, vol. 72(C).

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    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.