Introduction

Pakistan’s energy sector has faced many challenges over the last few decades. Some of the prominent challenges in front of the sector have been related to heavy reliance on oil and natural gas. Insufficient domestic energy production coupled with dependence on domestic energy sources, the low utilization of hydrological and coal resources, the financial fragility of power companies, and power production capacity constraints led to severe energy shortages (Pakistan Energy Year Book 2009; Ali and Nitivattananon 2012). In addition, increased dependence on expensive furnaces for thermoelectric production in conjunction with international oil price volatility had a detrimental effect on the cost of electricity and “sealed the fate” of a prolonged energy crisis in Pakistan (Wasti 2015).

The population of Pakistan is increasing and energy demand is also rising with the passage of time. Furthermore, the statistics of United State Energy Information Agency outlined the positive correlation between energy power supplies in achieving sustainable economic growth in developed, emerging, or developing economy (EIA 2018). Pakistan, a developing economy with a stretching population of over 200 million inhabitants, has high demand for electricity given its swift population increase (Shahbaz and Feridun 2012). This increase is due in part to household demand and in part to a growing manufacturing sector. The manufacturing sector also has a dominant role for its economy. Experiencing electricity shortages in manufacturing has had detrimental consequences for the entire economy. This is why we argue that the development of Pakistan’s energy sector requires preferential attention from the policymakers, if long-term growth and sustainability are to be achieved.

The present study does not claim to be the foremost to highlight the importance of energy as the lifeline for Pakistan’s economy (Ali 2015; Ullah et al. 2017; Komal and Abbas 2015; Shaikh et al. 2016; Zhang et al. 2018; Wang et al. 2018; Zafar et al. 2018; Hassan et al. 2018; Baz et al. 2019; Luqman et al. 2019; Khan et al. 2020). Energy has versatile form as electricity that fuels the production processes of all economic sectors. The energy failure in Pakistan has led the entire national economy to perform poorly from the past few years (Aized et al. 2018). In 1980, the consumption of energy in Pakistan was 24.8 million metric tons and during the same period, energy production ratio was 20.8 million metric tons of oil equivalents. The gap between consumption and production continues to grow, and in 2011, the total consumption of energy was 20.8 million metric tons, while the output was only 65.8 million metric tons (Imran and Amir 2015).

Some analysts attribute the persistent energy supply gap, and more specifically the electricity shortages, to electricity theft and abuses, such as excessively high electrical line losses and severe weather events. In addition, there were reports of corruption, mismanagement, and political controversy involving a project to build a giant power plant for electricity production (Zameer and Wang 2018). To address these problems and bridge the electricity supply gap, we must seek a better understanding of the root causes of the electricity crisis.

In addition to resolving the imminent electricity problems, Pakistan needs a comprehensive strategy for sustainable energy production and balanced economic development. Sustainability is now a common goal of many countries. Sustainable development requires strategies intended at firstly achieving a clean environment without influencing the economic growth and secondly increasing the reliance on energy security and renewable energy resources (Valasai et al. 2017; Malik 2012; Javid and Sharif 2016). The linkage among environmental sustainability and economic performance is tightly linked the association between energy consumption and economic growth (Pablo-Romero and De Jesús 2016; Alam et al. 2012; Narayan and Doytch 2017). Therefore, casting light on the connection amid economic growth and energy consumption in Pakistan will allow for improving the policies toward attaining the sustainable development.

The environmental policy launched in Pakistan in 2005 was directed at protecting, preserving, and restoring the environment in Pakistan for the improvement and quality of life and for supporting economic expansion. The main focus of the policy is on improving energy efficiency and resolving problems in the energy sector. The more distant goal of the policy is climate change and mitigation. The growth strategy focuses on both energy efficiency and the reduction of greenhouse gas emissions (Khan and Qayyum 2009). In the light of the global movement to combat climate change, the government of Pakistan believes that energy conservation and energy efficiency are viable strategies to fulfill the international anti-climate-change commitments (GOP 2005; Rafique and Rehman 2017).

Since the beginning of the millennium, Pakistan’s energy sector has received additional consideration in order to boost the growth and energy demand. However, simultaneously with the power shortages, the country has been experiencing a number of environmental challenges, such as inadequate water supply and sanitation, air pollution, and deforestation (GOP 2012). That is why there is a need of an integrated approach to solving all of these problems simultaneously.

Pakistan is a developing economy, which differs in construction and transference technologies from its developed counterparts. In addition, Pakistan is in possession of a variety of natural resources that have the potential to enable the country to produce its own energy at low cost. These resources include hydropower, solar energy, coal, and wind (Shaikh et al. 2016; Sheikh 2010; Farooq and Shakoor 2013). At present, this potential has not been fully utilized.

Various studies have focused on the requirements of Pakistan’s electricity sector (Government of Pakistan 2013; Rehman et al. 2018; Nawaz et al. 2013) and on residential electricity consumption in the country (Hussain et al. 2016). However, there are no studies covering the link between energy consumption in other sectors including agriculture, industry, power, and economic growth, and also researchers did not test the relationship of oil energy consumption with growth, nor did they examine energy consumption by sectors. This is where our study contributes to the literature.

