Introduction

Between 2006 and 2011, Algeria experimented with a golden era of FDI, which found inflows average $2.25bn annually (UNCTAD 2020). After that period, investment dropped to about $1.1bn a year, not recovering well from the 2008 financial crisis. In addition, the government restrictions on foreign investors, as part of a policy of economic nationalism pushed forward after 2008 (IMF 2020), is positioned 157th out of 190 countries in the World Bank (2019). Nowadays, Algerian law limits a foreign investor’s stake in a local firm to 49% and requires foreign bidders for state contracts to find local partners. Corruption, a weak financial sector, and legal insecurity regarding intellectual property rights are relevant barriers to investment in Algeria. Consequently, even FDI will imply a transition from self-constrained economies (Gygli et al. 2019). This process also directly impacts environmental pressure (Ansari et al. 2020; Shahbaz et al. 2020).

By contrast, the ascending levels of FDI can impulse the technological transference necessary for sustainable development (Rudolph and Figge 2017; Álvarez-Herranz et al. 2017; Aziz et al. 2020). So, foreign investments can accelerate the transition to sustainable economic growth based on implementing high-tech industry in the host country.

Although air pollution is a severe problem in Algeria, the desertification process is the leading ecological trouble of Algeria, being necessary active policies for correcting this process, where the ecological footprint analysis is essential for this aim. In addition, the increased pressure on the ecological footprint results from increased demand for consumption and usage associated with economic growth, trade expansion, and globalization (Ansari et al. 2020).

Some researchers have debated the impact of environmental degradation on national economic growth (Sarkodie and Strezov 2019; Boufateh and Saadaoui 2020; Ike et al. 2020), confirming that, in the long run, economic growth implies ascending demand for environmental quality (Lacheheb et al. 2015; Xu et al. 2020). Hence, the N-shaped EKC empirical evidence (Álvarez-Herranz et al. 2017; Balsalobre-Lorente et al. 2018; Ekeocha 2021) admits the return to an ascending environmental pressure after a certain income level is achieved. This paper advances in the empirical literature, establishing the existence of an N-shaped linkage between economic growth and ecological footprint (Bekun et al. 2021; Naqvi et al. 2021; Gyamfi et al. 2021). Remarkably, this study is novel in the context of Algeria, covering the period 1975–2014.

To our understanding, this is the first study that applied in the long run by using ARDL and the FMOLS and DOLS cointegration techniques in the context N-shaped EKC hypothesis for Algeria to explain alternative influences of shocks on the ecological footprint.

As a result of the absence of agreement and results of previous studies, this study explores the impact of income, FDI, and electricity consumption on the progress of environmental quality, analyzing the association between ecological footprint and FDI. We assume that pollution hypotheses (pollution halo or pollution havens) are valid in Algeria and practically useful for further policy consideration relating to sustainable development. Thus, the current study contributes to the empirical literature exploring the interaction between FDI and electricity consumption on the ecological footprint and how it is necessary to promote high-tech and eco-friendly industries in Algeria.

In the instance of Algeria, we utilized the ARDL model. We discovered evidence for an N-shaped connection between per capita income and ecological footprint, confirming our hypothesis of an N-shaped EKC. The empirical results, presented by different econometric techniques, validate the N-shaped EKC relationship for Algeria. The empirical analysis also includes additional explanatory variables, electricity consumption, and FDI, as a proxy of globalization, which offers exciting policy implications, covering previous literature gaps.

The remaining parts of the study are ordered: “Literature review” reviews the studies on empirical and theoretical issues. “Data and methodology” presents the data description, the econometric model, and the methodologies applied. “Empirical results” contains the analytical findings and discussion. The final section offers conclusions and policy directions.

Literature review

The seminal study of Grossman and Krueger (1991) concluded that environmental degradation increases with per capita income to a certain level. After this turning point, economies experiment with an environmental correction process. The N-shaped environmental Kuznets curve indicates that the traditional EKC theory will fail the test time, considering that in the long run, ascending income levels will generate ascending environmental pressure, mainly as a consequence of technical obsolescence (Álvarez-Herranz et al. 2017; Balsalobre-Lorente et al. 2018). Balsalobre-Lorente et al. (2018) postulated that the N-shaped relationship arises if the scale effect overcomes both the composition and the technical effect due to an inadequate regulation for improving technological advances. For the case of Algeria, Wang and Dong (2019) and Génesis-Carolina et al. (2021) validated the EKC between economic growth and the ecological footprint in Algeria. Latifa et al. (2014) confirmed the U-inverted EKC for Algeria between CO2 emissions and GDP both in the short and long term. Bouznit and Pablo-Romero (2016) explored the linkage between carbon emissions and economic growth in Algeria, taking into account energy use, electricity consumption, and trade openness. The study of Layachi (2019) confirmed that economic growth has a positive and significant impact on carbon emission in Algeria.

