Introduction

Essentially, the world is becoming more and more globalized, such that it has become practically impossible for countries to operate in isolation. A self-sufficient economy based on autarky has been replaced with interaction in virtually all countries of the world, and in this circumstance, the intermediary role played by financial markets have resulted in the increased need for financial integration, which allows capital to travel to its most attractive destination [6, 21]. Integrated financial markets facilitate inter-temporal capital flows and portfolio diversification but at the same time may increase the probability of financial crisis and the contagion of crisis across countries. This risks however depends heavily on the degree of financial market integration, i.e., the more the integrated markets are, the higher the contagious effect of a shock from one market to another and conversely, countries that are less integrated should then be relatively immune to contagion (see [5, 11, 26]).

Although awareness of financial contagion was raised after the Asian crisis of 1997, shocks were being transmitted internationally long before the Asian crisis. Among this includes crisis that arose from the abandonment of the gold standard in 1993 and the breakdown of the Bretton woods currency regime in 1973. The term financial contagion has widely been used in the empirical literature, stemming from the early works of King and Wadhwani [23] as one of the empirical pioneers. For instance, Forbes and Rigobon [16] defined it as a significant increase in cross market linkages resulting from a shock hitting one country or a group of countries.

Also, Sun and He [30] opined that it is a significant increase in the propagation and penetration of shock across countries. However, for Hughes and MacDonald [18] as well as Tiwari et al. [32], the contagion effect is generated by a financial crisis in one country spreading into the financial system of other countries.

According to the World Bank Group [34], contagion was given three definitions: the broad, restrictive and very restrictive definition. For the broad definition, contagion is defined as the general process of shock transmissions across countries. The restrictive definition is the most controversial of the three and is defined as the transmission of shocks to other countries or the cross-country correlation, beyond any fundamental link among the countries and beyond common shocks. In the literature, financial contagion has been linked to factors such as asset market effects as well as banking and currency channels (see [19, 27]).

It has also been linked to fundamental effects such as common shock and trade effects (see [4, 13]), investor behavior related effects (see [9, 12]) and issues relating to liquidity problem and information asymmetries [14, 22]. Economists believe that every time a developed country sneezes, the rest of the world’s developing and emerging markets are likely to suffer from it by catching a flu to a large extent, no matter how good their fiscal accounts are or how balance their external account is [10, 15].

Financial contagion has been viewed in the literature as mainly a concern for emerging markets. However, the global financial crisis of 2007 confirmed that financial crisis is not limited to certain groups of markets such as developed or emerging markets, because it is assumed that rescue plans are already put in place to insulate many developed countries during the 2007 financial crisis. Interestingly, the situation actually differs for African markets as no African country announced a bank rescue plan as observed in many developed countries [1]. Africa being a developing region has not been an exemption to the movement toward full financial integration being experienced across the world. However, in spite of several financial reforms being undertaken to promote financial integration in Africa, her macroeconomic fundamentals remain weak and the process of financial integration is relatively slow as compared to that of emerging countries in Asia and Europe [20, 28].

Since financial integration acts as a double-edged sword which can foster financial stability and as well instigate a financial crisis through financial contagion, two (2) question which readily comes to mind are: To what extent has the US financial market affected African markets and Does Africa have the capacity to pull through a contagion risk in the case of an extreme shock? In order to answer these questions, this study as a departure from previous studies will examine the relationship between the returns of the specified African markets and the US and investigate the vulnerability of financial contagion and herding in the specified African markets before, during and after the episode of the 2007–2008 financial crises. Also, as a pioneer in this research area, will focus on five (5) major influential economies in Africa, namely South Africa, Nigeria, Egypt, Kenya, Tunisia, as these countries arguably have the strongest financial markets in Africa and are also the top foreign direct investment (FDI) destinations in Africa.

The remainder of the paper is presented as follows: section two discusses the review of relevant literature, section three focuses on data, while sections four and five are on methodology, discussion of results, and conclusion, respectively.

Review of the literature

The literature on financial contagion is extensive across various regions. This link has been explored for advanced markets (see [12, 17, 22,23,24, 29, 32]), for Asian markets (see [2, 6,7,8, 30, 33]) and African markets (see [3, 5, 26, 27]).

Among the existing studies above, a number of empirical studies have revealed the existence of contagion in advanced markets. For instance, King and Wadhwani [23] tested for contagion in the stock markets of New York, London and Japan during the 1987 US market crash. Based on correlation coefficient, the analysis suggests that cross-market correlations increased significantly during the crisis.

