1 Introduction

In this research, we attempt to estimate the cross-sectionally dependent aggregate relationship between a country’s trade balance and real exchange rate, where we can also extract the partner-specific heterogeneous relationships for policy implication. This attempt is new in the literature investigating trade balance- exchange rate relationship, which is predominantly based on the analysis of either bilateral relationships or single-country aggregate (over all trading partners)Footnote 1 analysis without considering the common factors. We use Bangladesh as our country of interest and construct a panel data with her 25 major trading partners to disentangle partner relationships from the aggregate analysis. We replace the domestic and foreign GDP variables with foreign GDP relative to domestic GDP to preserve enough variation. We construct the aggregate time series data from our panel data following Beyer et al. (2000) flexible weights aggregation method.Footnote 2 Our structure facilitates a comparative analysis of single-country aggregate time series, bilateral time series, and panel time series estimates using the same data and therefore contributes to the analysis of aggregation bias in this regard. We also include both linear (symmetric) and nonlinear (asymmetric) effects of exchange rate movement following Shin et al. (2014), Bahmani-Oskooee et al. (2019), Bahmani-Oskooee and Kanitpong (2017): whether the effect of currency appreciation on the trade balance is different to that of currency depreciation.

The relationship between the real exchange rate and the country’s trade balance is still a topic of empirical interest, with the current focus on finding evidence favoring J-curve due to the econometric methodology advancements. The literature, pioneered by Magee (1973) to date, investigates whether currency depreciation improves the trade balance of a country, noting different short run and long run effects due to adjustment lags. Based on the Marshall–Lerner condition, this theory is briefly referred to as the J-curve effect; currency depreciation causes a short run deterioration of a country’s trade balance before improving it in the long run. Broadly, there are three lines of research: estimating the aggregate effect (see, e.g., Bahmani-Oskooee and Ratha 2004, Bahmani-Oskooee and Hegerty 2010 for surveys), estimating the bilateral effect (e.g., Bahmani-Oskooee and Fariditavana 2015, Bahmani-Oskooee and Kanitpong 2017), using time series analysisFootnote 3, and estimation using panel time series data (e.g., Yazgan and Ozturk 2019). While estimating the bilateral effect, some recent research focuses on industry-level trade data, with (e.g., Lucarelli et al. 2018) or without (e.g., Bahmani-Oskooee et al. 2016) incorporating asymmetric effects analysis.

The studies so far, however, cannot provide any conclusive results on the topic. For example, in China’s case, Bahmani-Oskooee and Wang (2006) based on linear bilateral time series did not find any reliable evidence of J-curve. Wang et al. (2012) using panel data with no correction for cross-section dependence found some inverted J-curve evidence. Later, Bahmani-Oskooee and Fariditavana (2015) found an absence of J-curve with linear aggregate time series analysis, but presence allowing for nonlinear (asymmetric) adjustment. Recently, Bahmani-Oskooee et al. (2018) found evidence of the J-curve with 5 out of 21 trading partners of China using nonlinear bilateral analysis. In the case of Bangladesh, based on aggregate time series (vector error correction model) analysis using monthly data, Younus and Chowdhury (2014) found no effect of real effective exchange rate on trade balance both in the short and long run. Bahmani-Oskooee et al. (2019), on the other hand, using a bilateral nonlinear ARDL model with quarterly data, found short run asymmetric effects in favor of J-curve with most trading partners but only a few long run asymmetric effects. In the case of panel data for Bangladesh, the applications are limited to the basic techniques such as fixed effects and random effects estimations (Khan and Hossain 2010) without considering the cross-section dependence. Notably, none of those mentioned above studies considered the exchange rate regime shifts, neither for China nor Bangladesh.

The third line of research emerged very recently using panel time series data, Yazgan and Ozturk (2019) analyzed the J-curve effect of 33 countries applying the pooled Common Correlated Effects estimator (CCE estimator, due to Pesaran 2006) admitting the possible cross-section correlation. Our analysis falls in this third line of research. We contribute to this ongoing debate by presenting a rigorous comparative analysis: aggregate time series, bilateral time series, and panel time series analysis of a single country experience. While the aggregate time series analysis suffers from possible aggregation bias, the bilateral time series ignores the country-specific common factors and has limited policy suggestions. A panel time series is tempting under this argument, but that needs to consider the cross-section dependence. While Yazgan and Ozturk (2019) admitted this and constructed the panel including mostly developed countriesFootnote 4, we argue that the experience of the developing countries can vary considerably depending on how they manage their exchange rate determination, their trade agreements, and custom policies and practicesFootnote 5. In the country-panel they considered, no allowance has been made to recognize country-specific exchange rate regime shifts (e.g., from a fixed exchange rate system to free-floating exchange rate system). The analysis, therefore, is limited to merely testing the J-curve hypothesis for the world as a whole without any reasonable country-specific policy implications.

