1 Introduction

The COVID-19 outbreak started with the reporting to the World Health Organization (WHO) on the last day of 2019 of pneumonia cases of unknown cause in Wuhan, Hubei province of China. The WHO declared a Public Health Emergency of International Concern on January 30, 2020, after the virus was found to be transmitted from human to human and was also detected outside China (WHO 2020a). Because of the international spread and alarming levels of COVID-19 cases, as well as the inertia of policymakers, the WHO classified the COVID-19 outbreak as a global pandemic on March 11, 2020 (WHO 2020b). As of August 18, 2021, the number of confirmed COVID-19 cases had surpassed 200 million, with over 4 million deaths in the world as a whole (WHO 2021) and devastating effects on public health, the real economy and financial markets.

Following the easing of trade tensions between the US and China, investor sentiment had been bullish in late 2019 but quickly became bearish in early 2020 when increasing evidence of the global spread of the coronavirus drastically changed positioning and pricing in the international financial markets (BIS 2020; FSB 2020). Owing to the higher degree of uncertainty, investors rushed to purchase safe and liquid assets, which led to sharp declines in stock market indices (IMF 2020). Specifically, stocks in the US and euro area lost around 35% of their value between February 19 and March 23 (Ampudia et al. 2020). The S&P 500 fell by 20% from its previous peak in just 16 trading sessions (IMF 2020), and 18 stock market jumps occurred in the 22 trading sessions between February 24 and March 24, despite the mortality rate being much lower than during the Spanish Flu, when there was no single daily stock market jump (Baker et al. 2020).Footnote 1

The COVID-19 pandemic also had real effects, both on the supply and demand side. Workers reduced their labour supply, consumers were reluctant to spend, and the containment measures aimed at saving human lives had further negative effects on economic activity (Eichenbaum et al. 2021). All these factors combined resulted in the worst global recession since the Great Depression of 1929 (Gopinath 2020). The International Monetary Fund (IMF) and the World Bank (WB) respectively estimated that the global economy contracted by 3.3% and 4.3% in 2020 (IMF 2020; World Bank 2021).

It is well known that economies and stock markets respond to political and geopolitical events (Chau et al. 2014; Al‐Maadid et al. 2021; Elsayed and Helmi 2021), terrorist attacks (Chesney et al. 2011; Phan et al. 2021), and natural disasters (Cavallo and Noy 2011; Horvath 2021). There is less evidence on the impact of pandemics, which are relatively rare compared to other types of events and whose effects are often confined to specific regions. However, the global nature of the COVID-19 pandemic made it immediately apparent that both the world economy and financial markets would be severely affected (Al-Awadhi et al. 2020; Sharif et al. 2020; Alomari et al. 2022).

The present paper aims to provide extensive evidence on the effects of the COVID-19 pandemic on stock returns, CDS, and economic activity in the US and five European countries (the UK, Germany, France, Italy, and Spain) which have been among the hardest hit developed economies. In addition to benchmark linear VAR models it uses a time-varying parameter vector autoregressive (TVP-VAR) one with stochastic volatility to capture the evolution over time of financial and economic variables during the various phases of the pandemic. The chosen approach is the most appropriate for our purposes (Primiceri 2005; Koop et al. 2009; Caporale et al. 2020; Nakajima 2011) given the fact that the COVID-19 pandemic had different waves following the initial outbreak.

The layout of the paper is as follows. Section 2 provides a brief review of the relevant literature. Section 3 describes the data and the TVP-VAR methodology. Section 4 discusses the empirical findings. Section 5 offers some concluding remarks.

2 Literature review

Following the COVID-19 outbreak, various studies have been carried out to analyze its consequences for financial markets. Most of them have focused on the impact of COVID-19 cases and deaths on stock markets. For instance, Al-Awadhi et al. (2020) investigated the effects of COVID-19 on the Chinese stock market from January 10 to March 16, 2020, and discovered that the daily growth rate of total cases and total deaths had a negative impact on stock returns in all sectors. Ashraf (2020a) examined the impact on stock markets of daily COVID-19 cases and deaths in 64 countries between January 22 and April 17, 2020, and reported that the former had a stronger effect and that there was evidence of time variation. Haroon and Rizvi (2020) concluded that the increasing number of COVID-19 cases had reduced liquidity in emerging equity markets during the period from January 1 to April 30, 2020. Xu (2021) explored the effects of COVID-19 on the US and Canadian stock markets from the initial outbreak to July 2, 2020, and found a less pronounced negative effect in the case of the former country. Al-Quadah and Houcine (2022) examined the impact of daily confirmed cases on stock returns in the six countries most affected by the pandemic in their geographical area between 1 March and 1 August 2020. They reported that the negative reaction of stock markets was strong in the early stages of the pandemic. Exploring 21 emerging markets between 22 January and 21 December 2020, Guven et al. (2022) showed that the daily growth in cases and deaths had a negative impact on stock returns, which was mitigated by government COVID-19 related restrictive policies. Analyzing the six most affected countries up to 24 September 2020, Ganie et al. (2022) concluded that COVID-19 cases caused a sharp decline in stock returns in the Spring of 2020, which was followed by a recovery, especially in the US and India, towards the end of the sample. Amin et al. (2022) found that the number of COVID-19 cases had negative effects on stock indices in the 12 countries of the American peninsula from 10 March to 9 April 2020. Investigating the period from 21 January 2020 to 10 August 2021, Yilmazkuday (2023) found that higher daily cases pushed down the S&P 500 index, though this effect weakened over time.

