Introduction

The Mexican economy is currently considered as one of the main emerging economies (IMF 2021) by presenting low per capita income and high economic growth (it is in the process of industrialization, and the foreign trade sector is on the rise). It is estimated that emerging economies as a group could double the size of those countries in the Group of Seven (G-7) by the year 2040 (Hawksworth et al. 2017). Given the possible shift of economic power to emerging market economies in the coming decades, it is relevant to examine whether these economies are vulnerable to external shocks, which they cannot control by definition and that may have adverse effects on their real economic activity (Azad and Serletis 2021).

The confinement caused by the SARS-Cov-2 health crisis (Yang et al. 2021; Jinru et al. 2021; Wen et al. 2022) and, consequently, the notable economic slowdown that was triggered worldwide (Chandio et al. 2021; Elavarasan et al. 2021; Irfan et al. 2022), as well as the recent armed conflict in Ukraine show that the world economy remains highly vulnerable and dependent on fluctuations in the price of oil and other primary energy sources. In the first case, it was shown that the price of oil fell to unsuspected levels, even becoming negative, while in the second, it has contributed to fueling the inflationary pressures already generated by the scarcity and lack of supply caused by the COVID-19 pandemic (Ahmad et al. 2022; Huang et al. 2022; Razzaq et al. 2020, 2022). Hence, the need to quantify the impact of fluctuations in oil prices and their volatility on real activity, not only for developed economies but also for emerging countries.

There is an extensive empirical literature that investigates whether positive oil price shocks cause recessions in advanced countries (Khan et al. 2021; Sun et al. 2021a; Razzaq et al. 2021), such as the USA (Edelstein and Lutz 2009; Elder and Serletis 2009; Kilian and Vigfusson 2011b). Comparably, the literature on the Mexican economy is quite scarce. Given the importance of oil in the world economy, the economic effect of its price volatility has received considerable attention in the last decades (Van Eyden et al. 2019). The interest is justified by the fact that oil is not only the most commercialized commodity in the world but also remains as the main source of energy used worldwide (World Oil Outlook 2021). In addition, the price of oil, unlike that of other commodities, has been more volatile and has had a greater degree of uncertainty (Wachtmeister et al. 2018).

Oil price shocks affect real economic activity through different supply and demand channels (Anuar et al. 2021; Sinha et al. 2022; Żywiołek et al. 2022). It has been argued that seven of the eight recessions during the postwar period were caused by an increase in oil prices (Hamilton 1983). Researchers have shown an increased interest in the empirical relationship between the price of oil and macroeconomic activity since the oil crisis of the 1970s and the subsequent stagflation. Even though there is a wealth of evidence on the negative effect of higher oil prices on aggregate economic activity, not enough attention has been paid to the impact of oil price shocks on the productive sectors of Mexico. In spite of the large amount of empirical work that has documented the negative effect of international oil price uncertainty on some macroeconomic variables such as aggregate product, investment, and manufacturing for different countries and even for some stock market indicators, not enough attention has been paid to the impact that such uncertainty may have at the sectoral level and even less for an economy like the Mexican. The literature on the relationship between oil price shocks and fluctuations in economic activity has approached the issue from different angles, awarding great importance to the asymmetric impacts that oil shocks can have on the economy (Kandemir Kocaaslan 2020). Positive shocks are considered to inhibit economic growth more than negative shocks tend to stimulate it.

Adjustment costs have also been offered as an explanation for asymmetric effects (Hamilton 1985), in the sense that an increase in oil prices not only prevents production growth directly but also reduces production indirectly through these costs. However, a fall in oil prices could also have negative effects related to adjustment costs, though some positive economic effects are likely to outweigh each other. The asymmetry has also been attributed to the transmission between the price of crude oil and that of petroleum products, as the prices of some of these products react more quickly to oil prices compared to lower oil prices (Huntington 1998; Brown and Yücel 2002).

Other authors, such as Davis (1987a, b) and Davis and Haltiwanger (2001), indicate that sectoral reallocation also produces an asymmetry in the response of production growth to oil price shocks, where oil price shocks lead to the reallocation of capital and labor from the affected to the benefited sectors. This reallocation of specialized factors of production between sectors is costly and worsens the adverse effect of the rise (fall) in oil prices and diminishes the favorable effect of the fall (rise) in oil prices for countries that import (export) oil. On his part, Hamilton (1985) developed a model for an economy in which the reallocation of specialized factors of production between sectors is rather costly. In this model, relative price shocks increase general unemployment as workers in depressed sectors decide to wait for recovery instead of moving to sectors that enjoy better conditions.

In the study of the macroeconomic effects coming from oil price uncertainty, the theory of real options or the theory of investment under uncertainty is common ground. This theory posits that companies are likely to delay irreversible investment decisions when there is uncertainty about the price of oil, especially when the cash flow of investments depends on the price of oil (Bernanke 1983; Pindyck 1991; Elder and Serletis 2009; Balashova and Serletis 2021). In this context, oil price uncertainty, defined as an unforeseen change in the future price, influences the company’s expectations about current production and investment decisions. It is worth noting that uncertainty is different from volatility, according to Grier and Perry (1998), since it is possible to consider uncertainty as unpredictable fluctuations, while variability captures predictable and unpredictable fluctuations.

A large amount of the literature has focused on determining whether the uncertainty or volatility of international oil prices impact economic activity at the aggregate level; however, not enough interest has been placed on the effects at the sectoral level (Bibi et al., 2021). This paper will investigate the impact of international oil price uncertainty on the economic growth of the primary, secondary, and tertiary sectors of the economy in Mexico during the period 1993–2020 on a quarterly basis. The objective is to answer the following questions: Does the economic growth of different sectors of economic activity in Mexico respond in the same way to international oil price uncertainty? And, is there evidence of asymmetric effects of international oil price shocks at the sectoral level in Mexico? The main hypothesis is that, given the heterogeneous levels of capital intensity in the diverse processes carried out by the sectors of economic activity in Mexico, international oil price uncertainty causes a differentiated effect at the sector level. This is demonstrated through the bivariate VAR-GARCH in the mean model, in which price uncertainty is allowed to impact the economic growth of each sector, but the variance of such economic growth is not allowed to affect the growth of international oil prices, an assumption that is fully justified in the case of a relatively small oil-importing economy in recent decades. The quarterly average of the refiner acquisition cost of crude oil (RAC), prepared by the Department of Energy, serves as a proxy for the international price of oil, while information on the sector’s GDP comes from the Economic Information Bank (BIE) of the National Institute of Statistics and Geography (INEGI).

In what follows, the “Review of the empirical literature” section will present a brief review of the empirical literature; the “Econometric methodology” section will explain the econometric methodology; “The data” section will show the empirical results, and finally, the “Empirical evidence of uncertainty in the productive sectors” section will state the main conclusions.

Review of the empirical literature

Studies on the impact of oil price shocks on macroeconomic activities can be classified into three large groups: those that examine the impact of oil price shocks, those that incorporate the asymmetric nature of oil price shocks, and studies that address the impact of oil price uncertainty (Ahmed et al. 2012).

Some economists argue that oil price shocks are perhaps more important than currency shocks as a determinant of postwar US recessions (Kilian and Vigfusson 2011a). Hamilton (1983) is a pioneer within the first group of studies, showing that, with the exception of one, all the recessions that occurred in the USA between the end of World War II and 1973 were preceded by a strong increase in the price of oil. Cunado and Perez de Gracia (2005) also find that oil price shocks have a significant effect on economic growth for a sample of European countries. In a more recent study, Cunado et al. (2015) analyze the macroeconomic impact of oil shocks in four of the largest oil-consuming economies in Asia through a structural autoregressive vector, where sign restrictions help identify the three types of shocks analyzed—of oil supply, specifics of oil demand, and of oil demand driven by world economic activity. Their results suggest that economic activity and prices respond differently to these three types of oil price shocks.

Studies that use standard VAR models to analyze the relationship between the price of oil and the economy do not usually take into account the volatility inherent to the price of oil. These studies implicitly assume that history always repeats itself (Aye et al. 2014). However, it has been shown that the evolution of oil prices has displayed different volatilities at different intervals of time, as well as variable volatility in its evolution over time (Orhan and Köksal 2012).