The link between economic growth, FDI, and ecological footprint is contentious with many competing viewpoints. Different studies have assessed the impact of FDI on environmental degradation (Qian and He 2010; Du and Zhang 2018; Ahmed et al. 2019; Sabir and Gorus 2019; Yilanci and Gorus 2020; Kirikkaleli et al. 2021). Yilanci and Gorus (2020) concluded that globalization directly impacts the ecological footprint in the MENA area for 1981–2016. Similarly, Du and Zhang (2018) discovered an N-shaped relationship between economic growth and CO2 emissions in China. Sabir and Gorus (2019) applied the ARDL method to investigate how economic globalization influences the ecological footprint. In the long run, their finding confirmed that economic globalization harms the environmental footprint in the ASIAN region, establishing the EKC and a nonlinear linkage between globalization and the ecological footprint. Ansari et al. (2021) confirmed a negative connection between FDI, renewable energy, and the ecological footprint. Aziz et al. (2020) examined the link between globalization and environmental degradation in MINT nations from 1995 to 2018, showing that globalization and carbon emissions presented an inverted U-shaped linkage, offering evidence of a transition to a high-tech pattern in the region.

Few studies have assessed the impact of foreign direct investment on ecological footprint as a proxy of environmental degradation. From 44 member countries of the Belt and Road Initiative, Liu and Kim (2018) showed that FDI inflows improve the total ecological footprint. In a study in the USA from 1970 to 2015, Zafar et al. (2019) opined that FDI inflows help curtail ecological footprint. Moreover, Balsalobre-Lorente et al. (2019) confirmed an inverted-U-shaped association between FDI inflows and ecological footprints for MINT countries (Mexico, Indonesia, Nigeria, and Turkey) from 1990 to 2013. They found that although FDI initially leads to environmental degradation, the impact reverse beyond a certain level of FDI.

In contrast to previous research findings, Destek and Okumus (2019) looked at the pollution haven hypothesis (PHH) in 10 newly industrialized economies over the period 1982–2013. According to their results, the environmental footprint tends to decline at lower degrees of foreign-direct investment. Instead, this effect does not continue at a higher level of FDI, resulting in a U-shaped relationship. Recently, Chowdhury et al. (2021) investigated the impact of FDI inflows on the ecological footprints of 92 countries in the period 2001–2016. Their findings reveal that the FDI is positively associated with the ecological footprint. Similarly, Yin and Hussein (2021) assessed the factors that influence ecological footprint in 5 Southeast Asian countries and discovered that FDI inflows positively contribute to environmental quality.

Different studies have explored the link between electricity consumption and the ecological footprint for Algeria (Akrour et al. 2021; Sahnoune et al. 2013; Rahmane et al. 2021; Belaid and Youssef 2017). For example, Rahmane et al. (2021) concluded that policymakers should enhance investment in renewable energy and control the overexploitation of fossil energy, which reduces emissions and preserves the environment. Belaid and Youssef (2017) concluded that renewable electricity consumption could reduce environmental pressure in Algeria. But so far, clean electricity generation has not moved forward to a developed level that allows a substantial contribution to the energy-based emissions reduction target.

Our study fills the gap in past literature, analyzing the association between the connection of electricity consumption and FDI on the ecological footprint in Algeria. Hence, it is necessary to examine the role of FDI as a proxy globalization process and how it impacts the ecological footprint through changes in the energy pattern.

This research advances in analyzing the long-term connection between economic growth, FDI, energy usage, and ecological footprint in Algeria between 1975 and 2014. To this end, we consider an N-shaped EKC pattern, introducing the interaction between FDI and energy usage, where the transition to a developed stage depends on proper regulations to solve the technical obsolescence.

Data and methodology

As we have explained above, the current study aims to assess the N-shaped EKC hypothesis between economic growth per capita (LGDPP) and ecological footprint per capita (LEFP) in Algeria for the period 1975–2014 (according to data availability). Through the ARDL approach, as the main empirical technique, we also investigate the nexus between electricity consumption (LELE), foreign direct investment (LFDI), and ecological footprint per capita (LEFP), as well as the interaction between the electricity consumption and the foreign direct investment (LFDI*LELE). We included yearly data from the World Bank database (2021) for economic growth per capita, electricity consumption, and foreign direct investment and the Global Footprint Network (2021) for the ecological footprint in Algeria. For deleting heterogeneity, the variables were transformed into a natural logarithm for ensuring that series were normally distributed (Kirikkaleli et al. 2020; Rjoub et al. 2021).

The variables utilized in this study are listed in Table 1.

Table 1 Variable description

The following Eq. 1 reveals the proposed model:

$${LEFP}_t={\beta}_0+{\beta}_1{(LGDPP)}_t+{\beta}_2{(LGDPP)}_t^2+{\beta}_3{(LGDPP)}_t^3+{\beta}_4{(LELE)}_t+{\beta}_5{(LFDI)}_t+{\beta}_6{\left( LELE\ast LFDI\right)}_t+{\varepsilon}_{it}$$
(1)

