Introduction

A dream of a developed economy cannot achieve without apt growth and development of industries in a country. Energy and its resources act as a spirit in the industrial and economic development of the state. Pakistan is struggling to shift from the agriculture economy to industrial economy, and this struggle requires sufficient energy resources to meet continuously increasing demand of energy. The increasing trend of energy utilization in traditional ways is the fundamental cause of high environmental pollution index in Pakistan. It is a common phenomenon that high energy consumption causes carbon emission, which affects the climate adversely. Global Climate Risk Index reported that in the list of the countries which are adversely affected by climate change, Pakistan is at the number seven (GCR-Index 2018). The evidence of worst climate change has been experienced in Karachi (Pakistan, summer 2015) in the form of 1200 deaths due to heatwaves (Cheema 2015). Through the National Environmental Policy (NEP), Pakistan has undertaken policy reforms and implemented them to control environmental degradation in 2015. Even though Pakistan is contributing around 0.4% carbon emission in the world’s total pollution which is growing up gradually (Shahzad et al. 2017). On the other hand, the economic growth of Pakistan has adversely affected by the energy crisis which is still going on. In this scenario, the role of financial and stock markets in the economic development of Pakistan cannot be ignored (Komal and Abbas 2015). According to Bloomberg, Pakistan’s financial sectors are showing promising signs to maintain its growth and small equity markets in the coming few yearsFootnote 1.

Although a plethora of empirical work focuses on the nexus of growth-energy-greenhouse gases (GHGs) emissions, however, still their results are inconclusive (Wolde-Rufael 2009; Alshehry and Belloumi 2015; Hao et al. 2016; Amri 2018; Naz et al. 2019; Ganda 2019). Several scholars have explored nexus between real income, economic growth, and energy consumption in EKC framework (Bello et al. 2018; Dong et al. 2018; Seetanah et al. 2019; Chen et al. 2019). Many scholars, for example Saud et al. (2019), Sarkodie (2018), Jula et al. (2015), Haseeb et al. (2018), and Hanif et al. (2019), confirm the hypothesis of EKC between real income and GHGs emissions while some other studies do not confirm it (Al-mulali et al. 2015; Dong et al. 2016; Abid 2017; Saidi and Ben 2017; Liu et al. 2017).

Many latest studies have exposed that environmental pollution is significantly associated with financial development. Adams and Klobodu (2018) postulate that financial development is an important indicator of environmental degradation. Guo et al. (2019) posit that stock trading volume and financial development efficiency accelerate to carbon emission and Esmaeilpour Moghadam and Dehbashi (2018) propose that financial development significantly contributes to environmental degradation. However, De Gregorio and Guidotti (1995) advocate that financial development affect economic growth negatively as in their investigation in Latin America, financial development significantly reduce economic growth. Similarly, Zafar et al. (2019) also found a negative association between financial development and CO2 emission. They advocate that financial development enhances environmental quality by encouraging investments in environmental projects (Tamazian et al. 2009; Jalil and Feridun 2011). In addition, a study on 129 countries, Al-mulali et al. (2015) conclude that (in the short run and long run) financial development enhances the environmental quality in the cases when (1) providing loans, (2) projects related to energy saving are encouraged, and (3) projects of renewable energy are appreciated. In contrast to the above discussion, Ganda (2019) and Hao et al. (2016) found mix findings between financial development and environmental quality.

The literature also depicts the evidence of investigations on the joint effect of energy consumption and financial development on the environment (Jalil and Feridun 2011; Ozturk and Acaravci 2013; Shahbaz et al. 2013; Destek and Sarkodie 2019; Zafar et al. 2019). In the case of China, Jalil and Feridun (2011) investigate the causes of environmental pollution by taking a joint impact on energy consumption, economic growth, and financial development on pollution. Their findings confirm the hypothesis of EKC and reveal that real income, energy consumption, and trade openness mediate the relationship between financial development and environmental quality. In addition, they argue that financial development decreases environmental pollution. Another study advocates that long-run relationship exists among energy consumption, economic growth, financial development, trade openness, and CO2 emissions in the context of Indonesia (Shahbaz et al. 2013). On the other hand, Ozturk and Acaravci (2013) do not find evidence that financial development influences the carbon emission in the long run in the case of Turkey. To measure the financial development, they used domestic credits (% age of GDP) provided to the private sector. According to Zafar et al. (2019), financial development and globalization enhance the environmental quality while energy consumption accelerates to environmental degradation through high carbon emission in OECD countries.

From above-mentioned literature, it is clear that the financial sector’s development augments the demand for energy. It is beyond discussion that financial development is possible without increasing energy demand. Therefore, probing the empirical nexuses (with available data, variables, and contemporary econometric approaches) between financial development, energy consumption, and GHGs emissions is an attracting area of interest for the researchers nowadays. The findings of the present empirical analysis can be precious for the practitioners and policymakers to make better decisions. So, it is clear that the financial sector’s development leads to high energy demand which ultimately generates high GHGs emission through fossil fuels combustion. Thus, presently, it is the dire need that the scholars should give more attention to this sector and explore new methodologies/techniques to enhance energy efficiency with the help of financial sectors. Various proxies have been used to measure the financial development as given below (see composite financial index section). It is necessary that there should be an econometric model based on all possible aspects of financial development in a country because one aspect (as previous studies have been undertaken) cannot cover the real role of the financial sector in an economy. Following Shahbaz et al. (2016), Katircioğlu and Taşpinar (2017), and Ang (2009), the current study tries to include all possible aspects of financial development and generate a “composite financial development index” to measure the financial development.

In the case of Pakistan, Javid and Sharif (2016) and Shahzad et al. (2017) argue that environmental Kuznets curve (EKC) exists while some other scholars do not find evidence for its existence in Pakistan (Baloch et al. 2018; Naz et al. 2019). Nasir and Rehman (2011) also do not support the EKC hypothesis for a short run in Pakistan. These mix findings reveal that the existence of the environmental Kuznets curve still requires more investigation on the bases of sub-segments of the economy. The present study focuses on a sector of the economy (financial sector) and investigates the nexus between carbon emission and energy consumption by taking financial sector as sub-segment. This study tries to fill the gap by including segment (sector) because it has been widely ignored in the previous studies.