The second group of studies mentioned focuses on the asymmetric impact of oil price crises on macroeconomic activities (Mork 1989; Davis 1987a; Lee et al. 1995; Davis and Haltiwanger 2001; Cunado and Perez de Garcia 2005). Under the symmetry assumption, an increase in the price of oil reduces the level of aggregate production, while a fall in the price of oil increases economic activity. However, some have pointed out that this symmetry is apparently inconsistent with the slow growth observed in the mid-1980s, which was accompanied by a large drop in oil prices. Mork et al. (1994) showed that, while an increase in the price of oil has a negative and significant impact on production growth in the USA, a fall in the price of oil does not lead to higher growth. Mork et al. (1994) argue that this asymmetry is also present in most other OECD countries. Huang et al. (2005) found asymmetric effects of oil price shocks on economic growth as well in the USA, Canada, and Japan. Despite said evidence of asymmetric effects, there is no consensus on the level and importance of the asymmetry that prevails in the effects of an oil price crisis on macroeconomic activities (Hooker 1996; Mork 1989; Lee et al. 1995).

The third group of studies has focused on investigating the impact of oil price uncertainty on production through a bivariate GARCH in mean model, estimating the asymmetric response of economic activity to positive and negative oil price shocks. Elder and Serletis (2010) investigated the relationship between oil price uncertainty and US investment. Aye et al. (2014) did the same for South African manufacturing production. Maghyereh et al. (2019) observed that higher oil price uncertainty had an adverse effect on industrial production in Turkey and Jordan. Rafiq and Salim (2014) studied the impact of oil price volatility in six large emerging Asian economies, using time series and cross-section econometric techniques.

Cheng et al. (2019) investigated the dynamic impacts of oil price uncertainty on the Chinese economy. Rodríguez and López (2019) analyzed the impact of international oil price uncertainty on aggregate production and investment in Mexico. Jo (2014) studied the effect of oil price uncertainty on global real economic activity. Ahmed and Wadud (2011) examined the impact of oil price uncertainty on Malaysia’s macroeconomic activities and its monetary policy response.

Ahmed et al. (2012) examine the impact of uncertainty in oil prices on US industrial production. Punzi (2019) evaluated the macroeconomic implications of energy price volatility using a dynamic stochastic general equilibrium (DSGE) model in 10 Asian economies. Maghyereh and Abdoh (2020) investigated how uncertainty about oil prices affects investment in the USA. Finally, Elder (2018) examined the effect of oil price volatility on disaggregated measures of industrial production, which are the special aggregates by market groups computed by the Federal Reserve Board.

To sum up, most of these studies find that international oil price uncertainty has adverse effects on a number of variables, such as economic growth, private and public investment, and productive sectors, and that the impacts of positive and negative shocks are asymmetrical.

Recently, there has been a growing interest in the study of the interaction between some pollutants, clean energy, and some processes such as globalization, among others, in economic activity. Several studies employ time series techniques to examine the benefit of renewable energy in environmental mitigation. For example, for the MENA (Middle East and North Africa) countries, Sun et al. (2022) find that it is possible to reduce carbon dioxide emissions if biomass energy is increased in production processes. Sohail et al. (2022) show evidence that political stability increases clean energy consumption in Pakistan and contributes to improving environmental quality in the short term. Similarly, Sun et al. (2021b) examine the relationship between carbon dioxide emissions and technical advances (investment in research and development) and find that technological innovations had a negative impact on carbon dioxide emissions in the USA between 1980 and 2018. Sohail et al. (2022) explore the asymmetric effects of political instability on clean energy consumption and CO2 emissions. Their results from the ARDL model show that political stability decreases damage, while with the nonlinear approach, they find that political instability not only reduces clean energy consumption but also damages environmental quality. Li et al. (2022), through nonlinear panel modeling techniques, find that the development of the insurance sector has asymmetric effects on CO2 emissions, specifically, a positive shock in the development of the insurance sector increases CO2 and a negative shock in the development of the insurance sector decreases CO2 in the long term in highly polluting economies. Chien et al. (2021) provide evidence that technological innovation and renewable energies are inversely related to environmental degradation and that renewable energies contribute to reducing emissions in the short term. Chien et al. (2022) show that solar power is negatively and significantly associated with long-term CO2 emissions and that eco-innovation has proven to be the most important channel to mitigate CO2 emissions in China.

Econometric methodology

The empirical model used is based on the proposal by Elder and Serletis (2010), which consists of estimating a bivariate structural vector autoregressive (SVAR) with multivariate generalized autoregressive conditional heteroskedasticity in the mean (MGARCH-M) model. The main characteristic of this model is that it imposes the restriction that the conditional variance of economic growth in the growth rate of the international real price of oil is equal to zero, thus allowing the variance of the real international price of oil to have an effect on economic growth. The main advantage of estimating all the parameters simultaneously is that it generates internally consistent estimates, which avoids the problem of the “generated regressor” (Maghyereh et al. 2017). The structural VAR for the conditional mean is given as follows:

$$B{y}_t=C+{\Gamma}_1{y}_{t-1}+{\Gamma}_2{y}_{t-2}+\dots +{\Gamma}_{\mathrm{p}}{y}_{t-p}+\Lambda (L){H}_t^{\frac{1}{2}}+{\varepsilon}_t$$
(1)

where yt is a vector of endogenous variables over time t, in this case, the annualized quarterly growth rates of the real GDP of each sector and of the real international price of oil. B is a square matrix with a 2x2 dimension ϵt ∣ ψt − 1 : iid N(0, Ht), while \({H}_t^{1/2}\) is a diagonal matrix, Λ(L) is a polynomial matrix with a lag operator, ψt − 1 is the set of information in time t − 1, p is the length of the lags, and T is the sample size. The term \(\Lambda (L){H}_t^{1/2}\) captures the impact of international real oil price uncertainty on economic growth at the sector level. The orthogonalized structural innovations (Ft − 1) in the model are related to the choice of the N(N − 1)/N free parameters in matrix B; they are assumed to be normally and independently distributed. Furthermore, structural shocks εt are not assumed to be conditionally correlated.

In order to ensure the identification of structural responses, a necessary and sufficient number of identification restrictions are imposed on matrix B (Maghyereh et al. 2017). The usual way to accomplish this task is to impose zero constraints through the Cholesky decomposition, analogous to a conventional structural VAR model. Following the identification procedure used by Elder and Serletis (2010), Bredin et al. (2011), and Maghyereh et al. (2017), we restrict matrix B so that sectoral economic growth responds instantly to innovations in real oil price growth, but not the other way around. Hence, one parameter is allowed to remain free in the matrix in the bivariate VAR.

In the above specification, oil price volatility is measured by the conditional standard deviation of structural innovations \({H}_t^{1/2}\). In this sense, \({H}_t^{1/2}\) is a measure of the conditional standard deviation of one quarter ahead of oil’s real price, which enables measuring the impact of oil price uncertainty shocks on the conditional mean of yt. The influence of oil price volatility on sectoral economic growth is measured through coefficient matrix Λ(L). Specifically, a significant negative element in Λ implies that oil price volatility tends to negatively affect the economic growth of the sector in question (Maghyereh et al. 2017). This term also captures any potential asymmetry in the effects on sectoral economic growth attributable to oil price shocks. If Λ(L) is negative, then the unforeseen positive and negative oil price shocks increase uncertainty in the oil market and, consequently, depress the economic growth of the sector in question in the short term (Elder and Serletis 2009, 2010).

Conditional variance Ht is specified as a bivariate GARCH, proposed by Engle and Kroner (1995), which can be written as

$${h}_t={C}_v+\sum_{i=1}^q{F}_i{\eta}_{t-i}+\sum_{j=1}^r{G}_j{h}_{t-j}$$
(2)

where \({\eta}_{t-i}= vec\left({\varepsilon}_{t-i}^{\prime }{\varepsilon}_{t-i}\right)\), h = vec(Ht), \({\varepsilon}_t:{H}_t^{1/2}{z}_t\), zt : N(0, I), Fi and Gj are NxN matrices, with Cv as an upper triangular matrix to make sure that Ht is defined as positive.

The proposal of Elder (2004), as well as Elder and Serletis (2010), suggests a modified version of this model to reduce the number of parameters in the variance function, which consists of assuming null contemporary correlations in structural disturbances, implying that Ht is a diagonal matrix. It is then possible to write the structural variance function as

$$\mathit{\operatorname{diag}}\left({H}_t\right)={C}_v+\sum_{i=1}^q{F}_i\mathit{\operatorname{diag}}\left({\eta}_{t-i}\right)+\sum_{j=1}^r{G}_j\mathit{\operatorname{diag}}\left({h}_{t-j}\right)$$
(3)

Equation (3) establishes that the conditional variance is a function of q lagged squared errors and of r lags of the same conditional variance, so that the matrices Fi and Gi are also diagonals (Maghyereh et al. 2017). The bivariate VAR model with GARCH in mean terms, given by Eqs. (1) and (3), are estimated simultaneously using the maximum likelihood method, as described by Elder (2004). The procedure involves maximizing the logarithm of the following likelihood function:

$$\mathit{\log}{L}_t\left(\theta \right)=\sum_{t=1}^T{l}_t\theta$$
(4)