where LEFP is the natural logarithmic transformation of ecological footprint per capita, and it is used as a proxy for environmental degradation (Ulucak and Bilgili 2018; Hassan et al. 2019). LGDPP, LELE, and LFDI are the natural logarithms of GDP per capita, electricity consumption, and foreign direct investment. In accordance with previous literature (Álvarez-Herranz and BalsalobreLorente 2015; Álvarez-Herranz and Balsalobre Lorente 2016; Balsalobre-Lorente et al. 2018), LGDPP2explores if a high level of GDP may contribute to the alleviation of ecological problems, the LGDPP3 refers to the cubic of economic growth per capita and the return to an ascending pollution pattern (Dogan and Inglesi-Lotz 2020), ε is the error term, β1, β2, β3, β4, β5, β6denote parameters, and t represents the time. Depending on the sign of the coefficients of exogenous variables related to GDPP, the EKC will assume various shapesFootnote 1 (Balsalobre-Lorente and Álvarez-herranz 2016)

Unit root tests

Before embarking on the econometric analysis, the stationary of each variable ought to be checked through the traditional ADF (Dickey and Fuller 1979) and PP (Phillips and Perron 1988) unit root tests (see Table 2) to establish the order of integration of all series.

Table 2 Main statistics and correlation

Cointegration tests

Once we have confirmed the stochastic properties of the selected variables, it is necessary to explore the long-run properties of selected variables, checking the traditional Fisher-Johansen cointegration test (1991). The equation examining the null hypothesis for the Fisher-Johansen cointegration test is denoted as follows:

$$-2{\sum}_{i=1}^N\mathit{\log}\left({\varPi}_i\right)\to {\chi}^22N$$
(2)

χ2 values are built on MacKinnon et al. (1999), and p-values are stated for Johansen’s cointegration trace and maximum eigenvalue tests.

In a second phase of the cointegration analysis, we apply Bayer and Hanck (2013) combined test to cointegrate the analytic variables LGDPP, LELE, LFDI, and LEFP. This recently revised cointegration approach incorporates the results of several independent tests, including tests of Engle and Granger (1987), Johansen (1991), Boswijk (1994), and Banerjee et al. (1998), and provide a more comprehensive result. The formula proposed by Bayer and Hanck (2013) is as follows:

$$EG-J=-2\left( Ln\ (pEG)+ Ln\ (pJ)\right)$$
(3)
$$EG-J- Bo- BDM=-2\left( Ln\ (pEG)+ Ln\ (pJ)+ Ln\ (pBo)+ Ln\ (pBDM)\right)$$
(4)

Fisher’s statistics are used to see if the underlying variables are cointegrated, where pEG, pJ, pBo, and pBDM denote the p-values of cointegration tests of Engle and Granger (1987), Johansen (1991), Boswijk (1994), and Banerjee et al. (1998), respectively. When it is more than the critical values, we can reject the null hypothesis of no cointegration (Bayer and Hanck 2013).

Econometric techniques

In addition, to emphasize the cointegration among the variables, we apply the auto-regressive distributed lag (ARDL) model (Pesaran et al. 2001). The ARDL is allowed when series are mixed either I(0) or I(1) and none of them is I(2) since the presence of the I(2) component makes null and void the predicted F-stat for estimating cointegration (Ouattara 2004; Adebayo and Demet 2020). This technique requires suitable lag selection, and a suitable lag length may solve the endogeneity’s problem. Likewise, this approach accommodates a limited sample size (Kirikkaleli et al. 2018; Ayobamiji and Kalmaz 2020; Adebayo and Kirikkaleli 2021). Besides, it is beneficial because it simultaneously generates the short- and long-run relationship (Pesaran et al. 2001; Nazir et al. 2018). This process empathizes the formulated policy of this study to be efficient. If the variables series are stationary at the first and second differences, the ARDL can be used independently (Obobisa et al. 2021; Gill et al. 2018). The symmetric relationship between variables is summarized as shown below:

$$\Delta {LEFP}_t={\omega}_0+{\omega}_1{(LEFP)}_{t-1}+{\omega}_2{(LGDPP)}_{t-1}+{\omega}_3{(LGDPP)^2}_{t-1}+{\omega}_4{(LGDPP)^3}_{t-1}+{\omega}_5{(LELE)}_{t-1}+{\omega}_6{(LFDI)}_{t-1}+{\omega}_7{\left( LELE\ast LFDI\right)}_{t-1}+\sum\nolimits_{j=1}^t{\varphi}_1\Delta {(LEFP)}_{t-j}+\sum\nolimits_{j=1}^t{\varphi}_2\Delta {(LGDPP)}_{t-j}+\sum\nolimits_{j=1}^t{\varphi}_3\Delta {(LGDPP)^2}_{t-j}+\sum\nolimits_{j=1}^t{\varphi}_4\Delta {(LGDPP)^3}_{t-j}+\sum\nolimits_{j=1}^t{\varphi}_5\Delta {(LELE)}_{t-j}+\sum\nolimits_{j=1}^t{\varphi}_6\Delta {(LFDI)}_{t-j}++\sum\nolimits_{j=1}^t{\varphi}_7\Delta {\left( LELE\ast LFDI\right)}_{t-j}+{\mu}_t$$
(5)

