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.
Read full abstract