described by Elder (2004), where LT is the sample likelihood function and θ = (B, C, A1, A2, …Ap, Λ, F, G) is a vector of structural parameters.

$${l}_t\theta =-\left(\frac{N}{2}\right)\log \left(2\pi \right)+\left(\frac{1}{2}\right)\log {\left|B\right|}^2-\left(\frac{1}{2}\right)\log \mid {H}_t\mid -\left(\frac{1}{2}\right)\log \left({\varepsilon}_t^{\prime }{H}_t^{-1}{\varepsilon}_t\right)$$
(5)

To obtain maximum likelihood estimates, Eq. (4) is numerically maximized with respect to the structural parameters using the method (BFGS). The multivariate GARCH of the VAR in the mean model enables analyzing the dynamic effects of the shock in one system variable on the conditional forecast of another variable through the impulse-response functions, which are capable of capturing the potentially asymmetric effects of oil price shocks (Elder and Serletis 2009, 2010; Maghyereh et al. 2017).

The data

The data used here is the quarterly Gross Domestic Product (GDP) at constant 2013 prices in local currency for the primary, secondary, and tertiary sectors for the period that runs from the first quarter of 1993 to the fourth quarter of 2020, computed by the Economic Information Bank (BIE) of the National Institute of Statistics and Geography (INEGI) of Mexico. The international price of oil is approximated by the quarterly average of the composite refiner acquisition cost of crude oil (RAC), prepared by the Mexican Department of Energy. This price index is a weighted average of the costs of domestic and imported crude; it includes transportation costs and other fees paid by refineries, for which it reflects well the price of crude oil as an input for production (Elder and Serletis 2010), and it measures oil prices more broadly than other oil price indicators. This variable was included in the model both in constant dollars, deflated using the implicit price index of the United States GDP, and in constant pesos, using the exchange rate and the implicit price deflator of Mexico's GDP.

The annualized growth rates of these variables were then computed. The evolution of the real international price of oil (RAC) both in dollars and in pesos is shown in Fig. 1. Oil prices in dollars and in pesos followed a similar course; however, from 1993 to 2006, the real international price of oil in pesos grew at a higher rate than this same price in dollars, but since 2006, both prices have an analogous behavior.

Fig. 1
figure 1

Evolution of international oil prices in real terms in dollars and pesos, 1993:1–2020:4. Source: authors using data from INEGI

Figure 2 shows the evolution of returns to the real international price of oil, both in dollars and in pesos, where the scale in pesos is on the right axis, though only for illustrative purposes since both lines show practically the same trail.

Fig. 2
figure 2

International oil price returns in dollars and in pesos, 1993:1–2020:4. Source: authors using data from INEGI

The conditional variance will show the evolution of international oil price volatility, estimated through an AR(1)-GARCH(1,1) model for real prices in dollars and in pesos during the period of study. Figures 3 and 4 show that the estimated conditional variances behaved in a more or less similar way between 1993 and 2020, with the noteworthy exception that the variance in pesos is much greater than that estimated in dollars in the first years of the sample.

Fig. 3
figure 3

Conditional variance of returns to real oil prices in dollars according to an AR(1)-GARCH(1,1) model, 1993:2–2020:4. Source: authors using data from Energy Information Administration (EIA)

Fig. 4
figure 4

Conditional variance of returns to real oil prices in pesos according to an AR(1)-GARCH(1,1) model, 1993:2–2020:4. Source: authors using data from EIA and Banxico

Figure 5 presents the international oil price variances in dollars, estimated by the aforementioned AR(1)-GARCH(1,1) model, along with the GDP of the three economic sectors. The increase in the volatility of international oil prices appears to be more associated with the falls in economic activity in the secondary and tertiary sectors and less with the performance of the primary sector, especially during economic crises, such as in the years 1994–1995, 2008, and since 2020 due to COVID-19; this is even more noticeable when observing the estimated volatility for real oil prices calculated in pesos.

Fig. 5
figure 5

Conditional variance of returns to real oil prices in pesos according to an AR(1)-GARCH(1,1) model and GDP of the primary, secondary, and tertiary sectors in Mexico, 1993:2–2020:4. Source: authors using data from INEGI

During the study period in Mexico, various events of economic and social significance were recorded. Different economic reforms were carried out; possibly, the main ones were embodied by the entry into force of the North American Free Trade Agreement (NAFTA) in early 1994, which was followed by the currency crisis at the end of the same year, also known as the Tequila effect due to its international repercussions. The next main event could be pinned to the international financial crisis of 2008. The crisis had a negative impact on the Mexican economy through exports, affecting industrial and manufacturing production.

More recently, like virtually every economy in the world, Mexico suffered the economic crisis caused by the coronavirus disease (COVID-19), largely brought about by quarantines ordered by governments around the world. The enormous losses caused by the pandemic and the simultaneous collapse of the oil price were a major shock to emerging markets. In the case of Mexico, the economic sectors responded differently to this crisis, with the secondary and tertiary sectors being the hardest hit.

Empirical evidence of uncertainty in the productive sectors

Table 1 presents the results of the Augmented Dickey–Fuller (ADF) tests performed on the data series under study. The Augmented Dickey–Fuller (ADF) test tests the null hypothesis that a unit root is present in a sample of time series. In all cases, the number of lags was determined according to Schwarz’s informative criterion, allowing a maximum of 4 lags. In the case of the natural logarithms of the international price of oil and of the sectoral products, it is not possible to reject the null hypothesis of unit root, with the exception of the natural logarithm of agricultural GDP when the test is specified with intercept and trend. On the contrary, in the case of the annual growth rates of all variables in all cases, the null hypothesis of unit root is rejected. From these results, it is possible to conclude that the series has a unit root in their levels, but their annualized growth rates are stationary.

Table 1 Augmented Dickey–Fuller (ADF) tests

Table 2 presents the results of the Kwiatkowski–Phillips–Schmidt–Shin KPSS (Kwiatkowski et al. 1992) applied to our data. These tests are used to test a null hypothesis that an observable time series is stationary around a deterministic trend (i.e., trend-stationary) against the alternative of a unit root. The presence of a unit root is not the null hypothesis but the alternative. For most of the variables in natural logarithms, the null hypothesis of stationarity is rejected, with the exception of the GDP of the services sector. Conversely, for the annual growth rates of the variables, in no case is it possible to reject the null hypothesis of stationarity. These results reinforce those obtained with the ADF unit root test, that the natural logarithms of the series are integrated of order 1 and stationary in their growth rates.

Table 2 Kwiatkowski, Phillips, Schmidt, y Shin (KPSS) tests

In addition, Appendix Table 7 presents the results of the Lee and Strazicich (2003) unit root tests with a mean structural break (model A) applied to the logarithms of real international oil prices, in pesos and in dollars, and to the GDP of each sector of economic activity in Mexico, as well as the annualized growth rates of these variables.

As can be seen in Appendix Table 7, it is not possible to reject the null hypothesis of unit root for the natural logarithm of all the variables, with the exception of the primary sector GDP, in which the break is not statistically significant in the test at the five percent significance level. On the contrary, in the case of the tests carried out on the growth rates of both the oil price and the sector’s GDP in Mexico, the null hypothesis of the unit root was rejected in all cases.

Similar results were found for the tests with two ruptures in Appendix Table 8. The results with one and two structural ruptures corresponding to model C, which can be found in Appendix Table 9, tend to confirm the previous results; the series are integrated of the first order in their levels logarithms and stationary in their annualized growth rates.

Taking into account that the series considered for the analysis are stationary, we estimate different bivariate VAR models with GARCH in mean effects for each sector’s GDP growth and for the growth of the real international price of oil, in dollars and in pesos, as described in Eqs. (1) and (3), by using the maximum likelihood method. Be reminded that the main goal is to determine if the volatility of the oil price affects real product growth for each economic sector. Based on what was proposed by Hamilton (1996), Hamilton and Herrera (2004), Edelstein and Kilian (2007), and Elder and Serletis (2009), the SVAR was specified with four lags, equivalent to one year with quarterly data, under the argument that oil price shocks affect real economic activity with a one-year delay.

There are other reasons behind this choice; for example, Hamilton and Herrera (2004) argue that a shorter period could conceal the response of economic activity to the oil shock, given that its influence may appear with a delay. In addition, it is argued that a greater number of lags are necessary for robustness in the results of nonlinear VAR models. Finally, this number of lags allows comparisons with other empirical studies carried out on the subject, since most of them use the number of lags equivalent to one year (Elder and Serletis 2009, 2010, 2011; Rahman and Serletis 2012; Aye et al. 2014). In this way, the effective sample for the two models estimated comprises the period from the second quarter of 1994 to the last quarter of 2020. The informative Schwarz criterion for both the homoskedastic VAR and the SVAR-MGARCH in the mean for each of the estimated models will determine whether the specification is consistent with the data. This criterion penalizes to a greater extent the inclusion of additional parameters, which in this case are required to estimate the GARCH model, so a lower criterion for the model with GARCH in mean effects is regarded as strong evidence in favor of the latter specification. Table 3 presents the results of estimating this criterion for both models.