where ω0 is the drift constant,ω1, ω2, ω3, ω4, ω5, ω6,ω7 are the long-run multipliers, whereas the remaining expressions with summation sign φ1, φ2, φ3, φ4, φ5, φ6, φ7 represent the short-run dynamics, t is the lag length based on Akaike information criterion (AIC), ∆and μt represent the first difference operator and the white noise component, respectively.

With the next hypotheses, the existence of cointegration is tested using F-test statistics:

$${H}_0:{\omega}_0={\omega}_1={\omega}_2={\omega}_3={\omega}_4={\omega}_5={\omega}_6=0$$
(6)
$${H}_1:{\omega}_0={\omega}_1\ne {\omega}_2\ne {\omega}_3\ne {\omega}_4\ne {\omega}_5\ne {\omega}_6\ne 0$$
(7)

The variables are cointegrated if the F-statistics exceed Pesaran critical values’ upper boundary at 5% (Pesaran et al. 2001). The critical values are presented for any number of predictors, every sample size, and the estimated model’s short-run coefficients. The decision-making process is facilitated by the p-values generated for both T and F-statistics. We use the most reliable and recent set of crucial values to provide reliable estimations for a limited number of observations.

By considering an error correction model (ECM) for Eq. 5 into our short run, the following equation would present coefficients of the ARDL model:

$$\Delta {LEFP}_t={\omega}_0+\sum\nolimits_{j=1}^t{\theta}_1\Delta {(LEFP)}_{t-j}+\sum\nolimits_{j=1}^t{\theta}_2\Delta {(LGDPP)}_{t-j}+\sum\nolimits_{j=1}^t{\theta}_3\Delta {(LGDPP)^2}_{t-j}+\sum\nolimits_{j=1}^t{\theta}_4\Delta {(LGDPP)^3}_{t-j}+\sum\nolimits_{j=1}^t{\theta}_5\Delta {(LELE)}_{t-j}+\sum\nolimits_{j=1}^t{\theta}_6\Delta {(LFDI)}_{t-j}++\sum\nolimits_{j=1}^t{\theta}_7\Delta {\left( LELE\ast LFDI\right)}_{t-j}+\delta {ECT}_{t-j}+{\mu}_t$$
(8)

where θi(i = 1…7) denotes the short run’s parameters of variables, ECTt − j denotes the error correction, which displays the adjustment o speed from short run’s shock to the long-run balance, δ represents the parameter for ECTt − j.

Furthermore, we run a series of diagnostic tests to rule out the false specification, serial correlation, heteroskedasticity, normalcy issues, and functional form. The cumulative sum of recursive residual (CUSUM) and cumulative sum of squares of recursive residual (CUSUMsq) tests were also applied to check the stability of the model (Brown et al. 1975).

After this, we evaluate the robustness of the long-run coefficients of the ARDL Bound approach of the model applying FMOLS (Phillips and Hansen 1990) and DOLS (Saikkonen 1991; Stock and Watson 1993) econometric methodologies.

According to Pedroni (2001a, b), the fully modified least square (FMOLS) model can be represented as follows:

$$Y_{i,t}={\mathrm\alpha}_i+\beta_iX_{i,t}+\varepsilon_{i,t}\forall_t=1,\dots,T,i=1,\dots.N$$
(9)

The FMOLS technique ameliorates the serial correlation and endogeneity through a semi-parametric correction. This process erases long-term correlation among the cointegration equation and the stochastic regressor (Phillips 1995). It admits the standard Wald test that applies asymptomatic chi-square statistical inference (Hansen 1992a, 1992b).

The dynamic ordinary least squares (DOLS) econometric methodology considers orthogonality in the equation term:

$$Y_{t}={\mathrm\alpha}_i+\beta X{\prime}_t+D{\prime}_{1t}D^{\prime }{\gamma}_1\sum\nolimits_{j=-q}^r\Delta X{\prime}_{t+j}{\rho}+{v}_{1,t}$$
(10)

The DOLS technique uses intercept–trend specification without additional deterministic components and one lag and lead of the differenced cointegrating regressor to erase the long-run correlation.

Causality test

Most of the literature uses the Dumitrescu and Hurlin (2012) Granger causality test (Granger 1969), though it gives ambiguous results. Moreover, due to a specification issue, the Granger causality test produces erroneous and confusing findings. To address this problem, Toda and Yamamoto (1995) proposed a new causality approach. Their process determines reliable and effective analytical results in the absence of cointegration in the VAR method. Toda and Yamamoto (1995) test employs an alternative methodology to determine whether variables were neutral, bidirectional, or unidirectional. Toda and Yamamoto (1995) approach is more efficient in not requiring additional information about the properties of the variables. Our study applies the test utilized to explore the causality relationship between selected variables and used the VAR(p + dmax).