The objective of this study is to explore the moderating role of financial development between real income, energy consumption, and carbon emission in the EKC framework. This is one of the very first studies which explore the “moderating role of financial development in conventional environmental Kuznets curve in the case of Pakistan.” In this way, this study also tries to give the answer to a common question, why previous studies have mix results regarding the existence of EKC in Pakistan. According to statistical theory, “when collaboration between two variables also depends on a third variable, it is called moderation and that third variable is called moderator” (Baron and Kenny 1986). To investigate the moderating role of financial development, this study employs two-step estimations, first without interaction term (moderator) and second with interaction variables. Secondly, the present study does not use a conventional proxy to measure financial development in Pakistan. This study constructs a “composite financial development index” with the help of five indicators of the financial sector (see Table 2). Third, to confirm the relationship among involving variables (i.e., real income, energy use, finical development, and carbon emission), the current study employs a famous econometric approach “Autoregressive Distributed Lag (ARDL)” for estimations. Lastly, we plot CUSUM and CUSUMsq to check the consistency of our econometric model and then confirm the causal impact between variables through “Granger Causality/Block Exogeneity Wald test.”

The rest of the paper is set out as: the “Literature Review” section includes all detail of related studies. The “Data source and Econometric Methodology” section of this study include all the details related to the data sources, variables descriptions, and formation of the index. The “Results and discussion” section provides all the tables of findings and estimations with their discussion. At the “Conclusion and policy implication” section conclude the whole study with some suggestions for policymakers.

Literature review

Literature includes many studies which explore the relationship (long-run and short-run) between energy use, CO2 emission, and financial development. According to one school of thought, financial development improves environmental quality by reducing energy consumption and carbon emission. Saud et al. (2019) explore the impact of financial development, economic growth, energy use, and trade openness on carbon emission in 59-BRI countries covering the period 1980–2016. They propose that energy consumption and economic growth contribute to environmental degradation while trade openness and financial development enhance environmental quality through mitigating carbon emission. Similarly, Zafar et al. (2019) investigate the impact of financial development and globalization on carbon emission in OECD countries and suggest that financial development and globalization significantly improve the environmental quality by reducing carbon emission. Kahouli (2017) explores growth-energy-financial development nexus in 6-SMCs covering period 1995–2015. He confirms long-run cointegration between variables and suggests that financial development is the main factor which can use to enhance energy efficiency. Under structural breaks and employing “Residual Augmented Least Square,” Farhani and Solarin (2017) investigate the relationship between financial development, energy consumption, economic growth, capital, trade, and FDI in USA. They advocate the economic growth and financial development diminution of the energy demand for the long run. Greater financial development promotes energy-efficient techniques due to which energy demand decreases (Islam et al. 2013). Alam et al. (2015) investigate energy-financial development nexus by using different indicators of financial development in SAARC member countries. They found that financial development has a larger impact on energy consumption and they suggest that energy demand can reduce through a tradeoff between economic growth and energy consumption.

The second school of thought support to the common phenomenon and they posit that during financial development, the energy demand increases which affects the climate adversely due to high carbon emission. Guo et al. (2019) investigate the impact of financial development on carbon emission by using provincial data of China from 1997 to 2015. By employing extended STIRPAT model, they confirm that stock trading volume and efficiency of financial development accelerate to carbon emission. Similarly, Esmaeilpour Moghadam and Dehbashi (2018) also explore the association between financial development, trade, and environmental quality in Iran. Their empirical analysis does not confirm the hypothesis of EKC for Iran and they reveal financial development enhances environmental degradation. Mahalik et al. (2017) investigate the nexus between financial development and energy demand by using some addition determinants, i.e., urbanization, economic growth, and capital for Saudi Arabia covering period 1971–2011. They conclude that financial development upsurges to energy demand in the long run and behind it, capital and urbanization are the main factors. In addition, their empirical evidence confirms the non-linear (inverted U-shaped) link between financial development and energy consumption. There is a significant and positive association between financial development and energy consumption (Sadorsky 2010). He measures financial development by stock market, (1) stock market capitalization to GDP and (2) stock market turnover. In this way, he provides very strong evidence that financial development reduces environmental quality by exciting energy demand. Through direct growth-energy nexus, Haseeb and Azam (2015) confirm that energy from renewable energy sources (as compared to fossil fuel) is very helpful to enhance environmental quality because it reduces carbon emission in Pakistan. In addition, they also conduct an indirect nexus between CO2 and energy demand by emphasizing that how can a country achieve sustainable development. Similarly, Shahbaz et al. (2013) explore how economic growth incorporate on energy-financial development nexus in a multivariate framework in China covering period 1975Q1–2011Q4. They conclude that certain economic growth and financial development are necessary but they affect the environment adversely by enhancing the energy demand and GHGs emission.

Hanif et al. (2019) explore the growth-energy-FDI-environment nexus in 15 Asian countries by covering period from 1990 to 2013. By employing ARDL econometric approach, they propose that the endeavor to stimulate growth level enhances fossil fuel consumption in these countries eventually and degrades the environment. In addition, they corroborate the hypothesis of EKC for these countries. Baloch and Danish 2019investigate the non-linear association among economic growth, energy demand, and financial development through panel regression of “Driscoll-Kraay standard error.” They confirm the inverted U-shaped association between financial development and energy demand, economic growth, and energy demand for OECD countries. In addition, they found feedback causal effect between growth and energy consumption. Similarly, Ahmad et al. (2017) study the association between financial development and energy demand in EKC framework using data 1992Q1 to 2011Q1 for Croatia. They employ ARDL and then VECM econometric approaches and confirm the existence of EKC (inverted U-shaped) between economic growth and CO2 emission for the long run. Gill et al. (2018) do not found the EKC curve in the case of Malaysia; they confirm a monotonic increasing nexus between CO2 emissions and GDP per capita. They also support to sustainable energy agenda in the country because they found renewable energy consumption substantially decline air pollution. Ganda (2019) explores the impact of financial development on the environmental quality of OECD economies by employing system GMM analysis. Their empirical analysis reveals mix findings regarding the impact of financial development on the environment in OECD.