Table 3 Model specification tests, 1993:2–2020:4

The values of the Schwarz criterion reported in Table 3 indicate that in all models, the bivariate VAR with GARCH in mean effects is better to capture the characteristics of the data compared to the conventional homoskedastic VAR. Table 4 presents the estimated coefficients of the mean variance function of the MGARCH model, which provides additional support for both specifications. Table 4 also displays the impact of real oil price uncertainty on economic growth by sectors in Mexico, measured through the coefficient H1, 1(t)1/2, with its respective asymptotic t. This parameter represents the conditional volatility of changes in real oil prices in the equation of average growth of each sector’s real production. We find that the coefficients H1, 1(t)1/2 were negative and statistically significant for the secondary and tertiary sectors when the international price of oil was measured in dollars, but the coefficient of the primary sector was not statistically significant, in spite of being negative. Regarding the magnitude of the coefficients mentioned, the largest in absolute value was that of the secondary sector, which suggests that the greatest impact of international oil price uncertainty occurs in the secondary sector, followed by the tertiary sector according to this indicator.

Table 4 Estimated oil volatility coefficients

When the model includes the real international price of oil in pesos, the coefficients that capture the impact of uncertainty in economic growth by sectors were also statistically significant in the secondary and tertiary sectors, but it only had the expected sign in the secondary sector, thus suggesting that the exchange rate plays an important role in the impact of uncertainty on sectoral economic growth in Mexico, given that, in this case, it seems to slightly stimulate growth in the tertiary sector.

In this way, unforeseen shocks to the international price of oil, whether positive or negative, tend to increase the conditional standard deviation of oil. This increase has no impact on the growth of the primary sector; it will reduce the growth of the secondary sector, and the effect on the tertiary sector is ambiguous in Mexico in the short term. Such results are consistent with those reported by Elder and Serletis (2010, 2011), Rahman and Serletis (2012), Bredin et al. (2011), and Aye et al. (2014), who find that oil price volatility negatively influences the aggregate economic activity of Canada, the USA, South Africa, and the G-7 countries.

Table 5 presents the results of the ARCH effects tests on the residuals of the estimated equations. In no case is it possible to reject the null hypothesis of no ARCH effects in the residuals of the equations for each of the sectors, both when the price of oil is expressed in dollars and in pesos. This allows us to obtain valid inferences from the estimates made.

Table 5 ARCH effects tests on the residuals of the estimated equations

Table 6 shows the serial autocorrelation tests carried out through the Ljung–Box statistic with 15 lags. There is no serial autocorrelation in the residuals of the estimated VAR model, that is, in the equations of the mean.

Table 6 Serial correlation tests on the VAR model residuals.

The impulse-response functions obtained from the simulation of the parameters estimated from the maximum likelihood method will evaluate the degree of symmetry (asymmetry) in the response of real economic activity by sectors in Mexico to an uncertainty shock in the real international price of oil.

Figure 6 shows these impulse-response functions over a 3-year horizon in economic growth by activity sectors in Mexico in the face of positive and negative shocks in the real price of oil. The magnitude of the shock equals the annualized unconditional standard deviation of changes in the price of oil. The confidence bands correspond to one standard error and are the dotted lines in Fig. 6, constructed from 1000 repetitions following the literature. The horizontal axis represents the forecast horizon, and the ordinate axis represents the responses of economic growth at the sector level to shocks in the real price of oil.

Fig. 6
figure 6

Impulse-response functions of one standard deviation to positive and negative shocks in the real price of oil in dollars. Source: authors using data from INEGI

The results in the chart corroborate what was reported in Table 4, that positive and negative shocks to the international real price of oil do not have an impact on the economic growth of the primary sector, given that the impulse-response functions were not statistically significant. However, there is evidence of asymmetric effects on the growth of the secondary sector; in the face of positive shocks to the real price of oil in dollars, the impact was initially negative and later became positive, while in the face of negative shocks, the initial impact was positive and later became negative. In the tertiary sector, there was also evidence of asymmetric effects; a positive shock in the international real price of oil caused a positive impact on the economic growth of the tertiary sector in the short term, while a negative shock in the international real price of oil caused a negative effect.