$$\left[\begin{array}{c}{LEFP}_{t-1}\\ {}{LGDPP}_{t-1}\\ {}\begin{array}{c}{LELE}_{t-1}\\ {}L{FDI}_{t-1}\end{array}\end{array}\right]={\forall}_0+{\forall}_1\left[\begin{array}{c}{LEFP}_{t-1}\\ {}{LGDPP}_{t-1}\\ {}\begin{array}{c}{LELE}_{t-1}\\ {}{LEDI}_{t-1}\end{array}\end{array}\right]+{\dots \forall}_k\left[\begin{array}{c}{LEFP}_{t-K}\\ {}{LGDPP}_{t-K}\\ {}\begin{array}{c}{LELE}_{t-K}\\ {}L{EDI}_{t-K}\end{array}\end{array}\right]+{\forall}_{k+1}\left[\begin{array}{c}L{EFP}_{t-K-1}\\ {}{LGDPP}_{t-K-1}\\ {}\begin{array}{c}{LELE}_{t-K-1}\\ {}{LFDI}_{t-K-1}\end{array}\end{array}\right]+{\forall}_{k+d}\left[\begin{array}{c}{LEFP}_{t-K-d}\\ {}{LGDPP}_{t-K-d}\\ {}\begin{array}{c}{LELE}_{t-K-d}\\ {}L{FDI}_{t-K-d}\end{array}\end{array}\right]$$
(11)

Empirical results

Table 2 displays basic descriptive statistics and correlation matrix between LEFP, LGDPP, LELE, and LFDI. The columns show the variables’ mean, median, maximum, minimum, standard deviation, Skewness, Kurtosis, and Jarque-Bera normality’s test check with probability values. LGDPP and LFDI have the highest mean and median. All the variables are platykurtic since their Kurtosis value is less than 3, except LFDI. Evidence of normality exists, which is desirable. This can be deduced from their various probability values, greater than 5%, except LFDI. Also, statistics shown from the correlation analysis and Jarque-Bera test indicate a positive correlation and normal distribution between LEFP, LGDPP, and electricity consumption.

  Table 3 shows that the variables examined using the ADF and PP unit tests are stationary after the initial discrepancy during the first level, except LEFP and LFDI, which are stationary at level. So, we can conclude that variables are mixed, either I(0) or I(1) and, nonetheless, not I(2). Hence, the ARDL method is preferred in such cases.

Table 3 Stationarity test result

After confirming the stochastic properties of selected variables, the empirical methodology also considers analyzing the long-run connection among selected variables through the Fisher-Johansen cointegration test (1991) that integrates the individual tests and attaches them from individual cross-sections (Table 4).

Table 4 Johansen cointegration test

In a second step, the Bayer–Hanck test findings, depicted in Table 5, indicate that EG-J and EG-J-Bo-BDM’s F-statistic values are 18.333 and 36.651 and are greater than 5% of critical value, i.e., 10.637 and 20.486, respectively. Hence, the alternative hypothesis of cointegration was accepted. Therefore, Johansen and Bayer-Hanck cointegration tests confirm a long-run cointegration between the selected variables in Algeria for the period 1975–2014.

Table 5 Bayer-Hanck test for cointegration

Once the stationarity properties of the selected variables are confirmed, we advance to estimate the ARDL framework. Raza et al. (2013) stated that using more lags or using leases lags might result in the model’s most strong evidence being lost, as well as a one-sided or biased estimation. As a result, having witnessed the state of perfect delays, the current research focused on the Akaike information criterion (AIC) to select the appropriate lag length for cointegration, being confirmed that the AIC is preferred in lag length selection due to its higher characteristics (Udemba and Yalçıntaş 2021; Zhang et al. 2021). Thus, the AIC lag length criterion statistic shows that the ARDL (1, 0, 0, 0, 0, 0, 0) is the best lag order, and outcomes are stated in Table 6. In addition, the inverse roots of AR characteristics of the polynomial graph in Figure 1 show that the model is dynamically stable because the two blue dots are inside the unit circle.

Table 6 Lag length selection criterion
Figure 1
figure 1

Autoregressive root graph

Table 7 highlights the ARDL bound test estimates. The F-statistic value (4.83) is greater than the upper-bound critical value at 1%, implying the existence of cointegration. Thus, the Johansen and Bayer–Hanck cointegration tests were employed to verify the result of the ARDL bound test and check the robustness of an existing long-run relationship among the study variables.

Table 7 ARDL bound test result

The overall findings of the ARDL model are illustrated in Table 8.

Table 8 Long-run and short-run coefficient results

