Introduction

During the last decade, the importance of electricity has increased, as it has been undoubtedly an essential pillar for economic and social development, especially for developing countries. Thus, researchers are concerned with analyzing the importance of electricity through investigating the causal relationship between electricity consumption and economic growth to help policymakers in setting their policies concerning plans for energy conservation policies and for achieving development and economic growth.

Moreover, investigating the causal relationship between electricity consumption and sectoral outputs is vital nowadays to help in setting the appropriate policies at the sectoral levels not only the aggregate one, especially that different economic sectors (agriculture, industry, and services) differ in their dependence on electricity consumption and the polluted emissions released from them.

Egypt nowadays is seeking to achieve a high and sustainable economic growth rate at the aggregate level and the sectoral levels, however, policymakers, when setting the policies targeting high and sustainable economic growth, have to take into consideration several challenges, such as the increasing demand for energy and electricity needed for economic growth, without adversely affecting the environment, besides the high rate of population growth and the poor planning urbanization system [30, 31].

The real GDP per capita and electricity consumption per capita in Egypt have increased on average during most of the period (1971–2014, Fig. 1). It can be noticed that electricity consumption per capita has increased from 201.2 kWh in 1971 to 375.15 kWh in 1980; then after two decades, it became 961.9 kWh; then it reached 1657.76 kWh after a decade in 2014 with an average annual growth rate of 3.96% from 2000 to 2014.

Fig. 1
figure 1

Source: compiled by the author based on The World Bank [70]

Real GDP per capita (US dollars) and electricity consumption per capita (kWh) in Egypt.

Moreover, real GDP per capita has increased from 800 dollars in 1971 to 1192.5 dollars in 1980; then it was 1950 dollars in 2000 and 2608 dollars in 2014, with an average annual growth rate of 2.1% from 2000 to 2014. Also, by comparing the real economic growth rate in Egypt with the real economic growth rate in emerging-market and developing economies and advanced economies, it is found that the real economic growth rate in Egypt has exceeded that of emerging-market and developing economies and advanced economies during the period 1980 to 1987, with some fluctuations after 1987; but during the period 1997–2014, the real economic growth rate in Egypt (around 4.2%) was below the real economic growth rate in emerging market (around 5.6%) [34, 60].

Also, per-capita income in Egypt during the last 10 years has increased at a lower rate with comparison with per-capita income in the emerging-market and developing economies; whereas it has increased by about 50% on average in Egypt, it has increased by about 75% in the emerging-market and developing economies [60]. Additionally, Fig. 2 shows the increasing trend of electricity consumption per unit of GDP during (1990–2014) and this may be an indication for depending more on electricity consumption in achieving more economic growth.

Fig. 2
figure 2

Electricity consumption per unit of real GDP (kWh per PPP constant international dollars) in Egypt. Source: compiled by the author based on The World Bank [70]

Not only real GDP per capita shows continuous increase but also the share of the value added of the two economic sectors (industry and services) to GDP, and as Table 1 reveals the contribution of the three sectors to GDP in Egypt, it is shown that the contribution of the agricultural sector to GDP in Egypt has decreased during the period (1990–2014) from 19.36% in 1990 to 11% in 2014. On the contrary, the share of value added of the industrial sector has witnessed a continuous increase during the period 1990–2014 and the contribution of the services sector to GDP has been the greatest one since 1990, as it has been on average around 50%.

Table 1 Share of the value added of the three sectors in GDP (%) in Egypt

The growth of these economic sectors depends on electricity consumption. Table 2 shows the share of electricity consumption by the three sectors (agriculture, industry, and services) in Egypt as a percentage of total electricity consumption. It can be noticed that although electricity consumption has been considered the highest in the industrial sector, it has shown a decreasing trend, contrary to the services sector and agricultural sector with an increasing trend. Moreover, electricity consumption per unit of value added of the three sectors represented in Fig. 3 shows that electricity consumption per unit of real value added of industrial sector has the highest value during the period as compared to electricity consumption per unit of real value added of the services sector and agricultural sector.

Table 2 Share of electricity consumption by three sectors (% of total electricity consumption) in Egypt.
Fig. 3
figure 3

Source: compiled by the author based on IEA [32] and The World Bank [70]

Electricity consumption per unit of real value added of the three sectors (GWh/LCU) in Egypt.

Overall, it can be concluded from the share of electricity consumption by three sectors together with electricity consumption per unit of real GDP and electricity consumption per unit of real value added of the three sectors, the importance of electricity consumption and sectoral outputs for the Egyptian economy and the importance of electricity consumption to economic growth at the macro level and the sectoral levels.

However, the importance of electricity consumption raises a very important issue that needs to be addressed by policymakers in setting their electricity conservation policies and this is related to the effect of electricity generation and consumption on environmental conditions, which mainly depends on primary energy sources that fuel electricity generation in Egypt.