Another strand of the literature employed various proxies to analyze the impact of the pandemic on the stock markets. Ambros et al. (2021) concluded that COVID-19 news increased volatility in eight major European stock markets between January 1 and March 31, 2020. Chundakkadan and Nedumparambil (2021) analyzed investor sentiment using benchmark stock market indices for 59 countries as well as the Google Search Volume Index over the period from February 1 to April 30, 2020; they found an inverse relationship between the research volume of pandemic news and daily stock returns. Alomari et al. (2022) examine the relationship between changes in the newspaper-based infectious diseases tracking index (ITI) and sectoral stock market returns in the US. They found that the inclusion of the COVID-19 period in their sample data confirms a stronger relationship across all industries. However, the relationship between the ITI and returns is asymmetric across different market conditions for the technology, industrial, healthcare, and consumer staples industries. Szczygielski et al. (2022) provided evidence that COVID-19 related uncertainty decreased returns and increased volatility in a sample of 68 global industries. Cervantes et al. (2022) showed that panic indices explain stock market deteriorations in advanced and emerging markets between mid-January 2020 and mid-February 2022.

Some explored the impact on stock markets of the restrictive measures adopted by governments to contain the spread of the virus. D’Orazio and Dirks (2020) showed that lockdown policies had substantial adverse effects on stock market indices in the eurozone during the period from January 1 to May 17, 2020. Aggarwal et al. (2021) found that between December 2019 and May 2020, lockdowns affected stock returns in 12 countries negatively through market risk premiums and positively through growth projections. Analyzing 42 countries between 22 January 22 and 20 May 2020, Scherf et al. (2022) showed that stock markets responded negatively to lockdown restrictions and provided evidence that they underreacted during announcements and overreacted in the following days. Klose and Tillmann (2023) demonstrated that lockdown announcements affected negatively stock markets in 29 European countries in 2020 and 2021. Carrying out an event study from 23 April 2019 to 17 April 2020, Ji et al. (2024) reported that the response of stock markets to the lockdown measures was negative and rapid in 13 global stock markets. By contrast, Saif-Alyousfi (2022) found a positive relationship between containment measures and stock returns between 1 January 2020, and 10 May 2021 in a panel of 88 countries.

Other studies report that the initial negative effects on stock markets subsequently disappeared. For instance, Capelle-Blancard and Desroziers (2020) found that 79 stock markets were no longer affected by the number of COVID-19 cases between March 23 and April 30, 2020. Topcu and Gulal (2020) showed that the negative effect of COVID-19 on stock markets had decreased gradually and had tapered off by mid-April 2020 in 26 emerging market economies. Anh and Gan (2021) found that in Vietnam, negative stock return responses to COVID-19 turned positive in the lockdown period between April 1 and April 15, 2020. Harjoto and Rossi (2023) also said that the stock market recovered faster during the COVID-19 pandemic for both emerging and developed economies. Aldhamari et al. (2023) found that the impact of stringency measures on stock returns in Malaysia was negative, but these recovered following the adoption of stimulus packages.

One of the main reasons for this rebound is the massive monetary expansion and fiscal stimulus packages announced at the national and international levels since mid-March 2020. Ashraf (2020b) found that income support announcements had a positive impact on stock returns in 77 countries from January 22 to April 17, 2020. Klose and Tillmann (2021) analyzed the impact of monetary and fiscal policy announcements on financial markets in 29 European countries during the period from February 17 to April 24, 2020. They reported that those concerning asset purchase programs led to higher stock returns, while those about fiscal stimulus packages resulted in lower stock prices. Chang et al. (2021) showed that income support packages and other fiscal measures increased stock returns in 20 countries between January 2 and July 21, 2020. Narayan et al. (2021) concluded that stimulus packages introduced in March 2020 positively affected stock returns in Canada, the UK, and the US between July 1, 2019, and April 16, 2020. Cortes et al. (2022) examined spillover effects of the Fed’s unconventional monetary policies during the global financial crisis (GFC) and the COVID–19 pandemic and found that they were negative in the former case and positive in the latter. By contrast, Pham and Chu (2024) showed that economic stimulus packages caused a decline in stock returns in 14 countries between December 2020 and January 2022.

