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. 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.
    2. 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.
    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. Wan, Yang & He, Shi, 2021. "Dynamic connectedness of currencies in G7 countries: A Bayesian time-varying approach," Finance Research Letters, Elsevier, vol. 41(C).
    2. 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.
    3. 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).
    4. Varotto, Simone & Zhao, Lei, 2018. "Systemic risk and bank size," Journal of International Money and Finance, Elsevier, vol. 82(C), pages 45-70.
    5. 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.
    6. Huotari, Jarkko, 2015. "Measuring financial stress – A country specific stress index for Finland," Bank of Finland Research Discussion Papers 7/2015, Bank of Finland.
    7. 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).
    8. Kang, Sang Hoon & Uddin, Gazi Salah & Troster, Victor & Yoon, Seong-Min, 2019. "Directional spillover effects between ASEAN and world stock markets," Journal of Multinational Financial Management, Elsevier, vol. 52.
    9. Simplice A. Asongu & Joseph Nnanna, 2020. "Financial crisis, financial globalisation and financial development in Africa," Working Papers 20/049, European Xtramile Centre of African Studies (EXCAS).
    10. Zaghum Umar & Oluwasegun Babatunde Adekoya & Mariya Gubareva & Sabri Boubaker, 2024. "Returns and volatility connectedness among the Eurozone equity markets," International Journal of Finance & Economics, John Wiley & Sons, Ltd., vol. 29(3), pages 3103-3122, July.
    11. Karkowska, Renata & Urjasz, Szczepan, 2021. "Connectedness structures of sovereign bond markets in Central and Eastern Europe," International Review of Financial Analysis, Elsevier, vol. 74(C).
    12. Gkillas, Konstantinos & Tsagkanos, Athanasios & Svingou, Argyro & Siriopoulos, Costas, 2020. "Uncertainty in Euro area and the bond spreads," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 537(C).
    13. Aharon, David Y. & Kizys, Renatas & Umar, Zaghum & Zaremba, Adam, 2023. "Did David win a battle or the war against Goliath? Dynamic return and volatility connectedness between the GameStop stock and the high short interest indices," Research in International Business and Finance, Elsevier, vol. 64(C).
    14. Walid Abass Mohammed, 2021. "Volatility Spillovers among Developed and Developing Countries: The Global Foreign Exchange Markets," JRFM, MDPI, vol. 14(6), pages 1-30, June.
    15. Pradiptarathi Panda & Wasim Ahmad & M. Thiripalraju, 2023. "Better to Give than to Receive: A Study of BRICS Countries Stock Markets," Journal of Emerging Market Finance, Institute for Financial Management and Research, vol. 22(2), pages 164-188, June.
    16. Li, Kaifeng & Devpura, Neluka & Cheng, Sijia, 2022. "How did the oil price affect Japanese yen and other currencies? Fresh insights from the COVID-19 pandemic," Pacific-Basin Finance Journal, Elsevier, vol. 75(C).
    17. Zhang, Weiping & Zhuang, Xintian & Wu, Dongmei, 2020. "Spatial connectedness of volatility spillovers in G20 stock markets: Based on block models analysis," Finance Research Letters, Elsevier, vol. 34(C).
    18. 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).
    19. Karkowska, Renata & Urjasz, Szczepan, 2023. "How does the Russian-Ukrainian war change connectedness and hedging opportunities? Comparison between dirty and clean energy markets versus global stock indices," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 85(C).
    20. Mutiu Abimbola Oyinlola and Abdulfatai Adekunle Adedeji, 2020. "Enhancing Economic Growth Impact of Financial Development and Human Capital through Capital Flows in Sub-Saharan Africa," Journal of Economic Development, Chung-Ang Unviersity, Department of Economics, vol. 45(2), pages 95-114, June.

    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.