To be more specific, our research is focused on one country. We construct a unique panel data with Bangladesh’s trade with her 25 major trading partners, using Bangladesh as the reference country. We then construct the aggregate over all trading partners’ data with flexible weights of partner-specific trade share and present a comparative analysis of the aggregate and disaggregate estimates of the trade balance–exchange rate relationship. To avoid confusion regarding exchange rate regime shifts, we consider monthly data from 2003, from when the country has been under a flexible exchange rate regime. We found significant cross-section dependence, and the CCE-type estimators provide surprising results for Bangladesh: trade balance improves with currency appreciation in the long run. This unusual finding seems to support the theory presented in Arize et al. (2017): if exporters aim to maintain market share, they often increase the volume of exports with government support in response to a currency appreciation. The opposite does not happen with currency depreciation, which strengthens the importance of keeping the market share for exporters of the small country where they can have the opportunity to offset any margin reduction they apply during currency appreciation.

After this brief background, the paper is organized as below. Section 2 presents a brief literature review, Sect. 3 elaborates the model, econometric methods used and the data, Sect. 4 places a comparative discussion of the results from different estimation methods, Sect. 5 presents a discussion of the findings and Sect. 6 concludes the paper.

2 Literature review

Investigating aggregation bias in trade balance–exchange rate relation can be dated back to work by Rose and Yellen (1989), who dealt with aggregate and bilateral data for the US and strictly rejected the J-curve hypothesis. Bahmani-Oskooee and Brooks (1999) revisited the same problem as Rose and Yellen (1989) with advancements in methodology and found some evidence for the J-curve. Bahmani-Oskooee and Goswami (2003) highlighted the aggregation problem again, using quarterly data for Japan, presenting both separate bilateral and aggregated analysis. With the increasingly available data and econometric methodologies, a vast amount of literature emerged where bilateral analysis focuses on a specific country relationship with her major trading partners, covering both developed and developing countries as the country of interest (see, e.g., Bahmani-Oskooee and Hegerty 2010 for a survey). The studies differ in terms of their conclusion about the existence of the J-curve effect and its extent, and no consensus has been reached using the bilateral analysis, still leaving room for the debate of ‘aggregation bias’ to continue (e.g., Gürtler 2019).

In the search for evidence for and against the J-curve phenomenon, the focus sharply changed, recognizing the differences in currency appreciation effects than that from currency depreciation. Following the seminal work by Bahmani-Oskooee and Fariditavana (2015), bilateral analysis performed in the previous decade has been revisited for many countries allowing for asymmetric effects largely using the methodology proposed by Shin et al. (2014) (e.g., Bahmani-Oskooee and Arize 2019, Arize et al. 2017, Hunter 2019, Bahmani-Oskooee et al. 2018, Lee 2018, to name a few). The findings mostly confirm more evidence supporting the J-curve compared to the ‘aggregate’ analysis of the real exchange rate rather than considering the different effects of currency appreciation and depreciation. While the bilateral asymmetric analysis gains popularity, the study of the effects seem leads the focus to a further disaggregated level, the bilateral asymmetric industry level trades. Lucarelli et al. (2018) analyzed the Euro depreciation effect and found some evidence of the J-curve effect in Italy’s case. Bahmani-Oskooee and Nasir (2019) presented the analysis for US versus UK industry trade with 68 industries resulting in a large number of individual regressions and found evidence for the J-curve effect in 18 of them. In search of evidence, the increasing practice of disaggregation suffers from the possibility of ignoring country-specific common factors.

The analysis using Bangladesh data follows no exception as above, from the use of aggregate time series analysis (e.g., Khatoon and Rahman 2009,Younus and Chowdhury 2014, Hassan et al. 2017), to asymmetric bilateral analysis (e.g., Bahmani-Oskooee et al. 2019) and asymmetric bilateral commodity-level analysis (Bahmani-Oskooee and Rahman 2017). The findings are mixed in support of the J-curve effect but indicate that more evidence in favor is found from asymmetric analysis compared to linear analysis.

To our knowledge, except for Yazgan and Ozturk (2019), there is no literature analyzing the exchange rate–trade balance relationship in a panel format, combining both aggregate and disaggregate analysis, and allowing for the presence of common factors. Yazgan and Ozturk (2019)’s work has a world perspective with 33 countries using the common correlated effects (CCE) estimator (Pesaran 2006). Pesaran (2006) introduced the CCE estimator in a static panel. Using this method, Yazgan and Ozturk (2019) found evidence for the J-curve effect as a global phenomenon without considering the dynamic structure of the relationship, the effects of structural breaks, and asymmetric adjustment possibilities. While it is interesting to find the global perspective allowing for country-specific heterogeneity, combining the experiences of small and large economies, developing and developed economies are often misleading. For individual country context, policy recommendations need to be based on a country-specific analysis of complex bilateral relations with various trading partners (Gürtler 2019). We aim to bridge this gap in the literature using Bangladesh as a case.

3 Variables and data sources

We start with the base model with four variables: trade balance, real exchange rate, domestic and foreign GDP, following the literature (e.g., Yazgan and Ozturk 2019, Lucarelli et al. 2018, Rose and Yellen 1989). We measure trade balance (TB) as the ratio of exports to imports of a country to facilitate taking logs by avoiding negative numbers. The log of the trade balance is denoted as LTB. This includes the trade balance of goods only. This definition aligns with our definition of the real exchange rate (RER) as Bangladeshi Taka per foreign currency, where we define depreciation of Bangladeshi Taka as an increase in RER. RER is calculated following the method in Khatoon and Rahman (2009), as the monthly trade-weighted real exchange rate of each partner countries:

$$\begin{aligned} RER_{it}=E_t^{BD}\left[ (CPI_{it}^f/E_{it}^f)/CPI_t^d\right] , \end{aligned}$$

where \(RER_{it}\)= real exchange rate of Taka against partner i’s currency, \(E_t^{BD}\)= exchange rate of Taka against US dollar, \(CPI_{it}^f\)= over time Consumer Price Index (CPI) of the ith partner country, \(E_{it}^f\)= over time exchange rate of the ith partner country’s currency against US dollar, and \(CPI_t^d\)= over time CPI of Bangladesh. The log of RER is used, denoted as LRER.

In Bangladesh, the GDP is only measured annually. In order to use data with a higher frequency to capture the dynamics of the exchange rate, we used the monthly industrial production index as a proxy to both domestic and foreign GDP.Footnote 6 It is to note that rather than modeling a conventional country panel, our goal is to use Bangladesh’s case of the trade balance–exchange rate relationship, where we need the partners’ relations with Bangladesh. To allow for a disaggregated analysis within the same framework, we constructed a panel data of major trading partners of Bangladesh observed over time. The trade balance, RER, and foreign GDP data were readily available in the panel format, whereas the domestic (Bangladesh) GDP data was the same for all 25 partners. To overcome this limitation, we transformed the basic model and included relative GDP (RGDP): foreign GDP to domestic GDP. The inclusion of the variable

$$\begin{aligned} RGDP_{it}=log\left( \frac{GDPF_{it}}{GDPD_t}\right) , \end{aligned}$$

compared to the log of domestic GDP and the log of the foreign GDP restricts the model: the absolute values of the domestic and foreign income elasticity of trade balance are equal. This restriction turned out to be an empirical regularity for Bangladesh (see, e.g., Iqbal et al. 2019), and the results in the aggregate time series analysis using the standard model are statistically equivalent to the one used in here.Footnote 7 The relative GDP can increase by either increasing foreign GDP, decreasing domestic GDP, or both and vice versa. Therefore, the interpretation of the coefficient of RGDP is in line with the theory; a positive sign is expected given that the increase in foreign GDP (or a decrease in domestic GDP) will favor exports and thereby increase trade balance. This transformed model allows us to present the Bangladesh context in her trading-partner-based disaggregate form to construct a panel time series.

All the aggregate variables are formed by trade-weighted totals of the disaggregated variables, thereby providing a scope to analyze aggregation bias, if any.

We highlight the importance of gravity model factors in explaining the trade dynamics of a developing country like Bangladesh, situated geographically to the east (e.g., Khan and Hossain 2010). We include the log of import weighted distance (LMWD) as a proxy to transportation cost in Bangladesh’s trade balance equation. The distances are approximated by Bangladesh’s capital city Dhaka to the partner country capital city in kilometers.Footnote 8

To analyze possible asymmetric effects of exchange rate depreciation and appreciation on trade balance, we further construct two variables, POS and NEG, respectively, as the positive and negative partial sum decomposition of the real exchange rate (LRER) variable following Bahmani-Oskooee and Fariditavana (2015):

$$\begin{aligned} POS_{it}=\sum _{j=1}^{t} \varDelta LRER_{ij}^+=\sum _{j=1}^{t} max (\varDelta LRER_{ij}, 0),\\ NEG_{it}=\sum _{j=1}^{t} \varDelta LRER_{ij}^-=\sum _{j=1}^{t} min (\varDelta LRER_{ij}, 0). \end{aligned}$$

where given the real exchange rate is measured as Taka per foreign currency, \(POS_{it}\) measures depreciation of Bangladeshi Taka and \(NEG_{it}\) measures Taka appreciation.Footnote 9 We report their Kernel density functions compared to the normal distribution in Fig. 4, where it shows that \(NEG_{it}\) has a slightly positively skewed distribution compared to \(POS_{it}\). We chose 25 major trading partners of Bangladesh of which the top ten partners are: Hong Kong, China, France, Germany, India, Japan, Korea, UK, USA, and Singapore. These 25 countries are selected based on average trade volume for consideration from 2003 to 2017. These countries cover, on average, 68% of the total trade of Bangladesh. Figure 1 presents the comparative time series of the overall trade balance of Bangladesh and trade balance with her 25 major trading partners. The figure shows some spikes in all partner trade balance data not used here for the analysis. The 25 partners trade balance series (the solid line) has more stability than the entire series, reflecting no significant possibility of structural changes in the data under consideration.Footnote 10 Figure 2 shows the partner-specific LTB data where it seems that the trade balance with some partner countries is more volatile than the rest of the partners. We think this is more likely due to the type of commodity trade with these countries.Footnote 11 The disaggregated LRER data in Fig. 3 does not have any notable features, reflecting moderate fluctuations and overtime slight appreciation patterns.

Fig. 1
figure 1