The pandemic also had significant adverse effects on economic activity, especially in the spring of 2020, when national lockdowns were imposed widely. Several studies have investigated such effects on the real economy using different proxies as real-time indicators and confirmed the sharp drop in economic activity. Chen et al. (2020) analyzed the impact of COVID-19 on economic activity in Europe and the US from January to May 2020 using several high-frequency indicators such as unemployment insurance claims, electricity consumption, and the Google Community Mobility Index; they reported significant contractions prior to the adoption of economic support policies. Using the Baltic dry index as a proxy for economic activity from 21 January to 26 February 2021, Hasan et al. (2021) concluded that COVID-19 cases reduce economic activity, but the impact is short-lived. Carvalho et al. (2021) analyzed transaction data via BBVA in Spain from 1 January 2019 to 29 June 2020. They showed that expenditure growth (year-on-year) decreased by around 60% when a nationwide lockdown was announced in mid-March 2020. Lewis et al. (2022) investigated the early effects of the pandemic in the US up to 2 January 2021 using a weekly economic index (WEI); they found that the decline in economic activity started in the week ending on 21 March and that there was a further slump in the week of 25 April, with an 11.45% drop in the WEI. Employing various indicators, such as flights, nitrogen dioxide emissions, and energy consumption, Deb et al. (2022) showed that stringency measures significantly and negatively affected economic activity, a 10% drop in industrial production occurring in the 30 days following their implementation. Angelov and Waldenström (2023) used firms’ tax-registration data in Sweden until March 2021. They reported that the COVID-19 pandemic led to a fall in economic activity due to declining tax revenues and firm turnover. Beyer et al. (2023) reported that nighttime light intensity decreased between May and July 2020 in India, which may imply a decline in GDP around 6%. Unlike previous studies, Gagnon et al. (2023) measured the impact of COVID-19 on economic activity by directly analyzing the determinants of real GDP. They reported that the impact of COVID-19 deaths on GDP growth was much lower than that of the containment measures, especially in low-income countries.

Electricity consumption is one of the most used proxies to gauge the economic impact of the COVID-19 pandemic. Many studies showed that electricity consumption declined when containment measures were imposed (Abu-Rayash and Dincer 2020; Bahmanyar et al. 2020; Bento et al. 2021; Santiago et al. 2021; Wang et al. 2021; Wen et al. 2022; Yukseltan et al. 2022), especially in the case of firms (Sánchez-López et al. 2022; Bover et al. 2023). Some studies have also quantified the impact of lower electricity consumption on economic activity. Fezzi and Fanghella (2020) examined daily electricity load data in Italy from January 1 to June 30, 2020, and found that the three weeks of strictest lockdown in March and April led to output losses of approximately 30% of GDP. Janzen and Radulescu (2020) estimated that the 4.6% decrease in electricity consumption during the lockdown in Switzerland corresponded to a 7% decline in output. Using electricity consumption, Fezzi and Fanghella (2021) provided evidence of severe GDP losses in 12 European countries in the first wave of the pandemic. Beyer et al. (2021) found that the negative growth effect of the decline in electricity consumption in India in the second quarter of 2020 was 20.8%. Analyzing data for Huban province, China, from 1 December 2019 to 31 March 2020, Ai et al. (2022) reported that electricity consumption declined by 27.8% from the beginning of the pandemic, which implies a loss of 121.187 billion yuan. Arshad and Beyer (2023) found that the decrease in electricity consumption in Bangladesh and Dhaka in April and June 2020 caused 8% and 17% GDP losses, respectively.

Several studies have examined the effects of the COVID-19 pandemic on sovereign credit spreads. Using an event study approach, Andrieş et al. (2021) provided evidence of abnormal changes in CDS in Europe during the pandemic. Daehler et al. (2021) concluded that the higher mortality rate during the pandemic increased CDS spreads. Analyzing data for 78 countries from 2 January to 31 August 2020, Pan et al. (2021) showed that an increase of 1% in COVID-19 cases led to a rise of 0.17% in sovereign CDS. Augustin et al. (2022) concluded that in a sample of 30 advanced economies, sovereign credit spreads responded positively to country-specific daily increases in COVID-19 infections. Hao et al. (2022) investigated the impact of the COVID-19 shock on sovereign credit risk for 40 developing and advanced countries from 1 January 2019 to 30 November 2020. They found that this increased CDS spreads, its impact being greater on short-term spreads. Kanno (2024) showed that the pandemic-related fiscal stimuli and new COVID-19 deaths increased sovereign CDS for 12 countries, including the G7 countries, in 2020.

By contrast, Cevik and Öztürkkal (2021) concluded that the pandemic had no significant effects on CDS when controlling for both institutional and macroeconomic factors in a panel of 77 advanced and developing countries. The adverse impact was significant only at the beginning of the pandemic, when containment measures appeared to lower sovereign CDS. Yıldırım Karaman (2022) reported that the COVID-19 shock increased CDS in Spain, Italy, and Portugal, while its impact was statistically insignificant in France, Germany, the Netherlands, Belgium, and Austria. Finally, Havlik et al. (2022) showed that monetary announcements had a greater impact than fiscal ones and reduced the spreads in the euro area during the COVID-19 pandemic.

Despite the COVID-19 pandemic being over as a public health emergency (WHO 2023), studies are still being carried out to understand its economic consequences. The present one contributes this area of the literature by providing a more comprehensive set of results concerning the time-varying responses of CDS, stock market, and economic activity to the pandemic in the US and European countries.

3 Data and methodology

3.1 Data

We employ daily data for the US and the five European countries most affected by the pandemic, i.e., the UK, Germany, France, Italy, and Spain, to investigate the impact of COVID-19 on stock returns, CDS, and economic activity. The sample covers the period from 11 March 2020, when the pandemic was declared by the WHO, to 19 February 2021. It includes two major waves of the pandemic, starting in the Spring and Fall of 2020. During this period, several lockdowns and intense restrictive government measures were implemented to slow down the spread rate (Roth et al. 2024). These measures provided partial control but also caused considerable losses in economic activity (Kok 2020; Furceri et al. 2021; Deb et al. 2022; Janzen and Radulescu 2022; Chen and Tillmann 2023; Matei 2023; Ma et al. 2023; Zou et al. 2024) and a decline in stock returns (D’Orazio and Dirks 2020; Aggarwal et al. 2021; Scherf et al. 2022; Klose and Tillmann 2023; Ji et al. 2024). Therefore, in order to take into account the impact of the containment measures we include in the model a stringency index as a control variable. The vector of endogenous variables for the estimated TVP-VAR model is defined as follows:

$$y_t^{\prime} = [case_t\,\, str_t\,\, cds_t \,\,ret_t \,\,ec_t ]$$
(1)

where \(case_t\) indicates the cumulative number of confirmed COVID-19 cases,\(str_t\) is the stringency index (the index takes values from 0 to 100, higher values corresponding to tighter restrictions), \(cds_t\) is the CDS spread on 5-year senior bonds, measured in basis points (increases in this variable could reflect a higher default risk caused by the greater economic uncertainty generated by the pandemic), \(ret_t\) denotes the stock market index of each country.

In this paper, the key variable used as a proxy for economic activity is daily electricity consumption, denoted by \(ec_t\) measured as the average hourly electricity load in megawatts.Footnote 2 A variety of factors can explain why electricity is used as a measure of economic activity. First, it should be noted that the most common measures of economic activity (such as the GDP and the industrial production index) are only available with monthly or quarterly frequency with significant delays. As a result, other indicators with a higher frequency of occurrence and shorter publication lags (Beyer et al. 2021) may be preferable. Second, there is a large empirical literature demonstrating the existence of a link between electricity consumption and economic growth (Narayan et al. 2008; Yoo and Kwak 2010; Sarwar et al. 2017).Footnote 3 Various studies have already employed electricity consumption to examine the impact of COVID-19 on economic activity (see, e.g., Chen et al. 2020; Fezzi and Fanghella 2020, 2021; Janzen and Radulescu 2020; Beyer 2021; Ai et al. 2022; Arshad and Beyer 2023) and some have shown that this variable is a good proxy for real-time tracking of economic activity indicators, such as GDP and industrial production (Fezzi and Fanghella 2021; Menezes et al. 2022; Galdi et al. 2023). Therefore, in this study, we employ daily electricity consumption to examine the real effects of the pandemic.

Concerning the data sources, note that the electricity load data have been taken from the European Network of Transmission System Operators for ElectricityFootnote 4 and the US Energy Information Administration.Footnote 5 COVID-19 cases, the stringency index, CDS spreads, and stock returns have been retrieved instead from the Thomson Reuters DataStream database (Refinitiv Eikon Datastream 2021). Since all variables exhibit a unit root, we take the first differences in their logarithms prior to estimating the TVP-VAR model.Footnote 6

The ordering of the variables in a VAR (Vector Autoregression) model is a crucial issue that reflects economic reasoning and the causal relationships between them. It determines how shocks to one variable affect the others in the system. The number of COVID-19 cases is placed first because the pandemic was an exogenous shock that influenced all other variables in the system. The next variable is the stringency index, which captures the restrictive measures adopted to contain the spread of COVID-19 and affects macro-financial variables. The third variable, CDS spreads, is affected by risk perceptions related to the pandemic. The fourth variable, stock returns, reflects the investors’ reactions to the pandemic and changing credit risk. Finally, economic activity responds to all previous shocks since it is affected by both pandemic-related policies and financial developments.