Figure 7 presents the asymmetric impact of shocks to the real international price of oil expressed in local currency. In line with the results obtained for the real price of oil, there is no evidence that shocks to the real price of oil in pesos immediately impact the economic growth of the primary sector, with the exception of a negative impact after one year. Regarding the possible asymmetric impact of these shocks in the secondary sector, the effect of positive shocks in the second quarter after the shock is positive, but it turns to negative after the fourth quarter; meanwhile, negative shocks have a negative effect during the two first quarters after the shock and a positive effect after one year. The asymmetric impact of oil price shocks is more evident in the tertiary sector, given that positive shocks positively impact the growth of this sector, while negative shocks negatively impact said growth.

Fig. 7
figure 7

Impulse-response functions of one standard deviation to positive and negative shocks in the real price of oil in pesos. Source: authors using data from INEGI

Thus, we find evidence that international oil price shocks in real terms have asymmetric effects on the economic growth of the different sectors that make up the economy of Mexico.

Conclusions

This paper has shown that the uncertainty in the real price of oil affects real economic activity at the sectoral level in the Mexican economy, using quarterly data from 1993 to 2020. Mexico depends on oil sales to foster economic growth; the fact that there are international fluctuations in the price of this commodity negatively affects its growth and, at the same time, influences economic activities that constitute the sustenance of Mexicans through employment and wages, all of which makes this a relevant research topic.

Results from the bivariate structural VAR model, in which the uncertainty is endogenous and predetermined, indicate that oil price shocks have a negative and significant effect on the real economic activity of the secondary sector in Mexico, regardless of how the real price is measured, either in dollars or in constant pesos. The impact on the tertiary sector gathered mixed evidence, negative when the oil price was in dollars and positive when it was in pesos. There was no evidence of any effect on the primary sector. Additionally, the impulse-response functions demonstrated that oil price shocks have asymmetric effects in the secondary and tertiary sectors of economic activity in Mexico and confirmed that the effect on the primary sector is practically nonexistent. Results can be attributed to the fact that the use of oil as a production input may be larger in the economic activities of the secondary sector, such as manufacturing, while it is probably less used in the tertiary sector, characterized by a rather heterogeneous composition, ranging from activities such as financial services to health, education, and transportation, the latter of which is where oil price shocks may have a greater impact. The null impact of uncertainty about real oil prices in the primary sector is perhaps due to weaker ties to international trade so that the demand for the products generated there is inelastic to the price of oil.

The asymmetry in the results at the sectoral level of economic activity found in this paper shows that more research is required to address the impact of oil price shocks in emerging economies – such as Mexico – with a higher level of disaggregation of economic activities. This would enable the design and planning of economic policy measures and instruments that are better able to reduce the adverse effects of these shocks on the different economic activities. In future works, it could be analyzed how the international price of oil generated by the war between Russia and Ukraine has influenced the well-being of the population, impacting not only fuel prices, but now more resources have to be allocated to acquire those fuels, which are necessary to transport the goods and services that the population requires, thereby generating a generalized and sustained increase in prices in different countries, including Mexico, which is not analyzed in this work.

To finish, it is worth discussing potential implications for economic policy. Firstly, the need for energy policies that contribute to economic stability and reduce the adverse effect of oil price volatility in the secondary and tertiary sectors of economic activity becomes evident. These policies may include incentives for vehicles to optimize fuel consumption and for the industrial sector to improve the efficiency of its fuel or diesel power plants; such incentives could be directed to the sectors that make use of renewable and cleaner energy – an actual possibility in the Mexican economy enabled by recent law changes in this regard – and thus contribute to reducing the dependence on oil. It could also be advisable to promote tax cuts as an incentive for lowering energy consumption. In this way, the government must promote the use of clean energy by sponsoring investment and development in these areas and generate better conditions for companies to invest in activities that employ the use of renewable energy.

Among other measures that may be useful is the reduction of dependence on oil for public spending. The use of renewable energy is growing worldwide and will eventually displace sectors that continue to use fossil fuels. Emerging countries such as Mexico, which still continue to focus their efforts on oil, and depending economically on it as well, should start looking for alternatives so that their economies do not collapse in the future. Adapting to global needs in the use of renewable energy is not only a human responsibility but also an economic obligation. In this way, reducing the dependence on oil would also reduce the negative effects on Mexican economic sectors.