Similarly, Masih and Masih [24] tested the relationship among six stock markets of developed nations (US, Japan, France, Canada, Germany and UK), before and after the stock market crash of 1987. It was found that the crash brought about a greater interaction among markets and evidence of a single co-integration vector over each of the pre-crash and post-crash samples.

Also, Missio and Watzka [25] examined financial contagion in a sample of seven (7) countries, namely Germany, Greece, Portugal, Spain, Italy, Netherlands, Belgium and Austria, between 2008 and 2010. The results indicated that there was occurrence of contagion in Portugal, Spain, Italy and Belgium.

In the same vein, Syllignakis and Kourectas [31] studied the emerging stock markets of Central and Eastern Europe for the period of 2007–2009, the results indicated that the emerging markets were exposed to external shocks with a substantial regime shift in conditional correlations.

Also, Corbet and Twoney [12] reveal the evidence of contagion mechanics attributed to herding behavior in European markets between 2007 and 2013 to the G7 countries’ market examined.

Tiwari et al. [32] found a short run correlation during the period of financial distress and co-movement among markets in the long run. However, Karanasos et al. [22] reported time-varying correlation and volatility spillover effects between the returns of markets examined.

In the case of emerging markets, Arestis et al. [2] tested for contagion in the four largest emerging markets of Asia, namely Thailand, Indonesia, Korea and Malaysia, against a set of developed markets, namely Japan, the UK, Germany and France (major lenders) during the 1997 East Asian crisis. Evidence of contagion was found between the major lenders to the emerging markets. This was attributed to the reduction in bank lending from the major international lenders.

Wang and Thi [33] examined the impact of Asian financial crisis on Chinese Economic Area (CEA) between 1992 and 2002. Conditional correlation coefficients were found positive, and co-movement existed among the Thailand and CEA markets. For all the markets, the variances were higher in the post-crisis period than in the pre-crisis period, indicating an evidence of contagion. Similarly, Chiang et al. [8] reveal the evidence of contagion effect from the Asian crisis of 1997 in Thailand, Malaysia, Indonesia, Philippines, South Korea, Taiwan, Hong Kong and Singapore from 1990 to 2003.The first phase of the crisis displaying a process of increasing correlations (contagion), while in the second phase investor behavior converged and correlations were significantly high (herding behavior) across the Asian countries.

In Africa, Collins and Biekpe [11] examined the existence of contagion between African equity markets and global emerging equity markets during the Asian crisis of 1997. Evidence was found that the larger and more integrated markets in Africa (Egypt and South Africa) suffered from contagion during the Hong Kong crisis of 1997.

Morales and O’callaghan [26] reports no evidence of contagion in 58 countries between 2003 and 2009. It was revealed that markets suffered mostly from spill over effects originating from the US.

Meanwhile, Bouri [5] reports a sudden increase in conditional volatilities during financial crisis and a dynamic conditional correlation of equity markets returns of 12 equity markets in MENA between 2005 and 2013.

Boako and Alagidede [4] examined the evidence of shift-contagion in African stock markets using conditional value at risk (CoVar) between 2003 and 2016. The study found that global shock propagation to developing markets stagger during the global financial crisis of 2007 but becomes more pronounced after the crisis.

Offiong et al. [27] examined financial contagion and its impact on the Nigerian stock market using the Bayesian VAR model in periods before, during and after the global financial crisis. The findings showed that that American and Chinese market negatively affected the Nigerian stock markets, with a pronounced effect as a result of the fall of the naira exchange rate.

Thus, the review of literature shows that studies exist on stock market linkages and financial contagion. Given the various methodologies and the different time frame adopted, these studies have largely reported inconsistent results. Only few of these studies reported can be linked to Africa as most of them have concentrated on Europe and Asian countries. This therefore calls for further investigation on the dynamic analysis of financial contagion in African stock markets.

Data

For this research, we consider monthly stock prices indices from January 2004 to July 2018. The sample countries include those which have relatively strong financial markets in Africa. Additionally, the sample captures the selected countries’ yields vis-à-vis the US because the financial crisis originated from the US The analysis is done at three levels; pre-crisis (2004–2007), crisis (2007–2009) and post crisis (2009–2017). The stock indices of the selected African countries are depicted as follows: South Africa (JSE), Egypt (EGX), Nigeria (NSE), Kenya (KSE), Tunisia (TSE), and obtained from “investing.com.” The starting date of January 2004 is considered as the beginning of the stable period, prior to the period of financial crisis. The ending date of the turmoil period is assumed to be 2009.