As shown in Fig. 4 that 79% of electricity generation is fueled by natural gas, 12% is fueled by oil sources, and the remainder of electricity generation depends upon renewable energy resources and hydropower. This dependence on natural gas and oil sources in electricity generation has resulted in carbon dioxide emissions, and this is shown in Fig. 5, which presents carbon dioxide emissions from electricity and heat production as a percentage of total fuel combustion during the period 1971 to 2014. Carbon dioxide emissions have increased from 22.7% in 1980 to 32.57% in 1990, to 35.3% in 2000 and then to 50.33% in 2014 to be responsible for releasing half of the carbon dioxide emissions in Egypt.

Fig. 4
figure 4

Source: compiled by the author based on The World Bank [70]

Electricity generation by primary energy sources (2014) in Egypt.

Fig. 5
figure 5

Source: compiled by the author based on The World Bank [70]

Carbon dioxide emissions from electricity and heat production (% of total fuel combustion) in Egypt

This continuous increase in carbon dioxide emissions makes it necessary for the Egyptian government to set efficient electricity-conservation policies aiming at reducing the polluting emissions without adversely affecting the economic growth either at the aggregate level or the sectoral levels.

Thus, the purpose of the study is to investigate the causal relationship between electricity consumption and real output at the macro level and the sectoral levels and the study focuses on three main economic sectors, namely the agricultural, industrial, and services sectors.

The study contributes to the existing literature in two parts; firstly, as to the best of my knowledge, this is the first study to examine the causal relationship between electricity consumption and sectoral outputs in Egypt, and the results can be important in helping policymakers in setting the conservation electricity policies taking into consideration the possible effects of these policies on economic growth at the macro level and the sectoral levels and aiming at reducing the possible polluted emissions resulted from higher electricity generation. Secondly, the present study comprises long-term period data.

The paper employs Johansen cointegration approach and Granger causality based on vector error correction model (VECM) and Toda and Yamamoto [71] approach to explore the causal relationship between electricity consumption and real output at the macro level and the sectoral levels over the period 1971–2013, which is chosen based upon data availability.

The rest of the paper is structured as follows: Sect. 2 provides a brief review of the literature, Sect. 3 provides an overview for electricity sector in Egypt, Sect. 4 describes data and methodology, Sect. 5 discusses empirical results, and Sect.  6 concludes and recommends some policy implications.

Literature review

Different studies have explored the causal relationship between electricity consumption and economic growth either in a single county or multiple countries and others have investigated this relationship using panel data approach and they concluded the existence of four hypotheses: (1) conservation hypothesis; (2) growth hypothesis; (3) feedback hypothesis, and (4) neutrality hypothesis, and a summary of these studies is shown in Table 3.

Table 3 Summary of the literature of the causal relationship between electricity consumption and economic growth

Conservation hypothesis

The conservation hypothesis states that there exists a unidirectional causal relationship from economic growth to electricity consumption and this means that electricity conservation policies may have minimum effects on economic growth, and several studies confirm this hypothesis as Ghosh [24], Halicioglu [27], Narayan and Smyth [47], Mozumder and Marathe [44], Lean and Smyth [40], and Belaid and Youssef [13].

Growth hypothesis

The growth hypothesis suggests that unidirectional causality from electricity consumption to economic growth exists and this leads to the possible negative effects of the implementation of electricity conservation policies on economic growth, and several studies confirm this hypothesis. Among them can be highlighted several studies such as Aqeel and Butt [8], Shiu and Lam [65], Altinay and Karagol [7], Yuan et al. [78], Narayan and Singh [46], Abosedra et al. [1], Akinlo [5], Chandran et al. [18], Ciarreta and Zarraga [19], Kouakou [39], Bildirici and Kayikci [14], Tang and Shahbaz [68], Mawejje and Mawejje [42], and Sharif et al. [64].

Feedback hypothesis

The feedback hypothesis proposes that there exists bidirectional causality between electricity consumption and economic growth, and there is interdependence between the two variables. Several studies can be highlighted confirming this hypothesis, such as Yoo [74], Zachariadis and Pashouortidou [79], Yoo [75], Tang [67], Odhiambo [50], Ouedraogo [52], Lorde et al. [41], Ahamad and Islam [3], Shahbaz et al. [62], Gurgul and Lach [25], Polemis and Dagoumas [58], Belaid and abderrahmani [12], Karanfil and Li [37], Ibrahiem [29], Osman et al. [51], Ahmad et al. [4], and Sarwar et al. [61].

Neutrality hypothesis

The neutrality hypothesis suggests that there is no causal relationship between electricity consumption and economic growth, and so implementation of conservation electricity policies may have no effect on economic growth. Several studies confirm this hypothesis, including Wolde–Rufael [73] for Algeria, Congo Republic, Kenya, South Africa, and Sudan; Chen et al. [17] for China, Taiwan and Thailand; Narayan and Prasad [45]; Yoo and Kwak [76] for Peru; Karanfil and Li [37] for North America, Sub-Saharan Africa, Upper–Middle income countries; and Bah and Azam [9].

Others investigate this relationship through examining multiple countries and the results are mixed and differ across countries [17, 45, 66, 73, 75].