Mirza and Kanwal (2017) explore the nexus between GDP, air pollution, and energy consumption in Pakistan. Their empirical estimations confirm feedback causal effect between economic growth and energy use, energy use and carbon emission, and between economic growth and CO2 emission. In addition, to make a healthy country, they propose certain suggestions related to sustainable development policies in Pakistan. Khan et al. (2018) explore the nexus between renewable energy and GHG emissions in Pakistan. They employ “Toda and Yamamoto approach” and confirm a negative and significant impact of energy on GHGs emissions, covering the period 1981–2015. Also, they found that renewable energy consumption substantially reduces GHGs emissions in Pakistan. Bakhsh et al. (2017) report a negative and statistically significant association between stock capital and carbon emissions while a positive relationship between income and stock capital. In addition, they confirm that FDI has a significant and negative impact on carbon emissions in the case of Pakistan. Shahbaz et al. (2016) investigate the influence of financial development on the environment and they postulate that inefficient energy consumption contributes to environmental degradation in Pakistan. They propose that for a sustainable environment, energy-efficient technologies should be adopted because the latest technologies are supportive to rally environmental quality.

Shahzad et al. (2017) employ ARDL bound test for cointegration procedure and their empirical evidence confirms the inverted U-shaped EKC curve. According to their findings, the economy is operating below the threshold level and they expect that carbon emission will gradually increase until the threshold level achieved. Javid and Sharif (2016) also support the EKC hypothesis for the long-term and short-term. They found a significant positive association among CO2 and financial development which divulge that for financial development they have to compromise on environmental quality. Similarly, using time series data from 1980 to 2013, Zaidi (2017) also confirms the inverted U-shaped EKC hypothesis between “income and carbon emission” and “between income and energy use” in Pakistan. His results reveal that energy efficiency in a controlled environment is a very good gauge to examine the strength of energy in an economy. In contrast, Naz et al. (2019) did find environmental Kuznets curve, they support to “pollution haven hypothesis,” and Nasir and Rehman (2011) also did not find EKC curve in the short run in the case of Pakistan.

Data source and econometric methodology

Data source

This study includes annual data covering the period of 1970 to 2016 from the World Bank and Pakistan Stock Exchange. The dependent variable is carbon dioxide emission (CO2) and measures as (metric tons) per capita. Gross domestic production (GDP) or real income measures as GDP per capita (constant $ 2010), square of real income (GDP2), energy consumption (EC) measure as the use of energy (kg of oil equivalent) per capita, and Financial Development (FD) measure as a composite financial index are the regressors. Trend in variables (i.e., CO2, GDP, EC, and FD) stated in Fig. 1 and Table 1 contains all the detail regarding to description of variables and data sources.

Fig. 1
figure 1

Trends of carbon emission, real income, energy consumption, and financial development in Pakistan for the period 1970–2016

Table 1 “Variable name, symbol, definition, unit, and data source

Composite financial index

In the literature, numerous proxies have been used to measure financial development. For example, many studies have calculated financial development through “M2” and “liquid liabilities” but according to Jalil and Feridun (2011), M2 did not capture exactly the development of the financial sector. They advocate that a large portion of M2 measures consistency of currency, so we can say that it represents to monetization instead to measure financial development exactly. Similarly, liquid liabilities also do not measure financial development completely because it only reflects the size of the financial sector (Creane et al. 2007). Domestic credits to the private sector (loans, non-equity security purchase, accounts receivables, and trade credits, etc.) also used a proxy of financial development (Boutabba 2014) but according to Shahbaz et al. (2017), domestic credit to the private sector is a good proxy to measure the productive investments endeavors. It is a major problem in empirical economics literature to find out a proper proxy for financial development which can cover its full efficiency (Ang 2009). In the presence of a number of financial systems that exist in different economies, it is obligatory for the researcher to construct measures that can reflect its real impact (Levine et al. 2000). In 1999, Beck et al. (1999) built a comprehensive proxy for financial development by combining various indicators which are very useful for researchers. From the above discussion and keeping in mind the importance of the financial sector for an economy, the current study constructs a composite index and tries to capture all the aspects of financial development. Following prior literature (i.e., Ang 2009; Shahbaz et al. 2016; Katircioğlu and Taşpinar 2017), current study constructs an index for financial development with the help of five different indicators of the financial sector: (a) domestic credits by banking sector (% of GDP); (b) domestic credits provided to private sector; (c) M2 (broad money supply which is % of GDP); (d) ratio of commercial banks assets to central bank assets plus commercial assets; (e) M3 (liquid liabilities, % age of GDP). And the functional relationship of the above five indicators can present as:

$$ FD=f\left(a,b,c,d,e\right) $$

The variables a, b, and c obtained from “World Development Indicator” while the variables d and e obtained from “Pakistan Stock Exchange.” According to King and Levine (1993), the commercial banks take better decisions to allocate their funds as compared to central banks. Similarly, according to Ang (2009) commercial banks identify opportunities for profitable investment more actively as compared to central banks. So, we include commercial bank asset to construct the composite index. To measure financial intermediation, many researchers use the size of the financial sector but according to Levine et al. (2000), it is a simple proxy and they suggest that private credit is an effective proxy. Ang (2009) also states that credit to the private sector is a better proxy to measure financial development because private sectors take better decisions to allocate their funds as compared to the public sector. Following Jenkıns and Katırcıoglu (2010) and Beck et al. (1999), we include liquid liabilities, banking sector providing the credit, and broad money into our index construction process.