Methodology

The model for estimating DCC is a dynamic specification based on conditional correlations within GARCH. The DCC-GARCH model is chosen over other estimation techniques because it takes into account drawbacks of other estimation methods, by accounting for heteroscedasticity directly via the estimation of correlation coefficients of the standardized residuals. It can also be used to examine multiple asset returns without adding too many parameters. Following Chiang et al. [8], a standard GARCH model is employed such that:

$$\varepsilon_{t} = D_{t} v_{t} \sim\,N(0,H_{t} )$$
(1)

where εt is a k × 1 column vector of residual returns of rt, k is the number of countries considered, vt is a k × 1 column vector of standardized residual returns. Ht is a k × k matrix of time-varying variances. Specifically,

$$H_{t} = D_{t} R_{t} D_{t}$$
(2)

where Rt is a k × k matrix of time-varying correlations. Dt is a k × k diagonal matrix of time-varying standard deviations of residual returns. The variances are obtained with univariate GARCH (1,1) processes. Specifically,

$$h_{t} = b_{0} + b_{1} \varepsilon_{t - 1}^{2} + b_{2} h_{t - 1}^{2}$$
(3)

In the third step, correlation coefficients are estimated. The correlation coefficients between stock index returns i and j at time t are defined as:

$$\rho_{ijt} = \frac{{E_{t - 1} \left[ {\varepsilon_{it} \varepsilon_{jt} } \right]}}{{\sqrt {E_{t - 1} \left[ {\varepsilon_{it}^{2} } \right]\sqrt {E_{t - 1} \left[ {\varepsilon_{jt}^{2} } \right]} } }} = \frac{{E_{t - 1} \left[ {\sqrt {h_{it} vit} \sqrt {h_{jt} v_{jt} } } \right]}}{{\sqrt {E_{t - 1} \left[ {h_{it} v_{it}^{2} } \right]} \sqrt {E_{t - 1} \left[ {h_{jt} v_{jt}^{2} } \right]} }} = \frac{{E_{t - 1} \left[ {v_{it} v_{jt} } \right]}}{{\sqrt {E_{t - 1} \left[ {v_{it}^{2} } \right]} \sqrt {E_{t - 1} \left[ {v_{jt}^{2} } \right]} }} = E_{t - 1} \left[ {v_{it} v_{jt} } \right]$$
(4)

where \({\rm E}_{t - 1} \left[ {v_{it}^{2} } \right] = {\rm E}_{t - 1} \left[ {h_{it}^{ - 1} \varepsilon_{it}^{2} } \right] = h_{it}^{ - 1} {\rm E}_{t - 1} \left[ {\varepsilon_{it}^{2} } \right] = 1.\) Extending the analysis further to capture the correlation coefficients in different phases of the crisis, a dummy variable is introduced. The regression model is then given as:

$$\rho_{ij,t} = \sum\limits_{p = 1}^{p} {\phi_{p} \rho_{ij,t - p} } + \sum\limits_{k = 1}^{3} {\alpha_{k} } DM_{k,t} + \ell_{ij,t}$$
(5)

where is the pair-wise correlation coefficient between the stock returns of US and the stock returns of South Africa, Egypt, Nigeria, Tunisia and Kenya, such that i = US and j = South Africa, Egypt, Nigeria, Tunisia and Kenya. Since our pre-tests using ARCH-LM statistics find significant heteroskedasticity in all cases, the conditional variance equation is assumed to follow a GARCH(1,1) specification including two dummy variables, DMk,t (K = 2,3):

$$h_{ij,t} = A_{0} + A_{1} h_{ij,t - 1} + B_{1} \varepsilon_{ij,t - 1}^{2} + \sum\limits_{k = 1}^{3} {d_{k} } DM_{k,t}$$
(6)

The a priori expectation from the specified model above is as follows:

  • For the variance equation; \(h_{t} = b_{0} + b_{1} \varepsilon_{t - 1}^{2} + b_{2} h_{t - 1}^{2}\),

  • b0 > 0, b1 > 0 and b2 > 0 to ensure positive variance and b1 + b2 < 1 to ensure stationarity,

  • For the DCC (1,1) equation; \(Q_{t} = \overline{Q} \left( {1 - \alpha - \beta } \right) + \alpha v_{t - 1} v_{t - 1}^{\iota } + \beta Q_{t - 1}\)