Before proceeding to the empirical analysis, the electricity consumption and stock price indices of the countries under consideration are plotted in Fig. 1. A visual inspection of the variable implies that economic activity and stock markets did not show stable behavior during the COVID-19 pandemic. The WHO identified two main global waves starting in the Spring and Fall of 2020 on the basis of the number of confirmed cases. COVID-19 uncertainty and lockdowns caused sharp drops in stock markets and economic activity during the first wave; the easing of restrictions in June 2020 then led to a moderate recovery. Although the number of confirmed cases was much higher during the second compared to the first wave (around 70 million cases were recorded between October 2020 and February 2021 as opposed to 6 million between March and June 2020, WHO 2021), the impact on the real economy and stock markets was less pronounced in the former case.

Fig. 1
figure 1

Time series plots of electricity consumption and stock price indices. Notes The left axis shows electricity consumption, while the right axis is for the stock price index. Electricity consumption data is the average hourly electricity load measured in megawatts, and weekends are excluded for consistency with stock price index data

3.2 Methodology

This section briefly outlines the structure of the TVP-VAR model used to estimate the time-varying responses. As argued by Primiceri (2005) and Koop et al. (2009), this model has important advantages compared to other nonlinear specifications. First, in contrast with threshold models, it does not require a transition variable governing the behavior of the variables across the regimes. Second, time-varying parameters capture gradual changes in the relationship among the variables. Finally, the time-varying variance–covariance matrix of the error terms can account for the impact of unanticipated exogenous shocks.

The TVP-VAR model is based on the Bayesian estimation of state-space equations and consists of a measurement equation and state equations for the time-varying coefficients. The measurement equation is specified as follows (Nakajima 2011; Primiceri 2005):

$$y_t = c_t + \xi_{1t} y_{t - 1} + \ldots + \xi_{st} y_{t - s} + \epsilon_t , \epsilon_t \ N\left( {0,\Omega_t } \right)$$
(2)

where \(\xi_{it}\) and \(c_t\) are the time-varying coefficients and intercept terms, respectively. The error terms are assumed to follow a normal distribution with a zero mean and a time-varying variance–covariance matrix \({\Omega }_t\). In order to extract time-varying shocks, this matrix is decomposed into \({\Omega }_t = C_t^{ - 1} {\Sigma }_t \left( {{\text{C}}_t^{ - 1} } \right){\prime}\) through a Cholesky decomposition based on a recursive ordering of the variables. The matrix, \(C_t^{\,}\), which measures the simultaneous relationship among variables, is a lower-triangular one, whereas \({\Sigma }_t\) is a diagonal matrix reflecting the time-varying idiosyncratic shocks:

$$\sum \limits_t = \left[ {\begin{array}{*{20}c} {\begin{array}{*{20}c} {\sigma_1 } \\ {0_{\,} } \\ { \vdots_{\,} } \\ \end{array} } \\ {0_{\,} } \\ \end{array} \begin{array}{*{20}c} {\begin{array}{*{20}c} {0_{\,} } \\ { \ddots_{\,} } \\ { \ddots_{\,} } \\ \end{array} } \\ { \cdots_{\,} } \\ \end{array} \begin{array}{*{20}c} {\begin{array}{*{20}c} { \cdots_{\,} } \\ { \ddots_{\,} } \\ { \ddots_{\,} } \\ \end{array} } \\ {0_{\,} } \\ \end{array} \begin{array}{*{20}c} {\begin{array}{*{20}c} {0_{\,} } \\ { \vdots_{\,} } \\ {0_{\,} } \\ \end{array} } \\ {\sigma_k } \\ \end{array} } \right]\;\;\;\;C_t = \left[ {\begin{array}{*{20}c} {\begin{array}{*{20}c} {1_{\,} } \\ {\delta_{21,t} } \\ { \vdots_{\,} } \\ \end{array} } \\ {\delta_{k1,t} } \\ \end{array} \begin{array}{*{20}c} {\begin{array}{*{20}c} {0_{\,} } \\ { \ddots_{\,} } \\ { \ddots_{\,} } \\ \end{array} } \\ { \cdots_{\,} } \\ \end{array} \begin{array}{*{20}c} {\begin{array}{*{20}c} { \cdots_{\,} } \\ { \ddots_{\,} } \\ { \ddots_{\,} } \\ \end{array} } \\ {\delta_{k,k - 1,t} } \\ \end{array} \begin{array}{*{20}c} {\begin{array}{*{20}c} {0_{\,} } \\ { \vdots_{\,} } \\ {0_{\,} } \\ \end{array} } \\ {1_{\,} } \\ \end{array} } \right]$$
(3)

Once the time-varying shocks have been identified, the model in Eq. (2) can be reformulated through a Kronecker product conversion, as outlined by Nakajima and Watanabe (2011):

$$y_t = X_t \beta_t + C_t^{ - 1} \sum \limits_t e_t , \;\;\;\; e_t \ N\left( {0,I} \right)$$
(4)

To estimate the above equation, the time-varying parameters and error variances must be modelled; specifically, the following state equations are assumed to govern their behavior:

