Introduction

Environmental degradation is now a global issue since every nation is exposed to such threats. The notion that environmental degradation poses a threat to only the industrialised countries and not the less developed countries is no longer valid today at least in terms of consequences (Shahbaz et al. 2013c). Greenhouse gas (GHG) emissions like carbon dioxide (CO2) are seen as the driving factor for climate change, which happens due to internal changes within the climate system. The accumulation of GHG emissions in the surface of the earth is significantly affecting every nation across the world, both industrialised and less developed, notwithstanding the country which is responsible for such emissions. The tsunami in Japan, the earthquake in Haiti, the outburst of flood in Australia and Pakistan, and the burn out of fire in Russia are just few major disasters witnessed in the recent past that could be attributed to the repercussions of environmental degradation (Zerbo 2017). Such events brought about destructions to infrastructure, natural resources like agricultural land and produce, wildlife, forests, and most importantly to precious human lives. Although environmental deterioration is a global issue, and the entire world is exposed to threats arising from deterioration of environmental quality, the responsibility to save the world from such threats is largely dependent on nations like China, India, Russia, Brazil, OECD group, and USA, who are considered the key GHG emitters (Shahbaz et al. 2013c). More importantly, the successful international efforts to minimise the global CO2 emissions is substantially dependent on the commitment of these key emitters. However, difficulties arise for countries when the CO2 emissions are related to energy production because energy works as an engine of economic growth. In such cases, curbing carbon dioxide emissions would mean to ultimately retard their economic growth, for which these countries are very reluctant to either comply or commit to programmes to minimise these emissions. This calls for finding better approaches in which sustainable economic growth and improved environmental quality could be attained. Therefore, trade openness is one of the ways that could help to accomplish these objectives.

South Africa has remarkably adopted comprehensive unilateral trade policy reforms during the early 1990s (Inglesi-Lotz 2018). This was subsequently followed by ambitious programs of free trade agreements (FTAs) with the European Union (EU), greater tariff liberalisation as part of its offer in the General Agreement on Tariffs and Trade (GATT) Uruguay round, regional integration, the Southern Africa Development Community (SADC), and more modest trade agreements with the European Free Trade Association (EFTA) states and MERCOSUR.Footnote 1The period also coincided with the democratic election of the new government in 1994 that implemented a good number of reforms aimed at shifting the country’s development strategy from export promotion with import controls to greater trade openness. In addition, the reforms led to a significant rationalisation and simplification of South Africa’s tariff structure, where the list of prohibited imports was removed and the number of tariff lines decreased substantially from 12,000 during the early 1990s to 6,420 in 2006 (Edwards et al. 2009). Non-ad valorem tariff rates that were often applied during the early 1990s were substituted with ad valorem rates. Non-tariff barriers, import surcharges, and export subsidies were all removed. This evidence of such trade policy reforms makes South Africa a good candidate for this case study to ascertain their environmental effect. Furthermore, South Africa is an interesting case because it has made a significant progress in reducing “most favoured nation” (MFN) tariff rates from 17.9% in 1994 to 9.6% in 2019, thereby considerably decreasing anti-export bias and effective protection rates for many sectors (Udeagha and Breitenbach 2021). In South Africa, the implementation of these trade policy reforms has further led to a greater openness to international goods markets being a fundamental mechanism that brings about higher economic growth; permits the full exploitation of her comparative advantage resulting in high returns to capital in her unskilled labour-abundance sectors; stimulates efficiency in resource allocation leading to improved economic growth; leads to transformation into larger factor accumulation, knowledge spillovers, and technology diffusion; enables the importation of investment and intermediate goods needed to boost her domestic production; and leads to openness to innovations and ideas. South Africa has equally witnessed improved technological innovations, which result in greater entrepreneurship via improved market access and higher competition; greater new investment opportunities, enhancing productivity, stimulating employment, and real wages.

On the other hand, South Africa is one of the major emitters of CO2 emissions (1.09 of the world emissions) (World Bank 2021). The country is currently ranked 15th in terms of annual carbon dioxide emissions. The obvious reason for this is the use of coal, a major ingredient of CO2 emissions, in energy production. Currently, South Africa holds 35,053 million tons (MMst) of proven coal reserves at the end of 2020, ranking 8th in the world and accounting for about 3.68% of the world’s total coal reserves of 1,139,471 million tons (MMst).Footnote 2 South Africa has proven reserves equivalent to 173.3 times its annual consumption. South Africa is heavily dependent on energy sector where coal consumption is dominant in production activity. Almost 77% of the country’s primary energy needs are provided by coal, whereas 53% of the coal reserves are used in electricity generation, 33% in petrochemical industries, 12% in metallurgical industries, and 2% in domestic heating and cooking. These characteristics further make South Africa a compelling candidate for a separate study. While considering the gains from trade policy reforms in South Africa, its environmental impact has received a less attention.

What does the evidence tell us? Just a few empirical studies have attempted to explicitly explore this link in the South African context. The most notable case is the recent paper by Aydin and Turan (2020), who show that trade openness has brought about a significant improvement in South Africa’s environmental quality by reducing the growth of energy pollutants. Previous studies which investigated the relationship between trade openness and CO2 emissions have one thing in common. They all proxied trade openness by using trade intensity (TI) and applying a simple ARDL methodology. The TI-based proxy conventionally defined as the ratio of trade (sum of exports and imports) to GDP only captures the trade of a country in relation to its share of income (GDP), although it is not contrived.Footnote 3 While it is intuitively sensible, the proxy does not help to resolve the ambiguity on how trade is measured and defined. Its main shortcoming is that it reflects only one dimension focusing on the comparative position of trade performance of a country linked to its domestic economy. In other words, this proxy only focuses on the question of how enormous the income contribution of a country in international trade is. Consequently, it woefully fails to address another crucial dimension of trade openness that is how important the explicit level of trade of a country to global trade is. This suggests that the proxy is unable to truly reflect the correct idea of trade openness and accurately capture the precise environmental impact of trade. Also, the use of the proxy penalises bigger economies like Germany, the USA, France, China, Japan, and so many others because they are being classified as closed economies due to their larger GDPs, whereas the poor countries such as Zimbabwe, Zambia, Venezuela, Uganda, Ghana, Nigeria, Togo, and many others are grouped as open economies due to their small GDPs (Squalli and Wilson 2011). Given this, the proxy therefore fails to reflect credibly the exact idea of trade openness because it does not capture the advantages a country enjoys while engaging enormously in global trade (Squalli and Wilson 2011). In addition, the diverse findings and conflicting evidence on the trade-CO2 emission relationship are blamed on different methodologies and misspecification problems.

In this context, the current study contributes to scholarship and is different from previous studies in the following ways: First, identifying environmental consequences of international trade has a crucial role in constructing and planning strategies of any country like South Africa that is currently witnessing a significant increase in trade openness; however, little efforts are made to investigate the environmental consequences of trade openness in South Africa. Moreover, to the best of our knowledge, no study so far has empirically assessed the dynamic relationship between trade openness and environmental quality by incorporating potential factors such as energy consumption, foreign direct investment, technological innovation, and industrial value-added for South Africa. This is an important gap that this study intends to fill. Second, the work adopts an innovative measure of trade openness proposed by Squalli and Wilson (2011), which captures trade share in GDP as well as size of trade relative to the global trade. Therefore, employing the Squalli and Wilson proxy of trade openness in this study remarkably differentiates our paper from others, which predominantly used TI-based measure of trade openness. Third, previous studies, which examined the trade-environment nexus, have widely used the simple ARDL approach proposed by Pesaran et al. (2001) and other cointegration frameworks that can only estimate and explore the long- and short-run relationships between the variables. However, this study contributes to the extant literature on methodological front by using the novel dynamic ARDL simulation model proposed by Jordan and Philips (2018), which overcomes the limitations of the simple ARDL approach. The novel dynamic ARDL simulation model can effectively and efficiently resolve the prevailing difficulties and result interpretations associated with the simple ARDL approach. This newly developed framework is capable of simulating and plotting to predict graphs of (positive and negative) changes in the variables automatically and also estimate their relationships for long run and short run. Therefore, the adaptation of this method in this present study enables us to obtain unbiased and accurate results. Fourth, it uses the frequency domain causality (FDC) approach, the robust testing strategy suggested by Breitung and Candelon (2006), which permits us to capture permanent causality for medium term, short term, and long term among the variables under review. This test is also used for robustness check in this study. To the best of our knowledge, previous studies have not used this test in the trade-environment nexus especially in the context of South Africa. Lastly, it employs the second-generation econometric procedures accounting robustly for the multiple structural breaks which have been considerably ignored in earlier studies.Footnote 4 In light of this, the paper uses the Narayan and Popp’s structural break unit root test since empirical evidence shows that structural breaks are very persistent in empirical literature and many macroeconomic variables like CO2 emissions and trade openness are affected by structural breaks.

To visually observe the link between trade openness and environmental quality (proxied by CO2 emissions) in South Africa, we plot them in Fig. 1, which shows the trends in trade openness and CO2 emissions in South Africa over the period 1960–2020. To link these two variables, the study divides the time series data into two categories namely “period before trade policy reforms between 1960 and 1988” and “period after trade policy reforms with greater trade openness between 1989 and 2020.” The trends depicted show a downward trend in trade openness during the 1960s, followed by an upward trend during the 1970s. This upward trend in trade openness coincides with the period after the implementation of export promotion industrialisation in South Africa, which was incepted in 1972. South Africa’s trade openness, however, declined considerably during the early 1980s and again during the early 1990s, particularly between 1990 and 1992. However, from 1993 onwards, trade openness showed a steady upward trend, reaching a peak of 72.9% in 2008. Following the decline in the world trade as a result of the 2008 global recession, South Africa’s trade openness dropped sharply to 55.4% in 2009, before rising again in 2010. During the period between 2011 and 2020, South Africa’s trade openness has remained slightly above 60% (World Bank 2021; Dauda et al. 2021).

Fig. 1
figure 1

Source: Constructed from World Bank World Development Indictors (2020)

Trends in trade openness and CO2 emissions in South Africa, 1960–2020. While the period between 1960 and 1988 was before trade policy reforms, the period between 1989 and 2020 was characterised by trade policy reforms with greater trade openness.

Concerning CO2 emissions, Fig. 1 shows an upward trend in CO2 emissions over the period 1960–2020. Since South Africa is the world’s 14th largest emitter of GHG emissions, carbon emissions are gradually increasing and its CO2 emissions are principally due to a heavy reliance on coal (World Bank 2021). However, a recently released draft electricity plan proposes a significant shift away from the fuel, towards gas and renewables. While coal would continue to play a role for decades, the plan would see no new plants built after 2030 and four-fifths of capacity closed by 2050. South Africa has pledged to peak its emissions between 2020 and 2025, allowing them to plateau for roughly a decade before they start to fall.

The remainder of the paper is organised as follows. “Literature review” reviews the relevant literature on trade-environment nexus. “Material and methods” outlines the material and methods, while “Empirical results and their discussion” discusses the results. “Conclusions and policy implications” concludes with policy implications.

Literature review

The theoretical underpinning on the environmental effect of trade openness was earlier developed by Copeland and Taylor (1994) and Grossman and Krueger (1995), Grossman and Krueger (1995). Antweiler et al. (2001), who later amplified it, highlight the various factors influencing carbon emissions and channels through which trade openness can affect the environment. The study thus divides the environmental impacts into composition, technique, and scale effects. The structural composition of a country’s industrial production determines the level of environmental degradation. Composition effect therefore reflects the environmental effect of this structural composition. A country with more carbon-intensive production structure will always generate more environmental pollution compared to its counterpart whose production structure is less carbon-intensive. So, the nature of a country’s industrial composition and structural arrangement determines the level of that country’s environmental quality. Scale effect, on the other hand, is an effect on emissions brought about by a rise in income. As income increases, it deteriorates environmental quality because of intensive production. The technique effect arises due to the enforcement of environmental laws, which force private sector to comply with the adoption of greener, cleaner, and updated production processes improving environmental quality. The technique effect results in a better environmental quality because of people’s predisposition for a clean environment as well as the enforcement of more stringent environmental standards as income increases (Kebede 2017). In summary, Antweiler et al. (2001) stress that the overall composition effect will be determined by the magnitude of a country’s openness to international trade, the resource abundance, comparative advantage, and the enforcement of environmental standards. Developed countries with high environmental standards usually produce less carbon-intensive goods; however, their less developed counterparts with feeble and compromised environmental laws always specialise in production of more pollution-intensive products.

Turning to empirical literature, a good number of works have investigated the relationship between trade and the environmental quality. However, the findings of these studies are mostly contradictory and unsettled across various methodological frameworks and countries scrutinised. While some works concluded that trade openness brings about improvement in environmental quality through various channels (Ding et al. 2021; Ibrahim and Ajide 2021b, 2021c; Khan et al. 2020), a few studies contended that trade openness results in worsening environmental condition (Khan et al. 2021a; Khan and Ozturk 2021; Ibrahim and Ajide 2021a; Van Tran 2020; Ali et al. 2020). On the contrary, another group of works found robust evidence that trade openness has no impact on the environment (Gulistan et al. 2020; Oh and Bhuyan 2018).

Empirical study by Ding et al. (2021), who use cross-sectional autoregressive distributed lag (CS-ARDL) and augmented mean group (AMG) methods, finds that higher trade openness contributes to improve environmental quality for G-7 economies. Also, Ibrahim and Ajide. (2021b), who use common correlated effect mean group (CCEMG), and mean group (MG) in case of G-20 countries, find that trade openness reduces environmental deterioration. Similarly, Ibrahim and Ajide. (2021c), who use trade facilitation (TF) as a measure of trade openness for 48 Sub-Saharan African countries for the period spanning 2005–2014, observe that TF is environmentally friendly and promotes environmental quality in the region. Using AMG and CCEMG methods, Khan et al. (2020) find evidence for the enhancing role of trade openness.

In contrast, empirical study by Khan et al. (2021a) reveal that trade openness deteriorates the environmental condition in Pakistan. This empirical evidence is also corroborated by Ibrahim and Ajide (2021a), who find that trade openness contributes to increase CO2 emissions in G-7. Similar results were observed by Van Tran (2020), who shows that trade openness worsens the environmental condition in 66 developing economies over the period 1971–2017. Using the difference and system generalised method of moments, Khan and Ozturk (2021) find that trade openness increases CO2 emissions for 88 developing countries over the period 2000–2014. Equally, Ali et al. (2020) find that openness to international goods market has a damaging effect and contributes greatly to worsen the environmental conditions of OICFootnote 5 countries. This evidence is further supported by the study of Aydin and Turan (2020) for China and India over the period 1996–2016.

For South Africa’s case, empirical evidence is also conflicting and largely mixed (Udeagha and Ngepah 2019; Menyah and Wolde-Rufael 2010; Kohler 2013; Shahbaz et al. 2013c; Zerbo 2015; Zerbo 2017; Khobai and Le Roux 2017; Hasson and Masih 2017; Mapapu and Phiri 2018; Inglesi-Lotz 2018). The recent study by Udeagha and Ngepah (2019) reveals that, in the long run, openness to international goods markets contributes to deteriorate the environment of South Africa, although there is strong evidence that trade openness can contribute to improve the country’s environment in the short run. The authors’ findings further reveal evidence of strong asymmetric behaviour between trade openness and CO2 emissions.

Material and methods

This part starts by presenting the functional framework (EKC hypothesis framework), data, and its sources used in the study, with an analysis of the most important statistical characteristics; then, it moves to define the model specification and presents the variables used in the study and the reasons for choosing these variables. The final section in this part explains the novel dynamic ARDL simulation model versus the ARDL model.

Functional form

This work follows the robust empirical approach widely used in earlier studies by adopting the usual EKC hypothesis framework to revisit the trade-CO2 emission nexus for South Africa. In its standard form, following Udeagha and Breitenbach (2021), Udeagha and Ngepah (2019), Cole and Elliott (2003), and Ling et al. (2015), the standard EKC hypothesis is thus presented as follows:

$${\mathrm{CO}}_{2}=\mathrm{F}\left(\mathrm{SE},\mathrm{ TE}\right)$$
(1)

where CO2 represents CO2 emissions per capita (in metric tons), an environmental quality measure; SE denotes scale effect, a proxy for economic growth; and TE represents technique effect, which captures the square of economic growth. When Eq. (1) is log-linearised, the following is thus obtained:

$${\mathrm{InCO}}_{2t}=\alpha +\varphi {\mathrm{InSE}}_{t}+\beta {\mathrm{InTE}}_{t}+{\varepsilon }_{t}$$
(2)

Scale effect (economic growth) deteriorates environmental quality as income increases; however, technique effect improves environmental quality due to the enforcement of environmental laws and people’s predisposition for a clean environment (Cole and Elliott 2003; Ling et al. 2015). Given this background, for EKC hypothesis to be present, the theoretical expectations require that \(\varphi >0\) and \(\beta <0\). Following literature, as control variables in the trade-CO2 emission equation, we use foreign direct investment, energy consumption, technological innovation, and industrial value-added. Accounting for these variables as well as trade openness, Eq. (2) is thus augmented as follows:

$${\mathrm{InCO}}_{2t}=\alpha +\varphi {\mathrm{InSE}}_{t}+\beta {\mathrm{InTE}}_{t}+\rho {\mathrm{InOPEN}}_{t}+\pi {\mathrm{InEC}}_{t}+\delta {\mathrm{InFDI}}_{t}+\tau {\mathrm{InTECH}}_{t}+\omega {\mathrm{InIGDP}}_{t}+{U}_{t}$$
(3)

where \({\mathrm{InOPEN}}_{t}\) represents trade openness, \({\mathrm{InEC}}_{t}\) denotes energy consumption, \({\mathrm{InFDI}}_{t}\) captures foreign direct investment, \({\mathrm{InTECH}}_{t}\) is technological innovation, and \({\mathrm{InIGDP}}_{t}\) denotes industrial value-added. All variables are in natural log. \(\varphi , \beta , \rho , \pi , \delta , \tau , \mathrm{and }\omega\) are the estimable coefficients capturing different elasticities, whereas \({U}_{t}\) captures the stochastic error term with standard properties.

Variables and data sources

This paper uses yearly times series data covering the period 1960–2020. CO2 emission, as the proxy for environmental quality, is the dependent variable. Economic growth proxied by scale effect and the square of economic growth capturing the technique effect are used to validate the presence of EKC hypothesis. Trade openness proxied by a composite trade intensity (CTI) is calculated as below. The other variables controlled for, following literature, are as follows: energy consumption (EC), foreign direct investment (FDI), technological innovation (TECH), and industrial value-added to GDP (IGDP).

Following Squalli and Wilson (2011), this work uses CTI as a measure of trade openness to robustly account for trade share in GDP and size of trade relative to global trade. Using this way to measure trade openness enables us to effectively address the shortcomings of conventional trade intensity (TI) widely used in earlier studies. More importantly, the novel CTI contains more crucial information pertaining to a country’s trade contribution share in terms of global economy, which intuitively captures TI adjusted by the share of level of trade in relation to global trade. The novelty of CTI in this work is that it mirrors trade outcome reality because it contains two dimensions of a country’s ties with the rest of the world. The CTI is presented thus as follows:

$$\mathrm{CTI}=\frac{{(X+M)}_{i}}{\frac{1}{n}{\sum }_{j=1}^{n}{(X+M)}_{j}} \frac{{(X+M)}_{i}}{{\mathrm{GDP}}_{i}}$$
(4)

where i reflects South Africa and j captures her trading partners. In Eq. (4), the first portion represents global trade share, whereas the second segment denotes trade share of South Africa.

The justifications on the variables controlled for in the trade-CO2 emissions equation are summarily presented as follows: energy consumption as utilised by many studies (Khan et al. 2021b; Kongkuah et al. 2021; Li et al. 2021) is used in this study to track energy consumption effect on CO2 emissions since energy sector causes 75% of the global GHC emissions (International Energy Association 2015). Foreign direct investment, although plays a pivotal role in boosting the development and growth of an economy, especially when the domestic reserves are not enough to fulfil the local investment requirements, may deteriorate the host country’s environmental quality (Mukhtarov et al. 2021). Therefore, following Mahalik et al. (2021) and An et al.(2021a, b), the study uses foreign direct investment to capture its environmental effect since inflow of FDI propagates more economic activities and thus increases CO2 emissions ( Islam et al. 2021). Technological innovation is seen as a key factor that brings about minimum energy consumption, boosts energy efficiency, and fosters environmental quality (Ibrahim and Vo 2021; Destek and Manga 2021). An improved application of technological innovations is crucial to facilitate green economies and helps to reduce the growing levels of CO2 emissions. Therefore, following Guo et al. (2021) and Anser et al. (2021), the study includes technological innovation as one of the determinants of CO2 emissions to explore its impact since it can contribute to transform energy resources such as renewables from conventional to more efficient and sustainable sources. The country’s environmental and total carbon footprints are an important element of the economic exposure to industrialisation (Rehman et al. 2021). When industrialisation grows, natural resources tend to be absorbed more rapidly, and this impacts not only on the general well-being of the large population but also the environment. Therefore, following Khan et al. (2021b) and Appiah et al. (2021), industrial value-added is used to track the effect of industrialisation on CO2 emissions.

Table 1 therefore summarises the variable definition and data sources.

Table 1 Definition of variables and data sources

Narayan and Popp’s structural break unit root test

As a first step, before implementing the novel dynamic ARDL simulations model, it is important to conduct a stationarity test on the variables under review to ascertain their order of integration. Thus, this work employs Dickey-Fuller GLS (DF-GLS), Phillips-Perron (PP), Augmented Dickey-Fuller (ADF), and Kwiatkowski-Phillips-Schmidt-Shin (KPSS) unit root tests to confirm the asymptotic behaviour and order of integration of all variables under review. This process helps to resolve the issues of spurious regressions. In the second step, the Narayan and Popp’s structural break unit root test is used since empirical evidence shows that structural breaks are very persistent in empirical literature and many macroeconomic variables like CO2 emissions and trade openness are likely to be affected.

ARDL bounds testing approach

This paper employs the bound test to examine the nexus among the variables under review for long run. The ARDL bound testing approach, following Pesaran et al. (2001), is presented as follows:

$${\Delta {\mathrm{InCO}}_{2t}=\gamma }_{0}+\sum_{i=1}^{n}{\gamma }_{1i}\Delta {\mathrm{InCO}}_{2t-i}+\sum_{i=0}^{n}{\gamma }_{2i}\Delta {\mathrm{InSE}}_{t-i}+\sum_{i=0}^{n}{\gamma }_{3i}\Delta {\mathrm{InTE}}_{t-i}+\sum_{i=0}^{n}{\gamma }_{4i}\Delta {\mathrm{OPEN}}_{t-i}+\sum_{i=0}^{n}{\gamma }_{5i}\Delta {\mathrm{EC}}_{t-i}+\sum_{i=0}^{n}{\gamma }_{6i}\Delta {\mathrm{InFDI}}_{t-i}+\sum_{i=0}^{n}{\gamma }_{7i}\Delta {\mathrm{InTECH}}_{t-i}+\sum_{i=0}^{n}{\gamma }_{8i}\Delta {\mathrm{InIGDP}}_{t-i}+{\theta }_{1}{{\mathrm{InCO}}_{2}}_{t-i}+{\theta }_{2}{\mathrm{InSE}}_{t-i}+{\theta }_{3}{\mathrm{InTE}}_{t-i}+{\theta }_{4}{\mathrm{InOPEN}}_{t-i}{+\theta }_{5}{\mathrm{InEC}}_{t-i}+{\theta }_{6}{\mathrm{InFDI}}_{t-i}+{\theta }_{7}{\mathrm{InTECH}}_{t-i}+{\theta }_{8}{\mathrm{InIGDP}}_{t-i}+{\varepsilon }_{t}$$
(5)

where \(\Delta\) represents the first difference, InCO2, InSE, InTE, InOPEN, InEC, InFDI, InTECH, and InIGDP, respectively. Meanwhile, t − i denotes the optimal lags selected by Schwarz’s Bayesian Information Criterion (SBIC), and \(\gamma\) and \(\theta\) are the estimated coefficients for short run and long run, respectively. The ARDL model for the long and short run will be approximated if variables are cointegrated. The null hypothesis, which tests for long-run relationship, is as follows: \({({H}_{0}:\theta }_{1}={\theta }_{2}={\theta }_{3}={\theta }_{4}={\theta }_{5}={\theta }_{6}={\theta }_{7}={\theta }_{8}=0\)) against the alternative hypothesis \({({H}_{1}:\theta }_{1}\ne {\theta }_{2}\ne {\theta }_{3}\ne {\theta }_{4}\ne {\theta }_{5}\ne {\theta }_{6}\ne {\theta }_{7}\ne {\theta }_{8}\ne 0)\).

Rejection or acceptance of null hypothesis depends on the value of the calculated F-statistic. If the value of calculated F-statistic is greater than the upper bound, we reject the null hypothesis and conclude that the variables are having a long-run relationship or there is evidence of cointegration. However, cointegration does not exist if the value of calculated F-statistic is less than the lower bound. In addition, if the value of the calculated F-statistic lies between lower and upper bounds, the bound test becomes inconclusive. If the variables are having a long-run relationship, then the long-run ARDL model to be estimated is as follows:

$$\Delta {\mathrm{InCO}}_{2t}={\beta }_{0}+\sum_{i=1}^{q}{{\omega }_{1}{\mathrm{InCO}}_{2}}_{t-i}+\sum_{i=1}^{q}{\omega }_{2}{\mathrm{InSE}}_{t-i}+\sum_{i=1}^{q}{\omega }_{3}{\mathrm{InTE}}_{t-1}+\sum_{i=1}^{q}{\omega }_{4}{\mathrm{InOPEN}}_{t-i}+\sum_{i=1}^{q}{\omega }_{5}{\mathrm{InEC}}_{t-1}+\sum_{i=1}^{q}{\omega }_{6}{\mathrm{InFDI}}_{t-1}+\sum_{i=1}^{q}{\omega }_{7}{\mathrm{InTECH}}_{t-1}+\sum_{i=1}^{q}{\omega }_{8}{\mathrm{InTECH}}_{t-1}+{\varepsilon }_{t}$$
(6)

\(\omega\) denotes the long-run variance of variables in Eq. (6). In choosing the correct lags, the paper uses the SBIC. For short-run ARDL model, the error correction model used is as follows:

$$\Delta {\mathrm{InCO}}_{2t}={\beta }_{0}+\sum_{i=1}^{q}{{\pi }_{1}\Delta {\mathrm{InCO}}_{2}}_{t-i}+\sum_{i=1}^{q}{\pi }_{2}\Delta {\mathrm{InSE}}_{t-i}+\sum_{i=1}^{q}{\pi }_{3}\Delta {\mathrm{InTE}}_{t-1}+\sum_{i=1}^{q}{\pi }_{4}{\Delta \mathrm{InOPEN}}_{t-i}+\sum_{i=1}^{q}{\pi }_{5}\Delta {\mathrm{InEC}}_{t-1}+\sum_{i=1}^{q}{\pi }_{6}{\mathrm{In}\Delta \mathrm{FDI}}_{t-1}+\sum_{i=1}^{q}{\pi }_{7}\Delta {\mathrm{InTECH}}_{t-1}+\sum_{i=1}^{q}{\pi }_{8}\Delta {\mathrm{InTECH}}_{t-1}+{{\mathrm{ECT}}_{t-i}+\varepsilon }_{t}$$
(7)

In Eq. (7), \(\pi\) reflects the short-run variability of the variables, whereas ECT denotes the error correction term that captures the adjustment speed of disequilibrium. The estimated coefficient for ECT ranges from − 1 to 0. This work further uses the diagnostic tests for model stability. The Breusch Godfrey LM test is used to check for serial corrections; the Breusch-Pagan-Godfrey test and the ARCH test are both employed to test for heteroscedasticity; the Ramsey RESET test is used to ensure that the model is correctly specified, and the Jarque–Bera Test is used to test whether the estimated residuals are normally distributed. To check for structural stability, this paper employs the cumulative sum of recursive residuals (CUSUM) and cumulative sum of squares of recursive residuals (CUSUMSQ).

Dynamic autoregressive distributed lag simulations

Previous studies, which investigated the trade-CO2 emission nexus, have widely used the simple ARDL approach proposed by Pesaran et al. (2001) and other cointegration frameworks that can only estimate and explore the short- and long-run relationships between the variables. To address the shortcomings which characterise the simple ARDL model, Jordan and Philips (2018) recently developed the novel dynamic ARDL simulation model that can effectively and efficiently resolve the prevailing difficulties and result interpretations associated with the simple ARDL approach. This newly developed framework is capable of simulating and plotting to predict graphs of (positive and negative) changes in the variables automatically and estimate the relationships for short run and long run. The major advantage of this framework is that it can predict, simulate, and immediately plot probabilistic change forecasts on the dependent variable in one explanatory variable while holding other regressor constant. In this study, based on the multivariate normal distribution for the parameter vector, the dynamic ARDL error correction algorithm uses 1000 simulations. We employ the graphs to examine the actual change of an explanatory variable as well as its influence on the dependent variable. The novel dynamic ARDL simulation model is presented as follows:

$$\Delta {\mathrm{InCO}}_{2t}={\alpha }_{0}+{\upsilon }_{0}{\mathrm{InCO}}_{2t-1}+{\varphi }_{1}\Delta {\mathrm{SE}}_{t}+{\rho }_{1}{\mathrm{SE}}_{t-1}+{\varphi }_{2}\Delta {\mathrm{TE}}_{t}+{\rho }_{2}{\mathrm{TE}}_{t-1}+{\varphi }_{3}\Delta {\mathrm{OPEN}}_{t}+{\rho }_{3}{\mathrm{OPEN}}_{t-1}+{\varphi }_{4}\Delta {\mathrm{EC}}_{t}+{\rho }_{4}{\mathrm{EC}}_{t-1}+{\varphi }_{5}\Delta {\mathrm{FDI}}_{t}+{\rho }_{5}{\mathrm{FDI}}_{t-1}+{\varphi }_{6}\Delta {\mathrm{TECH}}_{t}+{\rho }_{6}{\mathrm{TECH}}_{t-1}+{\varphi }_{7}\Delta {\mathrm{IGDP}}_{t}+{\rho }_{7}{\mathrm{IGDP}}_{t-1}+{\varepsilon }_{t}$$
(8)

Frequency domain causality test

This paper uses the frequency domain causality (FDC) approach, the robust testing strategy suggested by Breitung and Candelon (2006) to explore the causal relationships among the variables under scrutiny. Unlike the traditional Granger causality approach where it is extremely impossible to predict the response variable at a particular time frequency, FDC enables that and further permits to capture permanent causality for medium term, short term, and long term among the variables under examination. This test is also used for robustness check in this study.

Empirical results and their discussion

Summary statistics

The summary statistics of the variables used in this work are analysed and scrutinised before discussing the results. Table 2 reports the overview of statistics showing that the CO2 emission average value is 0.264. The technique effect (TE), the square of GDP per capita, has the average mean of 60.316 greater than other variables. This is followed by foreign direct investment (FDI) which has 13.203. In addition to characterising the summary statistics, Table 2 uses kurtosis to represent the peak, while the Jarque–Bera test statistics is used to check for normality of our data series. The table shows that the scale effect, trade openness, energy consumption, foreign direct investment, industrial value-added, and technological innovation show a positive trend, while technique effect has a negative trend. The variance in technique effect (TE) is the highest of all the variables showing the high level of volatility in this variable. The variance in CO2 emissions is less relative to technique effect showing that CO2 emissions are far more stable. Also, the variations in trade openness (OPEN), scale effect (SE), and technological innovation (TECH) are quite greater. In addition, the Jarque–Bera statistics shows that our data series are normally distributed.

Table 2 Descriptive statistics

Order of integration of the respective variables

Table 3 reports the results of DF-GLS, PP, ADF, and KPSS showing that after first differencing all variables which are non-stationary in level become stationary at I (1). This implies that all the series under review are either I(1) or I(0) and none is I(2). The traditional unit root tests reported above do not account for structural breaks. Therefore, this work implements a testing strategy which is able to account for two structural breaks in the variables. The paper hence uses the Narayan and Popp’s unit root test with two structural breaks, and the results are also reported in the right-hand panel of Table 3. The empirical evidence shows that the null hypothesis of unit root cannot be rejected. Consequently, all data series are integrated of order one and prospective application for the dynamic ARDL bound testing approach.

Table 3 Unit root analysis

Lag length selection results

Table 4 reports the findings of different test criteria for lags selection. The use of HQ, AIC, and SIC is documented in empirical literature as the most popular for selecting appropriate lags. In this study, SIC is used for lag selection. Based on this tool, lag one is suitable for our model. This is because the lowest value is obtained at lag one when SIC is used unlike others.

Table 4 Lag length criteria

Cointegration test results

Table 5 displays the results of the cointegration test utilising the surface-response regression suggested by Kripfganz and Schneider (2018). Since the F- and t-statistics are greater than the upper bound critical values at various significance levels, we reject the null hypothesis. Thus, our empirical evidence suggests that cointegration exists among the variables under consideration.

Table 5 ARDL bounds test analysis

Diagnostic statistics tests

To ensure that our chosen model is reliable and consistent, the study therefore uses different diagnostic statistics tests and their empirical results are reported in Table 6. The empirical results suggest that the used model is well fitted having passed all the diagnostic tests. The model does not suffer from the problems of serial correlation and autocorrelation as confirmed by the Breusch Godfrey LM test. The Ramsey RESET test is used, and evidence shows that the model does not suffer from misspecification. The Breusch-Pagan-Godfrey test and ARCH test are both employed to test if there is evidence of heteroscedasticity in the model. The empirical findings suggest that heteroscedasticity is moderate and not a problem. Finally, the Jarque–Bera test result shows that the model’s residuals are normally distributed.

Table 6 Diagnostic statistics tests

Dynamic ARDL simulations model results

The dynamic ARDL simulation model results are reported in Table 7. Our findings show that the scale effect (InSE) and technique effect (InTE) positively and negatively affect CO2 emissions, respectively. The scale effect representing economic growth deteriorates environmental quality, whereas the technique effect has a mitigating effect on the environment. The empirical evidence therefore suggests that the EKC hypothesis holds in the case of South Africa, where real income grows until a certain threshold level, whereas CO2 emissions start to decline. In the initial stage of economic growth, the environmental quality decreases, whereas after reaching the optimum level, environmental quality starts improving in South Africa. This supports the inverted U-shaped relationship between economic growth and environmental quality. The findings are justifiable for South Africa and associated with structural change and technological advancement in the country. Environmental awareness increases among the people as income grows, so environmental regulations are enforced to use energy-efficient technologies to mitigate pollution. These results coincide with the work of Udeagha and Breitenbach (2021), who highlight the existence of EKC hypothesis for the Southern African Development Community (SADC) over the period 1960–2014. Alharthi et al. (2021) also find similar results that EKC hypothesis exists for the Middle East and North Africa (MENA) countries. Likewise, Bibi and Jamil (2021), who examine the association between air pollution and economic growth, find a support for the EKC hypothesis, which suggests an inverted U-shaped link between air pollution and economic growth in six different regions including Latin America and the Caribbean, East Asia and the Pacific, Europe and Central Asia, South Asia, the Middle East and North Africa, and Sub-Saharan Africa. Udeagha and Ngepah (2020, 2019) also find that the EKC hypothesis exists for South Africa. Our results further reciprocate the findings of Isik et al. (2021) for 8 Organisation for Economic Co-operation and Development (OECD) countries, Liu et al. (2021) for China, Sun et al. (2021) for China, Naqvi et al. (2021) for 155 countries of four different income groups, and Murshed (2021) for six South Asian economies. However, the findings contradict with Minlah and Zhang (2021), who find that the Environmental Kuznets Curve for carbon dioxide emissions for Ghana is upward sloping, contrary to the standard Environmental Kuznets Curve theory which postulates an inverted “U”-shaped relationship between economic growth and environmental degradation. Ozturk and Al-Mulali (2015), Sohag et al. (2017), Tedino (2017), and Mensah et al. (2018) also find similar results showing that the EKC hypothesis does not hold.

Table 7 Dynamic ARDL simulations analysis

The estimated coefficient for long run on trade openness (InOPEN) is found to be statistically significant and positive suggesting that an upsurge in trade openness by 1% increases CO2 emissions by 0.121% ceteris paribus. The detrimental effect of openness on the environmental condition of South Africa in the long run undeniably reiterates the concern against trade liberalisation. The type of products forming the bulk of South Africa’s exports is part of the possible reason that could explain why trade openness impedes her environment. For instance, since the country has a comparative advantage in export and production of natural resource-intensive goods such forest products, antimony, tin, copper, manganese minerals, phosphates, vanadium, rare earth elements, natural gas, nickel, iron ore, nickel, coal, chromium, diamond, platinum, and gold, a rise in the demand of these products will certainly lead to worsening South Africa’s environmental condition. This is because harvesting these products continuously to meet the growing international markets significantly deteriorates South Africa’s environmental quality. Also, our findings could be explained by the theoretical framework of Lopez (1994) that energy-based activities that consume a high amount of energy mainly driven from trade liberalisation such as transportation and manufacturing produce pollution. Additionally, our results are also consistent with the pollution haven hypothesis (Taylor 2004) that developing countries like South Africa have a comparative advantage in pollution-intensive production while developed ones have a comparative advantage in producing clean products (Wagner 2010). Therefore, developed countries tend to transfer pollution to developing countries via international trade (Cole 2004; Wagner 2010). Our empirical evidence is also supported by and aligned with the results obtained by Khan and Ozturk (2021) suggesting that developing countries tend to release a high amount of pollutants due to relying on dirty industries. Our result is consistent with Khan et al. (2021a), who suggested that trade openness is injurious and has extensively contributed to worsen the environmental condition in Pakistan. This empirical evidence is further corroborated by Ibrahim and Ajide (2021a), who find that trade openness contributes to increase CO2 emissions in G-7. Similar results were observed by Van Tran (2020), who show that trade openness worsens the environmental condition in 66 developing economies. The negative view of environmental impacts of trade openness is in line with the findings from Aydin and Turan (2020) and Ali et al. (2020), who found that trade has a harmful effect on environmental quality through releasing carbon dioxide emissions. However, our findings contradict with Ibrahim and Ajide (2021b), Ibrahim and Ajide (2021c), and Ding et al. (2021), who found that higher trade openness contributes to improve environmental quality in G-20 countries, 48 Sub-Saharan African countries, and G-7 economies respectively.

For energy consumption (InEC), the estimated coefficients for short run and long run are statistically significant and positive suggesting that energy consumption considerably contributes to increase CO2 emissions in South Africa. Coal consumption as a major source of energy use in South Africa, although is crucial to support production and enhance economic development, is a major contributor to deterioration of environmental quality as South Africa is the seventh biggest country which heavily consumes coal to meet energy demand (World Bank 2021). It is observable that a 1% increase in energy consumption raises CO2 emissions by 0.205% in the long run. South Africa is heavily dependent on energy sector where coal consumption is dominant in production activity. Almost 77% primary energy supply and 93% electricity production are from coal reserves in South Africa (Udeagha and Breitenbach 2021). Due to continuous rise in energy demand in South Africa, CO2 emissions have significantly increased over the years, which have severe implications for the environment and a significant contributor to global climate change. Our empirical evidence is supported by Adebayo et al. (2021), who find that energy consumption triggers CO2 emissions in South Korea. Similarly, Aslan et al. (2021) find that energy consumption deteriorates environmental quality for 17 Mediterranean countries. Doğanlar et al. (2021) also report that energy consumption escalates CO2 emissions for Turkey. Likewise, Hongxing et al. (2021) conclude that energy consumption increases carbon emissions for 81 Belt and Road Initiative (BRI) economies. A study by Hu et al. (2021) also finds that aggregate energy consumption increases carbon emissions for Guangdong, China. Our results are contrary to those found by Ponce and Khan (2021), Khan et al. (2021c), He et al. (2021), Hao et al. (2021), Irfan (2021), and Baye et al. (2021), who observe that energy consumption improves environmental quality.

The short-run estimated coefficient on foreign direct investment (InFDI) is statistically significant and positive. However, the estimated value for long run, although positive, is not statistically significant. Our results therefore suggest that an upsurge in FDI leads to worsening environmental decay in South Africa. The results support the “pollution have hypothesis” for South Africa. Since South Africa has a comparative advantage in export and production of dirty products, this has massively attracted FDI inflows, which considerably contribute to worsen the country’s environmental condition. The detrimental effect of FDI on South Africa’s environment suggests that FDI inflows enable the country to become one of the “havens” for the highly intensive-pollution industries of the world. Our results are consistent with the findings of Copeland and Taylor (2013), who argued that the highly polluting industries which produce dirty goods have migrated to less developed nations, thereby transferring the pollution problems of the developed nations to these poor countries, and this immensely contributes to worsen their existing environmental decay. Also, owing to ineffective environmental standard and corrupt institutions, South Africa has become dirtier as the country specialises in production of dirty goods that significantly escalate the growing levels of environmental dilapidation. FDI inflows have indeed facilitated to transform South Africa into a highly polluted factory of the world, which exports much of what it produces back to the global markets. This empirical evidence reflects the true nature of the South African economy which is known to be among the fast-emerging economies in Africa. Thus, the policymakers and the stakeholders need to do more to ensure that foreign investors adopt updated, greener, and cleaner technologies to shift from non-renewable energy sources to renewable or less carbon-intensive ones so as to ensure proficiency in the production processes. Meanwhile, the substitution of non-renewable energy types with alternative sources such as solar power will considerably reduce CO2 emissions in South Africa. This will ultimately promote lasting value for reductions of GHG emissions and constantly support the establishment of new technologies, which improve the South Africa’s environmental condition and safeguard the global environment. Our results reciprocate the findings of Abdouli and Hammami (2017), who drew a similar conclusion in the case of MENA countries that FDI has contributed enormously to increase CO2 emissions and there is evidence of pollution haven hypothesis. This empirical finding is further supported by Farooq (2021), Muhammad et al. (2021), Khan et al (2020), Ngepah and Udeagha (2018), Shahbaz et al. (2018), Paramati et al. (2016), Lee (2013), Ming Qing and Jia (2011), Haisheng et al. (2005), Tamazian and Rao (2010), Shahbaz et al. (2014a, b), Ren et al.(2014), Seker et al. (2015), Naz et al. (2019), Gorus and Aslan (2019), Ngepah and Udeagha (2019), and Hanif et al. (2019). However, the findings contradict with Joshua et al. (2020) and Omri et al. (2014).

The estimated coefficient on technological innovation (InTECH) is statistically significant and negative in the long run. Our empirical finding shows that a 1% increase in technological innovation brings about a reduction in CO2 emissions by 0.72% in the long run. Technological innovations in South Africa effectively reduce CO2 emissions, which could be seen as eco-friendly technological innovation. It supports efficient energy utilisation and facilitates renewable energy sources at cheaper costs; thus, leading to minimum carbon emissions in South Africa. Technological innovations improve South Africa’s environmental quality through the following ways: (i) setting up of end-of-pipe technology crucial for reduction of carbon emissions, (ii) use of production technologies which are more energy efficient, and (ii) changes in fuel mix. Innovations in technology through these channels lead to an increase in energy efficiency, which substantially improves environmental quality in the country. Meanwhile, South Africa’s enormous investments in R&D and changes in technology are among reasons why innovations in technology have immensely contributed to improve the country’s environmental quality. Also, as part of the major key to mitigate the growing levels of carbon emissions, South Africa has implemented several policies aimed at developing robust technologies, which are crucial to minimise the intensity of emissions from production processes and other economic activities connected to high levels of emissions. Sohag et al. (2015) illustrated that technological innovation creates an avenue which permits a reduction in energy consumption, facilitates energy efficiency, and substantially reduces carbon emissions. Our results are consistent with the findings of Ibrahim and Vo (2021); Destek and Manga (2021), An et al. (2021a, b), Guo et al. (2021), Baloch et al. (2020), Shan et al. (2021), Yang et al. (2021), Anser et al. (2021), Erdogan (2021), Töbelmann and Wendler (2020), Rafique et al. (2020), Ibrahiem (2020), Ahmad and Raza (2020), Zameer et al. (2020),Godil et al. (2020), Khan et al. (2020), and Altinoz et al. (2020). However, the findings contradict with Usman and Hammar (2021), Dauda et al. (2021), Atsu et al. (2021), Arshad et al. (2020), Usman et al. (2020), Khattak et al. (2020), Demir et al. (2020), Villanthenkodath and Mahalik (2020), and Faisal et al. (2020).

The long-run estimated coefficient on industrial value-added share of GDP (InIGDP) is statistically significant and positive showing that industrial sector growth significantly contributes to deteriorate South Africa’s environmental quality in the long run. The growing industrial sector in South Africa is primarily responsible for an upward trend of CO2 emissions. Over the years, South Africa has adopted several policies aimed at pursuing structural transformation and industrialisation to reduce poverty and ensure inclusive growth. Structural transformation of the economy from low-productivity agriculture to high-productivity industrialisation is seen as a requisite to achieve sustainable economic growth, job creation and poverty reduction. However, the growing industrial sector in South Africa has brought about an upward trend of CO2 emissions. The large-scale industrialisation and associated environmental alteration and its impact on biodiversity pose a threat to human existence through basic necessities, recreation, and the ecological functions. It is evident that pollution from various sources, particularly from industries, has a negative impact on the environment, irreversible in nature, and causes extinction of species resulting in the loss of unique genetic resources of great use. Our findings are consistent with those of Al Mamun et al. (2014) and Sohag et al. (2017), who observed that the thriving industrial sectors are primarily responsible for an upward trend of CO2 emissions. Also, Tian et al (2014) stated that heavy manufacturing is the source of CO2 emissions at the domestic level. Our results are further supported by Cherniwchan (2012); Hossain (2011), Poumanyvong and Kaneko (2010), Nejat et al. (2015), Asane-Otoo (2015), Ozturk and Al-Mulali (2015), Lin et al. (2009), Garcia and Sperling (2010), Shahbaz and Lean (2012), and Li and Xia (2013). However, the findings contradict with Lin et al. (2015), who suggested that there is no evidence that industrial sector growth increases carbon emissions in Nigeria. Similar studies such as Shahbaz et al. (2014b), Shafiei and Salim (2014), Zhou et al. (2013), Xu and Lin (2015), Zhang and Lin (2012), Dhami et al. (2013), Ahuti (2015), Kavzo (2008), Lin et al. (2017), Wang et al. (2014), Shahbaz et al (2015), and Ewing and Rong (2008) found evidence that industrial sector growth reduces CO2 emissions.

The error correction term (ECT) captures the speed of adjustment. The estimated coefficient is negative and statistically significant confirming that a steady long-run relationship exists among the variables under review. The ECT estimated value of − 0.85 suggests that in the long run, 85% of disequilibrium is corrected. R-squared value shows that 89% variations in CO2 emissions are brought about by the explanatory variables used in this work. The estimated p value of F-statistics suggests that the model is a good fit.

While keeping other explanatory variables constant, the dynamic ARDL simulations automatically plot the forecasts of actual regressor change and its impact on the dependent variable. The effect of explanatory variables, that is, scale effect, technique effect, trade openness, energy consumption, foreign direct investment, technological innovation, and industrial value-added, on CO2 emissions is forecasted to increase and decrease by 10% in South Africa.

Figure 2 shows the impulse response plot of relationship between scale effect (economic growth) and CO2 emissions. The plot captures the transition of scale effect and its impact on CO2 emissions. A 10% increase in scale effect denotes a positive effect of economic growth on CO2 emissions in the short run and long run; however, a 10% decrease in scale effect implies a negative influence of economic growth on CO2 emissions, but the impact of 10% increase is higher than 10% decrease in scale effect. This implies that an increase in scale effect (economic growth) contributes to deteriorate the environmental quality, whereas a decrease in scale effect improves the environmental condition in both the short run and long run in South Africa.

Fig. 2
figure 2

The impulse response plot for scale effect (economic growth) and CO2 emissions. Figure 2 shows a 10% increase and a decrease in scale effect and its influence on CO2 emissions where dots specify average prediction value. However, the dark blue to light blue line denotes 75, 90, and 95% confidence interval, respectively

Figure 3 illustrates the impulse response plot of technique effect and CO2 emissions in South Africa. The technique effect graph demonstrates that a 10% increase is closely associated with a negative influence on CO2 emissions in the long run and short run. However, a 10% decrease has a positive effect on CO2 emissions in the long run and short run. This suggests that an increase in technique effect (square of economic growth) improves the environmental quality, but a decrease in technique effect deteriorates the environmental condition in both the short and long run in South Africa.

Fig. 3
figure 3

The impulse response plot for technique effect and CO2 emissions. Figure 3 shows a 10% increase and a decrease in technique effect and its influence on CO2 emissions where dots specify average prediction value. However, the dark blue to light blue line denotes 75, 90, and 95% confidence interval, respectively

Figure 4 displays the impulse response plot connecting the relationship between trade openness and CO2 emissions. The plot shows that a 10% increase in trade openness positively influences CO2 emissions in the long, but negatively affects it in the short run. In contrast, a 10% decrease in trade openness has a negative influence on CO2 emissions in the long, but positive effect in the short run. This suggests that an increase in trade openness improves South Africa’s environmental quality in the short run, but deteriorates it in the long run. However, a decrease in trade openness has a beneficial impact on South Africa’s environment in the long, but deteriorates it in the short run.

Fig. 4
figure 4

The impulse response plot for trade openness and CO2 emissions. Figure 4 shows a 10% increase and a decrease in trade openness and its influence on CO2 emissions where dots specify average prediction value. However, the dark blue to light blue line denotes 75, 90, and 95% confidence interval, respectively

Figure 5 shows the impulse response plot of relationship between energy consumption and CO2 emissions. The plot capturing the energy consumption impact on CO2 emissions shows that a 10% increase in energy consumption has a positive impact on CO2 emissions in the short run and long run; however, a 10% decrease in energy consumption has a negative influence on CO2 emissions. This implies that an increase in energy consumption contributes to deteriorate the environmental quality, whereas a decrease in energy consumption improves the environmental condition in both the short run and long run in South Africa.

Fig. 5
figure 5

The impulse response plot for energy consumption and CO2 emissions. Figure 5 shows a 10% increase and a decrease in energy consumption and its influence on CO2 emissions where dots specify average prediction value. However, the dark blue to light blue line denotes 75, 90, and 95% confidence interval, respectively

Figure 6 illustrates the impulse response plot of foreign direct investment and CO2 emissions in South Africa. The foreign direct investment graph demonstrates that a 10% increase in foreign direct investment is closely associated with a positive influence on CO2 emissions in the long run and short run. However, a 10% decrease has a negative effect on CO2 emissions in the long run and short run. This suggests that an increase in foreign direct investment deteriorates the environmental quality in both the short and long run in South Africa.

Fig. 6
figure 6

The impulse response plot for foreign direct investment and CO2 emissions. Figure 6 shows a 10% increase and a decrease in foreign direct investment and its influence on CO2 emissions where dots specify average prediction value. However, the dark blue to light blue line denotes 75, 90, and 95% confidence interval, respectively

In Fig. 7, the impulse response plot between technological innovation and CO2 emissions in South Africa is presented. The graph reveals that a 10% increase in technological innovation has a negative influence on CO2 emissions in the long run and short run. However, a 10% decrease in technological innovation brings about a positive effect on CO2 emissions in the long run and short run. This suggests that an increase in technological innovation improves South Africa’s environmental quality, whereas a decrease in technological innovation deteriorates the environmental condition in both the short and long run in South Africa.

Fig. 7
figure 7

The impulse response plot for technological innovation and CO2 emissions. Figure 7 shows a 10% increase and a decrease in technological innovation and its influence on CO2 emissions where dots specify average prediction value. However, the dark blue to light blue line denotes 75, 90, and 95% confidence interval, respectively

Figure 8 presents the impulse response plot of relationship between industrial value-added and CO2 emissions. The plot shows that a 10% increase in industrial value-added has a positive impact on CO2 emissions in the short run and long run; however, a 10% decrease in industrial value-added has a negative influence on CO2 emissions. This suggests that an increase in industrial value-added contributes to deteriorate the environmental quality, whereas a decrease in industrial value-added improves the environmental condition in both the short run and long run in South Africa.

Fig. 8
figure 8

The impulse response plot for industrial value-added and CO2 emissions. Figure 8 shows a 10% increase and a decrease in industrial value-added and its influence on CO2 emissions where dots specify average prediction value. However, the dark blue to light blue line denotes 75, 90, and 95% confidence interval, respectively

This work also uses the frequency domain causality test proposed by Breitung and Candelon (2006) to explore the causality between InSE, InTE, InOPEN, InEC, InFDI, InTECH, InIGDP, and InCO2 in South Africa. Table 8 (see Appendix) shows that InSE, InTE, InOPEN, InEC, InFDI, InTECH, and InIGDP Granger-cause InCO2 in the short, medium, and long run for frequencies \({\omega }_{i}=0.05, {\omega }_{i}=1.50,{\omega }_{i}=2.50.\) This implies that InSE, InTE, InOPEN, InEC, InFDI, InTECH, and InIGDP significantly affect CO2 emissions in short, medium, and long terms in South Africa. Our empirical evidence is compatible with the findings of Udeagha and Ngepah (2019), Udeagha and Ngepah (2021), Al Mamun et al. (2014), and Sohag et al. (2017).

This study further applies the structural stability evaluation of the model to validate its robustness. To this end, the cumulative sum of recursive residuals (CUSUM) and cumulative sum of squares of recursive residual (CUSUMSQ) proposed by Pesaran and Pesaran (1997) are used. Figures 9 and 10 (see Appendix) present a visual representation of CUSUM and CUSUMSQ. Conventionally, there is a stability of model parameters over time if plots are within a critical bound level of 5%. Based on the model trend shown in Figures A1 and A2, since CUSUM and CUSUMSQ are within the boundaries at a 5% level, we can conclude that the model parameters are stable over time.

Robustness

This study uses three tests to evaluate the robustness of the Squalli and Wilson (2011) measure (i.e. composite trade intensity—CTI) over traditional trade intensity (TI) measure. First, using the Penn World Tables (PWT) data for 2000, the study verifies the robustness of the world rankings by comparing the performance of the CTI and TI-based measures. Second, using several indicators of liberal trade policies and capital flows, the work compares partial correlation coefficients between CTI and TI. Third, our models are re-estimated using the TI measure to prove the supposition by testing and checking the extent to which the findings are sensitive to the measurements used. To this end, the TI measure is captured as the ratio of total trade (exports plus imports) to GDP.

Rankings