Estimates α and β (nonnegative scalars) are assumed to satisfy the stationary assumption. The model will be mean reverting as long as the non-negative scalars satisfy the constraint α + β < 1, implying that the volatility displays a persistent fashion. A significant alpha coefficient value in the DCC equation is an indication that correlations will vary appreciably over time (i.e. is a likelihood that evidence of contagion could be found). The beta parameter is an estimate of the persistence. If α + β = 1, the model will not be mean reverting, which would effectively mean the series would be integrated to order.

Discussion of results

Table 1 represents the summary statistics of stock-index returns in the five African markets and the USA. As noted by empirical illustration, there was volatility in the stock returns in Africa between the periods of 2007 and 2008. The data was however divided by breaking the entire sample into three periods (pre-crisis, crisis and post-crisis). When the first two moments for the three periods are compared, stock returns are generally higher during the pre-crisis period, than the crisis period which was all negative except for Tunisia. Variances are higher during the crisis period for all countries. Another thing to note is a high value of kurtosis during post crisis in Nigeria and Kenya. Also as expected, most of the index returns during the crisis period are negatively skewed. This suggests that, for these markets, big shocks are more likely to be present and that the stock-return series may not be normally distributed. Almost all of the stock-return series are found not to have first-order autocorrelation except Nigeria, as suggested by the Ljung-box test statistics. The existence of this autocorrelation may result from trading of the stocks that make up the index.

Table 1 Descriptive statistics on stock returns before the crisis, during the crisis and after the crisis.

Relationship between stock returns in the African markets and the US market (evidence of contagion)

For the purpose of this study, the specific objective is to examine the relationship between the returns of the specified African markets and the US markets during the 2007–2008 financial crises. To visualize the returns for each market, Figs. 1, 2, 3, 4, 5 and 6 are plotted to depict the series. From the diagram, it can be seen that US and African market returns were highly correlated showing a sharp fall in the returns of all market in the early periods of 2008. This however indicates that the African countries were being affected by the shock that started from the US. Also, it can be seen that most of the African countries as well adjusted to this shock indicating a balance in stock returns as soon as the crisis ended. Hence, it can be said that the US market has a contagious effect on the African markets before, during and after the crisis period. This also can be addressed with the γ2 effect in Table 2 in the mean equation showing significant effect on the African countries with South Africa and Nigeria being the largest. Also from the variance parameters α and β showing the persistence level, the highest is 0.88 in South Africa and the lowest with 0.4 in kenya.

Fig. 1
figure 1

South Africa Stock Returns

Fig. 2
figure 2

US Stock Returns

Fig. 3
figure 3

Nigeria Stock Returns

Fig. 4
figure 4

Egypt Stock Returns

Fig. 5
figure 5

Tunisia Stock Returns

Fig. 6
figure 6

Kenya Stock Returns

Table 2 Estimation results from the DCC-GARCH model.

Table 2 reports the estimates of the multivariate DCC-GARCH model. The constant term in the mean equation is statistically significant for all the markets except Nigeria and Kenya. The AR(1) term in the mean equation (γ1) is significantly positive for Nigeria, while it is significantly negative for South Africa. However, AR(1) is not significant for Egypt, Tunisia and Kenya. The effect of U.S. stock returns (γ2) on Africa stock returns is, on average significant in South Africa and Nigeria. The coefficients for the lagged variance and shock-squared terms in the variance equation for Nigeria and South Africa is significant, which is consistent with time-varying volatility and justify the appropriateness of the GARCH (1,1) specification. Note that the sum of the estimated coefficients in the variance equation (a + b) is not close to unity for all the cases, implying that the volatility displays slow persistence.

Statistical analysis of correlation coefficients in different phases of the crisis

This section examines the time-series behavior of correlation coefficients and sort out the impacts of external shocks on their movements and variability. Using two dummy variables for different sub-samples allows us to investigate the dynamic feature of the correlation changes associated with different phases of crises. As the model implies, the significance of the estimated coefficients on the dummy variables indicates structural changes in mean or/and variance shifts of the correlation coefficients due to external shocks during the different phases of the crisis. The estimates using the maximum-likelihood method for the GARCH (1,1) model are reported in Table 3.

Table 3 Test of changes in dynamic correlations between market stock returns during different phases of the crisis.

The evidence shows that the DM2,t in the mean equation is statistically significant for Nigeria and Egypt and not significant for South Africa, Tunisia and Kenya. This may possibly mean that the effect of the crisis on other countries has not been known. In the post-crisis period, the correlation coefficients, as shown in the estimates of DM3,t, decreased significantly in all cases where the stock markets might have been experiencing a shock based on the behavior of investors in response to the crisis. It is expected that when making fundamental decisions, investors would be more rational.

Analysis of the vulnerability of financial contagion

This is to investigate the vulnerability of financial contagion (increase in correlation) in the specified African markets before and after the episode of the 2007–2008 crisis. To address this, a null hypothesis is stated as:

H0 There is no significant increase in correlations between the US and African markets during the 2007–2008 crisis.

From Table 4, the null hypothesis is rejected for Nigeria and South Africa and Kenya because an increase in correlation exist between the pre-crisis and crisis period, while we accept the null hypothesis for Egypt and Tunisia because there was no increase in correlations for the countries. This therefore summarizes that contagion was found in Nigeria, South Africa and Kenya.

Table 4 Test of significant increases in correlation coefficients (USA as the source of contagion).

Analysis of vulnerability of herding (continuous correlation)

This is to investigate the vulnerability of herding (continuous high correlation) in the specified African markets during and after the episode of the 2007–2008 crises. The hypothesis to be tested is stated as:

H0 There is no continuous increase in correlations between the US and African markets after the 2007–2008 crisis.

From the result in Table 4, the null hypothesis is rejected for all the countries being examined. Having observed that there seems to be continuous increase in correlation for all the selected countries after the period of crisis, hence, it can be said that investment behavior dominates the latter part of the crisis. From empirical studies, it is evident that certain channels through which contagion takes place can be through investment behavior, or the openness of markets to take advantage of certain benefits to which integration and globalization possess.

Summary of findings

It is being said that though countries have opened up their financial markets to take advantage of global innovations, African markets still lag behind. The state of financial markets in Africa is usually characterized by their small size and the low liquidity. However, many studies consider that African markets are usually faced with little effect of contagion because of their low level of integration with the rest of the world as opposed to developed markets.

Hence from the findings of this paper, it can be said the African stock markets observed in this study were affected by the US stock returns, which clearly presents an evidence of financial contagion by these countries. Particularly, the Nigerian, South African and Kenyan stock markets are at higher risk because they were the most affected African countries by the US financial crisis, since they exhibited clear herding behavior to the US during the crisis and post crisis periods. These findings are in tandem with studies such as (see [4, 27]) and quite contrary to [6, 26, 32].

However, it is interesting to find out that Egypt which happens to be one of the largest stock market in Africa doesn’t share in this risk, and this may be a pointer to the fact that the Egyptian stock market is the most independent and arguably developed financial market in Africa. However, a closer look at the financial market in Egypt shows that during the crisis period, it was also faced with its own internal market disturbances.

Investors in African stock markets should exercise extreme caution by observing the US stock market performance and returns before investing in their domestic stock markets since their markets are largely linked to and influenced by the US financial markets. Beyond this, Investors and fund managers in Nigeria, South Africa and Kenya are at a higher risk when investing in their stock markets because these two countries clearly exhibit herding behavior to the US stock market, indicating that similar decisions are taken by these stock markets.

Conclusion

This paper examines financial contagion in African market setting by way of investigating the impact of USA stock markets on stock markets in South Africa, Egypt, Kenya, Nigeria, and Tunisia, by employing monthly stock price data between 2004 and 2017. Result reveals that a significant relationship exists between the returns of the US market and the African markets and it is evident that the variances of financial returns increased dramatically. Inspection of the pre-crisis, crisis and post-crisis mean and variance estimation shows that the crisis period is characterized by substantial increases in volatility, establishing that the shock experienced in the US posed a threat to the African markets being examined.

While examining stock market contagion and the process of herding, the empirical findings support that the during the crisis period, Nigeria, South Africa and Kenya experienced a process of increased correlation indicating that contagion was found only in South Africa, Nigeria and Kenya while Egypt and Tunisia were not affected during the 2007–2008 financial crisis that sprang from the US. Also herding behavior was experienced in all the African markets with continuous increase in correlation after the crisis period.

Competing interests

The authors declare that they have no competing interests.