The values of R2 and adjusted-R2 show that 98.13% and 97.78% variation in the response of ecological footprint can be explained by economic growth, electricity consumption, foreign direct investment, and the interaction between LEL and LFDI, as well as the rest of the percentage that can be attributed to the residue. For the short run, results show that the speed of adjustment is considered to facilitate the long-run relationship between coefficients with significant negative ECM. ECT value (− 0.88) proves the cointegration, and this signifies that the model can witness a balance at 88% speed of adjustment toward the long-run equilibrium. The econometric results reported in Table 8 confirm a nonlinear connection between real GDPP and the ecological footprint in the long run. So, these results demonstrate the EKC empirical evidence in Algeria is consistent (Génesis-Carolina et al. 2021). We can observe how, in the first stage of development, the EFP rises (ω2 > 0) along with ascending per capita income (GDPP). After that, EFP decreases (ω3 < 0). A final stage (ω4 > 0) confirms the N-shaped connection between economic growth and the ecological footprint in Algeria between 1975 and 2014. This understanding is in line with previous empirical literature (Al-Mulali 2011; Farhani et al. 2014; Sahli and Ben Reje 2015; Abdallh and Abugamos 2017). In other words, the N-shaped validation implies that in the first step of economic growth, environmental quality increases till a certain turning point, where it starts to come down. In the last stage, typified by high development and low growth rate, the pollution level increases again due to technological obsolescence and inappropriate energy regulations (Álvarez-Herranz et al. 2017). In the last stage, the scale effect starts to prevail again over composition and technical effect where environmental protection measures would correct technological obsolescence (Balsalobre-Lorente and Álvarez-herranz 2016; Balsalobre-Lorente et al. 2018; Shahbaz et al. 2018). Otherwise, the electricity consumption presents a direct connection with the EFP (ω5 > 0), suggesting that fossil sources dominate the energy mix in Algeria. Otherwise, our empirical results also reflect that FDI directly affects EFP, validating the pollution haven hypothesis in Algeria (Udemba and Yalçıntaş 2021). The empirical evidence confirms that FDI increases the EFP in Algeria (ω6 > 0). Finally, the interaction between FDI and electricity consumption presents a negative connection with the EFP (ω7 < 0). The nexus between FDI-electricity consumption and the EFP confirms the necessity to promote economic sectors supported by foreign investment. This fresh evidence contains significant policy implications for this country and the context of the FDI gold decade. In this sense, the interaction effect confirms the positive effects of FDI over the energy mix in Algeria due to the attraction of a clean industry with more efficient energy usage. For this reason, the Algeria administration needs to attract clean and high-tech industries for reducing environmental pressure. Additionally, this result indicates that in the absence of stringent environmental protocols and forfeits for polluters, the economic development for Algeria is related to ascending pollution levels (He 2006; Neequaye and Oladi 2015). Subsequently, the administration should promote to attract investment in clean industries and services, which will increase environmental protection (Cole and Elliott 2003; Managi et al. 2012). Otherwise, Algeria policymakers must promote the purchase of clean inputs to restructure international trade, improve the administrative structure necessary for efficient capital liberalization, and attract additional FDI inflows. The promotion of renewable sources and efficient energy usage would contribute to reducing the ecological footprint. Lastly, governments in this region should act against corruption and perform correct property rights in the country (Abdouli et al. 2018).

Table 9 shows the heteroskedasticity, serial correlation, normality, and functional form testing, used as diagnostic tests in the studies. Findings reveal the absence of heteroskedasticity and serial correlation, as pointed out by Breush-Pagan-Godfrey’s F-statistic of LM tests, respectively. Thus, results are void of the error correction definition (Farhani et al. 2014; Pan and Dossou 2020). Besides, the p-value of the Jarque-Bera test, which is greater than 10%, recommends that errors are normally distributed. Ramsey RESET test is also employed to check for the suitable functional form. So, the model is well specified, as the probability value is 0.9175.

Table 9 Diagnostic tests for ARDL model

After performing the diagnostic tests (Table 9), the short- and long-run ARDL estimates are examined by performing the CUSUM and CUSUMsq experiments (Figure 2), revealing a constancy of the fitted model.

Figure 2
figure 2

Plot of the CUSUM and the CUSUM of squares

The empirical evidence is reinforced by applying the FMOLS and cointegration techniques to bolster the ARDL long-run econometric results (Table 10).

Table 10 FMOLS & DOLS main econometric results

The outcomes of the FMOLS method endorse the existence of N-shaped EKC between the ecological footprint and economic growth as the signs of the coefficients of LGDP, LGDPP2, and LGDPP3 confirm a nonlinear N-shaped behavior, statistically significant at 1%. The DOLS model result is a replica of the FMOLS model in terms of signs and significance degree. The variable of interaction between electricity consumption and FDI is appropriately signed with a negative coefficient across both econometric methods. Results are reliable with the existence of a long-run relationship among variables. In addition, the high values of adjusted-R-squared disclose that the fit of variables in FMOLS and DOLS models is strong (97.72% and 97.92%, respectively). So, the findings from FMOLS and DOLS are also conclusive and comply with the ARDL long-run estimates. The consequences of our empirical results confirm that an effective pollution control policy will reduce through cleaner energy use (Bilgili 2012; Lin and Moubarak 2014; Adewuyi and Awodumi 2017).