Trade balance of Bangladesh, total compared to that with her top 25 trading partners

Fig. 2
figure 2

Log of trade balance (exports to imports ratio) of Bangladesh with her top 25 trading partners

Fig. 3
figure 3

Log of real exchange rate of Bangladeshi Taka with her trading partner currency

We used data from the International Financial Statistics (IFS), The Direction of Trade Statistics (DOTS), both published by International Monetary Fund (IMF), and the country-specific national websites to fill in a few missing observations (e.g., Singapore IP index from the government of Singapore websiteFootnote 12). All the variables are converted to index with January 2015 as the base. There is no seasonality found in the variables.Footnote 13

4 The model and methods

As discussed in Sect. 2, the popular method used in the literature for trade balance–exchange rate relationship analysis is cointegration, using either aggregate time series, bilateral time series, or panel time series data. The most common cointegration method used is the autoregressive distributed lags (ARDL) models, both in linear (Pesaran et al. 2001) and in the asymmetric form (Shin et al. 2014), for its flexibility in dealing with a mixture of stationary and nonstationary variables. We aim to use the ARDL model too, as Table 4 shows that the variables under consideration are a mixture of stationary and nonstationary variables, I(0) and I(1), and varies depending on the unit root tests.

In the long panel literature, the cross-section dependence, often defined as the interdependence across partners in this context (Yazgan and Ozturk 2019), gained popularity following the Common Correlated Effects (CCE) estimator proposed by Pesaran (2006). We expect that Bangladesh’s trade with her partners will have some common factors together with some partner-specific heterogeneity. While the CCE in Pesaran (2006) is proposed for static model, we found the ideal model to analyze the relationship between Bangladesh’s trade balance and exchange rate as the common correlated effects estimators for dynamic panel data allowing for cross-section dependence, if any (CS-ARDL hereafter) (Chudik and Pesaran 2015, Chudik et al. 2016, Ditzen 2018).Footnote 14 The method allows us to estimate the aggregated and disaggregated effects and assuming symmetric and asymmetric effects of currency appreciation and depreciation on Bangladesh’s trade balance. We discuss the method in detail and justify the suitability of the CS-ARDL estimator in this context.

4.1 CS-ARDL methodology

Here, we present the CS-ARDL methodology using general notations following Chudik and Pesaran (2015). Suppose that the dependent variable is y and we have one regressor x. The heterogeneous coefficients dynamic panel data model is given as:

$$\begin{aligned} y_{it}&=\alpha _i+\lambda _i y_{i, t-1}+ \beta _{0i}x_{it}+\beta _{1i} x_{i,t-1}+u_{it}\\ u_{it}&=\gamma _i^\prime f_t+e_{it}\nonumber \end{aligned}$$
(1)

where \(\alpha _i\) are individual fixed effects, \(f_t\) is a vector of unobserved factors common for each cross-sectional unit, \(\gamma _i\) is the heterogeneous factor loading, and \(e_{it}\) is the iid error term. If the unobserved common factors, \(f_t\), are correlated with the regressors, ignoring this can lead to biased estimates. The CCE estimator proposed by Pesaran (2006) is based on approximating \(f_t\) by cross-section averages of the regressors (\({\bar{y}}_{t}, {\bar{x}}_{t}\)). The estimators is consistent under the assumption of strict exogeneity of the regressors, which is violated in the above model (1) due to the dynamic structure with the presence of the lagged dependent variable. Chudik and Pesaran (2015) show that the common correlated effects estimator yields to consistent and unbiased estimates in a panel with weakly exogenous regressors by adding \(T^{1/3}\) lags of the cross-sectional averagesFootnote 15:

$$\begin{aligned} y_{it}&=\alpha _i+\lambda _i y_{i, t-1}+ \beta _{0i}x_{it}+\beta _{1i} x_{i,t-1}+\sum _{l=0}^{\rho _T}\delta ^\prime _{il} {\bar{Z}}_{t-l}+e_{it} \end{aligned}$$
(2)

where \({\bar{Z}}_{t}=[{\bar{y}}_{t}, {\bar{x}}_{t}]\). Chudik et al. (2016) show that the dynamic CCE estimator derived in Chudik and Pesaran (2015) is valid for the estimation of long run coefficients as well. Following them, the error correction form of Eq. (2) can be presented as:

$$\begin{aligned} \varDelta y_{it}&=\phi _i(y_{i, t-1}-\theta _{1i}x_{i, t-1})+\alpha _i+\beta _{0i}\varDelta x_{it}+\sum _{l=0}^{\rho _T}\delta ^\prime _{il} {\bar{Z}}_{t-l}+e_{it} \end{aligned}$$
(3)