We construct a “Composite Financial Development Index” by using a famous statistical method known as “principal component factor analysis.” By using this method, we can convert a large number of variables (correlated) into a few variables (uncorrelated) without losing original variability in the data (Feridun and Sezgin 2008; Jalil et al. 2010). Principal component factor analysis is used by Chen and Myagmarsuren (2013) and Ang (2009) to construct financial performance indices. The current study also constructs an index through principal component factor analysis using the five indicators from the financial sector (as above discussed). Thumb rule is that financial indicators are assumed to be significant when they hold eigen value greater than 1 or at least equal to 1 (eigen value ≥1) and the factor loadings are greater than 0.5 (Hair 2006).

Using the following formula, we constructed a composite index for financial development with the help of factors extracted from factor analysis.

$$ \mathrm{FD}\_\mathrm{Index}={\sum}_{i=1}^n{w}_i\times F{S}_i $$

where “FD_Index” is our required index for financial development and “FSi” is the corresponding factor score of each factor (financial indicator). “wi” is the weight (ratio of variation explained by each indicator to the variation described by all other variables) and calculate as:

$$ {w}_i=\left[\frac{v_i}{\sum_{i=1}^n{v}_i}\right]\times 100 $$

wi” is the weight of the corresponding factor which is the ratio of variation due to that particular variable (vi) to the variance explained by all other variables (factors) and “n” denotes to total number of variables (Chen 2010).

Results of principal factor analysis are presented in Table 2. The only first component has eigen value greater than 1 (4.8349). This component is better because it explains about 98.45% of the standardized variance. So, only one component is extracted from this analysis. We construct an index for financial development following Ang (2009) and take factor scores as weights (given in the second part of Table 2).

Table 2 Principal component analysis for composite financial development index

Theoretical framework

In the energy economic literature, environmental Kuznets curve (EKC) has been tested broadly in recent years. In the conventional model of EKC, GDP and its square use as regressors (in the literature some studies also include GDP3), as presented below in Eq. (1):

$$ {\mathrm{CO}}_2=f\left(\mathrm{GDP},{\mathrm{GDP}}^2\right) $$
(1)

where “CO2” denotes to carbon dioxide emission and “GDP” is real income per capita. In the current study, we include “Energy Consumption (EC)” to check the association between energy consumption and CO2 emission, as presented in Eq. (2):

$$ {\mathrm{CO}}_2=f\left(\mathrm{GDP},{\mathrm{GDP}}^2,\mathrm{EC}\right) $$
(2)

In linear equation form, Eq. (2) can be written as:

$$ {\mathrm{CO}}_{2\left(\mathrm{t}\right)}={\beta}_0+{\beta}_1{\mathrm{GDP}}_{\left(\mathrm{t}\right)}+{\beta}_2{\mathrm{GDP}}_{\left(\mathrm{t}\right)}^2+{\beta}_3E{C}_{(t)}+{\varepsilon}_t\Big) $$
(3)

where “β0” denotes to intercept and “β1,” “β2,” and “β3” are the coefficients of the regressors and “ϵt” shows to possible errors.

To capture the growth effect of regressors on CO2 emission, following Katircioğlu (2010), we can rewrite Eq. (3) in logarithmic form as:

$$ \ln {\mathrm{CO}}_{2\left(\mathrm{t}\right)}={\upbeta}_0+{\beta}_1\left(\ln {\mathrm{GDP}}_{\left(\mathrm{t}\right)}\right)+{\beta}_2\left(\ln {\mathrm{GDP}}_{\left(\mathrm{t}\right)}^2\right)+{\beta}_3\left( lnE{C}_{(t)}\right)+{\varepsilon}_t $$
(4)

This study proposes that “Financial Development (FD)” might have a moderating role with its direct impact on EKC in the case of Pakistan. So, focusing on it, this study tries to explore the moderating role of “FD” on the association between GDP, GDP2, EC, and CO2 emission. In this context, Cohen et al. (2014) have been introduced interaction variables to check the moderating effect. Following Chen and Myagmarsuren (2013), we also make two models to check the moderating effects, as they have advised in their literature. First, to estimate the main effect, we added a proxy of financial development (lnFD) in Eq. (4) as presented below:

$$ \ln {\mathrm{CO}}_{2\left(\mathrm{t}\right)}={\beta}_0+{\beta}_1\left(\ln {\mathrm{GDP}}_{\left(\mathrm{t}\right)}\right)+{\beta}_2\left(\ln {\mathrm{GDP}}_{\left(\mathrm{t}\right)}^2\right)+{\beta}_3\left( lnE{C}_{(t)}\right)+{\beta}_4\left(\ln {\mathrm{FD}}_{\left(\mathrm{t}\right)}\right)+{\varepsilon}_t $$
(5)

In the second model, we add interaction variables in Eq. (5) and get a new Eq. (6) to estimate the moderating effect of financial development.

$$ {\displaystyle \begin{array}{l}\ln C{O}_{2(t)}={\beta}_0+{\beta}_1\left(\ln {\mathrm{GDP}}_{\left(\mathrm{t}\right)}\right)+{\beta}_2\left(\ln {\mathrm{GDP}}_{\left(\mathrm{t}\right)}^2\right)+{\beta}_3\left(\ln {\mathrm{EC}}_{\left(\mathrm{t}\right)}\right)+{\beta}_4\left(\ln {\mathrm{FD}}_{\left(\mathrm{t}\right)}\right)+{\beta}_5\left(\ln {\mathrm{GDP}}_{(t)}\times \ln {\mathrm{FD}}_{(t)}\right)\\ {}\kern4em +{\beta}_6\left(\ln {\mathrm{GDP}}_{\left(\mathrm{t}\right)}^2\times \ln {\mathrm{FD}}_{\left(\mathrm{t}\right)}\right)+{\beta}_7\left(\ln {\mathrm{EC}}_{\left(\mathrm{t}\right)}\times {\mathrm{lnFD}}_{(t)}\right)+{\varepsilon}_t\end{array}} $$
(6)

According to Cohen et al. (2014), moderating effect will be confirmed when the interaction variables will show a statistically significant relationship. So, we also expect that the coefficients (i.e., β5, β6, and β7) will be statistically significant which will confirm the moderating role of financial development in our case. In this way, the FD may affect the direct relationship between CO2 emission and regressors (i.e., GDP, GDP2, and EC) and according to statistical methodology, it is called moderating role of that variable (Cohen et al. 2014).

Econometric strategy

In literature, a number of econometric approaches have been used for short-run and long-run estimations such as an approach based on residuals by Engle and Granger (1987) and a technique of maximum likelihood by Johansen and Juselius (1990). But in recent studies, a famous econometric approach known as the autoregressive distributed lag (ARDL) by Pesaran et al. (2001) is using for the bound test. The current study employs the ARDL approach as its estimations are unbiased and even in the case of small sample size, it provides consistent results. Second, it can apply in all three cases whether the variables are stationary at I(0) or stationary at I(1) even there is a mixture of both. Third, if cointegration confirms among variables, then it is a useful approach for both short-run and long-run dynamics. Fourth, this is the only approach which provides us with some explicit tests through which we can explore that exclusive cointegration exists or not instead of assuming vector existence. Lastly, Pesaran and Shin (1997) suggest that in ARDL methodology, appropriate lag selection is very helpful to deal with endogeneity issues and to control serial correlation problems.

We expressed the ARDL approach as (using Eq. (6))

$$ {\displaystyle \begin{array}{l}\varDelta \ln {\mathrm{CO}}_{2\left(\mathrm{t}\right)}={\beta}_0+{\sum}_{i=1}^p{\beta}_1\left(\varDelta \ln {\mathrm{CO}}_{2\left(t-i\right)}\right)+{\sum}_{i=0}^p{\beta}_2\left(\varDelta \ln {\mathrm{GDP}}_{\left(t-i\right)}\right)+{\sum}_{i=0}^p{\beta}_3\left(\varDelta \ln {\mathrm{GDP}}_{\left(t-i\right)}^2\right)+{\sum}_{i=0}^p{\beta}_4\left(\varDelta \ln {\mathrm{EC}}_{\left(t-i\right)}\right)+{\sum}_{i=0}^p{\beta}_5\left(\varDelta \ln {\mathrm{FD}}_{\left(t-i\right)}\right)\\ {}\kern4.4em +{\sum}_{i=0}^p{\beta}_6\left(\varDelta \ln {\mathrm{GDP}}_{\left(t-i\right)}\times \varDelta \ln {\mathrm{FD}}_{\left(t-i\right)}\right)+{\sum}_{i=0}^p{\beta}_7\left(\varDelta \ln {\mathrm{GDP}}_{\left(t-i\right)}^2\times \varDelta \ln {\mathrm{FD}}_{\left(t-i\right)}\right)+{\sum}_{i=0}^p{\beta}_8\left(\varDelta \ln {\mathrm{EC}}_{\left(t-i\right)}\times \varDelta \ln {\mathrm{FD}}_{\left(t-i\right)}\right)\\ {}\kern4.2em +{\beta}_9\left(\ln {\mathrm{CO}}_{2\left(t-1\right)}\right)+{\beta}_{10}\left(\ln {\mathrm{GDP}}_{\left(t-1\right)}\right)+{\beta}_{11}\left(\ln {\mathrm{GDP}}_{\left(t-1\right)}^2\right)+{\beta}_{12}\left(\ln {\mathrm{EC}}_{\left(t-1\right)}\right)+{\beta}_{13}\left(\ln {\mathrm{FD}}_{\left(t-1\right)}\right)+{\beta}_{14}\left(\ln {\mathrm{GDP}}_{\left(t-1\right)}\times \ln {\mathrm{FD}}_{\left(t-1\right)}\right)\\ {}\kern4.1em +{\beta}_{15}\left(\ln {\mathrm{GDP}}_{\left(t-1\right)}^2\times \ln {\mathrm{FD}}_{\left(t-1\right)}\right)+{\beta}_{16}\left(\ln {\mathrm{EC}}_{\left(t-1\right)}\times \ln {\mathrm{FD}}_{\left(t-1\right)}\right)+{\varepsilon}_t\end{array}} $$
(7)

where indicates first difference operator, the summation sign in the first part of the above equation denotes to the dynamics of error correction while the second part (which is without summation) representing to the relationship for the long run. Detail of all the variables (CO2, GDP, EC, and FD) is already provided in Table 1.

Before the estimation of short-run dynamics or long-run dynamics, it is necessary to confirm the integration level among variables because any variable with the order (2) restrict us to use ARDL approach. To check the cointegration among variables, F statistics is a useful technique because we can apply it irrespectively; the series is integrated at the order I(1) or I(0). The null hypothesis of no cointegration in Eq. (7) is (H0: β9β10β11= β12= β13β14β15β16= 0) against the alternative hypothesis (Haβ9 ≠ β10 ≠ β11β12β13 ≠ β14 ≠ β15 ≠ β16≠ 0). To confirm cointegration, we follow critical values of F statistics given by Narayan (2005) and Pesaran et al. (2001). According to them, if F value lies below the lower bound value, it is the indication toward the acceptance of null hypothesis, it means there is no cointegration while when F value exceed the upper bound value, we will reject null hypothesis the of no cointegration. But results remain inconclusive when F value fall between lower bound and the upper bound values. After confirmation of cointegration, we can apply ARDL and then the error correction term which is a useful way for establishing cointegration (Kremers et al. 1992; Banerjee et al. 1998; Boutabba 2014). Before the final decision, we have to ensure that our data is normally distributed, there is no autocorrelation and our data is homoscedastic. We can apply a number of diagnostic tests to deal with all these issues.

Using ARDL cointegration approach, we can confirm whether long-run and short-run cointegration exists or not. But this approach does not guide us about the causal relationship (direction) among the variables. There are two possibilities: (i) if we found cointegration, then we can apply Granger causality with error correction term but (ii) if the evidence detects that there is no cointegration, then Granger causality with vector autoregression (VAR) can apply to check causality (Engle and Granger 1987; Granger 1988). So, the augmented Granger causality test with error correction term presented as:

$$ {\displaystyle \begin{array}{c}\left[\begin{array}{c}\varDelta \ln C{O}_{2(t)}\\ {}\varDelta lnGD{P}_{(t)}\\ {}\varDelta lnGD{P}_{(t)}^2\\ {}\varDelta lnE{C}_{(t)}\\ {}\varDelta lnF{D}_{(t)}\\ {}\varDelta lnGD{P}_{(t)}\times \varDelta lnF{D}_{(t)}\\ {}\varDelta lnGD{P}_{(t)}^2\times \varDelta lnF{D}_{(t)}\\ {}\varDelta lnE{C}_{(t)}\times \varDelta lnF{D}_{(t)}\end{array}\right]=\left[\begin{array}{l}{\mu}_1\\ {}{\mu}_2\\ {}{\mu}_3\\ {}{\mu}_4\\ {}{\mu}_5\\ {}{\mu}_6\\ {}{\mu}_7\\ {}{\mu}_8\end{array}\right]+\left[\begin{array}{llllllll}{\partial}_{11,1}& {\partial}_{12,1}& {\partial}_{13,1}& {\partial}_{14,1}& {\partial}_{15,1}& {\partial}_{16,1}& {\partial}_{17,1}& {\partial}_{18,1}\\ {}{\partial}_{21,1}& {\partial}_{22,1}& {\partial}_{23,1}& {\partial}_{24,1}& {\partial}_{25,1}& {\partial}_{26,1}& {\partial}_{27,1}& {\partial}_{28,1}\\ {}{\partial}_{31,1}& {\partial}_{32,1}& {\partial}_{33,1}& {\partial}_{34,1}& {\partial}_{35,1}& {\partial}_{36,1}& {\partial}_{37,1}& {\partial}_{38,1}\\ {}{\partial}_{41,1}& {\partial}_{42,1}& {\partial}_{43,1}& {\partial}_{44,1}& {\partial}_{45,1}& {\partial}_{46,1}& {\partial}_{47,1}& {\partial}_{48,1}\\ {}{\partial}_{51,1}& {\partial}_{52,1}& {\partial}_{53,1}& {\partial}_{54,1}& {\partial}_{55,1}& {\partial}_{56,1}& {\partial}_{57,1}& {\partial}_{58,1}\\ {}{\partial}_{61,1}& {\partial}_{62,1}& {\partial}_{63,1}& {\partial}_{64,1}& {\partial}_{65,1}& {\partial}_{66,1}& {\partial}_{67,1}& {\partial}_{68,1}\\ {}{\partial}_{71,1}& {\partial}_{72,1}& {\partial}_{73,1}& {\partial}_{74,1}& {\partial}_{75,1}& {\partial}_{76,1}& {\partial}_{77,1}& {\partial}_{78,1}\\ {}{\partial}_{81,1}& {\partial}_{82,1}& {\partial}_{83,1}& {\partial}_{84,1}& {\partial}_{85,1}& {\partial}_{86,1}& {\partial}_{87,1}& {\partial}_{88,1}\end{array}\right]+...\\ {}+\left[\begin{array}{llllllll}{\partial}_{11,i}& {\partial}_{12,i}& {\partial}_{13,i}& {\partial}_{14,i}& {\partial}_{15,i}& {\partial}_{16,i}& {\partial}_{17,i}& {\partial}_{18,i}\\ {}{\partial}_{21,i}& {\partial}_{22,i}& {\partial}_{23,i}& {\partial}_{24,i}& {\partial}_{25,i}& {\partial}_{26,i}& {\partial}_{27,i}& {\partial}_{28,i}\\ {}{\partial}_{31,i}& {\partial}_{32,i}& {\partial}_{33,i}& {\partial}_{34,i}& {\partial}_{35,i}& {\partial}_{36,i}& {\partial}_{37,i}& {\partial}_{38,i}\\ {}{\partial}_{41,i}& {\partial}_{42,i}& {\partial}_{43,i}& {\partial}_{44,i}& {\partial}_{45,i}& {\partial}_{46,i}& {\partial}_{47,i}& {\partial}_{48,i}\\ {}{\partial}_{51,i}& {\partial}_{52,i}& {\partial}_{53,i}& {\partial}_{54,i}& {\partial}_{55,i}& {\partial}_{56,i}& {\partial}_{57,i}& {\partial}_{58,i}\\ {}{\partial}_{61,i}& {\partial}_{62,i}& {\partial}_{63,i}& {\partial}_{64,i}& {\partial}_{65,i}& {\partial}_{66,i}& {\partial}_{67,i}& {\partial}_{68,i}\\ {}{\partial}_{71,i}& {\partial}_{72,i}& {\partial}_{73,i}& {\partial}_{74,i}& {\partial}_{75,i}& {\partial}_{76,i}& {\partial}_{77,i}& {\partial}_{78,i}\\ {}{\partial}_{81,i}& {\partial}_{82,i}& {\partial}_{83,i}& {\partial}_{84,i}& {\partial}_{85,i}& {\partial}_{86,i}& {\partial}_{87,i}& {\partial}_{88,i}\end{array}\right]\left[\begin{array}{c}\varDelta \ln C{O}_{2(t)}\\ {}\varDelta lnGD{P}_{(t)}\\ {}\varDelta lnGD{P}_{(t)}^2\\ {}\varDelta lnE{C}_{(t)}\\ {}\varDelta lnF{D}_{(t)}\\ {}\varDelta lnGD{P}_{(t)}\times \varDelta lnF{D}_{(t)}\\ {}\varDelta lnGD{P}_{(t)}^2\times \varDelta lnF{D}_{(t)}\\ {}\varDelta lnE{C}_{(t)}\times \varDelta lnF{D}_{(t)}\end{array}\right]+\left[\begin{array}{l}{\varphi}_1\\ {}{\varphi}_2\\ {}{\varphi}_3\\ {}{\varphi}_4\\ {}{\varphi}_5\\ {}{\varphi}_6\\ {}{\varphi}_7\\ {}{\varphi}_8\end{array}\right] EC{T}_{\left(t-l\right)}+\left[\begin{array}{l}{\in}_{1t}\\ {}{\in}_{2t}\\ {}{\in}_{3t}\\ {}{\in}_{4t}\\ {}{\in}_{5t}\\ {}{\in}_{6t}\\ {}{\in}_{7t}\\ {}{\in}_{8t}\end{array}\right]\end{array}} $$
(8)

where denotes the difference operator and ECT(t-1) is the lagged error correction term derived from long-run equilibrium model. For long-run and short-run causation, ECT(t-1) for causality test should be statistically significant. φ is representing the speed of adjustments and its value shows the degree to which disequilibrium will be corrected within one period and ε1t − ε8t represents to stochastic error term (serially independent random errors, mean = 0 and finite covariance matrix).

Results and discussion

While using time series data, we have to confirm that our variables are stationary. Because estimations on the bases of non-stationary data can mislead. So, before long-run estimations (via ARDL), we apply the unit root test to confirm the level of stationery among involving variables. Following Ng and Perron (2001), we apply the unit root test and results are presented in Table 3. Due to the small sample size, Ng-Perron unit root test is more reliable as compared to ADF or PP unit root test. Results of our unit root test demonstrate that we are unable to reject the null hypothesis at level but findings with first difference reveal that we can reject the null hypothesis (i.e., H0 = data is not stationary) which shows that our variables are not stationary at level but all variables become stationary at first difference level. Following Zivot and Andrews (2002), we apply unit root which includes structural breaks and its outcomes also suggest that our all variables are integrated at first difference (see Table 4).

Table 3 Results of Ng-Perron unit root test
Table 4 Results of Zivot Andrew unit root test with structural break

After confirmation of the level of stationarity among variables, we calculate F statistic with the help of the bound testing approach. The outcomes demonstrate that the F statistic in both cases (without interaction and with interaction variables) is higher than the appropriate critical value of the upper bound (see table 5). So, we reject the null hypothesis of no cointegration among the variables. More specifically, from these findings, it is clear that long-run relationship exists among CO2, GDP, GDP2, EC, and FD (also when interaction variables are included).

Table 5 F-bound test

Table 6 includes the findings of short-run and long-run estimations by using ARDL approach. In panel (a) which is without interaction effect, carbon emission (CO2) is positively and statistically significantly associated with real income and energy consumption while negatively and statistically significant with the square of real income (GDP2) and financial development. The coefficient of income in the short run is 0.0034 while in the long run is 0.0067 which shows that 1% increase in income will lead to rising carbon emission per capita by 0.0034% in the short run and 0.0067% in the long run. Similarly, a 1% increase in energy consumption in Pakistan will contribute to 0.0284% in carbon emission (per capita) in the long run. Fascinatingly, the significant positive coefficient of income (GDP) and a significant negative coefficient of the square of income (GDP2) with carbon emission (CO2) demonstrate that there is non-linear inverted U-shaped relationship exists between income and carbon emission. More specifically, our empirical findings validate “the hypothesis of environmental Kuznets curve (EKC)” for Pakistan and our findings are in line of some recent studies, i.e., Saud et al. (2019) for 59-BRI countries, Shahzad et al. (2017) for Pakistan, Hanif et al. (2019) for 15 developing Asian countries, Katircioğlu and Taşpinar (2017) for Turkey, and Haseeb et al. (2018) for BRICS countries have validated the hypothesis of EKC between real income and GHGs emission.

Table 6 Results of ARDL co-integrating and long-run form

The coefficient of FD (composite index for financial development) is statistically significant and its sign is negative (β = − 0.036, p < 0.05) which posits that 1% increase in financial development will diminish carbon emission by 0.036% for the long run. It demonstrates that development in the financial sector significantly improves the environmental quality in the case of Pakistan. This is the signal for the successful implementation of policies and energy management. Some recent studies for example Zafar et al. (2019), Katircioğlu and Taşpinar (2017), and Saud et al. (2019) also confirm the negative association between financial development and carbon emission.

On the other side, Table 6 also includes the results of the estimations with interaction variables (see panel b of Table 6). After including interaction variables, all the variables are still significant except energy consumption. The coefficient of GDP is significant but its sign is negative (β = − 0.1125, p < 0.05) and coefficient of GDP square (GDP2) is also significant but its sign is positive (β = 0.0007, p < 0.1). More interestingly, when we add interaction terms (variables), the impact of GDP and GDP2 on carbon emission is stronger as compared to before. But one thing is very important, in model (b), inverted U-shaped relationship is no more while the interaction variables (lnGDP × FD and lnGDP2 × FD) are statistically significant. This is the indication that as a moderator, financial development has a significant impact on the relationship between GDP, GDP2, and CO2. In addition, this moderator role of financial development also destroys the inverted U-shaped relationship between income and carbon emission in the case of Pakistan. This result is similar to the findings of some recent studies; Nasir and Rehman (2011) reported that EKC hypothesis does not exists and Naz et al. (2019) also did not find inverted U-shaped EKC in the case of Pakistan. Similarly, Gill et al. (2018) also confirm the increasing relationship (absence of EKC) between CO2 and GPD in the case of Malaysia. Overall, the long-run results of Table 6 suggest that as moderator, financial development has a significant impact and it also affects the EKC curve in the long-run period.