$$\begin{array}{*{20}c} {\beta_{t + 1} = \beta_t + \varepsilon_{\beta t} ,} \\ {\delta_{t + 1} = \delta_t + \varepsilon_{\alpha t} ,} \\ {h_{t + 1} = h_t + \varepsilon_{ht} ,} \\ \end{array} \;\;\;\; \left[ {\begin{array}{*{20}c} {\begin{array}{*{20}c} {e_t } \\ {\varepsilon_{\beta_t } } \\ {\varepsilon_{\delta_t } } \\ \end{array} } \\ {\varepsilon_{h_t } } \\ \end{array} } \right]\ N\left[ {0,\left[ {\begin{array}{*{20}c} {\begin{array}{*{20}c} I \\ 0 \\ 0 \\ \end{array} } \\ 0 \\ \end{array} \begin{array}{*{20}c} {\begin{array}{*{20}c} 0 \\ {{\Sigma }_\beta } \\ 0 \\ \end{array} } \\ 0 \\ \end{array} \begin{array}{*{20}c} {\begin{array}{*{20}c} 0 \\ 0 \\ {{\Sigma }_\delta } \\ \end{array} } \\ 0 \\ \end{array} \begin{array}{*{20}c} {\begin{array}{*{20}c} 0 \\ 0 \\ 0 \\ \end{array} } \\ {{\Sigma }_h } \\ \end{array} } \right]} \right]$$
(5)

The equations \(\beta_{t + 1}\) and \(\delta_{t + 1}\) imply that the parameters of the measurement equation \(\beta\) and \(C_t\) matrix governing the impact of instantaneous shocks follow a random walk without an intercept.Footnote 7 In the equation for the standard deviations of the residuals, a geometric (exponential) random walk is employed, similar to the ARCH specification in the financial econometrics literature, where the estimated time-varying variances are placed on the diagonals of \(H_t\).Footnote 8 Furthermore, the error terms of the equations above are assumed to be independent of one another and to follow the normal distribution. It should be noted that a dummy variable for the lockdown periods would have been appropriate in a linear framework. By contrast, the TVP-VAR model does not require the inclusion of such a variable since it can capture both temporary and permanent shifts given the fact that the parameters follow a first-order random walk over time (Nakajima 2011).

4 Empirical results

4.1 Linear VAR results

Before analyzing the TVP-VAR models, benchmark linear VAR models are estimated. The cumulative responses of electricity consumption, CDS, and stock returns to COVID-19 case shocks are shown in Fig. 2. We first examine the effects of a one-standard-deviation shock to the number of COVID-19 cases on the stringency index. The responses of the latter are positive, but their significance differs across the countries. They are significant in all periods in the US and Germany and after the third period in the UK, Germany, and Spain. In Italy, the response is also positive but statistically insignificant at all time horizons. The impact of shocks on the sovereign risk of countries are presented in panel (b) of Fig. 2. The responses in France, Italy, and Spain are consistently insignificant across all time horizons. However, in the other countries, they are both positive and significant for some time horizons. Specifically, statistically significant responses are obtained after the third period for the US and the UK, and from the fifth to the seventh periods for Germany.

Fig. 2
figure 2

Linear VAR responses to COVID-19 case shocks. a Cumulative responses of the stringency index to COVID-19 case shocks. b Cumulative responses of CDS to COVID-19 case shocks. c Cumulative responses of stock returns to COVID-19 case shocks. d Cumulative responses of electricity consumption to COVID-19 case shocks

The responses of stock returns to the one standard case shocks follow different trajectories for each country. They are statistically significant in some periods, except for the US, and positive. They are significant up to the second period in the UK and Germany, to the fifth, eighth, and sixth periods in France, Italy, and Spain, respectively. Finally, the responses of electricity consumption to the one-standard-deviation shock to COVID-19 cases are statistically insignificant.

4.2 TVP-VAR results

In this section, to motivate the estimation of a TVP-VAR model, we examine parameter constancy in the linear VAR model. To this end, we plot the recursive residuals of the time-invariant VARs along with their two standard error confidence intervals (see Fig. 7 in the “Appendix”). Recursive residual plots obtained from the estimation of the linear VAR model reveal the presence of parameter instability, as the recursive residuals mostly lie outside the confidence intervals, especially during the early months of the COVID-19 pandemic. It is well documented in the empirical literature that most macroeconomic variables are subject to structural changes, and hence, the assumption of constant parameters might not be valid (see Stock and Watson 1998). Therefore, Sims and Zha (2006) argue that the covariance matrices in VAR models should allow for time variation to account for the underlying relationship among the variables. The implication is that a linear approach is not suitable for analyzing the possible effects of the pandemic on stock markets, CDS and economic activity, and thus we proceed to estimate TVP-VAR models using the set of signal and transition equations described in the previous section.Footnote 9 This involves the estimation of several parameters which could result in over-parameterization and inconsistent estimates. To prevent this problem a Bayesian approach based on the Markov Chain Monte Carlo (MCMC) algorithm is used. Previous research (e.g., Primiceri 2005; Nakajima 2011) has shown that the Bayesian method minimizes the risk of parameter instability by specifying the prior probability densities of the coefficients before assessing their joint posterior distributions. Of the various sampling procedures employed in the estimation of Bayesian VARs, we choose the multi-move sampling one developed by Shephard and Pitt (1997) and Watanabe and Omori (2004) following Nakajima (2011); specifically, we draw samples of 50,000 from the posterior distribution to achieve convergence of the time-varying parameters in the signal equations and the transition equations. In addition, the first 5,000 samples are reserved for the convergence of the parameters. Unlike the other sampling methods, e.g. the Metropolis-within-Gibbs sampler applied by Primiceri (2005), the multi-move sampler does not require putting aside some initial observations to calibrate the starting values of the parameters, and thus the full sample can be used for the TVP-VAR estimation.