with \(\phi _i=(1-\lambda _i)\), the error correction speed of adjustment parameter with an expected negative sign, \((y_{i, t-1}-\theta _{1i}x_{i, t-1})\) is the error correction term, \(\varDelta \) refers to the first difference of the respective variables, and \(\theta _{1i}=(\beta _{0i}+\beta _{1i})/\phi _i\) and \(\beta _{0i}\) are the long run and short run coefficients, respectively. In line with Chudik and Pesaran (2015)Footnote 16 and Ditzen (2018), we assume that the heterogeneous coefficients follow a random coefficient model which provides us both the aggregate and disaggregated results from one regression. The model can be generalized including additional lags of the dependent variable and the regressors, as well as observed common effects and deterministic intercepts and time trends (Chudik et al. 2017). Chudik and Pesaran (2015) specify the ARDL formulation using same lag orders for the dependent variable and the regressors to avoid potential problems of persistence. Here, we follow their structure.

4.2 Trade balance model

In our initiative to identify both aggregate and disaggregate effects of real exchange rate on the trade balance of a specific country, Bangladesh, under consideration, we begin to build up our model keeping the questions in mind: is there any unobserved common factors? If so, what are they? Are these common factors causing cross-sectional dependence? We believe our analysis of one country’s effect implies some common factors, e.g., several macroeconomic factors including the trade and financial integration state of Bangladesh affecting all her partners, and some partner-specific heterogeneous effects due to the separate bilateral trade agreements in place. We test the existence of weak cross-section dependence following Pesaran (2015), in the variables (Table 3) as well as, by estimating separate bilateral linearFootnote 17 and asymmetric (nonlinear) ARDL models. As shown in Table 3, we reject the null hypothesis of weak cross-section dependence when the test is applied to the variables series. We use the specification in Eq. (1) for the asymmetric ARDL models using bilateral time series, ignoring the i subscripts and assuming \(\gamma _i^\prime f_t\), a constant.

Following Chudik and Pesaran (2015) and Chudik et al. (2013), and the error correction representation in Eq. (3), our trade-balance exchange-rate model in the linear form is represented below:

$$\begin{aligned} \varDelta LTB_{it}&=\phi _i (LTB_{i,t-1}-\theta _{1i}LRER_{i,t-1}-\theta _{2i}RGDP_{i,t-1}-\theta _{3i} LMWD_{i,t-1})+ \alpha _i\nonumber \\&+\sum _{k=0}^{K}\beta _{1ki}\varDelta LRER_{it-k}+\sum _{k=0}^{K}\beta _{2ki}\varDelta RGDP_{it-k}+\sum _{k=0}^{K}\beta _{3ki} \varDelta LMWD_{it-k} \nonumber \\&+\sum _{l=0}^{\rho _T} \delta ^\prime _{it} {\bar{Z}}_{t-l}+e_{it} \end{aligned}$$
(4)

where the variables are as defined in Sect. 3, \({\bar{Z}}_t=[{\overline{LTB}}_{t}, {\overline{LRER}}_t, {\overline{RGDP}}_t, {\overline{LMWD}}_t]\), are the cross-section averages of the dependent variable and the other (strongly or weakly) exogenous variables. The optimum number of lags \(\rho _T=\root 3 \of {T}=\root 3 \of {1}70=5.54\approx 6\) of the cross-section averages are included to achieve consistency (Chudik and Pesaran 2015).

In the above notations, \(i=1, 2, \dots 25\) refers to the 25 major trading partners of Bangladesh, t refers to the period between June 2003 to November 2017 under the flexible exchange rate regime. By construction, \(\phi _i\) is the error correction speed of the adjustment parameter, and \(\varDelta \) refers to the first difference of the respective variables. \(k=0, 1, \dots , K\) are the lag orders to capture short run dynamics, set to be the same for all variables (as CS-ARDL is consistent irrespective of lag order selection, Chudik et al. 2016). The lag orders are determined to apply a general-to-specific methodology to ensure that the resulting error term does not have strong cross-sectional dependence (Pesaran 2015, Ditzen 2018).

Among others, Bahmani-Oskooee and Fariditavana (2015) extended the linear autoregressive distributed lag (ARDL) model to one of the nonlinear ARDL models following Shin et al. (2014) by splitting the exchange rate variable into appreciation-only and depreciation-only components. We extend the CS-ARDL model of Eq. 4 to incorporate this as below:

$$\begin{aligned} \varDelta LTB_{it}&=\phi _i (LTB_{it-1}-\theta _{1i}POS_{i,t-1}-\theta _{2i}NEG_{i,t-1}\nonumber \\&-\theta _{3i}RGDP_{i,t-1}-\theta _{4i} LMWD_{i,t-1})+ \alpha _i\nonumber \\&+\sum _{k=0}^{K}\beta _{1ki}\varDelta POS_{it-k}+\sum _{k=0}^{K}\beta _{2ki}\varDelta NEG_{it-k}+\sum _{k=0}^{K}\beta _{3ki}\varDelta RGDP_{it-k} \nonumber \\&+\sum _{k=0}^{K}\beta _{4ki} \varDelta LMWD_{it-k}+\sum _{l=0}^{\rho _T} \delta ^\prime _{it} {\bar{Z}}_{t-l}+e_{it} \end{aligned}$$
(5)

where \({\bar{Z}}_t=[{\overline{LTB}}_{t}, {\overline{POS}}_t, {\overline{NEG}}_t, {\overline{RGDP}}_t, {\overline{LMWD}}_t]\).