Previous studies have extensively used the TI-based measure to investigate the effect of trade openness on environmental quality. Astonishingly, a striking anomaly occurs when this proxy is used to rank countries to ascertain their degree of openness to trade benefits. Table 9 (see Appendix) shows that with TI measure, the bottom five and most closed economies are Japan, Argentina, Brazil, the USA, and India. Using the TI-based measure, the largest trading economies of the world are relatively closed because their trade shares of total economic activities are very low using the world standards. But how sensible is it to categorise a country particularly the USA, the world’s dominant trading country, as a closed economy? The apparent explanation is that the TI-based measure is a one-dimensional measure that looks only at the comparative position of trade performance of a country in relation to her domestic economy. In doing so, it tends to penalise bigger economies (because of their potentially large GDP), thus, classifying them as closed. Penn World Tables (PWT) data for 2000 shows that South Africa is ranked 107th when TI measure is used, but 37th with CTI measure. Given this background, this study therefore argues that trade openness is a two-dimensional measure; the first one captures the proportion of total income of a given country that is connected to international trade and the second one deals with a country’s interconnectedness and interaction with the rest of the world. Using this way to measure openness, this study suggests a way to rectify the anomaly seen in the rankings by using CTI measure to capture two dimensions which together describe the real trade openness and focus on actual trade flows instead of potential trade flows. In so doing, bigger economies such as Russia, France, Germany, South Africa, the UK, the USA, and China will have their trade openness proxies increased significantly compared with the traditional TI-based measure.

Correlations

The second test used in this study to assess the robustness of CTI over TI is to conduct a partial correlation analysis between CTI and TI with several indicators of liberal trade policies and capital flows. Following Squalli and Wilson (2011), the proxies of liberal trade policies used for this analysis include foreign direct investment (FDI) inflows and outflows (as percentage of GDP), taxes on international trade (as percentage of revenue), customs and other import duties (as percentage of tax revenue), and number of registrations of new businesses (as percentage of total). Data for all these proxies are from World Bank world development indictors. It is expected that customs and other import duties on trade to have a negative correlation with CTI and TI measures, while other proxies of liberal trade policies are expected to have positive correlations with them.

As expected, Table 10 (see Appendix) shows that the customs and other import duties on international trade are negatively correlated with both CTI and TI measures of trade openness estimated at − 0.43 versus − 0.04. However, the correlation with CTI is stronger than that of TI. Similarly, there is a negative correlation with taxes on international trade estimated at − 0.31 versus − 0.22, where CTI’s correlation also appears to be stronger than that of TI. For other proxies used, CTI has a positive correlation, while TI is positively correlated with only FDI net inflows and the number of registration of new businesses. Again, the correlation between CTI and new business registrations is stronger and larger than that of TI; thus, providing further evidence that supports the robustness of CTI. On the contrary, TI’s correlation with FDI net inflows is stronger than that of CTI estimated at 0.69 versus 0.30 for CTI, but is negatively correlated with FDI net outflows. This evidence appears curious and casts further doubt on the consistency and use of TI measure of trade openness.

Are the findings sensitive to the measurements?

The third robustness test deals with the test to prove the supposition that CTI is superior to TI and check the extent to which the findings are sensitive to the measurements used. This is carried out by re-estimating our models using TI in lieu of CTI. The results reported in the columns (4)–(6) of Table 7 show that when TI is used, there is a significant reduction in explanatory power, where the reported R2 value substantially decreases from 0.898 to 0.510. Also, using TI measure, the root-mean-squared error (RMSE) significantly increases from 0.081 to 0.271 in the models. Furthermore, the results of Table 7 show that the estimated coefficient on the variable of interest (i.e. trade openness) is substantially higher when TI is used in lieu of CTI. More importantly, the difference in magnitude between CTI and TI estimates suggests that using TI may result in overstating the impact of our variable of interest on environmental quality in South Africa. In addition, our findings are very sensitive when TI is used in place of CTI. Based on the results, the long-run estimated coefficient on technological innovation (InTECH) is not only statistically insignificant, but also has an opposite sign. In summary, given the aforementioned facts and tests, the estimation of the models is evidently statistically superior with the use of CTI measure and this evidence not only casts doubt on the use of TI measure but also provides statistical supports while CTI measure is used in this paper.

Conclusions and policy implications

This study revisited the dynamic relationship between trade and CO2 emissions in South Africa over the period 1960–2016 by using the recently developed novel dynamic ARDL simulation model proposed by Jordan and Philips (2018) that can estimate, stimulate, and plot to predict graphs of (positive and negative) changes in the variables automatically as well as their short-and long-run relationships. Using this approach permits us to identify the positive and negative relationships between InSE, InTE, InOPEN, InEC, InFDI, InTECH, InIGDP, and InCO2 in South Africa, thereby overcoming the limitations of the simple ARDL approach in earlier studies. For robustness check, we used the frequency domain causality (FDC) approach, the robust testing strategy suggested by Breitung and Candelon (2006) which permits us to capture permanent causality for medium term, short term, and long term among variables under consideration. This paper further contributed to empirical literature by employing an innovative measure of trade openness proposed by Squalli and Wilson (2011) capturing trade share in GDP and the size of trade relative to the global trade for South Africa. We used the Dickey-Fuller GLS (DF-GLS), Phillips-Perron (PP), Augmented Dickey-Fuller (ADF), and Kwiatkowski-Phillips-Schmidt-Shin (KPSS) unit root tests to confirm the asymptotic behaviour and order of integration of all variables under review. This process helps to resolve the issues of spurious regressions. Further, the Narayan and Popp’s structural break unit root test was used since empirical evidence shows that structural breaks are very persistent in empirical literature and many macroeconomic variables like CO2 emissions and trade openness are likely to be affected. Consequently, empirical evidence from all the tests validated that the data series were integrated into order one, that is, I(1), and there is no evidence of any I(2). SBIC was utilised to identify the optimal lag length. For South Africa, our empirical results revealed that the scale effect contributes to deteriorate the environmental condition, whereas the technique effect is environmentally friendly. This evidence therefore confirms the presence of EKC hypothesis for South Africa. Foreign direct investment, industry value-added, and energy consumption deteriorate environmental quality; however, technological innovation contributes to lower CO2 emissions in South Africa. The FDC results also revealed that InSE, InTE, InOPEN, InEC, InFDI, InTECH, and InIGDP Granger-cause InCO2 in the medium term, long term, and short term suggest that these variables are important to influence CO2 emissions in South Africa.

In addition, regarding the relationship between trade openness and CO2 emissions, our empirical results showed that in the long run, higher trade openness is highly injurious to the environment of South Africa, although it is environmentally friendly in the short run. Our empirical evidence is in line with the findings of Udeagha and Ngepah (2019) that, in the long run, trade openness contributes to deteriorate the country’s environmental quality, but beneficial in the short run. These findings were further supported by Tayebi and Younespour (2012) that validated the presence of pollution haven hypothesis in case of many developing countries. The comparative advantage of South Africa in export and production of pollution-intensive products has enabled the migration of industries from developed countries to the country, thereby making the country the “havens” for the highly intensive-pollution industries of the world. Such a migration has considerably led to a shift in the pollution problems of these developed countries to South Africa, and this has contributed significantly to worsen the current environmental deterioration. Added to this are the country’s inefficient environmental laws and weak institutions due to corruption. Consequently, South Africa becomes dirtier as it continues to specialise in the production of dirty products, which highly contribute to deteriorate her environmental quality. Inevitably, trade openness has enabled to make South Africa to become an extremely polluted factory of the world.

In light of our empirical evidence, the following policy considerations are suggested: (i) South Africa’s government and policymakers should take prompt initiatives to mandate foreign investors to use cleaner, greener, and updated technologies, which can promote efficiency in the production processes and curtail CO2 emissions in South Africa. (ii) International teamwork to improve environmental quality is immensely critical to solve the growing trans-boundary environmental decay and other associated spillover consequences. In light of this, the government should work together to build robust global teamwork with other countries with the purpose of sharing technology. (iii) The government should integrate all-inclusive environmental chapters into the country’s trade agreement policies to enable a transition into low-carbon economy and greener industries, thus encouraging production of cleaner products. (iv) Lastly, trade policy reform could be supported by other developmental policies to ensure long-lasting value for reductions of carbon emissions and continuously enable the development of new technologies that can boost the country’s environmental quality and protect the global environment.