Currently, the main sources from which electricity is produced are oil and gas. Both have been associated with excessive production costs and high output prices (Alter and Syed 2011). The variations in the cost of electricity led to high levels of revolving debt and higher subsidies for the thermal plants that depend on fossil fuels. These complemented by mismanagement, corruption, and limited budgets are the biggest challenges in front of Pakistan’s power generation (Valasai et al. 2017; Imran and Amir 2015). The complexity of the country’s energy policy is exacerbated by the fact that it is carried out beneath the canopy of multiple government agencies and ministries with imperfect or no coordination. In order to tackle the problem, there are disagreements and lack of responsibility on part of the involved agencies and institutions. When we add to that the rampant power theft and system inefficiencies, including more than 25 percent of transmission and distribution damages, we get the entire picture of the problems of the Pakistan’s energy sector (Jamil 2013). Government could also focus on bioenergy production by introducing microfinance programs. Renewable energy distributes the most sustainability and compatible substructure for energy. Modern technology utilization can enhance the sustainable energy production with comprising renewable sources such as hydropower, wind energy, and solar power. Many studies have been conducted to highlight the linkage of oil energy production, fossil fuel energy consumption, electrical energy, electricity access, resource rent, clean energy and environment, renewable power generation, and carbon dioxide emissions with economic growth to demonstrate the energy cause due to production and supply (Solarin and Ozturk 2016; Shaikh et al. 2016; Mirza and Kanwal 2017; Ahmed et al. 2017; Shahbaz et al. 2017; Rehman and Deyuan 2018a, b; Ashfaq and Ianakiev 2018; Nawaz and Alvi 2018; Rehman et al. 2018; Rehman et al. 2019; Chandio et al. 2019a; Chandio et al. 2019b; Naz et al. 2019; Dogan et al. 2019; Ozcan et al. 2019; Bekun et al. 2019a, 2019b; Rehman et al. 2020; Usman et al. 2020).

It is on the above premise highlighted that this study is conducted to demonstrate the oil and natural gas consumption in the households, agriculture, industry, power, fertilizers, and commercial sector in a holistic manner for the case of Pakistan for the period of 1980–2016. To drive down the above motivation, conventional unit root test of Augmented Dickey–Fuller (ADF) is used to check the stationarity properties of the outlined variables with trend and intercept. Subsequently, autoregressive distributed lag (ARDL) bounds testing approach and Granger causality test under vector error correction model (VECM) context in conjunction with an innovative accounting method, to explore the associations among the study variables, is used. Studies of this sort are worthwhile and timely for the study area and current body of knowledge, especially in the current way of crusade for alternative energy sources that is ecosystem friendly and safe.

Oil and natural gas energy consumption in Pakistan during 1980–2016

The extent to which Pakistan’s economy is negotiated by energy price shocks relay on oil share and the rate at which energy demand has been increasing parallel to economic growth (Economic Survey of Pakistan 2006; Zakaria and Noureen 2016). During 2006–2007 censuses, about 44% of Pakistan’s export earnings have been spent on imported oil. This is a sharp increase from 28% in 2004–2005. As a result of the large oil share on the country’s energy mix, any global oil price fluctuations directly affected national macroeconomic conditions. The imports of oil increased from 3.13% in 1990–1991 to 5.24% in 2005–2006 as the share of Pakistan’s gross domestic product. The decline in the energy concentration is measured to be the most promising way to reduce the susceptibility to oil (Malik et al. 2007; Bala and Chin 2018). The oil consumption in different sectors is showed in Fig. 1.

Fig. 1
figure 1

Oil consumption variable trends

Figure 1 indicates the oil consumption in different sectors including households, agriculture, industry, and power sector from 1980 to 2016. This time span data from 1980 to 2016 was taken from the Economic Survey of Pakistan.

Figure 2 represents the natural gas consumption in the households, fertilizers, and industry and commercial sectors respectively over study period.

Fig. 2
figure 2

Natural gas consumption variable trends

Natural gas is a dominant and an essential energy source that is used to produce electricity. To meet the Kyoto Protocol CO2 targets, many countries explore the possibilities of moving to natural gas as an alternative to oil. Developing countries like Pakistan are unlikely to entice investment to build expensive new energy infrastructure, so natural gas is seen as a more affordable substitute for oil-based energy. The natural gas accounts for approximately about 47% of key demand in the country. Oil and natural gas are representing 20% and 50% of the total energy consumption and are major foundations of energy in Pakistan, respectively (Apergis and Payne 2010; Pakistan Energy Year Book 2005; Shahbaz et al. 2014). Some research studies are conducted in Pakistan and in other countries to demonstrate the economic growth conjunction with energy policy, energy consumption, environmental challenges, coal consumption, and renewable energy production (Kumar and Shahbaz 2012; Khan and Qayyum 2009; Imran and Siddiqui 2010; Rafindadi and Ozturk 2015; Kamran 2018; Balsalobre-Lorente et al. 2019; Rauf et al. 2018; Bekun et al. 2019b; Udi et al. 2020; Rauf et al. 2020). The natural gas energy consumption in different sectors is showed in Fig. 2.