Moreover, several studies examine the electricity consumption-economic growth nexus in the MENA region, and also results are mixed [15, 23, 48, 53].

Although mainly all the previous studies are concerned with the relationship between electricity consumption and economic growth, other researchers focus on the relationship between electricity consumption and specific sectoral outputs to examine the causal relationship between them and to recommend the appropriate policy in each sector. A summary of these studies is shown in Table 4.

Table 4 Summary of the literature of the causal relationship between electricity consumption and sectoral outputs

Nathan and Liew [49] examine the causal relationship between electricity consumption and several economic sectoral outputs in Cambodia using autoregressive distributed lag (ARDL) model and Granger causality test. They conclude the existence of unidirectional causality running from electricity consumption to agricultural, industrial, and transportation sectors, and unidirectional causality from services sector to electricity consumption.

Mawejje and Mawejje [42] explore the causal relationship between electricity consumption and sectoral output, namely agriculture, industry, and services in Uganda using Granger causality test and found a short-run unidirectional causal relationship running from the services sector to electricity consumption and a long-run causal relationship running from electricity consumption to industrial sector and no causal relationship between electricity consumption and agricultural sector was detected. Pei et al. [54] investigate the causal relationship between electricity consumption and sectoral output of agriculture, manufacturing, and services in Malaysia using Granger causality. The results confirm the existence of a causal relationship running from electricity consumption to agricultural sector and non-existence of causal relationship between electricity consumption and the other two sectors (manufacturing and services).

As shown from the previous literature review that the results of a causal relationship between electricity consumption and real output at the macro level or sectoral levels are inconclusive, and as pointed out by Zhang et al. [80] that although there is evidence for the existence of a causal relationship between electricity consumption and economic growth, the direction of causality is still debatable among research and this may be attributed to several factors; some are related to the selection of variables, sources of data, methodologies applied, and different energy policies adopted by different countries.

Overview of electricity sector in Egypt

In Egypt, private companies owned electricity as it was first launched in 1893. Then, in 1962, the electricity was owned by the government, and all the private companies were nationalized. Thus, the electricity industry is a government-owned monopoly (Yousri, [77]).

Electricity production and consumption have witnessed a continuous increase during the period 1985–2014, as shown in Fig. 6. Electricity generation has increased from 31.7 TWh in 1985 to 53.4 TWh in 1995, 104 TWh in 2005 and 170.2 TWh in 2014. Also, electricity consumption has increased from 24.48 TWh in 1985 to 46.46 TWh in 1995, 95.3 TWh in 2005 and 152.2 TWh in 2014. It can be noticed also that electricity generation has been in excess over electricity consumption during this period, making Egypt a net exporter of electricity over the period 1985–2014.

Fig. 6
figure 6

Source: compiled by the author based on The World Bank [70] and [16]

Electricity generation and consumption (terawatt-hours) in Egypt

In fiscal year 2015/2016, Egypt’s total installed capacity of electricity was 38.8 GW  and 186.3 GWh was generated [72]. Moreover, in recent years, Egypt has had challenges in facing electricity demand among all sectors (agriculture, industry, services, and residential), which is manifested in several power blackouts [26], and this can be attributed to shortages in natural gas production, especially that about 79% of electricity production in Egypt is fueled by natural gas, increasing energy demand, insufficient production and transmission capacity, and aging infrastructure [72].

For decades, electricity prices have been subsidized, where prices were lower than real marginal costs, indicating rigidity in domestic electricity prices and this has had bad consequences represented mainly in increasing energy demand and misusing of electricity, and made a burden on the government, especially that fueling electricity depends on non-renewable resources (natural gas) with high marginal costs unlike renewable resources (wind and solar) with high fixed costs but nearly zero marginal costs [11, 77]. Also, electricity subsidies comprise direct and indirect ones. As for direct, they are related to the provision of electricity to consumers, and for indirect ones they are related to the subsidies for oil and natural gas production used in the production of electricity [6].

The government in 1986 made an attempt to raise energy prices gradually, but for social reasons this attempt was stopped [11]. In 2011, total energy subsidies in Egypt exceeded seven times health expenditures and three times education spending [33].

In 2012/2013, however, the government began an efficient pricing scheme by making a gradual increase in the energy prices and subsidy reform and the increase has reached about 18% in some segments and prices for oil and natural gas used for electricity production have increased by about 33% [6, 77]. The government also issued the decree 1257 for the year 2014 to set electricity prices gradual adjustment plan aimed to increase electricity tariffs gradually during the period (2014/2015–2018/2019), where tariffs are expected to increase by 114% and 47% for high-consumption households and low consumption households, respectively during the 5 years [6, 43].

Moreover, in 2014, the government removed about 22% of energy subsidies [28] and still this gradual increase in energy and electricity prices continues especially that one of the conditional policies for the loan given to the Egyptian government by IMF in 2016 is to remove energy subsidies.

In addition, the Supreme Council of Energy has implemented a plan aiming at shifting to renewable energy resources by 2020 to cover 20% of Egypt’s total generated electricity, where 12% would be provided by wind energy and the rest of renewable energy resources would be from biomass, solar, and hydro sources [26].

Data description and econometric modeling

Annual data that cover the period 1971–2013 in this study are obtained from World Bank indicators [70]. GDP or real output per capita (y) and sectors value added namely agriculture (agr), industry (ind), services (ser) are expressed in constant local currency while electric power consumption per capita (ec) is expressed in kilowatt-hours (kWh). I have converted sectors value added into per-capita terms by dividing them by total population. All variables in this study are transformed to their natural logarithmic form. Table 5 provides a summary of descriptive statistics.

Table 5 Summary of descriptive statistics

Johansen and Juselius [36] maximum likelihood estimation method is conducted to explore the relationship between electricity consumption and real output at the macro level and the sectoral levels to investigate the presence of multiple cointegrating vectors. According to Johansen [35] test for multivariate cointegration, there are two likelihood ratio tests: maximum eigenvalue test and trace test.

Before conducting Johansen and Juselius [36] maximum likelihood estimation method, however, stationary will be tested, as in time series analysis and based upon Engle and Granger [22], most variables may be non-stationary variables due to the presence of trends and thus testing for stationary must be conducted as a first step. Two unit root tests are conducted; augmented Dickey–Fuller (ADF) [20] and the Phillips–Perron (PP) [57], however, as stated by Perron [55], failure in detecting structural break(s) may result in misleading hypothesis testing, so Perron test based on Dickey–Fuller test adds dummy variables in the ADF test regression to account for the presence of structural break(s), then the structural break test is modified with an innovative outlier and additive one [59]. Thus, for avoiding misleading results, I conduct two approaches of the Perron and Vogelsang [56] unit root test besides ADF and PP tests before proceeding in conducting Johansen–Juselius cointegration approach. The first one is the additive outlier (AO) model permitting immediate change in the time series and the second one is the innovative outlier (IO) model permitting gradual shift and adjustment in the mean of the time series and (AO) model is employed through two steps; the first one concerned with estimation of

$$x_{t} = \delta_{1} + \beta_{1} t + \varphi_{1} {\text{DU}}_{t} + \vartheta_{1} {\text{DT}}_{t} + \tilde{x}_{t} .$$
(1)

while the second one estimates

$$\tilde{x}_{t} = b_{1} \tilde{x}_{t - 1} + \mathop \sum \limits_{j = 0}^{k} \partial_{i} {\text{D}}({\text{TB}})_{t - j} + \mathop \sum \limits_{j = 1}^{k} c_{j} \Delta \tilde{x}_{t - j} + \varepsilon_{t}$$
(2)

As for (IO) break, however, it can be tested by estimating

$$x_{t} = \delta_{2} + \beta_{2} t + \varphi_{2 } {\text{DU}}_{t} + \partial_{2} {\text{D}}({\text{TB}})_{t} + b_{1} x_{t - 1} + \sum\nolimits_{j = 1}^{k} {c_{j} \Delta x_{t - j} } + \in_{t}$$
(3)

where Δ is the first difference operator, dummy variables are represented by DUt which is equal to 1, and DTt is equal to t − TB if t is greater than TB and zero otherwise, also D(TB)t is equal to one if t = TB + 1 and zero otherwise. ϵt and εt are the residuals [68].

And if it is concluded that time series are non-stationary at level, then cointegration and vector error correction model can be employed in the next step.

Moreover, before conducting cointegration analysis, optimal lag length has to be determined using different criteria as Akaike information criteria (AIC) and Schwartz criteria (SC), and then after choosing optimal lag length, Johansen and Juselius [36] maximum likelihood estimation method will be employed to examine the existence of multiple cointegrating vectors, and then, VECM can be employed to identify the short-run and long-run relationships between them.

This can be represented by Eqs. (4) and (5) for model 1 to explore the causal relationship between electricity consumption and real output at the macro level and Eqs. (6), (7), (8), and (9) for model 2 to explore the causal relationship between electricity consumption and real output at the sectoral levels. In each equation, it can be noticed that the dependent variable is explained by itself, the others explanatory variables and the error correction term.

$$\Delta {\text{ec}}_{t} = \omega_{1} + \sum\nolimits_{i = 1}^{\rho } {\gamma_{11i} } \Delta {\text{ec}}_{t - i } + \sum\nolimits_{i = 1}^{\rho } {\gamma_{12i} } \Delta y_{t - i } + \alpha_{1} {\text{ect}}_{t - 1} + \varepsilon_{1t}$$
(4)
$$\Delta y_{t} = \omega_{2} + \sum_{i = 1}^{\rho } \gamma_{21i} \Delta y_{t - i } + \sum_{i = 1}^{\rho } \gamma_{22i} \Delta {\text{ec}}_{t - i } + \alpha_{2} {\text{ect}}_{t - 1} + \varepsilon_{2t}$$
(5)
$$\Delta {\text{ec}}_{t} = \varphi_{1} + \mathop \sum \limits_{i = 1}^{\rho } \beta_{11i} \Delta {\text{ec}}_{t - i } + \mathop \sum \limits_{i = 1}^{\rho } \beta_{12i} \Delta {\text{agr}}_{t - i } + \mathop \sum \limits_{i = 1}^{\rho } \beta_{13i} \Delta {\text{ind}}_{t - i} + \mathop \sum \limits_{i = 1}^{\rho } \beta_{14i } \Delta {\text{ser}}_{t - i } + \vartheta_{1} {\text{ect}}_{t - 1} + \mu_{1t}$$
(6)
$$\Delta {\text{agr}}_{t} = \varphi_{2} + \mathop \sum \limits_{i = 1}^{\rho } \beta_{21i} \,\Delta {\text{agr}}_{t - i } + \mathop \sum \limits_{i = 1}^{\rho } \beta_{22i} \Delta {\text{ec}}_{t - i } + \mathop \sum \limits_{i = 1}^{\rho } \beta_{23i} \Delta {\text{ind}}_{t - i} + \mathop \sum \limits_{i = 1}^{\rho } \beta_{24i } \Delta {\text{ser}}_{t - i } + \vartheta_{2} {\text{ect}}_{t - 1} + \mu_{2t}$$
(7)
$$\Delta {\text{ind}}_{t} = \varphi_{3} + \mathop \sum \limits_{i = 1}^{\rho } \beta_{31i} \Delta {\text{ind}}_{t - i } + \mathop \sum \limits_{i = 1}^{\rho } \beta_{32i} \Delta {\text{ec}}_{t - i } + \mathop \sum \limits_{i = 1}^{\rho } \beta_{33i} \Delta {\text{agr}}_{t - i} + \mathop \sum \limits_{i = 1}^{\rho } \beta_{34i } \Delta {\text{ser}}_{t - i } + \vartheta_{3} {\text{ect}}_{t - 1} + \mu_{3t}$$
(8)
$$\Delta {\text{ser}}_{t} = \varphi_{4} + \mathop \sum \limits_{i = 1}^{\rho } \beta_{41i} \Delta {\text{ser}}_{t - i } + \mathop \sum \limits_{i = 1}^{\rho } \beta_{42i} \Delta {\text{ec}}_{t - i } + \mathop \sum \limits_{i = 1}^{\rho } \beta_{43i} \Delta {\text{agr}}_{t - i} + \mathop \sum \limits_{i = 1}^{\rho } \beta_{44i } \Delta {\text{ind}}_{t - i } + \vartheta_{4} {\text{ect}}_{t - 1} + \mu_{4t}$$
(9)

where Δ is the difference operator, ect is the error correction term, and μt and εt are the error terms. γ and β are coefficients of explanatory variables in model 1 and model 2, respectively, which are concerned with the short-run effect, while α and ϑ the coefficients of error correction term in model 1 and model 2, respectively, are concerned with the speed that the variables in the model could come back to long-run equilibrium when there is a deviation from it.

For robustness check, Toda and Yamamoto [71] approach is conducted. This can be done through several steps. The first step is to detect the order of integration in all-time series for the purpose of specifying the maximum order of integration (dmax) for all groups of variables. The second step involves specifying VAR model as follows:

$${\text{ec}}_{t} = \theta + \mathop \sum \limits_{i = 1}^{k} \phi_{1i} {\text{ec}}_{t - i} + \mathop \sum \limits_{j = k + 1}^{d_{max} } \phi_{2j} {\text{ec}}_{t - j} + \mathop \sum \limits_{i = 1}^{k} \varOmega_{1i} y_{t - i} + \mathop \sum \limits_{j = k + 1}^{d_{max} } \varOmega_{2j} y_{t - j} + \mu_{1t}$$
(10)
$$y_{t} = \theta^{'} + \mathop \sum \limits_{i = 1}^{k} \upsilon_{1i} {\text{ec}}_{t - i} + \mathop \sum \limits_{j = k + 1}^{d_{max} } \upsilon_{2j} {\text{ec}}_{t - j} + \mathop \sum \limits_{i = 1}^{k} \varrho_{1i} y_{t - i} + \mathop \sum \limits_{j = k + 1}^{d_{max} } \varrho_{2j} y_{t - j} + \mu_{2t}$$
(11)
$$\begin{aligned} {\text{ec}}_{t} = & \delta + \mathop \sum \limits_{i = 1}^{k} \gamma_{1i} {\text{ec}}_{t - i} + \mathop \sum \limits_{j = k + 1}^{d_{max} } \gamma_{2j} {\text{ec}}_{t - j} + \mathop \sum \limits_{i = 1}^{k} \pi_{1i} {\text{agr}}_{t - i} + \mathop \sum \limits_{j = k + 1}^{d_{max} } \pi_{2j} {\text{agr}}_{t - j} + \mathop \sum \limits_{i = 1}^{k} \theta_{1i} {\text{ind}}_{t - i} \\ & + \mathop \sum \limits_{j = k + 1}^{d_{max} } \theta_{2j} {\text{ind}}_{t - j } + \mathop \sum \limits_{i = 1}^{k} \rho_{1i } {\text{ser}}_{t - i} + \mathop \sum \limits_{j = k + 1}^{d_{max} } \rho_{2j} {\text{ser}}_{t - j} + \varepsilon_{1t} \\ \end{aligned}$$
(12)
$$\begin{aligned} {\text{agr}}_{t} = & \delta ' + \mathop \sum \limits_{i = 1}^{k} \omega_{1i} {\text{ec}}_{t - i} + \mathop \sum \limits_{j = k + 1}^{d_{max} } \omega_{2j} {\text{ec}}_{t - j} + \mathop \sum \limits_{i = 1}^{k} \beta_{1i} {\text{agr}}_{t - i} + \mathop \sum \limits_{j = k + 1}^{d_{max} } \beta_{2j} {\text{agr}}_{t - j} + \mathop \sum \limits_{i = 1}^{k} \alpha_{1i} {\text{ind}}_{t - i} \\ & + \mathop \sum \limits_{j = k + 1}^{d_{max} } \alpha_{2j} {\text{ind}}_{t - j } + \mathop \sum \limits_{i = 1}^{k} \vartheta_{1i } {\text{ser}}_{t - i} + \mathop \sum \limits_{j = k + 1}^{d_{max} } \vartheta_{2j} {\text{ser}}_{t - j} + \varepsilon_{2t } \\ \end{aligned}$$
(13)
$$\begin{aligned} {\text{ind}}_{t} = & \delta^{{\prime \prime }} + \mathop \sum \limits_{i = 1}^{k} \sigma_{1i} {\text{ec}}_{t - i} + \mathop \sum \limits_{j = k + 1}^{d_{max} } \sigma_{2j} {\text{ec}}_{t - j} + \mathop \sum \limits_{i = 1}^{k} \propto_{1i} {\text{agr}}_{t - i} + \mathop \sum \limits_{j = k + 1}^{d_{max} } \propto_{2j} {\text{agr}}_{t - j} + \mathop \sum \limits_{i = 1}^{k} \partial_{1i} {\text{ind}}_{t - i} \\ & + \mathop \sum \limits_{j = k + 1}^{d_{max} } \partial_{2j} {\text{ind}}_{t - j } + \mathop \sum \limits_{i = 1}^{k} \in_{1i } {\text{ser}}_{t - i} + \mathop \sum \limits_{j = k + 1}^{d_{max} } \in_{2j} {\text{ser}}_{t - j} + \varepsilon_{3t } \\ \end{aligned}$$
(14)
$$\begin{aligned} {\text{ser}}_{t} = & \delta '''+ \mathop \sum \limits_{i = 1}^{k} \varOmega_{1i} {\text{ec}}_{t - i} + \mathop \sum \limits_{j = k + 1}^{d_{max} } \varOmega_{2j} {\text{ec}}_{t - j} + \mathop \sum \limits_{i = 1}^{k} \varPsi_{1i} {\text{agr}}_{t - i} + \mathop \sum \limits_{j = k + 1}^{d_{max} } \varPsi_{2j} {\text{agr}}_{t - j} + \mathop \sum \limits_{i = 1}^{k} \lambda_{1i} {\text{ind}}_{t - i} \\ & + \mathop \sum \limits_{j = k + 1}^{d_{max} } \lambda_{2j} {\text{ind}}_{t - j } + \mathop \sum \limits_{i = 1}^{k} \psi_{1i } {\text{ser}}_{t - i} + \mathop \sum \limits_{j = k + 1}^{d_{max} } \psi_{2j} {\text{ser}}_{t - j} + \varepsilon_{4t} \\ \end{aligned}$$
(15)

where dmax denotes maximum order of integration of all group variables and k is the optimal lag length. The third step involves determining optimal lag length in the VAR model. The final step is estimating Granger test based on Eqs. (10) and (11) for model 1 and Eqs. (11) (12), (13), (14), and (15) for model 2 [9].

Empirical results and discussions

This study examines the causal relationship between electricity consumption and real output at the macro level and the sectoral levels, namely agricultural, industrial, and services sectors in Egypt during the period 1971–2013. Several steps would be done to explore the causal relationship between the variables. Augmented Dickey–Fuller (ADF), Phillips–Perron (PP), and Perron and Vogelsang [56] unit root tests would be employed for the purpose of examining the order of integration for every variable. After testing for stationary, Johansen’s maximum likelihood multiple cointegration approach will be conducted for exploring the existence of the long-run relationship among the variables. Then, if the variables are cointegrated vector error correction model (VECM) will be conducted to investigate the causal relationship between the variables. Moreover, Toda and Yamamota approach is conducted as a robustness check for causality relationship between the variables.

I begin with augmented Dickey–Fuller (ADF) and Phillips–Perron (PP) tests to examine the stationary of all the variables under consideration, where the null hypothesis is that the series is non-stationary and it is checked on the time series in levels and first differences. The results are reported in Table 6.

Table 6 Results of unit root ADF and PP tests

The results indicated that all the variables (electricity consumption, real output, agriculture value added, industry value added, and services value added) are integrated of order 1 and that they are non-stationary at levels using Phillips– Perron test and ADF test except for agriculture value added in case of using ADF test.

For the reason of the possibility of the presence of structural breaks, and aiming at avoiding misleading results concerning the decision related to the null hypothesis of unit root test, Perron–Vogelsang test is conducted for robustness and the results are reported in Table 7.

Table 7 Results of Perron–Vogelsang test

The results indicate that all the variables (electricity consumption,  real output, agriculture value added, industry value added, and services value added) are integrated of order 1 and that they are non-stationary at levels and stationary at first differences with different structural breaks as reported in Table 7.

Table 7 shows that electricity consumption, economic growth, and sectoral outputs have structural breaks in the 1980s and the 1990s, and these results may be attributed to several causes; the existence of period of oil boom in the Arab Gulf states late 1970s and early 1980s where Egypt benefited from it and also the 1986 oil price collapse [10, 21].

In addition, structural breaks can coincide with a sharp rise in oil prices in 1990 associated with the Gulf War and Iraq's invasion of Kuwait, and UN embargo of crude oil exports from Iraq and Kuwait, and as a result, oil prices increased from the second quarter of 1990 to the fourth quarter of 1990 from 16.1 dollars per barrel to 30 dollars per barrel, an almost 86.3% increase [69]. Moreover, the Egyptian government signed an agreement with both the World Bank and the International Monetary Fund (IMF), known as the Economic Reform and Structural Adjustment Program (ERSAP), in 1991 and according to it, the Egyptian government increased electricity prices to about 74% of long-run marginal costs in 1994 and oil prices to 100% of international prices [2, 38, 63]. Moreover, economic growth has risen from 2.1% in 1991 to reach 4.5% in 1995, then 7.5% in 1998 [34].

Since all the variables seem to be integrated of order one, then investigating the long-run relationship between the variables using Johansen cointegration approach is possible.

Before proceeding with the second step, however, which focuses on employing Johansen maximum likelihood cointegration test, vector auto regression (VAR) model on the basis of Schwarz criterion (SC) and Akaike information (AIC) criterion has to be conducted to determine optimal lag length. The results are presented in Table 8 where the optimal lag length is 1 for model 1 model 2 based on Schwarz criterion (SC).

Table 8 Selection of lag length

Then, for the purpose of detecting cointegrating vectors of equations’ number, Johansen’s maximum likelihood multiple cointegration test is employed. The results for both model 1 and model 2 are presented in Table 9. As for model 1, and based upon trace statistics and maximum eigenvalue, one cointegrated equation at 5% significant level can be detected, thus, it can be concluded that electricity consumption and real output are co-integrated in model 1. Similarly, for model 2, it can be observed that based upon maximum eigenvalue and trace statistics, electricity consumption, and real value added for the three sectors (agriculture, industry, and services) are co-integrated.

Table 9 Results of Johansen cointegration test

Based upon the results of Johansen cointegration test and the existence of long-run relationship between the variables in model 1 and model 2, VECM is conducted for Eqs. 4, 5, 6, 7, 8, and 9. The direction of causality using standard Granger causality test and the results are reported in Tables 10 and 11 for model 1 and model 2, respectively. The long-run causal relationship is detected through the significance of the coefficient of error correction term by using t test, whereas Wald statistic determines the short-run causal relationship.

Table 10 Results of VECM for model 1
Table 11 Results of VECM for model 2

In model 1, the coefficient of the error term in Eqs. (4) and (5) is negative and statistically significant where the dependent variables are electricity consumption per capita and real output (real GDP per capita), respectively. This is an indication for the existence of long-run bidirectional causal relationship between electricity consumption and real output. Also, it is shown that the error correction term is − 0.07 in case of electricity consumption being the dependent variable, so it can be concluded that about 7% of the disequilibrium of electricity consumption per capita of the shock of previous year can adjust back in the current year to the long-run equilibrium. Additionally, the error correction term is − 0.017 in case of real output being the dependent variable, so it can be concluded that about 1% of the disequilibrium of real output of the shock of previous year can adjust back in the current year to the long-run equilibrium.

The results of Wald statistics also show the existence of a bidirectional causal relationship between electricity consumption and real output in the short run. These results are consistent with Wolde–Rufael [73] that also concluded a bidirectional causal relationship between electricity consumption and economic growth in Egypt but inconsistent with Sharaf [63] that concluded unidirectional causal relationship from economic growth to electricity consumption and Ozturk and Acaravci [53] that found a unidirectional causal relationship from electricity consumption to economic growth. As for the existence of a bidirectional causal relationship between electricity consumption and real output, it is consistent with the Egyptian case, as mentioned above that both real GDP per capita and electricity consumption per capita are increasing, and Egypt as a developing country faces challenges in achieving a high and sustainable economic growth rate so it depends on energy sources as a stimulus for accomplishing its development and thus electricity consumption is needed for achieving high economic growth. Moreover, the dependence of economic growth on electricity consumption may be manifested by a decreasing trend of GDP per unit of electricity consumption where it has decreased from 8.916 PPP dollar per KWh in 1990 to 7.6 PPP dollar per KWh in 2000 to reach 5.95 PPP dollar per KWh in 2014 [70], which may be an indication for the importance and the vital needs of more electricity consumption in achieving more economic growth.

Similarly, economic growth causes greater electricity consumption where some of the resources generated from economic growth are devoted towards investment in advanced technologies aiming at increasing sources of electricity generation.

As for model 2, the coefficient of the error term in Eq. (9) is negative and statistically significant at 1% level where the dependent variable is the real value added of services sector. This result indicates the existence of unidirectional long-run causality running from electricity consumption to real value added in the services sector, and it is shown that the error correction term is − 0.04, so it can be concluded that about 4% of the disequilibrium of value added of services sector of the shock of previous year can adjust back in the current year to the long-run equilibrium.

Moreover, unidirectional causality running from value added in industrial sector to electricity consumption is detected using Wald statistics, besides the existence of bidirectional causality between electricity consumption and services sector in the short run. This may be consistent with the continuous increase of share of electricity consumption by the services sector as compared to industrial sector, as represented above in Table 2; but no causal relationship between electricity consumption and real value added in the agricultural sector is detected.

Finally, diagnostic tests are presented at the bottom of Tables 10 and 11 to ensure the robustness of the obtained results.

Toda and Yamamoto augmented Granger causality is conducted for robustness check. The first step involves determining the order of integration for all variables and from Tables 6 and 7 and based on Phillips–Perron test and Perron–Vogelsang test, all the variables are integrated of order one. Thus, it can be detected that the maximum order of integration (dmax) is one. Additionally, the optimal lag length is 1, according to Schwarz criterion (SC) for both model 1 and model 2 based on results from Table 8. Thus, VAR order is (1 + 1) and the Eqs. (10), (11), (12), (13), (14) and (15) are estimated and then Granger causality is estimated and the results are presented in Table 12.

Table 12 Results of Toda and Yamamoto augmented Granger causality

The results of the Toda–Yamamota causal relationship are presented in Table 12. For model 1, there exists bidirectional causality between electricity consumption and real output, which is consistent with the results from VECM.

As for model 2, there exists bidirectional causality between real value added in the services sector and electricity consumption, unidirectional causality from real value added in the industrial sector to electricity consumption, and no causal relationship between real value added in the agricultural sector and electricity consumption and these results are consistent also with that of VECM in the short run. Therefore, it can be concluded that the results of Toda and Yamamoto augmented Granger causality confirm that of VECM and based upon these results, several recommendations can be suggested to policymakers.

Conclusions and policy implications

This study explores the causal relationship between electricity consumption and real output at the macro level and the sectoral levels in three main economic sectors, namely the agricultural, industrial, and services sectors in Egypt during the period 1971–2013. Johansen cointegration approach, vector error correction model, and Toda and Yamamoto Augmented Granger causality are employed to achieve the aim of the study.

Johansen multivariate cointegration approach confirms the existence of a long-run relationship between the variables at the macro level and the sectoral levels. In addition, results from conducting Ganger causality test through applying VECM and Toda and Yamamoto Augmented Granger causality show the existence of a feedback hypothesis at the macro level. At the sectoral levels, the neutrality hypothesis exists in case of the agricultural sector, whereas the feedback hypothesis and conservation hypothesis exist for the services sector and industrial sector, respectively.

Depending upon these results, several policy implications can be suggested for policymakers. The existence of bidirectional causality between electricity consumption and real output at the macro level and between electricity consumption and real value added in services sector makes it necessary for the government to design a sustainable plan aiming at providing efficient electricity supply, as it is vital for achieving economic growth. Moreover, electricity conservation policies and electricity efficient policies can be adopted aiming at reducing pollutants and avoiding environmental degradation, but any possible adverse effect on economic growth must be taken into consideration while accomplishing these policies.

Also, the existence of unidirectional causality from industrial output to electricity consumption and non-existence of causal relationship between agricultural output and electricity consumption could help policymakers in designing their conservation electricity policies without much fear of deteriorating real output in the industrial sector or agricultural one, and some efforts for energy conservation activities have been adopted by several Egyptian institutions as those applied in the industrial sector and led to about 25% of energy saving besides removing, gradually, the historical energy subsidies [11]. Although several energy conservation policies have been adopted in Egypt, still more efforts are needed. These can be accomplished through enhancing domestic and international competition to help in improving the quality of the products and decreasing the operating expenses, besides effective enforcement of the Environmental Law number 4 for the year 1994 to control polluted emissions and improve water and air quality [11]. Moreover, incentives for encouraging usage of electricity-efficient tools and efficient utilization of natural gas and full utilization of hydropower in an attempt to minimize the dependence on oil sources can be adopted [11]. The government also must encourage private-sector companies to invest into clean technologies and renewable energy resources, as Egypt has enormous renewable energy resources such as wind and solar energy but investing in them needs huge funds.