key: cord-0075505-2rgjhg43 authors: Chen, Chih-Nan; Lin, Chien-Hsiu title: Optimal carry trade portfolio choice under regime shifts date: 2022-03-07 journal: Rev Quant Finan Acc DOI: 10.1007/s11156-022-01047-x sha: a0a37bafac9c507da064c3069e27d29195b4c3a9 doc_id: 75505 cord_uid: 2rgjhg43 This paper studies optimal currency allocation of the carry trade in foreign exchange (FX). A number of empirical studies have documented a phenomenon referred to as the ‘forward premium puzzle’, which states that the carry trade is profitable on average. However, the carry reversal during the 2008 global crisis periods wiped out the profits earned by the trade. To account for the regime shifts in the joint distribution of returns on the carry trade with FX market portfolios, we adopt a Markov regime switching model. We find evidence of two economic regimes: one state captures periods of the forward premium puzzle and UIP being violated, whilst the other reports high FX volatility and negative return of carry trade portfolio. Furthermore, to quantify the economic significance of regimes in returns on currency portfolios, we consider their importance in investors’ optimal portfolio allocation problem. We find strong evidence that optimal currency portfolio holdings vary significantly across regimes and across short and long investment horizons, as investors anticipate a shift out of the current state. Our results also show that the regimes partially anticipate peso events as well as the changes of funding liquidity measured by the TED spreads. A strategy that accounts for regimes, thus, generates overall stronger performance than the single-state Gaussian IID model, a carry trade procedure as well as a buy-and-hold strategy. In this paper, we investigate an optimal currency allocation problem of the carry trade in foreign exchange (FX) . Carry trade refers to a strategy where investors borrow low-yielding currencies and lend high-yielding ones. By engaging in this strategy, the carry trader earns an average positive excess return, which violates the prediction of the uncovered or exchange rate series, our research employs the RSM to the joint distribution of Dollar and carry trade portfolios. We, hence, contribute to the literature by proposing an enhanced trading strategy, which can allocate optimal weights across foreign exchange portfolios based on regime switching signals. We find evidence of two economic regimes that capture important time-variations in mean returns, volatilities and return correlations. One state captures periods of low FX volatility and high returns of the HML FX . Carry trade is mostly executed in times of global financial and exchange rate stability, because lower volatility results in lower margins, which enables speculators to take more carry-trade positions. Owing to the huge amount of carry trade execution, low-interest-rate currencies tend to depreciate, thus inducing higher returns on the carry trade portfolio. The other regime captures the periods of high FX volatility and negative return of the HML FX . In addition, there exists a positive correlation between the DOL and the HML FX . Because of high volatility and negative return of the HML FX , many investors turn away from commonly practiced carry-trade strategies, seeking a "safe-haven" in these uncertain times. This results in low-interest-rate currencies appreciating rapidly, thereby offsetting the profits gained from the differentials in interest rates from the carry trade portfolio. Moreover, the traditionally regarded safe-haven currency, the U.S. dollar, also appreciates during a high FX volatility state, causing a positive correlation between the DOL and HML FX . We also show that our regimes are related to major currency crisis events, and that the TED spreads are capable of predicting the regime change through the time-varying transition probabilities. To quantify the economic significance of these regimes in returns on currency portfolios, we consider their importance in investors' optimal portfolio allocation problem. While there is extensive literature on statistically evaluating the performance of volatility and correlation models (West et al. 1993; Fleming et al. 2001 Fleming et al. , 2003 , there has been little work undertaken formally assessing the economic value of volatility and correlation timing. This motivates our asset allocation approach, which focuses on the presence of predictability linked to regimes underlying the joint distribution of returns on the DOL and HML FX portfolios. The economic value of investment strategies in the carry trade portfolio is, of course, related to the average returns and further depends on how much these vary across economic states. For a long-horizon investor, an important issue is whether carry trade benefits can be expected to persist in the future. In this paper, we extend the Monte Carlo methods in Barberis (2000) , and Detemple et al. (2003) to characterize investors' optimal portfolio weights under imperfect information about the current state. We find strong evidence that optimal currency portfolio holdings vary significantly across regimes, particularly for the short-term market timing effects. In the long-run, optimal portfolio weights converge across regimes due to uncertainty about future market states. In addition, rebalancing opportunities make investors respond more aggressively to the current state, because they can simply adjust the portfolio weight, if the perceived state probabilities change during the next period. Our out-of-sample testing also shows that, compared to the single-state Gaussian IID model, the two-state one generates high mean returns, but tends to be more volatile. Moreover, our two-state model is shown partially to anticipate peso events as well as the changes in funding liquidity measured by the TED spreads, thereby providing overall stronger performance than the single-state Gaussian IID model, a carry trade procedure as well as a buy-and-hold strategy. The remainder of the paper is organized as follows. Section 2 addresses the regime-switching model for the joint return process, whilst Sect. 3 briefly introduces the data and currency portfolio returns as well as presenting the empirical results of the regime-switching model. Section 4 sets up the asset allocation problem and Sect. 5 reports empirical asset allocation results. Section 6 evaluates the out of sample performance of the competing models, with Sect. 7 containing the conclusion to the paper. The basic idea of the RSM is that the model assigns probabilities to the occurrence of different regimes, which have to be inferred from the data. The nonlinearity feature of the financial time series that can occur in two or more regimes has motivated the use of RSMs. We model the joint distribution of a vector of n portfolio returns, r t = r 1t , r 2t , … r nt � , as a multivariate regime-switching process driven by a common discrete state variable s t that takes integer values between 1 and k: is the vector of return innovations that are assumed to be joint normally distributed with zero mean and a state-specific covariance matrix ∑ s t . Our assumption about the innovations to returns is, thus, capable of capturing time-varying volatilities and correlations in the joint distribution of asset returns (Timmermann 2000; Manganelli 2004; Patton 2004) . Each state is the realization of a first order Markov chain governed by the k × k transition probability matrix P, with element p ji , defined as: The model (1-2) nests several popular models from the finance literature as special cases. In the case of a single asset and two states, n = 1, k = 2 , according to Engel and Hamilton (1990) , the model can describe a variety of processes depending on the values taken by the six parameters 1 , 2 , 1 , 2 , p 11 and p 22 . State 1 and state 2 represent currency depreciation and appreciation, respectively. When in the depreciation state, the mean value is 1 , and the volatility is 1 , whereas in state 2, the appreciation state, the mean value is 2 , and the volatility is 2 . The transition probability of appreciation-depreciation cycles can be defined by P . Most importantly from Engel and Hamilton's perspective, is the ability of this model to capture so-called long swings in the exchange rate, which are characterized by opposite signs for 1 and 2 as well as large values of p 11 and p 22 . Supposing that the exchange rate is in state 1 and that 1 is positive, under the long swings hypothesis, it is expected to remain in that state for 1∕ 1 − p 11 periods and increase by 1 in each. Once it switches to state 2, the exchange rate is expected to remain there for 1∕ 1 − p 22 periods and to fall by 2 , on average, in each. Clearly this process has parallels with the desires of chartists to identify long-lived periods of currency appreciation or depreciation. To model the time-varying transition probabilities, we assume the transition probabilities Pr s t = i|s t−1 = j are governed by a function of several macroeconomic variables. (1) r t = s t + t . (2) (3) where P ji t (⋅) is a function of a k × 1 vector of the observed exogenous or predetermined variables z t−1 and ∑ i P ji t (⋅) = 1 ∀j, i ∈ {1, … , k} . The transition probabilities are further assumed to be evolving as a probit function of z t−1 . Specifically, in the case of the two states, the transition probability matrix is given as: with where Φ is the cumulative standard normal density function, as illustrated in Ding (2012) . Diebold et al. (1994) provide a tractable methodology to derive the maximum likelihood estimation based on an EM algorithm. They demonstrated that their extension to Hamilton's Markov switching model by allowing for time-varying transition probabilities not only nests the framework with fixed transition probabilities, but also, better describes the true data generating process through simulation. This section describes the data on exchange rates and the construction of the currency portfolios as well as presenting the regimes in the joint return process of these portfolios. As the aim was to apply an RSM in the paper for the joint distribution of returns on the DOL and HML FX , as introduced by Lustig et al. (2011) , we collect the data of currency portfolios summarized by these authors from November 1983 to May 2021. 1 The main data set contains, at most, the 35 different currencies of: Australia, Austria, Belgium, Canada, Hong Kong, the Czech Republic, Denmark, the Euro area, Finland, France, Germany, Greece, Hungary, India, Indonesia, Ireland, Italy, Japan, Kuwait, Malaysia, Mexico, the Netherlands, New Zealand, Norway, the Philippines, Poland, Portugal, Saudi Arabia, Singapore, South Africa, South Korea, Spain, Sweden, Switzerland, Taiwan, Thailand and the United Kingdom. They sort currencies into six portfolios and rebalance them at the end of each month, according to their forward discount. The first portfolio contains the funding currencies of a carry trade strategy (lowest forward discount or interest rate differential), while the last contains the investment currencies in a carry trade strategy (highest forward discount or interest rate differential). Next, they compute the excess return for each portfolio as an equally weighted average of the currency excess return 2 within that portfolio. For the purpose of accounting for transaction costs in portfolio returns, they also assume that investors go short on foreign currencies in portfolio 1 and long on those in the rest of the portfolios. 3 Table 1 presents summary statistics for the six currency portfolios, where we report currency excess returns net of transaction costs. We construct DOL and HML FX , as in Lustig et al. (2011) , with the former denoting the average excess return on the six currency portfolios and thus, implying an equally weighted strategy across all portfolios. The average excess return on all currency portfolios is simply the outcome of a strategy that borrows in the US money market and invests in the foreign ones. This portfolio is driven by the fluctuations of the US dollar against a broad range of currencies and is defined as the dollar risk factor, DOL. HML FX denotes a long-short strategy that is long in portfolio 6 and short in portfolio 1. This is equivalent to the carry trade strategy that borrows in the money markets of low yielding currencies and invests in those of high yielding ones. The high minus low portfolio is called the slope factor, and is defined as HML FX . All figures in Table 1 are annualized and reported in US dollars. The average excess returns display a monotonically increasing pattern when moving from portfolio 1 to portfolio 6. The annualized average excess return on portfolio 1 is about -0.64% per annum, and 2.95% per annum on portfolio 6. The average excess return from holding a DOL portfolio is about 0.71% per annum, thus suggesting that a US investor would demand a positive risk premium for holding foreign currency while borrowing in the US money market. The average excess return from an HML FX portfolio is around 3.59% per annum. Skewness ranges from 0.29 (portfolio 1) to − 0.63 ( HML FX ), which is consistent with the findings of Table 1 Descriptive statistics This table presents descriptive statistics of currency excess returns realized at time t by sorting currencies into six groups at time t−1 , using one-month forward discount. The first portfolio contains currencies with the lowest forward discount (low interest rate), while the last has the highest (high interest). DOL is the average excess return across portfolios. HMLF FX is a long-short portfolio that is long in portfolio 6 and short in portfolio 1. Thetable reports discrete excess returns adjusted for transaction costs. The mean, median and standard deviations are annualized. The table also reports the first order autocorrelation coefficient AR(1), the annualized Sharpe ratio (SR) and the annualized Sortino ratio (SO) Brumnermeier et al. (2009), who suggested that investment currencies (or high yielding currencies) may be subject to crash risk. In addition to statistical measures, several commonly used performance ones, such as the realized Sharpe ratio (SR) and the realized Sortino ratio (SO) are reported in Table 1 . The SR is equal to the average excess return of a portfolio divided by the standard deviation of the portfolio returns, which simply measures the excess return per unit of volatility. The SO, unlike the SR, is calculated as the average excess return divided by the standard deviation of only negative returns, thereby measuring the excess return per unit of downside volatility. The SR and SO increase systematically when moving from portfolio 1 to portfolio 6. The annualized SR ranges from − 0.58 (portfolio 2) to 1.09 (portfolio 6), whereas the annualized SO ranges from − 0.80 (portfolio 2) to 1.57 (portfolio 6). In this section, the aim is to identify regimes in the joint process of returns on the DOL and HML FX portfolios r DOL t r HML t ′ . To assist in the economic interpretation of the twostate Markov regime switching model, Table 2 presents the parameter estimates, while in Fig. 1 , the associated state probabilities are plotted. Regime 2 is a highly volatile bear state, the average duration of which is 4.78 months and the mean returns on both the DOL and HML FX portfolios are at 2.1% and − 5.51% per annum, respectively. 4 During this regime, the HML FX portfolio incurs a large loss, resulting in investors liquidating their carry trade positions and thus, leading to a further appreciation of low-interest rate currencies. Moreover, the traditionally regarded safe-haven currency, the U.S. dollar, also appreciates during Tables 2 and 3, respectively this high FX volatility state, causing a significantly positive correlation between the DOL and HML FX . Figure 1 shows that this regime captures major currency crashes and periods with a sustained decline in currency values, such as the 1982 Latin American debt crisis, which lasted until 1991, the 1994 economic crisis in Mexico, the 1997 Asian financial crisis, the 1998 Russian financial crisis, the 1999 Brazilian currency crisis, the Argentinian crisis in 2001-2002, the 2008 global financial crisis, the 2010-2011 Eurozone sovereign debt crisis, the Chinese stock market crash in 2015-2016 and 2018 as well as the COVID-19 pandemic in 2020. Regime 1 is a highly persistent low-volatility and high return state, with an average duration of 9.54 months, that captures the long periods with relatively stable currency values during the mid-1990s, the periods before the 2008 global financial crisis and those before the 2020 COVID-19 pandemic. Mean returns in this state are positive for the DOL and HML FX portfolios (non-significantly 1.3% and significantly 8.64% per annum, respectively), thus indicating that the forward premium puzzle is strong and UIP is violated. The steady state probabilities implied by the estimates of the transition matrix P are 66.6% and 33.4%, respectively. Furthermore, the transition probabilities indicate that the market exits to regime 1 from regime 2 more easily (20.91%) than vice versa (10.49%). Figure 1 seeks to interpret the economic causes behind the regimes by comparing the filtering probabilities of regime 2 with the dating of currency crises. Brunnermeier, Nagel and Pedersen (2009) elicit that liquidity is a key driver of currency crashes. Following these authors, we model the transition probabilities in the RSM as the function of the TED spreads. By implementing the RSM with time-varying transition probabilities (TVTP), we aim to ascertain whether the TED spreads can effectively predict regime change. The TED spread is defined as the interest rate difference between the 3-month Eurodollar interbank deposits (LIBOR) and 3-month Treasury bills. 5 Differences between these rates reflect the willingness of banks to provide funding in the interbank market. A large spread should be related to lower liquidity and we use this measure to proxy for illiquidity in the funding market for carry trades. Table 3 presents the parameter estimates from the TVTP model. Similar to the results of constant transition probabilities, we still find two regimes. Regime 2 is a highly volatile bear state of average duration about 2 months and the mean returns on both the DOL and HML FX portfolios are insignificantly negative. Regime 1 is a low-volatility bull sate, with an average duration of about 9 months and the mean returns on both the DOL and HML FX portfolios are significantly positive at 1%. The time-varying transition probabilities results show that the coefficient of the TED spreads on P 21 is − 4.0604, which is statistically significant at the 10% confidence interval. The results indicate that increases in funding liquidity risk (the wider of TED spreads) would decrease the transition probabilities of exiting from regime 2 to regime 1, thus increasing the transition probabilities of staying at the former. The evidence shows that the TED spreads can explain the regime shifts through the transition probabilities. Investors should unwind their carry trade position, if they observe an abrupt increase of TED spreads. For comparison, the filtered state probabilities of regime 2 estimated by the TVTP model are plotted in the bottom panel of Fig. 1. So far, we have documented the presence of regimes regarding the process underlying returns on the market and carry trade portfolios. Next, we explore the asset allocation implications of such regimes. Given that regime shifts clearly generate predictability in future investment opportunities, we expect to see interesting horizon effects and hedging demands. To investigate the optimal portfolio allocation with regime shifts, we consider the asset allocation problem of an investor with power utility over terminal wealth W T , a coefficient of relative risk aversion γ, and time horizon T: The investor is assumed to maximize expected utility by choosing at time t a portfolio weight to the DOL and HML FX portfolios, t ≡ DOL t HML FX t ′ , while any residual wealth is invested in riskless, 1-month T-bills. For simplicity, we assume the investor has unit initial wealth and ignores intermediate consumption, with portfolio weights being rebalanced every month. Let b be the weights on the currency portfolios at the rebalancing points. The investor's optimization problem is: where E t [·] denotes the conditional expectation given the information set at time t, r t is the vector of logarithmic return on assets, and exp(r f ) is the gross return on riskless assets. In addition, HML FX is a zero-investment portfolio that requires borrowing currencies and thus, investing in another currencies. Under x% margin requirements, if a proportion HML FX t is invested in HML FX , x% HML FX t must also be invested at the riskless rate to satisfy these requirements. The total gross return after investing in HML FX would be We assume that the investor cannot borrow the margin requirements, or, to put it another way, no one would rationally want to lend the investor the margin at the risk-free rate and therefore, 1 − DOL In other words, we derive the constraint faced by the investor in solving the optimal asset allocation problem: In the paper, we assume x = 5. Up to this point, no specific DGP has been assumed for the asset returns and hence, the setup of the problem is general. In the special case of r t+1 i.i.d. across time, Samuelson (1969) shows that for the CRRA utility the portfolio weights are constant, and the T horizon problem becomes equivalent to solving the myopic T = 1 one-period problem. When returns are not i.i.d., then the portfolio weights can be broken down into a myopic and a hedging component (Merton, 1971) , with the former being the solution from solving the one-period problem, whereas the latter results from the investor's desire to hedge against unfavorable changes in the investment opportunity set. Suppose we introduce an RSM into the DGP, then the derived utility of wealth is: For example, under 5% margin requirements, a position of 467% in HML FX requires an investor to hold 23.35% (5%*467%) in T-bills. Since the investor cannot borrow the margin requirements, after putting (say) 80% in the DOL portfolio, only 20% of the initial wealth is available. Therefore, the investor will have to adjust (lower) their holdings in DOL or HML FX to fulfill the margin requirement, i.e., 1 − DOL collects the parameters of the RSM, and t is the state probabilities at point t. Treating states as unobserved is consistent with the estimation problem solved by the investors, where the regime can only be inferred from the available data. From the derivation of Hamilton (1994, p.692-693) , investors' learning process is incorporated by letting them update their beliefs about the underlying state at each point in time using Bayes' rule: where ⊙ denotes the element-by-element product and (r t+1 ) is a k × 1 vector that gives the density of observation r t+1 in the k states at time t+1 conditional on : Learning effects are important since portfolio choices depend not only on future values of asset returns, but also, future perceptions of the probability of being in each of the regimes. Given that Wt is known at time t, the scaled value function Q(·) simplifies to: Conditional on the current parameter estimates ̂ , the optimal portfolio weights reflect not only hedging demands due to stochastic shifts in investment opportunities, but also, changes in investors' beliefs concerning future state probabilities t+1 . Past literature has applied different solution methods on portfolio allocation under timevarying investment opportunities. For example, Campbell and Viceira (1999) derive approximate analytical solutions for an infinitely lived investor with continuous rebalancing, whereas Barberis (2000) applies simulation methods to study an optimal allocation problem. Ang and Bekaert (2002) solve the dynamic portfolio choice problem of a U.S. investor faced with a time-varying investment opportunity set modeled using a regimeswitching process, by considering asset allocation when the regimes are observable to investors. Guidolin and Timmermann (2008) calculate asset allocations under optimal filtering, thus allowing for unobservable states and in this paper we follow the methodology proposed by them. Accordingly, investors have to account for revisions in future beliefs t+1 when determining optimal asset allocations. Under this setting, we use Monte Carlo methods for expected utility approximation to solve for the portfolio weights. For a buy-and-hold investor the expected utility function can be written as follows: where r j T,n (j = DOL, HML FX ) are the cumulative returns in the nth Monte Carlo simulation. Each simulated path of portfolio returns is generated by the estimated RSM, which allows regimes to shift randomly, as governed by the transition matrix P . We use N = 30,000 simulations and vary the investment horizon T between 1 and 120 months. The optimal weights ̂ t (T) are determined over a two-dimensional grid, i t (T) = −5, −4.99, −4.98, ..., 4.99, 5.00 for 1 = DOL and HML FX . As our solution does not rule out short sales, it is possible that wealth can become negative and to account for such cases, we assume that the investor goes bankrupt and his wealth continues at zero forever, if it becomes so. First, we investigate the asset allocation strategy for a buy-and-hold investor. In accordance with the past literature, we report the general results for the risk aversion levels of = 5 . We provide implications of asset allocation results from the following perspective: first, as the filtered state probabilities contain information about the joint distribution of future asset returns, the optimal portfolio weights should exhibit short-term market timing effects, depending on the characteristics of the underlying regimes, such as their means, variances and covariances as well as higher order moments of asset returns within and across them. However, as the holding horizon grows, optimal portfolio weights increasingly reflect the properties of the unconditional distribution of returns and decreasingly depend on the initial state probabilities. Figure 2 shows the plotted optimal portfolio weights varying with the investment horizon, assuming that the investor knows the initial state, but cannot identify future ones, under the risk aversion levels of = 5 . The figure shows that optimal weights vary significantly across regimes, especially at short investment horizons, where market timing effects are strong. Regime 2 is dominated by the negative mean return on the HML FX portfolio. Starting from this state, the short-run allocation to the HML FX portfolio is, therefore, negative (short position), though it rises in T. Hence, an investor should hold a long position on the DOL portfolio, because of its positive mean returns. In addition, the weights on the DOL portfolio decrease as a function of the horizon, T. Regime1 is akin to a strong forward premium puzzle. Due to its high mean return, the HML FX portfolio features prominently in the optimal asset allocation, with a weight of over 400% at short horizons, which declines with the investment horizon, T. The positive mean return on the DOL portfolio also attributes a weight to the DOL of over 70% at short horizons, which falls gradually with the horizon T. At the 10-year horizon, about 64% is held in the DOL portfolio, 126% in the HML FX portfolio, and 36% in T-bills. In addition, our long-run allocations indicate that the Regime1 Regime2 Fig. 2 Optimal asset allocation as a function of the investment horizon ( = 5) . The graphs show the optimal allocation to currency portfolios (DOL and HML FX ) and risk-free T-bills under a two-state regime switching model as a function of the investment horizon for an investor with a constant coefficient of relative risk aversion γ = 5. Each schedule corresponds to a different value of the initial state probabilities, while future states remain unknown and unobservable to investors weights against the investment horizon is not as steep as that in Fig. 2 , where the initial state was known by the investor. The shape appears to be dominated by the optimal weights when starting from state 1, which is a reflection of the high steady state probability in the latter state. Moreover, the 10-year horizon weights are close to those reported before in Fig. 2 , being 61% in the DOL portfolio, 122% in the HML FX one, and 39% in T-bills. This table reports optimal weights on the DOL (Panel A) and HML FX (Panel B) portfolios as a function of the rebalancing frequency φ for an investor, with a coefficient of relative risk aversion of 5. Returns are assumed to be generated by a two-state regime-switching model. Allocations marked as "NA" have φ ≥ T and imply portfolio weights identical to the buy-and-hold case Rebalancing frequency φ Investment horizon T (months) T = 1 T = 6 T = 12 T = 24 T = 120 In the previous section, we have studied the optimal portfolio allocation for a buy-andhold investor. However, investors may want to rebalance their portfolios, rather than buyand-hold for whole periods. Table 4 presents the results for optimal weights rebalancing every 1, 6 or 12 months under risk aversion levels of = 5 . It can be seen that the horizon effect on these weights is not as strong for the frequent rebalancing investor as for the buyand-hold one. Furthermore, an investor who can rebalance portfolios more frequently will respond more aggressively to the current state, because they can simply adjust the portfolio weight, if the perceived state probabilities change in the next period. From Table 4 , it can be observed that the rebalancing frequency can have a large effect on asset holdings, particularly when the rebalancing frequency is varied from = 12 to = 1 at a 10-year horizon in state 1. That is, the weight on the DOL portfolio increases from 60 to 77%, and that on the HML FX portfolio increases from 134 to 452%. In addition, under monthly rebalancing, an investor will increase holdings in both the DOL and HML FX portfolios largely due to the high mean returns for both portfolios in state 1. In contrast, moving to = 1 and starting from regime 1, a switch to state 2 may occur prior to the next rebalancing point and since HML FX has negative mean returns in this state, the weights on it are reduced substantially when compared to the case with = 12. Furthermore, a large variation can be seen across states in the portfolio weights under rebalancing. For example, the long-run allocation to HML FX goes from a negative value in state 2 (about -88%) to values greater than four in state 1 (about 452%) when = 1 . Conversely, as rebalancing happens less frequently, the variations across states in the portfolio weights become less. For instance, the long-run allocation to HML FX goes from a small positive value in state 2 (about 30%) to values greater than one in state 1 (about 134%) when = 12. For comparison, we also report the results for optimal weights rebalancing under risk aversion levels of = 10 in Table 5 . Generally, the pattern under this aversion level is similar to that under = 5 , as was discussed above. But the risk-averse investors ( = 10 ) intend to hold (or short) less risky assets ( DOL,HML FX ) during both regimes, with even fewer such assets under a bear regime (regime 2). So far, we have shown that regime shifts can have a large effect on the optimal asset allocation. However, whether ignoring regimes will lead to a significant loss in portfolio returns still needs to be examined. To assess the economic importance of regimes, we consider an out of sample performance of pairs of model specifications: the single-state Gaussian IID model, and the regime-switching model, with constant and time-varying transition probabilities, respectively. To quantify the portfolio performance improvement by using RSMs, we employ an out of sample asset allocation experiment for the period 2000:01-2021:05. In the experiment, we focus on the buy-and-hold portfolio problem at investment horizon T = 1 month. We compare the performance of a single state Gaussian IID model, and the two-state RSM with constant and time-varying transition probabilities, respectively. We use the realized portfolio returns to assess investment performance and given a particular portfolio weight ̂ T t , realized portfolio returns R T ̂ T t can be written as follows: This table reports optimal weights on the DOL (Panel A) and HML FX (Panel B) portfolios as a function of the rebalancing frequency φ for an investor, with a coefficient of relative risk aversion of 10. Returns are assumed to be generated by a two-state regime-switching model. Allocations marked as "NA" have φ ≥ T and imply portfolio weights identical to the buy-and-hold case. Rebalancing frequency φ Investment horizon T (months) T = 1 T = 6 T = 12 T = 24 T = 120 are realized cumulated returns between t + 1 and t + 1. The period-t weights ̂t are solved by maximizing the objective expected utility at time t . Hence, for each investment horizon T, we obtain the time series R T ̂ T , = 2000 ∶ 01, ..., 2021:05 -T of realized portfolio returns. We use a "recursive" scheme, gradually including more recent observations in the parameter estimation windows. This scheme retains the entire history in the training sample, causing its window size gradually to increase. For instance, to predict the return distribution for 2002:01, the parameter estimates are based on the information from 1983:11 to 2001:12 and the estimates are updated recursively through time. Table 6 reports summary statistics for the out of sample portfolio returns R T ̂ T from the single-state Gaussian IID model, and the two-state RSM, with both constant and time-varying transition probabilities (TVTP), respectively. For comparison, we also include a buy-and-hold and carry trade strategy in the table. 7 We define the maximum drawdown of a strategy as: where Y t is the cumulative log return from date 0 through t. From Table 6 , we observe that the two-state models both with constant and time-varying transition probabilities generate higher mean returns, cumulative returns and Sortino ratio than the single-state Gaussian IID model, carry trade and buy-and-hold strategy for both = 5 and 10. For instance, for = 5 , the two-state models with constant and time-varying transition probabilities generate annualized mean returns of 8.4% and 13.2%, respectively, as opposed to 5.3%, 4.6% and 4.7% for the single-state Gaussian IID model, carry trade and buy-and-hold strategies. However, the returns produced by the RSM tend to be more volatile than those produced by the latter model, thus causing large standard deviations, maximum 1-month losses and maximum drawdown. Overall, the RSM with time-varying transition probabilities (TVTP) can generate the highest Sharpe ratio, that is, 0.153 for = 5 and 0.192 for = 10 , among the five different strategies. Figure 4 exhibits the out of sample portfolio weights for the two-state model, with time-varying transition probabilities (TVTP) under = 5 . The weights reflect regime shifts, suggesting that during the periods where the probability of state 1 is high, investors tend to allocate more in both the HML FX and DOL portfolios than the weights indicated by a single state Gaussian IID model. While during the periods where the probability of state 2 is high, investors would allocate their wealth more to 1-month T-bills (the U.S. dollar). Particularly during the 2008 global financial crisis periods, the weights in T-bills reached as high as 281%. The investors' behavior demonstrates that the U.S. dollar served as the safe haven currency during the crisis periods. However, during the COVID-19 pandemic, the weights in T-bills were not as high as those indicated in the 2008 global financial crisis periods. As Fig. 5 shows, during the pandemic, the deterioration of the returns of DOL accelerated between mid-February and late March 2020. Since the beginning of April 2020, the returns of DOL have started to slowly recover, a rebound that may be due to the fact that the Federal Reserve System was creating massive amounts of dollars at an unprecedented rate during the COVID-19 pandemic, thus weakening the value of the U.S. dollar (USD). In the COVID-19 pandemic, the low return pattern in the DOL did not persist as much as during the 2008 global financial crisis. Hence, as can be seen, the weights in T-bills were not as high in the former as during the latter. Figure 6 exhibits the out of sample month-to-month cumulative returns for the twostate RSM, with constant and time-varying transition probabilities, respectively, the single-state Gaussian IID model, carry trade as well as a buy-and-hold strategy under the setting = 5 . It clearly confirms that the two-state model with time-varying transition probabilities (TVTP) earned its return in quite a stable fashion, with more upswings than downswings. In contrast, the carry trade and buy-and-hold strategy as well as the single-state Gaussian IID model suffered some major declines from weak performances of the HML FX portfolio due to the occurrence of major currency crisis events, particularly during the 2008 global financial crisis. The two-state RSM partially anticipated these peso events as well as the changes of the related economic fundamentals, which strongly served the overall performance of the portfolio. Fig. 4 Out of sample recursive weights under alternative models ( = 5) . The graphs show the evolution in the allocation to currency portfolios (DOL and HML FX ) and T-bills for an investor with a constant coefficient of relative risk aversion γ = 5 and a 1-month horizon. Models and weights are updated recursively over the period 2000:01-2021:05. The two models are a single-state Gaussian IID and a two-state regime switching one, with time-varying transition probabilities (TVTP) In this paper, we have adopted a Markov regime switching model for the joint distribution of returns on a portfolio that borrows in the US money market, whilst then investing in the foreign money one (DOL) and a carry trade portfolio (HML FX ). We have found evidence of two economic regimes: one state capturing periods of low exchange rate volatility and high returns of both the DOL and HML FX portfolios. During this regime, low-interest Fig. 6 Cumulative out of sample month-to-month returns for the two-state regime switching model (constant transition probabilities), the two-state regime switching model, with time-varying transition probabilities (TVTP), the single-state Gaussian IID model, a carry trade procedure as well as a buy and hold strategy ( = 5) rate currencies tend to depreciate, causing higher returns on the carry trade portfolio and UIP is violated. The other regime captures the periods of high FX volatility and negative return of the HML FX portfolio. Moreover, the traditionally regarded safe-haven currency, the U.S. dollar, also appreciates during the high FX volatility state, according to the positive correlation between the DOL and HML FX portfolios. We have shown that this regime captures major currency crashes and periods, with a sustained declined in currency values, such as during the 1982 Latin American debt crisis, which lasted until 1991, the 1994 economic crisis in Mexico, the 1997 Asian financial crisis, the 1998 Russian financial crisis, the 1999 Brazilian currency crisis, the Argentinian crisis in 2001-2002, the 2008 global financial crisis, the 2010-2011 Eurozone sovereign debt crisis, the Chinese stock market crash in 2015-2016 and 2018, as well as the COVID-19 pandemic in 2020. In addition, the TED spreads are capable of predicting regime change through the time-varying transition probabilities. To quantify the economic significance of regimes in returns on currency portfolios, we have further considered their importance in investors' optimal portfolio allocation problem. Strong short-term market timing effects have been found in optimal portfolio holdings across regimes in short investment horizons, while the optimal portfolio weights increasingly reflect horizon effects as the holding horizon grows. Rebalancing opportunities make investors respond more aggressively to the current state, because they can simply adjust the portfolio weight, if the perceived state probabilities change in the next period. We next compared the performance of the two-state RSM and a single state Gaussian IID model. The results show that, whilst the former generates high mean returns, it tends to be more volatile than the latter. Our findings also show that compared to the single-state Gaussian IID model and a carry trade as well as buy-and-hold strategy, our two-state model partially anticipates peso events as well as the changes of underlying related economic fundamentals, which strongly serves the overall performance of the portfolio. Funding The Funding was provided by Ministry of Science and Technology, Taiwan, 102-2410-H-004 -063-, Chien-Hsiu Lin. International asset allocation with regime shifts Investing for the long run when returns are predictable FX markets' reactions to COVID-19: are they different? Optimal reserve composition in the presence of suddenstops Real exchange rates and switching regimes The speculative efficiency hypothesis Carry trades and currency crashes Consumption and portfolio decisions when expected returns are time varying Modeling East Asian exchange rates: a Markov-switching approach The time-varying systematic risk of carry trade strategies Dodging the steamroller: fundamentals versus the carry trade A Monte Carlo method for optimal portfolios Regime-switching with time-varying transition probabilities An implementation of markov regime switching model with time varying transition probabilities in matlab Currency risk and the safe-haven hypothesis Can the Markov switching model forecast exchange rates? Long swings in the dollar: are they in the data and do markets know it? The economic value of volatility timing The economic value of volatility timing using 'realized' volatility Size and value anomalies under regime shifts A new approach to the economic analysis of nonstationary time series and the business cycle Time series analysis Forward exchange rates as optimal predictors of future spot rates: an econometric analysis Regime switches in exchange rate volatility and uncovered interest rate parity Detecting regime shifts in Malaysian exchange rates Forecasting exchange rates out of sample: random walk v.s Markov switching regimes Common risk factors in currency markets Asset allocation by variance sensitivity analysis Optimal consumption and portfolio rules in a continuous-time model On the out-of-sample importance of skewness and asymmetric dependence for asset allocation Lifetime portfolio selection by dynamic stochastic programming Moments of markov switching models A utility-based comparison of some models of exchange rate volatility The asymmetry in carry trade and the U.S. dollar Publisher's Note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations