Introduction

The threat posed by climate change has intensified interest in the study of economic growth and carbon emissions (CO2). While hydrocarbon fuel reliance and continued carbon emissions have significant effects on the ecosystem and global rising temperatures, sustainable development guarantees the existence of humanity (Ouédraogo et al. 2021). According to Mesagan and Ekundayo (2015), a precondition for the attainment of sustainable development as contained in the 2030 global development agenda is for countries to transit to eco-friendly growth and engender an emission-free environment. Polluting growth activities directly affect humans, causing illnesses such as cancer, inflammation and heart disease (Pope and Dockery 2006), and environmental quality (Ben Amar 2021). The writings by Kuznets (1955) and Grossman and Krueger (1991) fostered the creation of the environmental Kuznets curve (EKC) concept, an inverted U-shaped association between environmental pollution and economic growth, providing an interesting examination within emerging economic research. Correspondingly, a large body of studies on the subject matter has accumulated in recent decades, emphasizing the importance of a country’s degree of economic growth with environmental quality. The EKC hypothesis also suggests that environmental quality initially deteriorates when the economy expands, but after reaching a specific income threshold, it improves as income rises.

The influence of economic growth on environmental degradation cannot be overstated (Mobosi et al. 2017), as increased production leads to swelled pollution. Changes in climate conditions have greater effects on Africa (Dimnwobi et al, 2021), placing the continent as the most vulnerable to global warming. Recent studies have proved that most of the environmental degradation witnessed in African countries have been debilitating, emanating from the production and consumption of energy commodities and a general increase in economic activity (Ogwu 2021). Among the countries in Sub-Saharan Africa, Nigeria is of significant interest. The country has the highest economy in Africa, is the largest black nation on earth with over 200 million persons and the largest producer of crude oil in Africa, as well as the world’s 25th largest economy by nominal GDP and PPP (Whiting 2019). With abundant oil resources serving as the major economic backbone, the Nigerian economy has experienced considerable petrodollar revenues and economic prosperity since its independence. From 2011 to 2021, Nigeria grew her GDP annually at an average rate of 2.63 percent, with a peak of 6.88 percent in Q1 of 2011, recording strong figures through the 2008/2009 global economic turmoil in the process and a low of − 6.10 percent in Q2 of 2020 partly due to the COVID-19-induced economic recession. Interestingly, the National Bureau of Statistics GDP report of 2021 states that the Nigerian economy increased by 3.4 percent in 2021 (N72.39 trillion in real value), the strongest rate of GDP growth in 7 years.

However, Nigeria’s environmental pollution levels have been alarming on the heels of a rise in ‘dirty growth’ (Maduka et al. 2021). A World Bank (2021) report states that, although Nigeria alongside six other countries contributes 40 percent of global oil supply, these countries are equally responsible for about two-thirds (65%) of gas flaring in the world for the past 9 years successively. This makes the country one of the single largest sources of emissions in the world (Maduka et al. 2021; Kankara 2013), and puts at risk, the attainment of the Zero Routine Flaring by 2030 initiative inaugurated by the World Bank and the United Nations in 2015 and backed by several energy corporations, governments and organizations (U. S. IEA 2021). As a result, according to the WHO (2018) and Dada and Ajide (2021), 94 percent of Nigerians are vulnerable to high levels of pollution. The amount of pollution in the country surpasses the SSA average of 72%, while the cost of air pollution impairment is roughly 1% of post-GNP.

Recent economic literature opines that sustainable development is tractable to economic growth accompanied by structural and institutional improvements. As an economy grows, adjustments in output structure from primary production to processing and manufacturing under eco-friendly circumstances become more necessary to ensure sustainable development (Adewuyi and Adeleke, 2016). In a natural resource-dependent economy like Nigeria, good governance and quality institutions are also required to support the fair, transparent and equal allocation of resources and opportunities. Surprisingly, despite commitments to the global sustainability agenda, the Paris accord and local environmental efforts like the Ogonioil spill clean-up and the national policy to end gas flaring, there has been little action with hazardous consequences for the economy and environment (Mobosi et al. 2017). This scenario is largely due to weak institutions, as no tangible abatement measures have been implemented despite the increasing environmental degradation (Alege and Ogundipe 2013; Adewuyi and Adeleke 2016). Quality institutions are however critical to attaining sustainable economic prosperity, especially for a resource-rich country like Nigeria, which is plagued by bad governance, including corruption and abuse of power, as well as a disregard for the rule of law (Okoye, et al. 2018; Mobosi et al. 2017; Adewuyi and Adeleke 2016).

In the light of the background information, the contributions of this study are fivefold. First, the study makes a modest contribution to the EKC discourse that is largely mixed, while some studies back the EKC’s existence (Lv and Li 2021; Le and Ozturk 2020; Le and Nguyen 2020; Elsalih et al. 2020; Godil et al. 2020) other findings do not (Adams et al. 2020; Acheampong et al. 2020; Olubusoye and Musa 2020). Our research further contributes to the extant literature by reassessing and reinterpreting the EKC hypothesis because Nigeria is still on the road to sustainable development since the EKC professes that environmental degradation is high at the inception of development. Second, we contend and present empirical evidence that rises in economic growth alone does not contribute to environmental quality improvement, but rather the institutional factors that facilitate economic growth. This improves on the inconsistent findings of existing studies on the link between economic growth and environmental pollution. The goal of this research is to investigate the moderating influence of institutional quality on the impact of economic expansion on ecological pollution. This study varies from previous studies on institutional quality and CO2 emissions (Danish and Ulucak 2020; Wawrzyniak and Doryń, 2020; Sarkodie and Adams 2018) given the adoption of regulatory quality and corruption control as indicators of institutional quality. Third, given the prevalence of pervasive corruption, weak institutions and regulatory fragility that have become synonymous with Nigeria (Okoye et al. 2018; Mobosi et al. 2017; Adewuyi and Adeleke 2016), this study is particularly pertinent and timely. As a result, neglecting these two factors may result in an understatement of the real environmental damage attributable to emissions, threatening to put Nigeria’s initiatives and strategies for safeguarding the environment off course. Fourth, Nigeria is a developing nation with a fast-rising population and a continuously growing economy. Economic development is expected to continue along the same path into the future, with repercussions for the ecology. The results of the study will present pragmatic and evidence-based solutions to enable the country to achieve the Sustainable Development Goals (SDGs), the Paris Accord pact and the Zero Routine Flaring by 2030 goal. Five, apart from adopting the ARDL dynamic regression by Pesaran et al. (2001) as observed in the literature, the quantile regression model proposed by Koenker and Basset (1978) will be employed to validate the outcome of the ARDL model, alongside the Granger causality technique and other supporting tests.

Thus, the goal of this study is to verify the EKC validity for Nigeria and determine whether the level of institutional quality moderates the influence of economic growth on environmental pollution. The subsequent sections of this paper are arranged as follows: “Empirical evidence” is the empirical evidence, “Methodology and data sources” is the methodology, “Result presentation and discussions” is the result presentation and discussion, while “Conclusion and recommendations” is the conclusion and recommendation.

Empirical evidence

Many studies have examined the relationship between economic growth and carbon dioxide emissions. This empirical exploration reviews and elicits information on the EKC along with the growth–CO2 nexus on the one hand, and the role of institutional quality on the other. Following the first strand under the EKC, Le and Ozturk (2020) studied the influence of economic growth on carbon emissions for 47 Emerging Markets and Developing Economies (EMDEs), confirming the existence of the EKC. Similarly, Le and Nguyen (2020) examined the effect of economic prosperity on environmental pollution for 95 nations using the panel corrected standard errors (PSCE) and discovered the presence of the EKC. This result agrees with Elsalih et al. (2020) that employed a dynamic two-step SYS-GMM estimator to evaluate the impact of economic expansion on environmental deterioration in 28 oil-producing nations. In addition, Godil et al. (2020) applied a quartile autoregressive distributive lag method for Pakistan and discovered the occurrence of the EKC. For 39 developing nations, Haldar and Sethi (2021) studied the impact of economic expansion on environmental pollution and established identical conclusions. Sarkodie and Adams (2018) validated the presence of the environmental Kuznets curve in the instance of South Africa, while Lv and Li (2021) employed the spatial econometric framework to examine the impact of economic development on environmental pollution for 97 nations and concluded that the EKC exists. Egbetokun et al. (2020) evaluated the impact of economic growth on CO2 emissions in Nigeria and confirmed the validity of the EKC.

Additional research, contrary to the ones described previously, reported no evidence of the presence of the EKC. Lise (2006), for instance, looked at the relationship between carbon dioxide and income in Turkey. The study found a linear relationship between the variables, rather than a quadratic relationship, concluding that the relationship does not support the EKC hypothesis. Omojolaibi (2010) conducted a study on environmental quality and economic growth in some selected West African countries, including Nigeria, assessing the existence of an EKC in those countries. The pooled OLS results showed a consonance with EKC, while the fixed effects results were at variance with the applicability of EKC in West Africa. Akpan and Chuku (2011) examined economic growth and environmental degradation in Nigeria, using the Autoregressive Distributed Lag (ARDL) from 1960 to 2008. The outcome did not back the existence of the EKC hypothesis. Equally, Akpan and Abang (2014) found that the relationship between economic growth and environmental quality has an N-shaped curve instead of a U-shaped curve from panel data from 47 countries. Adams et al. (2020) analysed the effect of economic expansion on environmental contamination in 19 Sub-Saharan African nations. The EKC was shown to be invalid. Likewise, in a study of 83 economies, Acheampong et al. (2020) investigated the impact of economic growth on environmental pollution and established the absence of the EKC. Olubusoye and Musa (2020) investigated the relationship between carbon emissions and economic growth in Africa. The EKC hypothesis was investigated using the ARDL model, mean group (MG) and pooled mean group (PMG) models for 43 African countries divided into three income groups from 1980 to 2016. Only 21% of the nations in the sample accepted the EKC hypothesis, whereas 70% of the countries in the whole sample rejected it. According to the study, increased economic expansion will result in higher emissions in the majority of African countries.

Likewise, in terms of the relationship dynamics between CO2 emission and economic growth, Coondoo and Dinda (2002) studied the causal relationship between carbon dioxide (CO2) and growth of income in a panel study representing 88 countries in America, Europe, Asia and Africa using Granger causality tests. The findings reveal that causality goes from emissions to income in industrialized countries in North America, Eastern Europe and Western Europe. But for the group of countries like Japan, Oceania and Central and South America, causation runs from income to emission. However, for the country groups of Asia and Africa, the causality is found to be bidirectional. Similarly, Richmond and Kaufmann (2006) applied a panel study to determine the existence of a turning point in the relationship between economic development and carbon emissions in OECD and non-OECD countries, using variables like a ratio of fuel mix supplied by energy suppliers, income and CO2 emission. The results showed a negative nexus between economic development and carbon emissions for OECD countries and a positive relationship for non-OECD countries. In another development, Soytas and Sarı (2009) used the Granger causality test to study energy consumption, economic growth and carbon emissions for Turkey, controlling for gross fixed capital formation and labour. The results showed that unidirectional causality runs from carbon emission to energy consumption without feedback. Also, Kasperowicz (2015) studied the economic growth impact of carbon emissions in Poland using the ECM technique for the period 1995 to 2012. Employing variables like gross domestic product (GDP), carbon dioxide emissions (CO2), energy consumption, capital stock and total employment, the results found that there is a significant relationship between economic growth and CO2 emissions. The results differ from that of Richmond and Kaufmann (2006) which were not significant. Menyah and Wolde-Rufael (2010) studied the long-run and causal relationship between energy consumption, pollutant emissions and economic growth in South Africa from 1965 to 2006. Adopting the ARDL bound test for long-run relationships and the ECM technique for short-run dynamics, the result found unidirectional causality running from emissions to economic growth. Furthermore, in another related study, Menyah and Wolde-Rufael (2010) identified a unidirectional causality going from nuclear energy to CO2 without feedback in a work examining the relationship between CO2 emissions, nuclear energy, renewable energy and economic growth in the USA from 1960 to 2007. The findings also revealed no link between renewable energy and CO2. For the period 2002–2012, Zaidi and Ferhi (2019) investigated the causal link between energy consumption, economic growth and CO2 emissions in a dynamic simultaneous equation model. Using variables of the study including GDP, a proxy for energy use and CO2 emissions, they found a bidirectional nexus between energy use and electricity use.

In Nigeria, some studies have focused on the relationship between economic growth and CO2 emissions. Mesagan (2015) used the ECM technique to determine the relationship between economic growth and carbon emission. Findings reveal that economic growth has a favourable influence on carbon emissions in the initial period, but a negative impact in the lagged period; also, capital investment and trade openness have a positive effect on carbon emissions. Ayadi (2014) discovered that economic expansion and foreign direct investment in Nigeria contributed significantly to pollution, although trade is helpful in both the long and short term. Olubusoye and Musa (2020) applied data spanning to 2016 and conducted a panel study which at most could only produce a short-run country-specific result.

Concerning works involving institutional quality and the environment, the following studies are reviewed. According to Teng et al. (2021), academics, policymakers and administrators devote little consideration to the effects of institutional quality on environmental contamination. However, there have been several noteworthy instances. For instance, Danish and Ulucak (2020) employed the FMOLS, DOLS and DK regression approaches to assess the association between both institutional quality and environmental pollution in 18 Asia–Pacific nations. The study discovered that institutional quality does help the environment. Sarkodie and Adams (2018) employed different evaluation approaches for South African data, including the ARDL methodology, to explore the impact of institutional quality on CO2 emissions. They observed that institutional quality could aid in lessening CO2 emissions. Joshi and Beck (2018) examined the association between democracy (political freedom and economic freedom) and carbon dioxide emissions in a sample of OECD and non-OECD countries using the Arellano-Bover/Blundell-Bond Generalized Method of Moments (GMM) technique. Findings reveal the relationship of both political and economic freedoms have a positive and significant relationship with emissions in OECD and non-OECD countries. Examining a group of 93 developing and emerging economies, Wawrzyniak and Doryń (2020) applied a GMM estimation to analyse how institutional quality modifies the nexus between economic growth and CO2 emission. Although the study found that government efficacy influences the economic growth–emissions link, it did not establish that corruption control has a moderating function in influencing the economic growth–carbon emission nexus.

Methodology and data sources

The study tests the nexus between carbon dioxide emissions and economic growth and the moderating effect of institutional quality in Nigeria. The autoregressive distributed lag (ARDL) and the quantile regression are adopted for the analysis; thereafter, the causality tests will be conducted to further support the regression results. Annual data on GDP per capita (GDP), CO2 emissions per capita (CO2), gross fixed capital formation (CAPSTK), control of corruption (COC) and regulatory quality (RGQ) which are measures of institutional quality were sourced from the World Bank Development Indicator (WDI).

Theoretical framework

In the long run, the link between economic growth and carbon dioxide, according to the EKC hypothesis, takes the shape of an inverted U. It claims that once per capita income reaches a particular level, economic growth will be accompanied by improvements in environmental quality. This suggests that after a certain threshold of economic growth, the resulting environmental degradation following the increased economic activities will begin to decrease. Three effects emanate from such a relationship, namely;

  1. 1.

    Scale effect: according to the scale effect, as production increases, more inputs are required, resulting in higher emissions of pollutants such as carbon dioxide, gas and methane, among others. As a result, economic growth has a negative relationship with the environment in the short run, according to the hypothesis (Jardón et al. 2017).

  2. 2.

    Composition effect: the composition effect, according to Jardón et al. (2017), implies that as the economy grows, its structure may alter as more people participate in cleaner or dirtier activities. The composition effect, on the other hand, is thought to have an uncertain impact on environmental standards.

  3. 3.

    Technique effect: this implies that variations in income per head can lead to shifts in civic environmental priorities. Such an increase, for example, may lead to a desire for more stringent environmental rules, which in turn can impact production methods, leading them toward the adoption of less polluting technologies (Grossman and Krueger 1995; Panayotou 1997).

The EKC hypothesis claims that economic expansion is the solution to environmental concerns based on these effects. In other words, economic expansion leads to environmental betterment. As economic growth is sustained, environmental degradation fizzles away. Higher-income growth will lead to a more advanced production process that is less harmful to the environment (Roca et al. 2001; Perman and Stern 2003). To put it another way, as a country grows wealthier, current environmental issues will be handled through legislative changes that both protect the environment and support economic development (Roca et al. 2001, Perman and Stern 2003).

Since the EKC illustrates the nexus between income and the environment, this study can then express the conventional functional hypothesis to be:

$${E}_{t}=F(Y, {Y}^{2}, {Y}^{3})$$
(1)

where \({E}_{t}\) is the environmental factor is at a time (t) and Y is the measure of income (GDP). By extension,

$${E}_{t}={\beta }_{0}+{\beta }_{1}{Y}_{t}+ {\beta }_{2}{Y}_{t}^{2}+{\beta }_{3}{Y}_{t}^{3}+{\beta }_{4}{Z}_{t}{\omega }_{t}$$
(2)

In Eq. (2), \({E}_{t}\) is the amount of carbon emission in the country, \({Y}_{t}\) is the income (GDP) used to measure economic growth in the early stage of growth (pre-industrial stage), \({Y}_{t}^{2}\) indicating advancement in economic growth (industrial economy or turning point in growth), it is at this point that emissions stop increasing, and then \({Y}_{t}^{3}\) is the stage of economic growth where emissions begin to decline (service-oriented economy) and \({Z}_{t}\) represents other variables that influence emission (Mishra 2020). \({\beta }_{1}\), \({\beta }_{2}\) and \({\beta }_{3}\) are coefficients of the different levels of income, \({\beta }_{4}\) is the coefficient of the other variable (s) that impact emission and \({\omega }_{t}\) measures the error in the model. The differences in functional forms are expressed by the different values of coefficients of the income terms. According to Alvarez-Herranz and Lorente (2016) cited in Allard et al. (2018), the EKC can adopt any shape based on the sign of the parameters of the different levels of income. Firstly, \({\beta }_{1}\)=\({\beta }_{2}\)=\({\beta }_{3}=0\) indicates that there is either a flat pattern or absence of any form of relationship between environmental degradation and income. But if \({\beta }_{1}>0\) and \({\beta }_{2}\)=\({\beta }_{3}=0,\) then a monotonically positive relationship exists between environmental degradations and income, indicating that environmental degradations rise with an increase in income. Similarly, if \({\beta }_{1}<0\) and \({\beta }_{2}\)=\({\beta }_{3}=0\), then a negative monotonic relationship exists between environmental degradation and income such that increasing income will lead to a decline in environmental degradation. However, if \({\beta }_{1}>0\) and \(\beta_2<0\;and\;\beta_3=0\), then the classical inverted U-shaped EKC exists. But a U-shaped relationship exists between environmental degradations and income if \({\beta }_{1}<0\) and \(\beta_2>0\;and\;\beta_3=0\). Furthermore, if \({\beta }_{1}>0 \left(positive\right)\) and \({\beta }_{2}<0\) (negative) and \({\beta }_{3}>0\) (positive), then an N-shaped nexus exists between environmental degradation and income. Contrarily, the relationship will assume that of an opposite N-shaped if \({\beta }_{1}<0\) and \(\beta_2>0\;and\;\beta_3<0\).

Zhang (2021) among others, who found the existence of an N-shaped nexus between pollution and income in China, identified three stages in the growth of income that gave birth to the N-shaped nexus. They are the scale effect, where the government pays attention to the growth of income, employment and production while neglecting the environmental and conservation policies; the compositional and technical effects, where the government now focuses on reducing the pollution level; and the technological obsolescence effects, where the technological effects that take the form of innovations have reached its maximum limit, thereby leading to scale effects outweighing the technical effects, and bringing about further deteriorations in the environment with the increase in income.

Estimation technique

ARDL regression

The use of the ARDL model is possible if a long-run relationship exists among the variables. It is justified since it removes the constraint in the event of variables being stationary at both I(0) and I(1). Similarly, the ARDL model is a potent solution to spurious regression resulting from missing or omitted variables (Engle and Granger 1987; Yule 1926; Simon 1954). Its application in this study is to account for both the long-run and short-run relationships between economic growth and carbon emission. To ascertain the existence of cointegration in our model that will guarantee the use of the ARDL, the bound F-statistic test proposed by Pesaran et al. (1991) will be used. All the variables for the study are changed to their log form in order to reduce skewness. The ARDL model is thus stated as:

$${\Delta CO2}_{t}={\beta }_{0}+{\beta }_{1}{CO2}_{t-1}+{\beta }_{2}{InGDP}_{t-1}+{\beta }_{3}{InGDP}_{t-1}^{2}+ {\beta }_{4}{InGDP}_{t-1}^{3}+{\beta }_{5}{InCAPSTK}_{t-1}+{\beta }_{6}{COC}_{t-1}+{\beta }_{7}{InGDPXCOC}_{t-1}+{\beta }_{8}{RGQ}_{t-1}+{\beta }_{9}{InGDPXRGQ}_{t-1}+\sum_{i=1}^{\rho }{\alpha }_{1}{\Delta CO2}_{t-i}+\sum_{j=0}^{q}{\alpha }_{2}{\Delta InGDP}_{t-j}+\sum_{k=0}^{r}{\alpha }_{3}\Delta {InGDP}_{t-k}^{2}+ \sum_{l=0}^{s}{\alpha }_{4}\Delta {InGDP}_{t-l}^{3}+\sum_{m=0}^{u}{\alpha }_{5}{\Delta InCAPSTK}_{t-m}+\sum_{n=0}^{v}{\alpha }_{6}\Delta {COC}_{t-n}+\sum_{h}^{w}{\alpha }_{7}\Delta {InGDPXCOC}_{t-h}+\sum_{i}^{y}{\alpha }_{8}{\Delta RGQ}_{t-i}+\sum_{g}^{z}{\alpha }_{9}{InGDPXRGQ}_{t-g}+{\mu }_{t}$$
(3)

where \(\Delta\) CO2 represents the first difference in carbon emissions, \(\mathrm{InGDP}, {\mathrm{ InGDP}}^{2}\) and \({\mathrm{lnGDP}}^{3}\) represent the three stages of economic growth, lnCAPSTK represents the country’s capital stock, which represents a capital investment, and COC and RGQ are the control of corruption and regulatory quality, respectively, which represent effective environmental laws aimed at controlling and preventing environmental degradation, \(InGDPXCOC\) represents the interaction of economic growth with control of corruption and \(InGDPXRGQ\) represents the interaction of economic growth with regulatory quality in Nigeria. The short-run maximum lags of the variables are p, q, r, s, u, v, w and z, while the information criteria will be used to determine the optimal lags. Carbon emission CO2, economic growth (GDP), capital stock (CAPSTK) and institutional quality (COC and RGQ) have long-run impacts of β1, β2, β3 and β4, respectively, while βo is the constant term and α1, α2, α3, α4, α5, α6, α7, α8 and α9 are the short-run impacts of these variables. Capital stock and institutional quality are control variables. The elasticity of the income coefficients for the short and long runs can be understood as the elasticity of income, whereas μt represents the idiosyncratic variable (error term). GDP per capita and capital stock are logged. Furthermore, to capture the error in our cointegrating equation, we state the necessary ECM equation as follows:

$${\Delta CO2}_{t}={\beta }_{0}+{\beta }_{1}{CO2}_{t-1}+{\beta }_{2}{InGDP}_{t-1}+{\beta }_{3}{InGDP}_{t-1}^{2}+ {\beta }_{4}{InGDP}_{t-1}^{3}+{\beta }_{5}{InCAPSTK}_{t-1}+{\beta }_{6}{COC}_{t-1}+{\beta }_{7}{InGDPXCOC}_{t-1}+{\beta }_{8}{RGQ}_{t-1}+{\beta }_{9}{InGDPXRGQ}_{t-1}+\sum_{i=1}^{\rho }{\alpha }_{1}{\Delta CO2}_{t-i}+\sum_{j=0}^{q}{\alpha }_{2}{\Delta InGDP}_{t-j}+\sum_{k=0}^{r}{\alpha }_{3}\Delta {InGDP}_{t-k}^{2}+ \sum_{l=0}^{s}{\alpha }_{4}\Delta {InGDP}_{t-l}^{3}+\sum_{m=0}^{u}{\alpha }_{5}{\Delta InCAPSTK}_{t-m}+\sum_{n=0}^{v}{\alpha }_{6}\Delta {COC}_{t-n}+\sum_{h}^{w}{\alpha }_{7}\Delta {InGDPXCOC}_{t-h}+\sum_{i}^{y}{\alpha }_{8}{\Delta RGQ}_{t-i}+\sum_{g}^{z}{\alpha }_{9}{InGDPXRGQ}_{t-g}+{\theta ECM}_{t-1}+{\mu }_{t}$$
(4)

Here, while other variables remain as previously defined, \(\theta\) represents the error correction coefficients indicating the speed of adjustment in the long run.

Quantile regression

The quantile regression in this study is used to authenticate the output of the ARDL. According to Allard et al. (2018), the unequal variations that result from statistical data can cause the relationship between variables to change at different points in the dependent variable’s conditional distribution. Based on this, estimation methods that are built on the mean values could give incorrect results. Thus, the use of the quantile regression becomes ideal as it presents a more valid picture of the relationship that exists among variables. Furthermore, the quantile regression can be used to capture the heterogeneity among the various income and market groups (Allard, et al. 2018). The general specification of the quartile regression model is stated below:

$${Y}_{i}={X}_{i}^{^{\prime}}{\delta }_{\rho }+{\epsilon }_{\rho i}$$
(5)

where \({Y}_{i}\) denotes the dependent variable and \({X}_{i}^{^{\prime}}\) is a vector of explanatory variables \(K\times 1\). Similarly, \({\delta }_{\rho }\) and \({\epsilon }_{\rho i}\) are used to represent the unknown vector of estimated regression parameter \(K\times 1\) for the values of \(\rho\) ranging between 0 and 1 and unidentified disturbance (error term), respectively. By transforming Eq. (5) we can obtain the quantile conditional process as follows:

$${\varphi }_{\rho }\left(\frac{{Y}_{i}}{{X}_{i}}\right)={X}_{i}^{^{\prime}}{\delta }_{\rho }$$
(6)

According to Rehman et al. (2021), the functional form of the vector \({\delta }_{\rho }\) can be measured by decreasing the corresponding value of \(\rho\). Furthermore, since the quantile regression can follow either the generalized moment techniques or the basic linear algorithm programming, it is possible to put the number of weighted error conditions to minimal by restriction. The goal is to allow the error conditions to vary while weighing the positive and negative residuals in the chosen quantile. Thus, the interactions between the interest variables can be stated as follows:

$${\Delta CO2}_{t}={\beta }_{0}^{\rho }+{\beta }_{1}^{\rho }{CO2}_{t-1}+{\beta }_{2}^{\rho }{InGDP}_{t-1}+{\beta }_{3}^{\rho }{InGDP}_{t-1}^{2}+ {\beta }_{4}^{\rho }{InGDP}_{t-1}^{3}+{\beta }_{5}^{\rho }{InCAPSTK}_{t-1}+{\beta }_{6}^{\rho }{COC}_{t-1}+{\beta }_{7}^{\rho }{InGDP X COC}_{t-1}+{\beta }_{8}^{\rho }{RGQ}_{t-1}+{{\beta }_{9}^{\rho }InGDP X RGQ}_{t-1}+{\mu }_{t}$$
(7)

where all the variables and terms remain as earlier defined; we proceed to estimate the coefficients of the quantile process which will range between the 1st and 9th quantile (Table 1).

Table 1 Descriptive statistics

Result presentation and discussions

Figure 1 presents the outcome of the descriptive statistics which from all indications looks good and normal. While InGDP, InGDP2, InGDP3, COC, RGQ and InGDP \(\times\) RGQ are negatively skewed, the rest of the variables are positively skewed. A look at the mean, maximum and minimum values on a comparative basis indicates that the effectiveness of control of corruption (COC) and regulatory quality (RGQ) which are institutional quality measures is on the decline. Similarly, InGDP and CO2 are on the increase but emissions tend to increase more rapidly than income.

Fig. 1
figure 1

Scattered plot for CO2 per capita and InGDP per capita in Nigeria

Figures 1 and 2 are scattered plots showing the relationship between CO2 per capita and lGDP per capita in Nigeria. Figure 1 reveals that the relationship between CO2 per capita, and InGDP per capita in Nigeria takes the form of an N-shaped curve. This is further clarified in Fig. 2, which is the fitted figure. Figure 1 gives us an insight into the manner in which CO2 emissions respond asymmetrically to the changes in InGDP which in turn could be attributed to the income (InGDP) response to the variations in macroeconomic variables in Nigeria. This is valid looking at the fact that Nigeria within the period considered in this study has remained oil-dependent, i.e. crude oil has been the major export product for the country and the key contributor to the GDP. It is noteworthy that, even though the prices of crude oil are exogenously determined by the OPEC body, this has not significantly impacted on Nigeria’s crude oil production or CO2 emissions.

Fig. 2
figure 2

Scattered plot for fitted CO2 per capita and InGDP per capita in Nigeria

The results in Table 2 show that within the framework of ADF unit root testing, all the variables are integrated of order I(1) except the three levels of InGDP which shows the presence of unit root. Similarly, within the framework of Philips-Perron (PP) unit root testing, all the variables are integrated of order I(1) except InGDP which is integrated of order I(0). This implies that the use of ARDL bound test cointegration is justified, since the Pesaran et al. (2001) approach of modelling the ARDL permit the use of variables that are jointly integrated. It also implies that we should reject the null hypothesis which says that the variables have unit roots and accept the alternative of no unit roots.

Table 2 Stationarity results

The results in Table 3 show the ARDL bound test for cointegration. The results indicate evidence of cointegration among the variables. This is validated by the value of the F-statistic for the joint significance of the variables which is greater than the upper bound at both 1% and 5% levels of significance. The results of the test conclude that there is a long-run relationship among variables of interest. Ideally, the cointegration test of the ARDL is built on the proposition that the long-run relationship between the predicted variable and predictive variables is singular (Orji et al. 2021; Pesaran et al. 2001). The bound F-test has two outstanding features. Firstly, in checking for the joint significance of the ARDL, it converts all the variables of the model into dependent variables, and secondly, it is highly influenced by the number of lags it is subjected to (Orji et al. 2021). Hence, this study adopted the lag of 2 whereas the optimum lag was decided by Akaike Information Criterion (AIC).

Table 3 ARDL bound test results with intercept and trend

In Table 4, the results of the normalised short-run and long-run coefficients are presented. The results from the short run indicate that the lag of CO2 emissions has a negative significant effect on the current CO2 emissions. The implication of this result is that previous emissions will offer the policymakers in the country clue on the need to regulate current emissions. Contrarily, this outcome will be an indicator to new investors especially in the mining sector that the country has an effective emission regulatory framework, thus giving them the notion that they too do not have the freedom to pollute due to strict emission control. This is because uncontrolled emissions serve as an incentive for more pollution and as such the intending investor would have to consider the burden of emission control. Furthermore, the variable of interest which is InGDP, representing the initial stage of economic growth in Nigeria, has a positive relationship with CO2 emissions. This relationship with CO2 emissions is statistically significant. Its coefficient is 7.937128, which implies that a 1 unit increase in GDP will increase CO2 emissions by 794%, if all other explanatory variables are kept constant. This result confirms the existence of scale effects in Nigeria’s economic growth at this level. This means that no attention was given to environmental control measures at the kick-off growth (Zhang 2021). Similarly, InGDP2 which is used to capture the second stage of economic growth has a negative relationship with CO2 emissions. This relationship according to the coefficient value (− 0.796046) is highly statistically significant with the potential of reducing CO2 emissions by 80% with every 1 unit increase in InGDP2. This validates the presence of compositional or technological effects, which is characterized by effective environmental regulations (Zhang 2021). Furthermore, InGDP3 which is used as a representation of the advanced level of economic growth has a positive relationship with CO2 emissions and this relationship is statistically significant, according to the coefficient value (0.024729). The short-run income assumed a similar trend as the long-run. The initial growth result suggests that a 1 unit increase in the initial GDP will increase CO2 emissions by 14.03196. Because this effect is statistically significant, it only points to the existence of scale effects resulting from economic growth without environmental regulations. Similarly, the InGDP2 which depicts the second level of economic growth has a negative relationship with CO2 emission in Nigeria. This relationship is shown to be statistically significant and has the potential to reduce emissions by 1403% as shown by the coefficient value (− 1.401982). The major factor responsible for this relationship between environmental degradation and economic growth at this level is technological effects. The third level of economic growth which is depicted as InGDP3 has a positive link with CO2 emissions. Because this link is statistically significant, it portends that a 1 unit increase in growth at this level will amount to a corresponding 5% increase in CO2 emissions as indicated by the coefficient value (0.045612). This is brought about by technological obsolescence. The conclusion shows that, while GDP has a positive association with CO2 emissions in both the short and long term, this relationship is statistically significant. This is an evidence of technological obsolescence effects. This suggests that technological effects have reached their maximum limit; thus, scale effects now out crowd technological effects resulting in environmental deteriorations. The overall results from the different levels of economic growth suggest that the growth of the Nigerian economy could accurately predict CO2 emissions in the country. Also, the results vividly suggest that the economic growth–carbon dioxide nexus in Nigeria does not follow the pattern of the environmental Kuznets curve hypothesis and as predicted by Narayan and Narayan (2010) but conform with the findings of Akpan and Chuku (2011) and Akpan and Abang (2014). According to this result, rather than the U-shaped curve as posited by the EKC theory what is obtainable in Nigeria is an N-shaped curve. It is noteworthy that the initial level of income in the long run and short run maintained high-coefficient values; this is a perfect demonstration of how the Nigerian economy worked within the study period. This is valid, for between 1990 and recently, the oil sector has remained the main sector contributing significantly to the GDP of Nigeria while the other sectors were gradually abandoned. Thus, this has given room for the high and significant emissions of CO2 in the country.

Table 4 Normalised short-run and long-run coefficients. Dependent variable—CO2

Furthermore, the long-run InCAPSTK is positive as its coefficient (0.780546) suggests and statically insignificant but the short-run scenario shows positive significance at 5%. This result suggests that one unit increase in InCAPSTK will increase CO2 emissions by 64% and implies that the marginal effect of CAPSTK on CO2 emissions supports the view that capital investment in Nigeria does not have pollution abatement equipment with which to regulate and eliminate pollutants produced in the process of manufacturing. Consequently, as capital investment increases in Nigeria, carbon emission also increases. This implies that an increase in capital investment will increase CO2 emissions through increased activities of the business sector, such as dumping of waste, emissions from power generating plants of the business sector and transport sector emissions. This is a possible sign of technological obsolescence. More so, in view of the long-run and short-run outcomes on a comparative basis, a major reality is brought to light. The reality is that right from the 2008/2009 global financial crisis which was hard on the country’s financial market with varying impacts both on investment and employment, and with rising security threats in some regions of the country, there has been a drastic drop in capital investment especially from abroad. This has tremendously impacted on the overall output and possibly on environmental outcomes in the country as amplified by the insignificant long-run result.

Moving further, control of corruption (COC) which is one of the measures of the quality of institution in Nigeria is statistically significant in the long run while regulatory quality (RGQ) is insignificant, although the RGQ correspond with economic expectation in terms of relationship with CO2 emissions in Nigeria, whereas, control of corruption which is expected to decrease the level of emissions ended up increasing emissions. This is an indication that efforts to control corruption in Nigeria are not yielding significant results as shown by the long-run result. However, when COC is allowed to interact with income, it significantly reduced CO2 emissions by 42%. This is not true for environmental regulatory quality (RGQ) which is insignificant even when it is allowed to interact with income. This portends that the existence of corruption in Nigeria is majorly due to the high level of poverty; thus, the control of corruption in Nigeria can only yield significant results when poverty is drastically reduced. When this is achieved, COC will then enable the successful implementation of environmental laws in Nigeria. In addition to this, its insignificant effect on CO2 emissions indicates that Nigeria may have put in place some environmental laws, but there may be no adherence to the laws due to problems of enforcement, indiscipline and corruption in Nigeria’s institutions (Ladan 2012). This outcome brings to mind the reality that Nigeria’s per capita income does not imply what it seems to portray, owing to the growing income inequality. In reality, the larger portion of the country’s income is distributed among the ruling political class with those capitalist classes having a close affinity with this ruling political class. This income gap has continued to widen and thus breeding corruption. As a result, the prevailing decay in the country’s institutions is corruption brought about by poverty. Poverty has further strengthened the bane of corruption in Nigeria making the existing institutions ineffective. On many occasions, members of these institutions set up by the government have been indicted with corrupt practices and bribery and when investigated it was confirmed to be true. The rest of the short-run results are generally insignificant; this is also the case with the rest of the long-run variables.

The constant term (C) has a negative and significant effect on CO2 emissions. This suggests that there are variables that contribute to CO2 emissions in the country which were not included in the model, variables like foreign direct investment (FDI), trade openness and future energy use which may likely be environmentally friendly. Therefore, the long-run results suggest the existence of an N-shaped curve rather than the U-shaped curve proposed by the EKC hypothesis. Similarly, the coefficient of the error correction mechanism (ECM (− 1)) which has a negative sign and is significant at 1% suggests that the result conforms to a priori expectation. Its value of − 0.826161 indicates the speed of adjustment to long-run equilibrium. In other words, about 83% of the disequilibrium will be corrected in the next period. Its negative sign shows that a convergence from short-run to long-run equilibrium is possible. It can be concluded that there is a rapid speed of adjustment towards long-run equilibrium. Finally, the diagnostic tests indicate that the model is correctly specified, meeting all of the tested statistics’ conditions of non-autocorrelation, good fit, normal distribution of residuals, no misspecification errors and the absence of heteroscedasticity. The F-statistic is robustly significant at 1%, suggesting that the independent variables have a reasonably joint effect on the dependent variables. This outcome is further validated by the outcome of the cusum and cusum-squared test presented in Fig. 3A and B.

Fig. 3
figure 3

A, B Result of stability test (cusum and cusum-squared)

It is interesting to note that the long-run and short-run results confirm that the economic growth–carbon dioxide relationship in Nigeria is not consistent with the EKC hypothesis. This happened because the long-run and short-run coefficients of the various levels of InGDP, though significant, suggest that instead of the U-shaped curve postulated by the EKC hypothesis, an N-shaped nexus exists between GDP and the emissions of CO2. Thus, the study rejects the EKC hypothesis in Nigeria as proposed by Mobosi et al. (2017), Adewuyi and Adeleke (2016) and Narayan and Narayan (2010). The result is in line with that of Akpan and Chuku (2011) and Akpan and Abang (2014).

The quantile regression results in Table 5 above confirmed the findings from the ARDL regression. It shows that in all the quantiles, InGDP, InGDP2 and InGDP3 are all significant at a 5% level of significance, with the impact aligning with the results of the ARDL regression. Similarly, the lCAPSTK is insignificant at all quantiles, thus closely conforming to the long-run outcome of the ARDL regression. According to the quantile regression, COC and InGDP \(\times\) COC are both statistically significant from the 10th up to the 70th quantile; this result agrees with the ARDL long-run result but contrasts with the short-run outcome. Furthermore, the quantile regression results indicate that at all the quantiles, regulatory quality (RGQ) in Nigeria has no significant impact on CO2 emissions. This is also true when the regulatory quality is interacted with economic growth (RGQ \(\times\) InGDP), confirming the result from the short-run and long-run ARDL.

Table 5 Results of the quantile regression

The causation results in Table 6 indicate that there is causality going from InGDP, InGDP2 and InGDP3to CO2 emissions in Nigeria. Thus, the null hypothesis that the three levels of economic growth used to examine the existence of EKC does not Granger cause CO2 emissions is rejected. This further buttresses that the EKC hypothesis applies to the economic growth–carbon emissions relationship in Nigeria. Institutional quality variables (COC and RGQ) do not have any causal effect on CO2 emission, meaning that environmental laws are not vigorously pursued in Nigeria. Similarly, when the institutional quality variables interact with LGDP, the null hypothesis is rejected. However, the null hypothesis that CAPSTK does not cause CO2 emissions is rejected. The study instead concludes that increased capital investment will increase CO2 emissions due to increased business activities of both local and foreign investors. Altogether, this result strengthens the ARDL dynamic results which show that an increase in GDP does not affect CO2 emissions in Nigeria. This supports the findings of the study that GDP has a positive relationship with CO2 emissions, implying that the level of production activities is significant enough to cause CO2 emissions. The emissions observed in the country are caused by the overall economic activities in the country, most especially from fossil fuel production and combustion, agricultural production, household and commercial activities and low waste management (Ogwu 2021; Ekesiobi et al. 2017).

Table 6 Pairwise Granger causality test at lag 1

Conclusion and recommendations

This study examined the relationship between economic growth and carbon dioxide emissions in Nigeria, bearing in mind the moderating influence of institutional quality. To determine this relationship, the ARDL regression analysis was employed on CO2 emissions, GDP, capital stock (CAPSTK) and institutional quality (COC and RGQ). Furthermore, the quantile regression and Granger causality test were used to corroborate the findings from the ARDL regression. The study found that the three levels of GDP identified to have a significant effect on CO2 emissions. The nature of these relationships supports the existence of an N-shaped curve rather than the U-shaped curve proposed by the EKC hypothesis. Also, CAPSTK was found to stimulate CO2 emissions in the short and long run, but more in the long run. This outcome could be attributed to the worsening security situation in the country which is depleting the country’s capital stock (CAPSTK) by scaring away investors, but the long-run outcome gives hope that investment will significantly improve once normalcy is restored. Furthermore, control of corruption (COC) which is a measure of institutional quality has a significant impact on CO2 emissions in the long run; this is also true when COC interact with income (InGDP). However, regulatory quality (RGQ) has an insignificant impact on CO2 emissions in the long run and short run even when interacted with income. The result for InGDP \(\times\) COC implied that corruption control in Nigeria can only reduce CO2 emissions if poverty is reduced. This infers that there is no effective policy targeted at pollution reduction and control in Nigeria without addressing poverty levels.

The study, therefore, recommends as follows; since economic progress is likely to raise carbon emissions, restricting growth to minimize environmental degradation does not augur well for the economy, especially given the risk of denying the majority of Nigerians the gains of development. While the pursuit of environmental sustainability is imperative, it should not come at a huge cost to the economy. To provide the best quality of life, government economic growth policies should be structured to be environmentally sustainable, inclusive and equitable. From our findings, economic growth–centred policies will not be sufficient to mitigate environmental pollution, beckoning for a multifaceted approach. Therefore, further recommendations include the effective management of the capital stock in the economy through the adoption of green industrialisation investments, to decouple manufacturing and production away from harmful environmental externalities by optimizing the use of renewable energy, sustainable supplies and clean technology. Foreign direct investment and financial sector policies, in general, have to be geared towards promoting rapid economic progress in the country and at the same time reinforcing environmental sustainability. Institutional development is also a prerequisite for the furtherance of environmental quality, as the presence of a potent judicial process, an effective and equitable allotment of capital, as well as the enforcement of rules and regulations, fosters economic growth by resulting in a curtailment in carbon emissions. To enhance regulatory control, the government must intensify its efforts to make institutions more proactive and capable of enforcing environmental laws and regulations, so that economic growth does not undermine environmental quality.

Also, the independence of the different tiers (federal, state and local) and arms (executive, legislature and judiciary) of government need to be guaranteed for improved regulatory control, to ensure equal power sharing and delineation of responsibilities, so they can work in sync (horizontally and vertically) devoid of undue interference. Tougher environmental laws should be imposed on polluting industries and sanction violators with carbon taxes, fines and other penalties to compensate for the societal cost of pollution. A good place to start should be the recent Petroleum Industry Act to checkmate gas flaring and other harmful crude oil-related pollution. Also, the National Environmental Standard and Regulation Enforcement Agency (NESREA) needs to be revitalised to deliver on its core mandate which is to “ensure a cleaner and healthier environment for Nigerians”. It is also imperative for anti-corruption efforts in the country to be bolstered to tackle the menace of bribery and corruption. As a result, the Independent Corrupt Practices and other Related Offences Commission (ICPC) and the Economic and Financial Crimes Commission (EFCC) should take renewed and concerted strides in the battle against corruption, by instigating legal action against corrupt offenders and warding off future diversion and abuse of public resources designated for financing economic expansion programmes.

To conclude, future carbon emission abatement is a real concern for present environmental preservation and sustainable development initiatives. While this research makes a modest attempt to provide policy insights into the growth-pollution-institutional quality debate, it is far from exhaustive. Another limitation of this work stems from the data period; hence, the study could not capture the period when oil began to overshadow the other sectors of the economy in terms of contribution to GDP. Other measures of institutional quality such as rule of law, government effectiveness and political stability have been reckoned as key players in the growth of the Nigerian economy, most especially, the issues relating to the disturbance of peace in some regions of the country which frequently interrupt economic activities in these regions. As a result, there are intrinsic constraints that provide an impetus for additional research investigations. Examining findings across nations and regions to draw parallels with respect to nationality, culture, faith, dialect and system of government will be beneficial. Cross-country comparisons of advanced and budding economies, which differ in many other ways, might be another area of research. Research in this area also should be continuous with the availability of new data, theories and methodology. These actions would further pave the way to achieve decarbonisation and mitigate climate change for the welfare of the present and future generations.