Finally, we apply the Toda-Yamamoto non-causality test (Toda and Yamamoto 1995) that explores the causal connection among variables (Table 11). These findings show a unidirectional causality between economic growth and ecological footprint, just as had been shown in the research on the United Arab Emirates by Shahbaz et al. (2020) or by Danish et al. (2020) in Japan, Canada, Italy, USA, and Germany, and Nathaniel et al. (2020) in the Middle East and North African region. This evidence helped to clarify that the increase in Algeria’s ecological footprint results from increased economic activities.

Table 11 Toda-Yamamoto non-causality analysis

Causality analysis reveals that electricity consumption is a causal factor for ecological footprint. More so, the Algerian government should adopt electric power sources in their domestic or commercial activities. This finding complements those of de Mehmood (2021), who also discovered the same direction of causality for SAARC countries. Also, this study confirms one-run relationship flows from economic growth per capita toward foreign direct investment. This outcome is corroborated by previous studies which support the finding that FDI has a crucial role in stimulating the long-run economic growth (Kivyiro and Arminen 2014; Tan and Tang 2016; Sunde 2017; Goh et al. 2017; Sarker and Khan 2020). In this regard, Algerian policymakers should pay more attention to the policies for attracting inward FDI.

Discussion and policy implications

The empirical evidence (Tables 8 and 10) confirms an N-shaped EKC connection (Sahli and Ben Reje 2015; Abdallh and Abugamos 2017) between economic growth and the ecological footprint in Algeria between 1975 and 2014.

Figure 3 illustrates how the EFP rises along with rising economic growth in the first stage of development. This pattern reveals a transition to a developed stage, where FDI and electricity consumption directly affects the ecological footprint. The econometric results confirm the interaction between FDI and electricity consumption, and this result is essential to avoid technical obsolescence and reduce environmental pressure. After that, during phase 2, EFP decreases until a certain turning point, where economic growth contributes to increasing EFP. The final stage confirms the N-shaped connection between economic growth and the ecological footprint. During phase 3 (see Figure 3), the prevalence of the scale effect will generate ascending degradation (Balsalobre-Lorente et al. 2018; Shahbaz et al. 2018). This result considers that ascending income will contribute to growth rate, appearing a new increase of the ecological footprint due to the absence of appropriate innovations and the promotion of renewable energy sources (Álvarez-Herranz et al. 2017).

Figure 3
figure 3

N-shaped EKC

Otherwise, the empirical evidence also supports the pollution haven hypothesis in Algeria, revealing a direct connection between FDI and the ecological footprint (Udemba and Yalçıntaş 2021). This direct linkage implies the necessity of implementing a high-tech industry in Algeria to reduce the pernicious effects of FDI on the environment. For this proposal, the Administration should promote foreign initiatives and strategies in energy innovation processes to generate a transition to clean and high-tech economies.

The electricity consumption directly correlates with the EFP, suggesting that fossil sources dominate the energy mix in Algeria.

The key finding of this study is the existence of an interaction (Cohen et al. 2013) between FDI and electricity consumption, which negatively connects with the EFP. This evidence is fundamental for understanding how the attraction of foreign industry can generate more efficient energy processes in the host country. In other words, the nexus between FDI-electricity consumption and the EFP confirms the necessity of advance in the promotion of more efficient energy processes supported by foreign investment. Therefore, the investment in clean industries will enhance stringent environmental regulation, diminishing ecological pressure (Cole and Elliott 2003; Managi et al. 2012). Being imperative to act against corrupt practices, incrementing rights policies for public goods, promoting more efficient and cleaner energy usage (Abdouli et al. 2018; Sinha et al. 2017; Kasperowicz 2015; Bilgili 2012; Lin and Moubarak 2014; Adewuyi and Awodumi 2017); where advanced FDI would provide investments in R&D, technologies, and advances in the energy industry (Ndlovu and Inglesi-Lotz 2020; Wu et al. 2020).

Hence, Algeria should promote the attraction of cleaner and high-tech foreign businesses to control environmental pressure and reach sustainable economic growth, related to a new FDI golden decade (UNCTAD 2020). By contrast, in the absence of strict protocols, FDI would be part of pollutant manufacturing firms (He 2006; Neequaye and Oladi 2015).

Based on the stated results, some significant policy implications should be implemented. For instance, both government and private industry should coordinate active measures. In this sense, the Administration promotes clean energy sources increasing renewable sources, while the private sector should implement measures in strategic sectors like tourism or the high-tech industry, attracting foreign business to Algeria.