We conclude that initially, GDP has positive while its square has a negative relationship with the CO2 emission, which confirms the hypothesis of EKC and financial development has a negative impact on carbon emission in Pakistan. So, we propose that all the policies related to energy protection are magnificently adopted by Pakistan but more important thing is that by ignoring the moderating role of financial development, economic growth is successfully driven by financial development through the financial sectors. On the other side, when we undertake the moderating role of financial development, the EKC curve was no more. It shows that financial sectors are not only enhancing environmental quality but also playing an important role as moderator in Pakistan. So, this is the major contribution of the current study because the moderating role of financial development has been ignored by prior researchers that is why Shahzad et al. (2017), Javid and Sharif (2016), and Shahbaz et al. (2012) confirm the EKC curve but Nasir and Rehman (2011) do not confirm for the short run and Naz et al. (2019) do not find any evidence for the existence of the EKC curve in the case of Pakistan.

The second portion of Table 6 includes the short-run estimations for both cases, i.e., the main effect (without interaction terms) and the main effect with interaction or moderating effects. The error correction terms have negative coefficient and statistically significant at 1% level. Prior literature suggests that the ECM(t-1) should be negative and its value should be between 0 to − 2 (Narayan and Smyth 2006; Boutabba 2014; Samargandi et al. 2015). So, these results of error correction terms (ECT) divulge that carbon emission (CO2) in Pakistan significantly responds to the path of long-term equilibrium with 100% speed of adjustment in both panels (i.e., with and without the moderating role of the financial development).

Lastly, we also apply some robust analysis and the findings of the diagnostic test are also reported at the bottom of Table 6. “Jarque-Bera test” posits that residuals are normally distributed, “LM test” demonstrates that there is no serial correlation, “D-Watson test” reveals that there is no autocorrelation, “Ramsey’s RESET test” confirm that there is no multicollinearity, and lastly, “Breush Pagan Godfrey test” finalizes that data is homoscedastic in the given model. In the end, to ensure long-run parameter’s stability, we employ recursive residuals, cumulative sum (CUSUM), and cumulative sum of square (CUSUMsq) tests and their graphical representation is given in Figs. 2 and 3. In Fig. 2, CUSUM does not cross the 5% level of significance while in Fig. 3, CUSUM square also almost stable. Because most of the time, CUSUM square within critical bounds at 5% level, it must be significant at 10% level of significance (Khan et al. 2018). So, we can say that our model is stable and the results are reliable for the purpose of policymaking.

Fig. 2
figure 2

Cumulative sum (CUSUM) residuals plot, dotted straight lines of red color represents to critical boundaries at 5% level of significance

Fig. 3
figure 3

Cumulative sum Squares (CUSUMsq) residuals plot, dotted straight lines of red color represents to critical boundaries at 5% level of significance

ARDL estimation provides long-run and short-run cointegration among variables. For causality relationship (direction) among interested variables, we apply Granger Causality (Block Exogeneity Wald) test and outcomes of causal relationship are reported in Table 7. For comprehensive policy suggestions, it is necessary for the policymakers to know the direction of the relationship. Results of Granger Causality test confirm the feedback effect (bidirectional) between real income and carbon emission while one-way causality from financial development to CO2 emissions but energy consumption does not show a causal relationship with carbon emission. Most important thing is that all the three interaction terms/variables (GDP × FD, GDP2 × FD, and EC× FD) show one-way causality toward CO2 emissions.

Table 7 Granger Causality/Block Exogeneity Wald test

Conclusion and policy implications

This study explores the direct and moderating role of financial development on the relationship between carbon emission (CO2), real income (GDP), and energy consumption (EC) in the case of Pakistan. In addition, the current study also reveals the influence of the financial sector as a moderator on the environmental Kuznets curve in Pakistan. To achieve the study objectives, we employed “the Autoregressive Distributed Lag (ARDL)” econometric approach for long-run and short-run cointegration dynamics. We included time series annual data which cover the period from 1970 to 2016. We also applied some robust analysis and graphical representation of recursive residuals show that our model is stable and suitable for policymaking. Lastly, to check the causal association among the variables, we exploited the Granger Causality test.

Empirical findings of this study suggest that GDP has positive while its square has a negative impact on CO2 emission, which confirms the existence of the EKC curve in Pakistan. Financial development significantly improves environmental quality by reducing carbon emission. On the other side, when we undertake financial development as moderator and add interaction terms/variables in the main model, the EKC curve was no more. It shows that financial sector is not only enhancing environmental quality but also playing an important role as a moderator and affect the EKC curve in Pakistan. Hence, this is the key contribution of the current study to the literature on income, energy, and environment. Moreover, results of Granger Causality test confirm the feedback effect (bidirectional) between real income and carbon emission while one-way causality from financial development to CO2 emissions but energy consumption does not show a causal relationship with carbon emission. A country can achieve environmental sustainability by undertaking newly sustainable reforms with successful implementation. This study proposes to policymakers that they should realize the role of financial development and try to balance the economic and financial policies to control CO2 emissions without affecting economic and financial development.

Empirical results of this study have very important implications in the perspective of economic policy formation in Pakistan. Environmental degradation has become a global issue, and Pakistan is also facing it in the form of extreme weather proceedings. To meet the increasing demand for energy, high consumption of fossil fuels is becoming the main cause of environmental pollution in Pakistan. The current study contributes to the existing literature by revealing the moderating role of financial development. For continuous economic growth, this study suggests that the government of Pakistan should take caution of imprudent expansion of the financial sector. Because this study reveals that financial development has a dual role, on one side, it has a direct effect on carbon emission and on the other side, it is playing a vital role as moderator. So, where policymakers are trying to improve the efficiency of the financial sector at the same time, they should undertake some necessary reforms to avoid its adverse impact on the economy.

In brief, using a new approach, this study introduces the moderating role of financial development with its direct effect on the EKC in the case of Pakistan. Actually, from this dimension, it is very important and interesting to understand the role of financial development and for future research, it is also the new direction. Policymakers may advice to the government of Pakistan for more investment in R & D to explore the true figure of the financial sector with environmental and economic policies reforms to reduce high carbon emissions. More specifically, they should keep in mind the moderating role of financial development on pollution with existing environmental and energy portfolio to control carbon emission in Pakistan.