We use the cross-sectionally augmented panel unit root (CIPS) test (Pesaran 2007) of the CS-ARDL residuals to test for cointegration.

Table 6 reports the long run estimates and the residual cross-section dependence test p values for different lag orders \(K=[1, 2, \dots , 12]\)Footnote 18, for both CS-ARDL and asymmetric CS-NLARDL models. Except for the lag order 8 to 12 in CS-NLARDL models, all residuals are rejected to have strong cross-sectional dependence, using the weak cross-section dependence test proposed by Pesaran (2015). The test uses the null hypothesis that the series is weakly cross-sectionally dependent against the alternative that the cross-section dependence is strong.

The coefficients are not very sensitive to the choice of the lag order. For example, the coefficients of POS are not statistically significant in any models considered, while the coefficients of LRER are significant at only 10% level. NEG is significant in all lags, except in lag 6 in the asymmetric model, is positive, and ranges between 0.585 and 1.617. Import weighted distance LMWD is negative and statistically significant in all cases considered. The error correction speed adjustment coefficient is negative, less than one, and statistically significant in all settings. The relative GDP in the linear model is significant, while the asymmetric model becomes significant in lag 5. Based on the results, we choose \(K=5\) in our model. We keep the lag order the same for the linear and the asymmetric models to facilitate comparison. The p values in Table 6 reflect that with \(K=5\), we cannot reject the null of weak dependence at even 10% level of significance for both linear and the asymmetric models.

5 Results

We present two types of analysis here. We focus on the panel time series analysis, which yields both aggregate and partner country-specific estimates. For comparison, we offer time series analysis, both aggregate and bilateral, too. Aggregate time series analysis is based on the variables’ aggregate measures: a trade-weighted sum of the trade balanceFootnote 19, relative GDP, real exchange rate index, and the import weighted distance of the top 25 trading partners of Bangladesh.

We start with the bilateral time series analysis of the asymmetric ARDL model following Bahmani-Oskooee et al. (2019) and Bahmani-Oskooee and Kanitpong (2017), presented in Table 5. Based on the Pesaran et al. (2001) bounds test, each of the analysis with 25 trading partners shows a cointegrated relationship between trade balance and real exchange rate. In the long run, depreciation of Bangladeshi Taka against the Indian rupee, US dollar, Brazilian real, Norwegian krone, Russian ruble, and Turkish lira improves Bangladesh’s trade balance significantly. Appreciation of Taka against the Indian rupee and US dollar improves trade balance, whereas that against the UK pound hurts the trade balance. These results are not the same, but partly agree with Bahmani-Oskooee et al. (2019).Footnote 20 Based on the Wald test of parameter equality, our results suggest that the asymmetric effect, in the long run, exists for some partners including China, Germany, India, Korea, and the UK. However, none of these results are reliable, as in all variables considered, there is strong evidence of cross-sectional dependence.

Table 1 Aggregate ARDL estimation results

Columns 3 and 4 of Table 1 present aggregate results from Panel time series estimators: CS-ARDL and CS-NLARDL, which corrects for cross-section dependence. As discussed in Sect. 4.2, we use five lags in the short run model and six lags of the cross-section averages to control for the unobserved common factors. The linear model with Taka’s real exchange rate against Bangladesh’s 25 trading partners shows no statistically significant effect of real exchange rate depreciation on the trade balance in the long run. However, there is a significant negative effect in the short run with a 3-month lag and an error correction adjustment factor of 0.637, showing it takes less than two months to absorb the negative influence of depreciation in Bangladesh. No significant long run effect is not a surprise, as the central bank still keeps managing Bangladesh’s competitiveness by regular interventions (Bank 2019). The aggregate time series estimate of the linear model (column 1) shows a similar effect in magnitude in the long run which is not statistically significant as well. We include the impulse response function for the response of LTB to a one standard deviation impulse in LRER following the linear model in Fig. 6 simply for illustrative purposes.Footnote 21 The figure shows some deterioration following currency depreciation and some improvement in the first couple of months, without any significant long run improvement in trade balance.

To investigate the asymmetric effects of currency appreciation and depreciation, the cross-sectionally augmented asymmetric ARDL estimates are presented in column (4) of Table 1. Similar asymmetric effects estimation obtained from aggregate time series data is given in column (2) for comparison. Interestingly, there is clear disagreement between the results of the aggregate time series and the panel time series analyses in terms of the signs and statistical significance of the coefficients of currency appreciation (NEG) and depreciation (POS). While the asymmetric time series model ignoring cross-section dependence supports J-curve for Bangladesh in the aggregate level, the CS-NLARDL model yields a positive long run effect of currency appreciation (NEG) on the Bangladesh trade balance. This finding based on the CS-NLARDL estimate contradicts the theory that currency appreciation increases export competitiveness here rather than decreasing it for Bangladesh. The findings indicate that without considering the cross-section dependence, the asymmetric aggregate time series analysis overestimates the effects of currency depreciation (statistically significant under time series, but not under panel time series estimates) underestimates the impact of currency appreciation in the present context. Our estimates are robust to different lag orders in CS-ARDL and CS-NLARDL models (Table 6).