Final conclusions

This study examines the effect of electric consumption, FDI, the interaction between them, and economic expansion on the ecological footprint in Algeria from 1975 to 2014. In particular, we find evidence of an N-shaped environmental Kuznets curve (N-shaped EKC). This study enhances the EKC literature by clarifying the relationship hypothesis between economic growth per capita and ecological footprint in a globalized economic system. The main objective of this study has been to present a battery of recommendations aimed to achieve a transition to sustainable growth based on technology and more efficient energy processes. For this purpose, we consider that promoting advanced FDI and clean energy usage are fundamental driving forces to advance to a developed stage of economic growth.

The ARDL econometric technique is employed to confirm the long-term presence of the N-shaped EKC hypothesis after checking the stationary properties of selected variables through the traditional ADF and PP unit root tests. We have also applied Johansen-Fisher and Bayer Hanck cointegration methodologies, demonstrating long-run connections among selected variables. In a second step, we have applied the FMOLS and DOLS econometric to confirm the empirical procedure’s robustness. The causality direction is also checked in the final empirical strategy by applying the Toda-Yamamoto non-causality test.

According to the N-shaped relationship between economic growth and the ecological footprint, both FDI and electric consumption increase the ecological footprint in Algeria; as a result of the need for agreement, uniformity of analyses, and results of previous studies on the impact of economic growth on the quality of the environment and its contribution to the ecological footprint in the case of Algeria. So, we clarify the relationship between these study variables and ask the following questions: To what extent can Algeria contribute to balancing the usage of its electric energies and the sustainability of its environment to preserve for future generations? Is it possible that the foreign-direct investment contributes to increasing the ecological footprint in the case of Algeria, and what is the effect of economic growth per capita on the ecological footprint?

Electricity consumption increases the ecological footprint. Similarly, foreign direct investment positively impacts ecological footprint, while the interaction term between FDI and electricity consumption contributed negatively to the EFP. The current study fills the research gap by investigating the N-shaped EKC hypothesis in Algeria by using several variables to estimate and elucidate the connections between economic growth, electricity consumption, foreign direct investment, the interaction between electricity consumption and FDI, and the ecological footprint.

This evidence implies that it is necessary to adopt measures related to the transition from a developing industry to a high-tech and clean industry in Algeria, where adopting environmentally friendly measures will generate sustainable growth.

Furthermore, the Algerian government must improve the economy’s structure to limit the overuse of fossil resources, protect the environment for future generations, and develop systems for assessing and monitoring the impacts of FDI on the Algerian economy.

The findings indicated that the economic growth sector presents an N-shaped linkage with the ecological footprint in Algeria, validating the EKC hypothesis. So, initially, environmental degradation increases in the early stages of economic growth; however, at the later stages of the growth process, the ecological footprint starts decreasing, till a certain point, where without the proper measures, the ecological footprint would present ascending behavior again. On the other hand, without the share of fossil sources in their energy mix, it implies ascending pollution in Algeria, being necessary to promote renewable sources in the region. Finally, the FDI presents a positive connection with the ecological footprint in Algeria, validating the PHH.

Algeria should transfer energy from resource-rich industries to industrial sectors to boost economic growth, promoting economic development. Economic and environmental policymakers should advance in creating environmental rules and standards to minimize the negative impacts of dirty foreign industries protecting Algeria from sources of pollution that may enter the country. Concerning other environmental quality factors, energy consumption and clean foreign investment should be considered by policymakers. In this respect, fossil energy sources still have a high share in the energy mix of Algeria.

On the other hand, long-run growth indications require low-carbon strategies to develop an economic model based on environmental sustainability. Algeria should proceed in implementing stringent regulations, promoting renewable sources and attracting high-tech foreign investment. We have outlined that the connection between FDI and energy consumption contributes to controlling the harmful effects of fossil sources in the energy mix. Even the FDI presents a direct link with the ecological footprint in Algeria. Foreign investments can contribute to implementing clean and more efficient energy sources. So, the policymakers attract innovation measures to reduce the scale effect, advancing implementation.

Hence, for Algeria, deregulation in the energy industry is necessary, which will allow diversification of energy sources and promote cleaner energy sources. So, the private sector should invest in renewable sources. This country also requires an increase of high-tech products affordable for public and private economic activities. At the same time, there should be the implementation of different tax policies for carbon-intensive industries aimed to avoid dirty business. In other words, regulation of carbon emission through these energy policies will contribute to decarburizing Algeria.

Consequently, it would be helpful to increase efforts to improve environmental policies and institutions rather than restricting foreign activities that reduce environmental quality.

Finally, this study was prepared without a few limitations. Firstly, the scope of this research is limited to Algeria, which includes data from 1970 to 2014, where future studies should extend the period for prospective analyses. Then, future research might give an immersive word for a specific aspect of globalization (economics, social, and culture), focused on the crisis COVID-19 and the analysis of the natural resources crisis in the region.