Upon confirming the stability of the estimates for each country, we compute time-varying responses based on the identifying shocks derived from the time-varying variance–covariance matrix in Eq. (3).Footnote 10 These are shown in Figs. 3, 4, 5, 6. Panel (a) in each figure displays the time-varying cumulative responses for the time horizons \(t = 0,{ }1,{ }2,{ }....,15\).Footnote 11 Such responses are entirely different from the time-invariant ones in that they require an additional dimension to plot them over time. Panel (b) shows instead, in each case, the accumulated responses over the fifteenth-day horizon, \(h = 15\), with two standard error confidence bands to evaluate their significance over the sample period.

Table 1 Estimation results for selected parameters of the TVP-VAR models
Fig. 3
figure 3

Time-varying responses of stringency index to COVID-19 case shocks. a Time-varying cumulative responses. b Cumulative responses at h = 15 with \(\pm\) 2 standard error bands

Fig. 4
figure 4

Time-varying responses of CDS to COVID-19 case shocks. a Time-varying cumulative responses. b Cumulative responses at h = 15 with \(\pm\) 2 standard error bands

Fig. 5
figure 5

Time-varying responses of stock return to COVID-19 case shocks. a Time-varying cumulative responses. b Cumulative responses at h = 15 with \(\pm\) 2 standard error bands

As in the case of the linear impulse response analysis, we first analyze the time-varying responses of the stringency index to the COVID-19 case shocks (see Fig. 3). It can be seen that positive case shocks have a positive and statistically significant effect on the stringency indices of all countries in the early stages of the pandemic, when governments implemented measures such as stay-at-home requirements, school and workplace closings, and travel restrictions (Hale et al. 2021). Although the UK was criticized for its insufficient and slow reaction to COVID-19 after the first cases were reported (Gaskell et al. 2020; Cairney 2021), it has the highest response. All responses remain positive throughout the sample period but become insignificant in the late spring of 2020.

Similarly, the effects of COVID-19 case shocks on the CDS are found to be positive in all countries (see Fig. 4); however, they are significant only at the beginning of the pandemic and vary across countries. The highest response in terms of magnitude is observed for Spain, followed by the UK and the US, whilst the lowest impact of case shocks on the CDS is found for Italy. The highly contagious nature of COVID-19 led to a surge in the number of confirmed cases. Therefore, the government introduced several lockdown measures, which reduced economic activity and resulted in lower revenue and liquidity at the firm level. Further, access to financing dried up, reducing the probability of firms’ survival, and thus increasing default risk premia. This led to a greater probability of default and higher CDS. Positive CDS responses are consistent with the results of Andrieş et al. (2021), Daehler et al. (2021), Pan et al. (2021), and Augustin (2022) while partially confirming Yıldırım Karaman (2022). Similar to the findings of Cinicioglu (2023), CDS responses exhibit a time-varying pattern during the pandemic, and are found to be significant only in its early stages of the pandemic, consistently with the evidence reported by Cevik and Ozturkkal (2021). As Hao et al. (2022) and Havlik et al. (2022) showed, this may result from monetary and fiscal stimulus packages contributing to the decline in sovereign risk premia.

Regarding stock returns (see Fig. 5), significant negative responses are obtained for all countries, though the their timing and persistence vary across countries. The negative impact of COVID-19 cases on stock return lasted for a very short time in the US and France. This initial effect was also short-lived in Spain, although it reappeared in later periods. The responses are significant in the UK and Italy for a longer period, namely until August 2020 in the former and October 2020 in the latter. Germany is an exception, with a statistically significant adverse impact starting in July 2020 and lasting through mid-October 2020. Despite the results being to some extent mixed, it appears that the initial negative effect of COVID-19 cases on stock returns was short-lived in most countries.