Following Bahmani-Oskooee et al. (2019), we conducted Wald tests to test for the presence of asymmetric effects using the estimated coefficients of POS and NEG in both columns 2 and 4 of Table 1. The time series coefficients do not reject the Wald test null hypothesis of equality (p value presented in Panel B). For the panel time series CS-NLARDL estimates, there is not enough precision in the POS coefficient estimate, but still we reject the null supporting evidence for an asymmetric effect. Comparing the estimates presented in columns 2, 3, and 4, it is evident that there is an asymmetric effect of currency appreciation and depreciation in the case of Bangladesh, with currency appreciation having a positive impact and depreciation having no significant impact on the trade balance in the long run. We also report the p value of the Wald test for cumulative short run estimates of the CS-NLARDL model, which suggests that the cumulative effects of currency appreciation and that of currency depreciation in the short run are not statistically different.

In our analysis of the other coefficients, we focus on column 4, the CS-NLARDL estimates, as the time series estimates in columns 1 and 2 are more likely to be biased, and there seem to be asymmetric effects. The coefficient of foreign to domestic GDP is positive as expected and is statistically significant in both the short and long run. The negative and significant impact of import weighted distance is as expected; distance plays an important role in Bangladesh’s trade relations, which is also evident from the composition of her major trading partner countries; six out of 25 are located in the same continent, Asia.

Panel B of Table 1 presents the error correction speed of the adjustment coefficient. The speed of adjustment in presence of any shock is − 0.699 in our chosen model, which implies that it takes approximately a month and a half to reach the equilibrium. The coefficient is statistically significant, following Pesaran et al. (2001), which implies that the system represents cointegration.Footnote 22 In line with Yazgan and Ozturk (2019), we use the simple cross-sectional dependence augmented DF test (CADF) (Pesaran 2007), which confirms that the residual from CS-NLARDL is stationary, to support cointegration.Footnote 23

We now focus on the disaggregate, country-specific analysis. Table 2 presents the long run country-specific estimates of the CS-NLARDL model, obtained together with the aggregate effects. Among the 25 partner countries considered, only depreciation against Malaysia and Mexico and appreciation against China, Japan, and Singapore currency seems to have a significant long run effect on the trade balance. The effects are positive for currency appreciation and negative for depreciation, as opposed to the theory. In the short run, depreciation against the Singapore currency has a high positive significant impact on the Bangladesh trade balance, which gets mostly opposed by the adverse effects it causes against Korea, China, Brazil, and Russia. A robust positive effect of currency appreciation in the short run is seen to be in place against India, Brazil, and Malaysia in two months’ time lag but then fades away with similar negative effects against Singapore and Korea within four months. The primary role players in the trade balance–exchange rate relationship of Bangladesh are, therefore, China, Japan, and Singapore, with some influence from Malaysia, Mexico, Brazil, and Korea.

Our findings above compared with the conclusions from bilateral time series analysis in Table 5, is quite different, where Korea did not have any significant long run effect, and Singapore did not have any significant short run effect of currency depreciation or appreciation on the trade balance. The major role players in affecting Bangladesh’s trade balance via exchange rate movements using bilateral time series are India, UK, USA, Canada, Russia, Sweden, and Turkey, with significant coefficient estimates for both currency appreciation and depreciation. Our findings using monthly data and the period under flexible exchange rate regimes are not in line with those of Bahmani-Oskooee et al. (2019), using quarterly data and a period covering a mixture of Bangladesh’s exchange rate regimes. Though Bahmani-Oskooee et al. (2019) found some evidence of the conventional J-curve-type relationship in the case of Bangladesh, their findings probably suffer from biases caused by common observed and unobserved factors and ignoring the impact of transportation cost in international trade.

Table 2 Panel time series: asymmetric ARDL estimation results by country\(^\mathrm{a}\)

The coefficient of foreign to domestic GDP in the disaggregated form comes out to be significantly negative for Singapore, positive for Brazil, Malaysia, and Russia, and not significant for the other trading partners under consideration. The import weighted distance is significantly negative in most countries. These findings worth further discussion in line with the country-specific trade composition of Bangladesh. The error correction terms are all individually statistically insignificant, reflecting the aggregate nature of the analysis of the heterogeneous effects, where, as a whole, the stability of the system is confirmed in Table 1, Panel B.

The comparative linear CS-ARDL model estimates are given in Appendix Table 7, for completeness of the analysis. The dominance of India, Japan, and Singapore in both the long run and the short run is evident in the linear model. An increase in LRER, referring to currency depreciation, has a positive effect against India, Japan, Turkey, and Singapore in the long run. Combining the short run and long run effects based on the estimates obtained from the linear CS-ARDL model, we see that the J-curve phenomenon is in place against India and to some extent against Japan, Turkey, and Singapore.

6 Discussion