Methodology and data

Data sources

Time series data was used in this paper to explore the association amid variables, and the range of data is from 1980 to 2016. The variables used in this study in terms of oil consumption in various sectors are gross domestic product (annual), oil consumption in households (tons), oil consumption in agriculture sector (tons), oil consumption in industry (tons), and oil consumption in power sector (tons). Similarly, variables used for gas energy consumptions are gas consumption in households (mm cft), gas consumption in fertilizers (mm cft), gas consumption in industry (mm cft), and gas consumption in commercial (mm cft). The data major sources are World Development Indicators (WDI) and Economic Survey of Pakistan.

Econometric model specification

To demonstrate the association between the variables, we will specify the model separately for both oil and natural gas consumption.

  1. a.

    Model specification for oil consumption in various sectors

For oil energy consumption in households, agriculture, industry, and power sector, the following model is specified as:

$$ {GDP}_t=f\Big({OHH}_t,{OAGR}_t,{OINDUS}_t,{OPOW}_t $$
(1)

In Eq. (1), GDPt indicates the gross domestic product, OHHt represents the oil consumption in households, OAGRt indicates the oil consumption in agriculture, OINDUSt represents the oil consumption in the industry sector, and POWt indicates the oil consumption in power sector. We can also write Eq. (1) as:

$$ {GDP}_t={\gamma}_0+{\gamma}_1{OHH}_t+{\gamma}_2{OAGR}_t+{\gamma}_3{OINDUS}_t+{\gamma}_4{OPOW}_t+{\mu}_t $$
(2)

Equation (2) can also be written as in its logarithm form as follows:

$$ {lnGDP}_t={\gamma}_0+{\gamma}_1{lnOHH}_t+{\gamma}_2{lnOAGR}_t+{\gamma}_3\mathit{\ln}{OINDUS}_t+{\gamma}_4{lnOPOW}_t+{\mu}_t $$
(3)

Equation (3) is the log-linear form of variables, where t demonstrates the time dimension, μt is error term, and model coefficients γ1 to γ4 signify the long-run elasticity.

  1. b.

    Model specification for gas consumption various sectors

For gas consumption in the households, fertilizers, industries and commercial sector, the following model is specified as:

$$ {GDP}_t=f\Big({GHH}_t,{GFER}_t,{GINDUS}_t,{GCOM}_t $$
(4)

In Eq. (4), GDPt indicates the gross domestic product, GHHt represents the gas consumption in households, GFERt indicates the gas consumption in fertilizers, GINDUSt represents the gas consumption in industry sector, and GCOMt indicates the gas consumption in commercial sector. We can also write Eq. 4 as:

$$ {GDP}_t={\phi}_0+{\phi}_1{GHH}_t+{\phi}_2{GFER}_t+{\phi}_3{GINDUS}_t+{\phi}_4{GCOM}_t+{\varepsilon}_t $$
(5)

The log-linear model can be specified by employing natural logarithm to Eq. (5):

$$ {lnGDP}_t={\phi}_0+{\phi}_1{lnGHH}_t+{\phi}_2{lnGFER}_t+{\phi}_3\mathit{\ln}{GINDUS}_t+{\phi}_4{lnGCOM}_t+{\varepsilon}_t $$
(6)

Equation (6) shows the logarithmic form of variables, where t is the time dimension, εt demonstrates the error term, and the model coefficients ϕ1 to ϕ4 indicate the long-run elasticity.

Estimation of empirical analysis

Stationarity procedure

Autoregressive distributed lag (ARDL) bounds testing approach does not require the stationarity of the variables through unit root test. We started the analysis with an Augmented Dickey and Fuller (1979) unit root test, and the ARDL approach is invalid in the second order. None of variables are integrated of second order. Therefore, we will perform ADF unit root test below in Eq. (7):

$$ \Delta {Y}_t={\alpha}_{{}^{\circ}}+{\beta}_{{}^{\circ}}T+{\beta}_1{Y}_{t-1}+\sum \limits_{i=1}^m{\alpha}_1\Delta {Y}_{t-1}+{\mu}_t $$
(7)

In this equation, Y is the variable that will be tested for unit root, T is the linear trend, Δ is the first difference, the time subscript is denoted by t, μt is a normally distributed stochastic error, and m represents the number of white noise residuals.

ARDL model specification and cointegration test

The association amid study variables can be illustrated through long-run and short-run and used to examine the co-movement amid dependent and independent variables. ARDL model was first estimated by Pesaran and Shin (1998) and Pesaran et al. (2001). Cointegration test techniques was employed regardless variables orders of zero, one, and furthermore in the order of two existence. Generally, ARDL model can be specified amid variables for oil consumption as:

$$ \Delta {lnGDP}_t={\vartheta}_0+\sum \limits_{i=1}^C{\vartheta}_{1i}\Delta {lnGDP}_{t-i}+\sum \limits_{i=1}^V{\vartheta}_{2i}\Delta {lnOHH}_{t-i}+\sum \limits_{i=1}^B{\vartheta}_{3i}\Delta {lnOAGR}_{t-i}+\sum \limits_{i=1}^X{\vartheta}_{4i}\Delta {lnOINDUS}_{t-i}+\sum \limits_{i=1}^Q{\vartheta}_{5i}\Delta {lnOPOW}_{t-i}+{\psi}_1{lnGDP}_{t-1}+{\psi}_2{lnOHH}_{t-1}+{\psi}_3{lnOAGR}_{t-1}+{\psi}_4{lnOINDUS}_{t-1}+{\psi}_5{lnOPOW}_{t-1}+{\mu}_t $$
(8)

In Eq. (8), Δ represents the difference operator and C, V, B, X, and Q indicate the lags order. The co-movement of the long-run analysis among the interest of the variables relies on the estimation of F statistic. The analysis of long-run linkage is inspected with the autoregressive distributed lag (ARDL) depiction and specified as amid the variables:

$$ \Delta {lnGDP}_t={\phi}_0+\sum \limits_{i=1}^N{\phi}_{1i}\Delta {lnGDP}_{t-i}+\sum \limits_{i=1}^G{\phi}_{2i}\Delta {lnOHH}_{t-i}+\sum \limits_{i=1}^B{\phi}_{3i}\Delta {lnOAGR}_{t-i}+\sum \limits_{i=1}^E{\phi}_{4i}\Delta {lnOINDUS}_{t-i}+\sum \limits_{i=1}^X{\phi}_{5i}\Delta {lnOPOW}_{t-i}+{\mu}_t $$
(9)

In Eq. (9), N, G, B, E, and X show the lags order. Similarly, the analysis of short-run among study variables can be demonstrated by following unrestricted error correction model (UECM) and specified in Eq. (10):

$$ \Delta {lnGDP}_t={\alpha}_0+\sum \limits_{i=1}^Z{\alpha}_{1i}\Delta {lnGDP}_{t-i}+\sum \limits_{i=1}^S{\alpha}_{2i}\Delta {lnOHH}_{t-i}+\sum \limits_{i=1}^F{\alpha}_{3i}\Delta {lnOAGR}_{t-i}+\sum \limits_{i=1}^D{\alpha}_{4i}\Delta {lnOINDUS}_{t-i}+\sum \limits_{i=1}^T{\alpha}_{5i}\Delta {lnOPOW}_{t-i}+{\alpha ECM}_{t-1}+{\mu}_t $$
(10)

Equation (10) shows the short-run linkage amid study variables and Z, S, F, D, and T denote the lags order.

Repeating the econometric analysis for the natural gas consumption with economic growth in several sectors, the ARDL model can be specified as:

$$ \Delta {lnGDP}_t={\partial}_0+\sum \limits_{i=1}^P{\partial}_{1i}\Delta {lnGDP}_{t-i}+\sum \limits_{i=1}^H{\partial}_{2i}\Delta {lnGHH}_{t-i}+\sum \limits_{i=1}^J{\partial}_{3i}\Delta {lnGFER}_{t-i}+\sum \limits_{i=1}^Z{\partial}_{4i}\Delta {lnGINDUS}_{t-i}+\sum \limits_{i=1}^C{\partial}_{5i}\Delta {lnGCOM}_{t-i}+{\beta}_1{lnGDP}_{t-1}+{\beta}_2{lnGHH}_{t-1}+{\beta}_3{lnGFER}_{t-1}+{\beta}_4{lnGINDUS}_{t-1}+{\beta}_5{lnGCOM}_{t-1}+{\varepsilon}_t $$
(11)

In this equation, Δ represents the difference operator, and P, H, J, Z, and C indicate order of lags. Long-run estimation among study variables is given as in Eq. (12):

$$ \Delta {lnGDP}_t={\lambda}_0+\sum \limits_{i=1}^B{\lambda}_{1i}\Delta {lnGDP}_{t-i}+\sum \limits_{i=1}^S{\lambda}_{2i}\Delta {lnGHH}_{t-i}+\sum \limits_{i=1}^H{\lambda}_{3i}\Delta {lnGFER}_{t-i}+\sum \limits_{i=1}^Q{\lambda}_{4i}\Delta {lnGINDUS}_{t-i}+\sum \limits_{i=1}^U{\lambda}_{5i}\Delta {lnGCOM}_{t-i}+{\varepsilon}_t $$
(12)

In Eq. (12), B, S, H, Q, and U represent the lags order. Furthermore, the short-run analysis in the context of natural gas consumption amid study variables can be illustrated by following unrestricted error correction model (UECM) and specified in Eq. (13):

$$ \Delta {lnGDP}_t={\delta}_0+\sum \limits_{i=1}^T{\delta}_{1i}\Delta {lnGDP}_{t-i}+\sum \limits_{i=1}^R{\delta}_{2i}\Delta {lnGHH}_{t-i}+\sum \limits_{i=1}^E{\delta}_{3i}\Delta {lnGFER}_{t-i}+\sum \limits_{i=1}^W{\delta}_{4i}\Delta {lnGINDUS}_{t-i}+\sum \limits_{i=1}^Q{\delta}_{5i}\Delta {lnGCOM}_{t-i}+{\alpha ECM}_{t-1}+{\varepsilon}_t $$
(13)

In Eq. (13), T, R, E, W, and Q demonstrate the lags order.

Granger causality test under vector error correction model context

The actions formalized above examine only for the presence of long-run and short-run nexus among the subjected variables under autoregressive distributed lag (ARDL) bound testing approach, where it does not direct the tendency of causality among study variables. Hence, as soon as the cointegrating bonding (if any) is extant, the succeeding phase is to scrutinize the Granger’s causality examination in those variables. This test observes the contributory effect amid variables by investigating for their expectedness grounded on historical and current values. With the intention of identifying the path of causality, we will evaluate the short-run Granger causality via vector error correction model (VECM) context (Engle and Granger 1987). If the study variables in this regard cointegrated in long-run nexus under ARDL or VECM of if any, then error correction term (ECT) examined in the short run. The model amid oil consumption, natural gas consumption, and economic growth can be embodied by:

$$ \left[\begin{array}{c}{\Delta GDP}_t\\ {}\Delta {OHH}_t\\ {}\Delta {OAGR}_t\\ {}\Delta {OINDUS}_t\\ {}\Delta {OPOW}_t\end{array}\right]=\left[\begin{array}{c}{\pi}_1\\ {}{\pi}_2\\ {}{\pi}_3\\ {}{\pi}_4\\ {}{\pi}_5\end{array}\right]\kern0.5em +\kern0.5em \left[\begin{array}{c}{\partial}_{11,1}{\partial}_{12,1}{\partial}_{13,1}{\partial}_{14,1}{\partial}_{15,1}\\ {}{\partial}_{21,1}{\partial}_{22,1}{\partial}_{23,1}{\partial}_{24,1}{\partial}_{25,1}\\ {}{\partial}_{31,1}{\partial}_{32,1}{\partial}_{33,1}{\partial}_{34,1}{\partial}_{35,1}\\ {}{\partial}_{41,1}{\partial}_{42,1}{\partial}_{43,1}{\partial}_{44,1}{\partial}_{45,1}\\ {}{\partial}_{51,1}{\partial}_{52,1}{\partial}_{53,1}{\partial}_{54,1}{\partial}_{55,1}\end{array}\right] $$
$$ \left[\begin{array}{c}{\Delta GDP}_{t-1}\\ {}\Delta {OHH}_{t-1}\\ {}\Delta {OAGR}_{t-1}\\ {}\Delta {OINDUS}_{t-1}\\ {}\Delta {OPOW}_{t-1}\end{array}\right]\kern0.75em +\dots +\kern0.75em \left[\begin{array}{c}{\partial}_{11,\mathrm{k}}{\partial}_{12,\mathrm{k}}{\partial}_{13,\mathrm{k}}{\partial}_{14,\mathrm{k}}{\partial}_{15,\mathrm{k}}\\ {}{\partial}_{21,\mathrm{k}}{\partial}_{22,\mathrm{k}}{\partial}_{23,\mathrm{k}}{\partial}_{24,\mathrm{k}}{\partial}_{25,\mathrm{k}}\\ {}{\partial}_{31,\mathrm{k}}{\partial}_{32,\mathrm{k}}{\partial}_{33,\mathrm{k}}{\partial}_{34,\mathrm{k}}{\partial}_{35,\mathrm{k}}\\ {}{\partial}_{41,\mathrm{k}}{\partial}_{42,\mathrm{k}}{\partial}_{43,\mathrm{k}}{\partial}_{44,\mathrm{k}}{\partial}_{45,\mathrm{k}}\\ {}{\partial}_{51,\mathrm{k}}{\partial}_{52,\mathrm{k}}{\partial}_{53,\mathrm{k}}{\partial}_{54,\mathrm{k}}{\partial}_{55,\mathrm{k}}\end{array}\right] $$
(14)
$$ \left[\begin{array}{c}{\Delta GDP}_{t-k}\\ {}\Delta {OHH}_{t-k}\\ {}\Delta {OAGR}_{t-k}\\ {}\Delta {OINDUS}_{t-k}\\ {}\Delta {OPOW}_{t-k}\end{array}\right]+\kern0.5em \left[\begin{array}{c}{\theta}_1\\ {}{\theta}_2\\ {}{\theta}_3\\ {}{\theta}_4\\ {}{\theta}_5\end{array}\right]{ECT}_{t-1}+\left[\begin{array}{c}{\lambda}_1\\ {}{\lambda}_2\\ {}{\lambda}_3\\ {}{\lambda}_4\\ {}{\lambda}_5\end{array}\right] $$
$$ \left[\begin{array}{c}{\Delta GDP}_t\\ {}\Delta {GHH}_t\\ {}\Delta {GAGR}_t\\ {}\Delta {GINDUS}_t\\ {}\Delta {GCOM}_t\end{array}\right]=\left[\begin{array}{c}{\pi}_1\\ {}{\pi}_2\\ {}{\pi}_3\\ {}{\pi}_4\\ {}{\pi}_5\end{array}\right]\kern0.5em +\kern0.5em \left[\begin{array}{c}{\partial}_{11,1}{\partial}_{12,1}{\partial}_{13,1}{\partial}_{14,1}{\partial}_{15,1}\\ {}{\partial}_{21,1}{\partial}_{22,1}{\partial}_{23,1}{\partial}_{24,1}{\partial}_{25,1}\\ {}{\partial}_{31,1}{\partial}_{32,1}{\partial}_{33,1}{\partial}_{34,1}{\partial}_{35,1}\\ {}{\partial}_{41,1}{\partial}_{42,1}{\partial}_{43,1}{\partial}_{44,1}{\partial}_{45,1}\\ {}{\partial}_{51,1}{\partial}_{52,1}{\partial}_{53,1}{\partial}_{54,1}{\partial}_{55,1}\end{array}\right] $$
$$ \left[\begin{array}{c}{\Delta GDP}_{t-1}\\ {}\Delta {GHH}_{t-1}\\ {}\Delta {GAGR}_{t-1}\\ {}\Delta {GINDUS}_{t-1}\\ {}\Delta {GCOM}_{t-1}\end{array}\right]\kern0.75em +\dots +\kern0.75em \left[\begin{array}{c}{\partial}_{11,\mathrm{k}}{\partial}_{12,\mathrm{k}}{\partial}_{13,\mathrm{k}}{\partial}_{14,\mathrm{k}}{\partial}_{15,\mathrm{k}}\\ {}{\partial}_{21,\mathrm{k}}{\partial}_{22,\mathrm{k}}{\partial}_{23,\mathrm{k}}{\partial}_{24,\mathrm{k}}{\partial}_{25,\mathrm{k}}\\ {}{\partial}_{31,\mathrm{k}}{\partial}_{32,\mathrm{k}}{\partial}_{33,\mathrm{k}}{\partial}_{34,\mathrm{k}}{\partial}_{35,\mathrm{k}}\\ {}{\partial}_{41,\mathrm{k}}{\partial}_{42,\mathrm{k}}{\partial}_{43,\mathrm{k}}{\partial}_{44,\mathrm{k}}{\partial}_{45,\mathrm{k}}\\ {}{\partial}_{51,\mathrm{k}}{\partial}_{52,\mathrm{k}}{\partial}_{53,\mathrm{k}}{\partial}_{54,\mathrm{k}}{\partial}_{55,\mathrm{k}}\end{array}\right]\kern0.75em $$
(15)
$$ \left[\begin{array}{c}{\Delta GDP}_{t-k}\\ {}\Delta {GHH}_{t-k}\\ {}\Delta {GAGR}_{t-k}\\ {}\Delta {GINDUS}_{t-k}\\ {}\Delta {GCOM}_{t-k}\end{array}\right]+\kern0.5em \left[\begin{array}{c}{\theta}_1\\ {}{\theta}_2\\ {}{\theta}_3\\ {}{\theta}_4\\ {}{\theta}_5\end{array}\right]{ECT}_{t-1}+\left[\begin{array}{c}{\lambda}_1\\ {}{\lambda}_2\\ {}{\lambda}_3\\ {}{\lambda}_4\\ {}{\lambda}_5\end{array}\right] $$

For oil and natural gas consumption, granger causality under vector error correction model has been demonstrated in Eqs. (14) and (15), where Δ indicates the symbolization as a difference operator, and residual term represented with λ; however, error correction term (ECT) stances the long-run association assessment and θ, the coefficient of error (ECTt − 1) term in Eq. (14). If θ is arithmetically significant and negative, then it designates that the long-run underlying nexus is associated amid variables by employing t statistics. To examine the short-run granger contributory linkages, we pointed toward the F statistic grounded on Wald statistics. For instance, 휕12, k ≠ 0∀k suggests that oil consumption in households has granger cause toward gross domestic product.

Empirical results and discussion

Descriptive statistics results

Descriptive statistics results of oil consumption in households, agriculture, and power sector and in terms of gas consumption in households, fertilizer, industry, and commercial sector are interpreted in Table 1. Descriptive statistics result show that all variables are normally distributed and estimated by the Jarque-Bera statistics and probability values.

Table 1 Descriptive statistics

Augmented Dickey–Fuller unit root test results

Augmented Dickey–Fuller (ADF) unit root test results are reported in Table 2.

Table 2 Augmented Dickey–Fuller unit root test results (trend and intercept)

Cointegration test results

The cointegration test results with ARDL bounds test are showed in Table 3.

Table 3 ARDL bounds test for cointegration results

Table 3 demonstrates the presence of a cointegration linkage amid variables at the level of 10%, 5%, and 1%. Furthermore, Tables 4 and 5 illustrate the results of the Johansen cointegration test (Johansen and Juselius 1990) with trace statistics and maximum eigenvalue.

Table 4 Johansen cointegration test results (trace)
Table 5 Johansen cointegration test results (maximum eigenvalue)

Max-eigenvalue test indicates 2 cointegrating eqn(s) at the 0.05 level; * denotes rejection of the hypothesis at the 0.05 level; **MacKinnon-Haug-Michelis (1999) p values

Table 4 and Table 5 represent the Johansen cointegration test results amid the study variables.

Results evidence of long-run

The long-run evidence results for oil consumption and gas consumption in the households, agriculture, industries, power sector, fertilizers, and commercial sector are illustrated in Table 6.

Table 6 Results of long-run analysis

The regression coefficients of the model reveal that oil consumption in the households’ and industry sector is drastically negatively related to economic growth. It has a coefficient of − 0.594407 and − 0.001983 meaning that oil consumption in the households’ and industry has a non-significant influence to economic growth. On the contrary, the oil consumption in the agriculture and power sector shows a significant long-run linkage with economic growth with coefficients of 16.667873 and 7.329332, respectively. Therefore, the oil consumption in the power and agriculture sectors is significantly connected to the economic growth in the long-run. Oil imports in the developing countries are severely exaggerated by increasing oil prices due to variations in the oil prices. In addition, the developed and advanced economies have a higher tax share in the oil. The interruption in the tax share caused when prices of oil rise can alleviate this oil price tremor (Chaudhry et al. 2012). Sustainable energy production and supply is an imperative factor in the sustained economic performance for any society. Pakistan belongs to those developing countries that are facing energy crisis. The country’s current and past government has premeditated numerous energy strategies to meet energy needs but fails to fill this gap (Aized et al. 2018).

Similarly, the natural gas consumption by the households, agriculture, and industry sector demonstrated a positive long-run association with economic growth. Natural gas consumption at 1% increase by households upsurges the economic growth by 0.684%, which shows a 1% increase in natural gas consumption for fertilizer production and for industrial activities increases the economic growth respectively by 0.16% and by 1.466%. Shahbaz et al.’s (2013) study on natural gas consumption and economic growth also revealed the analysis of long-run conjunction among the variables (Shahbaz et al. 2013). However, on the contrary, 1% increases in the natural gas consumption by the power sector diminutions the economic growth − 3.235%.

Figure 3 reveals the dynamic linkage among the study variables for both oil and gas consumption in various sectors. Long-run dynamic association amid variables demonstrate that oil consumption in the household has negative linkage but gas consumption in household showed a positive linkage with economic growth. Oil consumption in the agriculture sector and gas consumption in the fertilizers showed a positive association with economic growth. Similarly, oil consumption in the industry sector has negative association whiles gas consumption in the industry exposed a positive linkage. Furthermore, oil consumption in the power sector and gas consumption in the commercial sectors has positive linkage with economic growth.

Fig. 3
figure 3

Long-run dynamics linkage among variables

Results evidence of short run

Table 7 demonstrates the results evidence of short-run.

Table 7 Results of short-run analysis

The estimated model shows the short-run dynamics, and the R-squared value is about 0.53, which means 0.53 variations in the reliant variable clarified by the independent variables. The Durbin-Watson statistic value is 1.907, which is not showing actual value of Durbin-Watson and demonstrates the autocorrelation of the non-appearance of any autocorrelation, but it is sufficient to illustrate the existence. The short-run analysis results show that oil consumption by the agricultural and power sectors has positive linkage with economic growth. At the same time, oil consumption by the households and industry sectors does not show evidence of significant short-run relations with economic growth. The energy policy of Pakistan should be directed at efficient use of oil and natural gas, extraction infrastructure, and technology development. Solar electricity and bioenergy are other important alternatives. In addition, bioenergy has emerged as a viable source of renewable energy and also has a tremendous potential to meet the country’s energy needs (Shahbaz et al. 2014; Kamran 2018; Irfan et al. 2020).

When the natural gas consumption is analyzed, the short-run dynamics show that the model explains about 53% variations in the economic growth. The value of the DW statistic is 2.28 which demonstrate the non-existence of autocorrelation. The coefficients reveal a positive short-run connection of natural gas consumption by households and industry with economic growth, and a negative relationship of the natural gas consumption by the fertilizers production and power sectors with economic growth.

Figure 4 illustrates the dynamic association of variables through short-run analysis. Results exposed that oil consumption in household has negative association with economic growth and gas consumption in household demonstrate a significant linkage to economic growth in Pakistan. Similarly, oil consumption in agriculture sector has positive linkage while gas consumption in fertilizers has negative linkage with economic growth. Results also exposed that oil consumption in industry sector have negative linkage while gas consumption in industry sector has positive linkage with economic growth. Furthermore, short-run analysis also exposed that oil consumption in power sector has positive linkage while gas consumption in commercial sector negative linkage with economic growth.

Fig. 4
figure 4

Short-run dynamics linkage among variables

Diagnostic and stability tests results

Table 8 shows the stability and diagnostic test.

Table 8 Stability and diagnostic tests results

The stability and diagnostic test results for oil consumption in different sectors have probability values for serial correlation and heteroscedasticity at 0.5216 and 0.7321. Similarly, the results for the gas consumption in different sectors have probability values for serial correlation and heteroscedasticity at 0.1671 and 0.8121 respectively.

Structural stability test

Figures 5, 6, 7, and 8 illustrate the graph of CUSUM and CUSUM square at 5% level of significance and point to stable the long-run and short-run limitations. It approves the long-run and short-run limits stability.

Fig. 5
figure 5

Plot of CUSUM test (oil)

Fig. 6
figure 6

Plot of CUSUM of squares test (oil)

Fig. 7
figure 7

Plot of CUSUM test (gas)

Fig. 8
figure 8

CUSUM of squares test (gas)

Granger causality test for short-run under vector error correction model

Table 9 reports the results of the Granger causality test for short-run under vector error correction model (VECM).

Table 9 Results of VECM Granger causality tests

The presence of cointegration furnishes us an opportunity to measure the directional casual-based association between the study variables. Since autoregressive distributed lag (ARDL) bound testing model has been exerted and displayed that there is long-run cointegration existed in the variables, meanwhile, short-run granger causality under vector error correction model (VECM) may produce sufficient results to defining conclusion for strong future policy implications. Furthermore, evidences at hand in model for oil consumption confirmed the uni-directional linkages of oil consumption in agriculture and industrial sector with economic growth in Pakistan. Similarly, oil consumption in agriculture has one causation toward oil utilization for power in Pakistan. Additionally, the bi-directionally nexus was established amid oil consumption in the agriculture sector and oil utilization in the household sector.

Similarly, gas consumption investigation model demonstrated that gas consumption for household purposes and fertilizer production is significantly causative for gas commercialization. Moreover, gas utilization in household causatively in one way impacting gas consumption in fertilizers companies and industrial sectors. Thus, gas in household evidently indicated that government should initiate more gas-intensive projects that will mitigate the challenges of gas shortages and deliver it easily and cheaply to every household at their doorstep.

Impulse response function

The impulse response function of oil energy consumption in the model results stipulate in Fig. 9, where at introductory, the reaction of gross domestic product for itself. In the first, three periods would have a decline but after that an upward trend may prevail till the next 60th period. Similarly, other variables will also have same trend till the end of 60th periods. Similarly, the gas consumption in the model demonstrates variations for gross domestic product, and other variables in the first 10 periods were not too much volatile, but after that, highly oscillated sample depiction will revert around its mean value (0) till 10+ to 10− in Fig. 10. Subsequently, after 55 periods, all model partner variables will reduce their volatility and start a normalizing trend.

Fig. 9
figure 9

Impulse response function (IRF) for oil

Fig. 10
figure 10

Impulse response function (IRF) for gas

Variance decomposition analysis

Figure 11 demonstrates that gross domestic product (GDP) shows declining trend in the first 5 periods and then flat at 80% end of 60th period, while the other variables oil consumption in power sector (OPOW), oil consumption in industry (OINDUS), oil consumption in households (OHH), and oil consumption in agriculture sector (OAGR) would have an upward tendency and then will prevail smooth till the 60th period. On the other hand, Fig. 12 identifies that gross domestic product (GDP) will have sharp declining trend from 100 to 80% in the first 10 periods. On the contrary, other variables would specify upward drive from 0 to 20% in the first 10 periods. Likewise, gas consumption in industry sector (GINDUS) reaches up to 58% and sustains 5 to 45% at the 60th period. Hence, we may treasure the implication that oil and gas consumption in Pakistan ought to be the top most pivotal landscapes for economic growth and its sustainability.

Fig. 11
figure 11

Variance decomposition analysis (VDA) for oil

Fig. 12
figure 12

Variance decomposition analysis (VDA) for gas

Conclusion and policy implications

This country-specific study focuses on exploring the nexus between oil and natural gas consumption and its linkage with economic growth in Pakistan for the period of 1980–2016. The unit root test of Augmented Dickey–Fuller (ADF) was used to check the variables stationarity, while an autoregressive distributed lag (ARDL) bounds testing approach to cointegration was applied that accounts for the sectors of oil and natural gas consumption: households, industry, agriculture, power, fertilizers, and commercial. We established dynamic causality relationships under vector error correction model (VECM) context and autoregressive distributed lag (ARDL) bounds testing model among the variables and comment on their long-run and short-run relationships.

According to the results obtained, the oil consumptions by the agriculture and power sector have a positive and significant impact on the economic growth of Pakistan. Similarly, natural gas consumption by households, fertilizers, and industry sector also has a significant relationship with economic growth. At the same time, oil consumption by households and industry sector has a negative linkage with economic growth and natural gas consumption by the commercial sector has a negative effect on economic growth.

This study recommends that the government of Pakistan must improve energy policies and increase financial support to boost oil and natural gas energy production. It is important to explore the advantages of natural gas because the country is rich in natural gas, which is a viable and cheap alternative to the oil-generated energy. Similar to the exploitation of natural gas, other energy sources like hydroelectric, nuclear, and wind generators could be produced. Natural gas remains the cheapest source of energy to meet the energy demand of the country. Consequently, the key aim of sustainable energy is to increase the use of natural gas, to boost the efficacy of oil and natural gas, and to add to these initiatives a parallel investment in clean and renewable energy production. Although natural gas and crude oil will continue to be the most dominant energy sources for the next few years, they will dominate the production and future of renewable energy that is expected to secure them.