The negative impact of COVID-19 cases on stock returns corroborates the findings of Al-Awadhi et al. (2020), Ashraf (2020a), Haroon and Rizvi (2020, Xu (2021), and Al-Quadah and Houcine (2022). Furthermore, our results are largely consistent with those of Capelle-Blancard and Desroziers (2020), Topcu and Gulal (2020), Anh and Gan (2021), and Harjoto and Rossi (2023), who reported that COVID-19 was no longer affecting stock markets by May 2020, and also confirm the conclusions of Guven et al. (2022), Ganie et al. (2022), and Yilmazkuday (2023), who found a weakening adverse impact of COVID-19 cases on stock returns.

There are various possible explanations for the observed rapid recovery of financial markets compared to real activity. First, the massive monetary expansion and fiscal stimulus packages announced at the national and international level since mid-March 2020 may have contributed to this rebound, as pointed out by Avalos and Xia (2020), Ashraf (2020b), Igan et al. (2020), Su (2020), Klose and Tillmann (2021), Chang et al. (2021), Narayan et al. (2021), Cortes et al. (2022), Aldhamari et al. (2023). Economic stimuli may have led to changes in investor sentiment, given the expectation that government intervention would improve market conditions. Second, containment measures to reduce the spread of the coronavirus may have improved stock market sentiment, with expectations becoming more optimistic (Guven et al. 2022; Saif-Alyousfi 2022). Finally, fear and anxiety about the pandemic may have raised the demand for precautionary saving, which drove up stock prices (Herrenbrueck 2021; Andre 2021).

Finally, we examine the time-varying responses of electricity consumption to COVID-19 case shocks (see Fig. 6). These are negative in all countries and only significant in the early stages of the pandemic. The largest impact of COVID-19 cases on economic activity is found in Italy and France. Fezzi and Fanghella (2020), who employed daily electricity consumption as a proxy for economic activity, had also documented an output loss of 30% of GDP in Italy during the first few months of the pandemic. Our findings are consistent with those of Fezzi and Fanghella (2020, 2021), Beyer et al. (2021), Ai et al. (2022), and Arshad and Beyer (2023), who reported that a decline in electricity consumption led to severe GDP losses, lockdowns and containment measures being the main causes.

Fig. 6
figure 6

Time-varying responses of electricity consumption to COVID-19 case shocks. a Time-varying cumulative responses. b Cumulative responses at h = 15 with \(\pm\) 2 standard error bands

In most countries in our sample, electricity consumption responses became insignificant by April and May 2020. This short-lived adverse impact is consistent with the evidence presented by Chen et al. (2020), who emphasized the role of easing restrictions, and Takyi et al. (2023), who stressed the contribution of governments’ economic support packages. Furthermore, the finding that the negative impact of cases on stock returns lasts longer than economic activity corroborates the results of Hasan et al. (2021).

5 Conclusions

This paper examines the effects of COVID-19 cases on stock returns, CDS, and economic activity in the US and the five European countries (the UK, Germany, France, Italy, and Spain) that have been most affected. The sample period covers the dates from 11 March 2020 to 19 February 2021. First, we estimated benchmark linear VAR models, and then, given the evidence of parameter instability, TVP-VAR models with stochastic volatility are also estimated to capture time-varying dynamics in the financial markets and the real economy (Primiceri 2005; Koop et al. 2009; Nakajima 2011).

The linear VAR responses of CDS to a one-standard-deviation shock to the number of COVID-19 cases are positive and statistically significant. The results for stock returns are mixed, whilst the electricity consumption responses are statistically insignificant. As for the TVP-VAR results, the COVID-19 cases had a positive influence on CDS at the beginning of the pandemic. Several measures and lockdowns reduced economic activity and resulted in lower revenue and liquidity. This led to rising stress on firms, whose access to finance dried up in an environment where economic stimuli had not been yet announced, and increased the default probability and CDS.

A significant adverse impact on stock markets is found in the early phases of the pandemic, except in Germany, and this effect gradually diminishes over the subsequent months. There are several explanations for this rebound. First, monetary expansion and fiscal stimulus packages not only increased income but also may have led to a change in investor sentiment concerning an improvement in market conditions. The other factor that may have contributed to more optimistic expectations is containment measures, which were introduced to reduce the spread of COVID-19. Finally, rising precautionary savings due to the fear of the pandemic may have been channelled into the stock market.

COVID-19 cases had a negative and significant effect on electricity consumption in all countries in the early stages of the pandemic (with cross-country differences). Lockdowns and stringency measures may have led to a sharp drop in economic activity while economic stimuli contributed to the recovery. The slump in stock returns occurred at the same time, which reflects the interaction between financial markets and the real sector.

The analysis carried out in this study has some limitations. First, our sample includes only the US and five European countries, namely only developed economies. It would also be worthwhile to obtain evidence concerning the emerging market economies, which are more vulnerable to external shocks. Second, our investigation was conducted at the aggregate level; additional insights could be gained by reproducing it at the sectoral level. Finally, country-specific factors accounting for differences in the responses of the variables of interest to the COVID-19 shock could be examined in greater depth. These issues are left for future research.