Some of the findings presented in Sect. 5 are worth further discussion. First of all, we found that currency appreciation improves Bangladesh’s trade balance in the long run, which goes against the Marshall–Lerner condition. Specifically, currency appreciation is expected to reduce a country’s relative export competitiveness against her trading partner, increase imports, thereby deteriorating her trade balance in the long run. In our setting using the CS-NLARDL approach, we found the opposite, a one percent increase in NEG (Taka appreciation) improves trade balance by 0.65 percent in the long run. One possibility can be that Bangladesh’s export and import elasticities are low and mostly based on long term bilateral agreements. In general, being a small developing country with low bargaining power, Bangladesh’s trade policies, market development, technology transfers, capital accumulation, and direct investment do not exhibit much changes over time. In 2015Footnote 24, the highest share of the country’s import goes to the intermediate goods (46% of total imports), where 95% of the exports are consumer goods. All of the top 5 export commodities in the six-digit level are ready-made garments, primarily exported to the USA, UK, and Germany, based on the long term trading agreements between the supermarkets and the factory owners. The ready-made garments exports contribute to a large part of the country’s imports of raw materials, mainly from China, India, and the USA. In effect, if Bangladesh’s export relies on her imports to a large extent, it is more likely to be inelastic, and we are more likely to observe slow responses in trade balance following currency fluctuations. This is supported by the theory presented in Arize et al. (2017), where exporters tend to stay if the currency strengthens and often increases the volume of exports with government support and (or) by lowering their export prices and markups to maintain market share. There is further evidence that supports our findings of Taka appreciation, improving Bangladesh’s trade balance. When analyzed commodity-specific asymmetric effects for Bangladesh–US relations, Bahmani-Oskooee and Rahman (2017) found evidence of Taka appreciation against the US dollar improving Bangladesh trade balance for the clothing industry, and the improvement is more than that from Taka depreciation. This finding implies clothing exports from Bangladesh increases following Taka appreciation more than that following Taka depreciation.Footnote 25 On the other hand, they also found that Taka appreciation hurts Bangladesh’s trade balance for cotton and fabrics, implying increased import of the raw materials to support her exports.

Looking further into the composition of Bangladesh’s exports and imports, the top import commodity (6 digits) is fuel, where half of the fuel is imported from Singapore. Narayan (2013) discusses that oil price predicts exchange rate returns for Bangladesh. According to them, a rise in international oil price will cause Taka to appreciate. However, Bangladesh provides subsidies to oil prices to bring them closer to the world market price, which is more likely to prevent imports from rising (or rather fall) following an appreciation and vice versa. This may help explain the highly significantly positive short run coefficients of Taka depreciation against the Singapore dollar. However, we cannot come to a precise conclusion without further research on this possibility and is therefore left for future research.

Another finding regarding the negative effect of foreign to domestic GDP in case of China and Singapore worth discussing in this connection. We expect the relative GDP to have a positive sign, as the increase in foreign GDP over domestic GDP is expected to improve trade balance by increasing exports and reducing imports. However, Bangladesh’s GDP growth depends on raw material imports from China and fuel imports from Singapore. If the domestic GDP growth slows down compared to foreign GDP growth (thereby increasing RGDP), Bangladesh would need to increase imports from China and Singapore to give the economy the necessary supply of raw materials and energy. Again, a combined analysis and a disaggregated commodity-level investigation are needed to confirm this, which is out of the scope of this research.

Looking into these surprising findings from the methodological perspective, we agree that we have a small cross-section sample (\(N=25\)) and the CS-ARDL methodology relies on \(N, T\sim \infty \) asymptotics with \(T^{1/3}\) lags of the cross-section averages (Chudik and Pesaran 2015). However, the simulation results in Chudik et al. (2016) show that the bias is sensitive to T and to a lesser extend to N. For the mean group estimator in a setting without strong cross-section dependence, Chudik and Pesaran (2019) report significant size distortions for sample sizes where the ratio N/T is not sufficiently small and the size remains close to the nominal level where T is not too small as compared to N. Juodis et al. (2021) also shows the asymptotic normality of the pooled common correlated estimator (CCE) based on \(N/T\rightarrow \kappa \in (0, \infty )\) asymptotics, which is mostly satisfied in our analysis (\(N/T=0.15\)). Even if T is large, the CS-ARDL (or the CCEMG) estimator could be sensitive to a smaller N; our experiment with \(N=10\) for the given T results in a difference in magnitude of the estimated coefficients, though largely preserves our conclusion.

7 Conclusion

We found some significant aggregation bias using time series analysis compared to the panel time series analysis controlling for cross-section dependence in the trade balance–exchange rate relationship for Bangladesh. The effect is indeed asymmetric, with currency appreciation improving trade balance in the long run. This finding is contrary to the Marshall–Lerner condition and thereby the J-curve effect. Our analysis aligns with the literature that considering asymmetric effect increases the evidence of trade balance–exchange rate relationship (at least) for Bangladesh, which is not present under linear analysis. However, the disaggregate separate bilateral time series analysis failed to identify significant role players in this connection. We found that Singapore, Japan, and China substantially influence Bangladesh’s exchange rate–trade balance relationship. From the policy perspective, it is crucial to recognize that the country’s exports and GDP are heavily dependent on expensive imports from a few partners, which worth diversifying. Understanding the fact that currency appreciation helps the trade balance of Bangladesh may help release the pressure of managed float in Bangladesh’s context.