Next Article in Journal
Methodological Foundations of the Risk of the Stock Markets of Developed and Developing Countries in the Conditions of the Crisis
Previous Article in Journal
Measurement of Economic Forecast Accuracy: A Systematic Overview of the Empirical Literature
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Exchange Rate Forecasting with Advanced Machine Learning Methods

by
Jonathan Felix Pfahler
Department of Statistics, University of Augsburg, Universitaetstr. 16, D-86159 Augsburg, Germany
J. Risk Financial Manag. 2022, 15(1), 2; https://doi.org/10.3390/jrfm15010002
Submission received: 29 October 2021 / Revised: 13 December 2021 / Accepted: 15 December 2021 / Published: 21 December 2021
(This article belongs to the Section Financial Technology and Innovation)

Abstract

:
Historically, exchange rate forecasting models have exhibited poor out-of-sample performances and were inferior to the random walk model. Monthly panel data from 1973 to 2014 for ten currency pairs of OECD countries are used to make out-of sample forecasts with artificial neural networks and XGBoost models. Most approaches show significant and substantial predictive power in directional forecasts. Moreover, the evidence suggests that information regarding prediction timing is a key component in the forecasting performance.
JEL Classification:
E0; E4; E5; E6; F0; F4

1. Introduction

A long-standing conundrum in macroeconomic theory is the inability to predict exchange rate movements with economic fundamentals. Several exchange rate forecasting models have been derived from assumptions that are nowadays an essential part of the economics curriculum. The uncovered interest parity (UIP), for example, is based on the empirically confirmed covered interest parity and the assumption of risk neutrality, both of which are widely accepted (Neely and Sarno 2002). However, while many exchange rate forecasting models are well founded from a theoretical point of view, their empirical applications have exhibited poor forecasting performances. In most cases, a simple random walk (RW) prediction outperforms the well thought through models. Arguably the most prominent exchange rate forecasting models are the aforementioned UIP model, the purchase power parity (PPP) model and the monetary model (MM). They are based on economic theories derived from different assumptions. For decades, little to no significant influence of the fundamentals used in these models on exchange rate movements has been found in the short term, although the theoretical explanations seem reasonable. The fact that no relationship between fundamentals and exchange rate movements could be demonstrated with the help of the aforementioned economic models does not mean that no relationship exists per se. As Amat et al. (2018) point out, a critical constraining factor of these models is their functional form. The forecasting equations consist of simple linear combinations of the fundamentals. This way, potential nonlinearites are neglected. The reason for the strict linear form are the theoretical derivations of the models. The fundamentals could have a significant and substantial effect on the movement of exchange rates if a nonlinear model equation was used. The authors of Amat et al. (2018) use simple machine learning (ML) methods with economic fundamentals to test if this leads to better forecasting results compared to ordinary least squares (OLS) estimates. Although their ridge regression and exponentially weighted average models improve the performance compared to the OLS estimates, they could not always beat the RW prediction.
Building on the research of Amat et al. (2018), I argue that the use of more complex ML models could lead to a better forecasting performance because they are better suited for capturing potential nonlinearities. The question I address with this examination is simple:
Q:
Do fundamentals from the PPP, UIP or MM model have forecasting power with regard to exchange rate movements, regardless of the functional form of the estimation equation?
The flexibility of ANN and XGBoost models should allow one to approximate a function which exploits the information in the economic fundamentals. Thus, if the fundamentals have predictive power, this should be evident by a higher predictive performance relative to the RW benchmark. The research question can be further specified by the following two specific questions:
Q1:
Can complex ML methods with economic fundaments beat the RW predictions in forecasting exchange rate differentials?
Q2:
Can complex ML methods with economic fundaments beat the RW predictions in forecasting exchange rate movement directions?
Here, the complex ML methods are XGBoost and ANN models, and economic fundamentals are derived from the PPP, UIP and MM theories. I show that neither ML model is able to convincingly outperform the RW forecast of exchange rate differentials, and when they do, the effect is comparatively small and statistical significance is almost always lacking. In predicting the direction of the exchange rate movements, on the other hand, both ML methods outperform the RW forecasts in almost all cases with varying levels of statistical significance. Moreover, ANNs provide better forecasting results than the XGBoost models. Additionally, the advantage of the ML models over the RW model disappears completely when time dummies are excluded from the features in the training phase. This suggests that the information driving the models’ directional forecast for the exchange rate is not derived from the fundamentals alone, but depends largely on the prediction timing, which is defined by the time dummy variables. This argument is supported by the good performance of a separate ANN model that predicts the direction of exchange rate movement using only time dummies as explanatory variables. However, models trained with fundamental variables still perform slightly better, suggesting that fundamentals may still have predictive power but are dependent on prediction timing.
This paper is structured as follows: In Section 2, I discuss the related literature. Section 3 follows with the description of the methodology, including the classic PPP, UIP and MM models, which the economic fundamentals included in the empirical part of this study stem from as well as the applied ML methods ANN and XGBoost. In Section 4, I describe the dataset. Section 5 continues with the description of the results, followed by a brief discussion of the implications. Finally, the conclusions are drawn.

2. Related Literature

Classic economic exchange rate forecasting models are based on the PPP, UIP and MM theories and have been the subject of numerous studies. The most famous of these studies was conducted by Meese and Rogoff (1983), who tested various specifications of the monetary model. They included both sticky as well as flexible-price approaches in the form of the Drenkel–Bilson, the Dornbusch–Frenkel and the Hopper–Morton monetary models (Meese and Rogoff 1983). They included different country pairs and varied the considered forecasting horizon from one to twelve months. Despite the different approaches, their models failed to outperform the RW benchmark in forecasting exchange rates. The authors of Vitek (2005) repeated this approach with a larger dataset at a later time and confirmed these findings. In recent years, the literature has found conflicting evidence on the predictability of exchange rates using MM fundamentals. In a study by Mark (1995), a model based on MM fundamentals was able to beat the RW benchmark in forecasting exchange rate differentials over a long time horizon. On the other hand, Engel et al. (2017) found that their monetary model using Taylor-rule fundamentals cannot consistently beat the RW benchmark in the short run in out-of-sample (OOS) forecasts, even though the coefficients of fundamentals in their OLS regression are statistically significant. Regarding the significance of UIP fundamentals in exchange rate forecasting, they conducted an examination of the effect of these fundamentals including inflation. They found that the coefficients of inflation were in many cases highly significant when predicting exchange rate differentials. However, the interest rate differential, which is supposed to be the explanatory factor for exchange rates changes according to the classical UIP theory, is not statistical significance in most cases (Engel et al. 2017). Regarding the PPP model, Edison and Klovland (1987) examined the short-term forecastability of exchange rate differentials. They used a time series from 1874 to 1971 for the country pair Norway and United Kingdom. They found no evidence for an effect of PPP fundamentals on the exchange rate differentials (Edison and Klovland 1987). In Dal Bianco et al. (2012), the authors find a good in-sample fit of their fundamental-based econometric models with an R 2 of 0.8 using short-term weekly and monthly data. However, in OOS comparisons, their model is inferior to the RW model. In addition to using various sets of fundamentals, researchers also use various machine learning models to improve their predictions. The authors of Plakandaras et al. (2015) apply a wide range of machine learning models and model combinations to forecast exchange rate movements, ranging from ARIMA models to support vector machines and ANNs. They outperform the RW in OOS exchange rate prediction, taking into account a variety of variables, from commodity and equity prices to interest rates and GDP. However, they do not focus on a specific economic theory, as their objective is to achieve the best OOS performance possible (Plakandaras et al. 2015). In Amat et al. (2018), the authors use the exponentially weighted average strategy (EWA) with discount factors and ridge regression to forecast the exchange rate differentials as well as the direction of exchange rate movements. They incorporate fundamentals from the classic economic PPP, MM and UIP models. They compare the OOS forecasts of their models with OLS and RW benchmark models. They tested their results for statistical significance using the Diebold–Mariano (DM) statistics and p-values. In some cases, they narrowly beat the RW model; often the difference is less than one percent of the RMSE for different country pairs. Their directional forecasts show that the EWA model performs best, but the OLS regression can also correctly predict the direction of exchange rate movement over 50 percent of the time for most currency pairs (Amat et al. 2018).
The authors of Bajari et al. (2015) compare common machine learning models with classical econometric models for demand forecasting. They use linear and logistic regressions as econometric models, which they compare with random forests and support vector machines, as well as other machine learning models. Using Monte Carlo simulations, they show that model combination with linear regression improves OOS predictive power. Using real demand forecasting data, they show that ML models consistently provide better OOS predictions than their econometric counterparts, demonstrating why machine learning models should be considered in traditionally econometric settings.
A more complex machine learning model for economic forecasting is used by Qureshi et al. (2020). They use a two-stage XGBoost model for their Canadian GDP forecasts. In the first stage, they select variables based on the significance of their XGBoost model and in the second stage, they make predictions using a separate XGBoost model trained on the selected variables. Their results show that XGBoost models can lead to good predictive performance for monthly growth rate forecasts, as shown by the OOS forecasting performance (Qureshi et al. 2020).

3. Methodology

The fundamentals used in this research come from the UIP, PPP, and MM theories. In addition, I include the “all fundamentals” (AF) approach, which is the combined set of fundamentals from all three models. The descriptions of the models are by no means exhaustive and are instead intended to give an idea of where the linear form of the forecasting equations of classical models comes from and how the fundamentals are selected.

3.1. Uncovered Interest Rate Parity (UIP) Model

The UIP exchange rate forecasting model is based on the UIP condition. The UIP is derived from the covered interest rate parity (CIP) and the assumption of risk neutrality. The CIP states that investors cannot exploit differences in interest rates of two countries by using forward contracts and is expressed by Equation (1) below.
F t S t = 1 + r d 1 + r f
where F t is the price of a forward contract on the exchange rage S t + 1 at time t + 1. S t is the exchange rate at time t, denoted in units of the domestic country’s currency. r d and r f are the interest rates of the domestic and the foreign countries, respectively, on comparable assets with equal maturity. Transforming Equation (2) by applying the natural logarithm and assuming small values for r d and r f , yields the following equation (Equation (2)):
f t s t = r d , t r f , t
where the forward rate is defined by f t = l o g ( F t ) and the spot rate is defined by s t = l o g ( S t ) .
The forward rate f t can be represented as a composition of the investors, expectation of the spot rate and the risk associated with holding a domestic asset relative to the risk associated with holding a foreign asset, expressed by the risk premium ρ t . Hence, the forward rate f t can be described by Equation (3):
f t = s t e + ρ t
Combining Equations (2) and (3) yields Equation (4), which relates the change in the expected spot rate Δ s t e to the difference in interest rates in t ( r d , t r f , t ) and the risk premium ρ t :
Δ s t e = ( r d , t r f , t ) ρ t
When risk neutrality of the investor is assumed, the risk premium is neutralized ( ρ t = 0 ), leading to the UIP, described by Equation (5):
Δ s t e = r d , t r f , t
Therefore, the difference in interest rates between the associated countries is assumed to explain the change in the exchange rate of their currencies. Hence, the explanatory variables considered for the later models are the current period interest rates of both countries for comparable assets with the same maturity (Meredith and Chinn 1998).

3.2. Purchasing Power Parity (PPP) Model

An alternative way of explaining the exchange rate movement lies in the PPP theory. According to the PPP theory, goods are internationally tradable substitutes. Neglecting complex trading behavior, e.g., due to differences in preferences and tastes, PPP theory assumes the homogeneity of goods and allows them to be easily tradable between countries. The purchasing power parity is defined by the following equation (Equation (6)):
p d , t = p f , t + s t
where p d , t and p f , t are the natural logarithms of the price levels in the domestic and the foreign country, respectively. Due to the no-arbitrage condition on the goods markets assumed in PPP theory, the expected exchange rate in t + 1 is given by Equation (7):
E [ s t + 1 ] = p d , t p f , t
Therefore, the only variables to consider when forecasting exchange rate movements are the price levels of the respective countries, often reported as the consumer price index (CPI) (Juselius 1995).

3.3. Monetary Model (MM)

Regarding the MM model, there are several variants that distinguish, for example, between rigid and flexible prices, such as the Dornbusch–Frankel model (rigid prices) and the Frenkel–Bilson model (flexible prices) (Meese and Rogoff 1983).This examination follows the forecasting approach of Amat et al. (2018), which is based on the Frenkel–Bilson flexible price model. They model the relationship between income and money supply as the following linear equation, Equation (8):
s t = α 0 + α 1 ( m d , t m f , t ) α 2 ( y d , t y f , t )
where m d , t and m f , t denote the log levels of the money supply of the domestic and foreign countries, respectively, while y d , t and y f , t represent their log incomes. To estimate exchange rate differences, the difference between two consecutive periods leads to Equation (9):
Δ s t = β 1 Δ m d , t β 2 Δ m f , t β 3 Δ y d , t + β 4 Δ y f , t
where Δ indicates that the connected variable is the time differential between the specified period and the previous period of the associated variable (i.e., Δ x = x t x t 1 ) (Amat et al. 2018).

3.4. Artificial Neural Networks (ANN)

All of the classical macroeconomic forecasting models described so far assume a linear relationship between fundamentals and exchange rate differentials or directions of movement. The reason for assuming linearity in these models stems from the theoretical derivations of the models. However, the restriction to a linear form may be a hindrance if the actual functional form is nonlinear. Multilayer perceptrons are known to be universal approximators. According to the universal approximation theorem, a multilayer perceptron model can approximate any continuous function between two Euclidean spaces. The reason for the flexibility of ANNs is the high complexity of the model due to the high number of parameters as well as the use of activation functions, which are responsible for the nonlinear characteristic of the approximation (Hornik 1991). A detailed and extensive explanation of the functionality of neural networks can be found in Goodfellow et al. (2016). In my study, I use a multilayer perceptron with two hidden layers. The first hidden layer consists of 1000 artificial neurons, the second of 500. The model equation of this network is shown in Equation (10) below. Let x t denote the vector of inputs to the network at time t. The vector consists of the values of the p economic fundamentals at time t. For the regression models, the prediction Δ y t + 1 ^ (where Δ y t + 1 = y t + 1 y t ) of the model at time t is calculated as follows:
Δ y t + 1 ^ = w 3 ϕ h i d d e n 2 ( w 2 ϕ h i d d e n 1 ( w 1 x t + b 1 ) + b 2 ) + b 3
while for the classification models, the predicted probability P ( z t + 1 = 1 | x t ) ^ of the model at time t is calculated as follows:
P ( z t + 1 = 1 | x t ) ^ = ϕ o u t p u t ( w 3 ϕ h i d d e n 2 ( w 2 ϕ h i d d e n 1 ( w 1 x t + b 1 ) + b 2 ) + b 3 )
where ϕ h i d d e n 1 , ϕ h i d d e n 2 and ϕ o u t p u t are the activation functions of the first, the second hidden layers, as well as the output layer, respectively. The prediction Δ y t + 1 ^ is the predicted exchange rate differential. The prediction P ( z t + 1 = 1 | x t ) ^ is the predicted probability of the exchange rate differential to be positive. z t + 1 is a binary response variable, that is defined as follows
z t + 1 = 1 if Δ y t + 1 > o 0 else y { y 1 , , y n }
w 1 , w 2 and w 1 are differently sized weight matrices of the first and the second hidden layer, as well as the output layer. b 1 , b 2 and b 3 denote scalar bias terms, that are added in the first and second hidden layers, as well as the output layer. For the activation functions ϕ h i d d e n 1 and ϕ h i d d e n 2 I chose the relu function, as stated in Equation (14) below.
r e l u ( x ) = m a x { 0 , x }
For the binary classification MLP models, which predict the direction of change of exchange rate movements, a sigmoid activation function, presented in Equation (14), is used for as the activation function of the ouput neuron ϕ o u t p u t . For the later regressions, no activation function ϕ o u t p u t is applied.
s i g m o i d ( x ) = 1 1 e x
The MLP model is fit to a training dataset, consisting of 75 % of the considered data. As the objective function for regression, I chose the sum of squared residuals (SSR) loss function.
L o s s S S R ( x ) = t = 1 T ( Δ y t ^ Δ y t ) 2
For classification, I implemented the binary cross-entropy (BCE) function as the loss function.
L o s s B C E ( x ) = 1 n t = 1 T z t · l o g ( P ( z t + 1 = 1 | x t ) ^ ) + ( 1 z t ) · l o g ( 1 P ( z t + 1 = 1 | x t ) ) ^
The loss function is minimized using the backpropagation algorithm. The backpropagation algorithm calculates the gradients of the loss function in respect to the weights in the network l o s s w h for each layer h { 1 , 2 , 3 } and update the weights. Backpropagation uses the chain rule to compute the gradients and the gradient descent algorithm to apply the necessary weight changes to the network. Gradient descent decreases the gradients according to the learning rate before subtracting them from the weight matrices in the networks, as shown in Equation (17) below (Goodfellow et al. 2016).
w h , t + 1 = w h , t α l o s s w h , t
Here, α denotes the learning rate. I chose the value for α , which produces the greatest reduction in loss. Further, I did not use the exact version of the gradient descent algorithm described above, but the more advanced optimization algorithm Adam, which extends the gradient descent algorithms using momentum terms, as described by Kingma and Ba (2015). I use mini-batch training, which updates the weights after every mini-batch (Goodfellow et al. 2016). Once the training set is iterated through, an epoch is completed. I set the maximum epoch size to 1000. This number of epochs was, however, never reached, as I implemented Earlystopping as a callback. Earlystopping interrupts the training process, whenever a predefined improvement criterion is no longer fullfilled. In my examition, Earlystopping interrupted the training of a model, whenever the validation error did not improve by a margin of 0.0001 over the last 100 epochs. Setting this margin is a delicate process, as setting it too high can lead to underfitting, i.e., the model does not fit the training data closely enough and therefore loses potential predictive power. On the other hand, setting it to low might result in unnecessary long traninig time without improvement (Yao et al. 2007). To further prevent overfitting, I implement the regularization method dropout. Dropout prevents co-adaptation, the over-adjustment of the model to the idiosyncrasies of the training dataset, by eliminating neurons during the training process (Srivastava et al. 2014). I apply dropout to both hidden layers with a respective probability of p = 0.5 for each node to be left out at each pass during the training.

3.5. EXtreme Gradient Boosting (XGboost)

XGBoost stands for eXtreme Gradient Boosting and is a package developed by Chen and Guestrin (2016) for easy application and tuning of gradient boosting with regularization methods on linear models and CART models (classification and regression trees). For my empirical studies, I use classification and regression trees as weak learners for the XGBoost models. XGBoost, as well as other gradient boosting methods, have provided state-of-the-art results in a variety of domains for both classification and regression problems. In general, gradient boosting is an ensemble method that combines the weighted predictions of multiple weak learners, in this case tree models, into a superior prediction model. In the training process, the XGBoost model is built by sequentially fitting weak learners to bootstrap samples. However, instead of fitting them to the target variable, the goal is to reduce the pseudo-residuals of the previously fitted weak learners model. Therefore, the weak learners are sequentially fitted to the residuals of the previously fitted weak learners. By adding up the predictions of the weak learners, the prediction error is minimized. Once, the error can not be effectively reduced by additional weak learners, the final additive model takes the form of Equation (18) for regression and Equation (19) for classification (Chen and Guestrin 2016).
Δ y t + 1 ^ = k = 1 K f k r ( x t )
P ( z t + 1 = 1 | x t ) ^ = k = 1 K f k c ( x t )
where f k r and f k c denote regression and classification tree models, respectively, and K is the number of weak learners contained in the final model. Like the MLP model, the additive model is also fitted by minimizing a predefined loss function. Unlike before, the loss function includes a penalty term for regularization, as shown by Equation (20) for regression and (21) for classification.
L o s s r ( Δ y t + 1 ^ , Δ y t + 1 ) = t = 1 T κ ( Δ y t + 1 ^ , Δ y t + 1 ) + k = 1 K Ω ( f k )
L o s s c ( P ( z t + 1 = 1 | x t ) ^ , z t + 1 ) = t = 1 T κ ( P ( z t + 1 = 1 | x t ) ^ , z t + 1 ) + k = 1 K Ω ( f k )
For the loss functions the penalty term is specified in Equation (22).
Ω ( f k ) = γ M + 1 2 λ w 2
Here, M denotes the number of leaves in a CART weak learner and w 2 denotes the L 2 -norm of the weights w attached with each leave in a tree. Since M and w define the complexity of a tree, the term Ω ( f k ) penalizes both the complexity of the tree and unnecessarily large weights in the loss function. A detailed explanation can be found in Chen and Guestrin (2016).

4. Data

The dataset consists of fundamentals and exchange rates from 1973–2014 for 10 different country pairs. The fundamentals for this examination stem from the aforementioned UIP, PPP and MM theories as well as an AF approach. Exchange rates are expressed relative to the USD dollar and recorded at the end of the month. The dataset is provided by Amat et al. (2018) and is available at their website, which I kindly refer to for more information about the dataset. The data were originally sourced from Datastream, the OECD, and the Federal Reserve’s website (Amat et al. 2020).
When training complex machine learning models, it is necessary to provide the algorithm with many observations in order to achieve an acceptable level of adaptation without overfitting. For this reason, I chose to train the algorithms using the combined data of all currencies, but to make the OOS forecasts for each currency pair separately. All variables are being scaled with maximum absolute scaling. To distinguish between countries, I encoded the IDs of the currency pairs with dummy variables. Also included are time dummies for months and years.
For every country pair, the dataset is split into a training set (in-sample) containing the first 67% of the available periods and a validation set (out-of-sample) consisting of the remaining 33% of the periods.
With this approach, I pursue the objective set by Amat et al. (2018). The goal is not to provide the most accurate forecasts of the exchange rate differentials or movement directions. Rather, the aim is to examine whether fundamentals from the aforementioned economic models have predictive power regarding the exchange rate differentials or movement directions.

5. Results

The hyperparameters for ANN as well as XBoost models are chosen sequentially according to the associated reduction in OOS loss. The results of the examinations are recorded in Table 1, Table 2, Table 3, Table 4 and Table 5. Each table contains the metrics obtained from the OOS predictions, i.e., Diebold–Mariano (DM) statistics, DM p-values and Theil ratios for the regressions as well as DM statistics, DM p-values, and error rates for the classification, for each of the 10 currency pairs, once with and once without time dummies.
Table 1 contains the results for regressions with all sets of fundamentals using XGBoost. It is noticeable that in no case is the Theil ratio below 1, indicating that all the associated models predict the OOS exchange rate differences worse than the RW predictions. Moreover, in many cases the RW prediction is significantly better than the associated XGBoost model. This is the case when the Theil ratio is above 1 and the DM test and p-value simultaneously suggest statistical significance.This is particularly evident for the model variants that do not contain time dummies. Here, the p-values for most countries and for all sets of fundamental suggest statistical significance at least at the 10 percent level, sometimes even at the 1 percent level. Using the XGBoost algorithm, I can find no evidence that economic fundamentals improve the prediction of exchange rate differentials.
Alternatively, Table 2 shows the results for regressions using ANNs with all sets of fundamentals, once including and once excluding time dummies. Unlike the comparable results using XGBoost in Table 1, the Theil ratios are now closer to one. In about half of all cases they are even slightly below one. However, the difference is always very small and in most cases not statistically significant. There is no significant difference between the predictions generated by different sets of economic fundamentals and between the approaches that include time dummies or omit them. Although it appears that the ANNs are better fitted to the data than the XGBoost models, as indicated by the lower Theil ratios, this does not lead to significantly better predictions. Thus, it does not lead to the significance necessary to infer an overall effect of fundamentals on exchange rate differentials. Therefore, there is no evidence to support the claim that economic fundamentals have predictive power on exchange rate differentials.
Table 3 contains the results for the classifications with all sets of fundamentals, once with and once without time dummies, using XGBoost for classification to classify the direction of the exchange rate movement. In contrast to the results of the regression models of Table 1 and Table 2, the results for the classification yield some predictive power. In almost all cases, the error rate of each XGBoost model is lower than the RW error rate, i.e., less than 0.5, which means that the XGBoost model predicts the correct direction in more than 50 percent of the cases. However, the only cases where the models’ predictions differ significantly from the RW prediction are for the PTE/USD and FRF/USD currency pairs. However, this is true for all sets of fundamentals that include time dummies. Moreover, when comparing the models with time dummies to the models without time dummies, we observe an increase in the error rates as well as in the p-values for the models without time dummies. Thus, prediction timing seems to be important for classification, which is interesting since in most cases the original economic models do not consider prediction timing as a determining factor, but level differences between countries.
The results for the classifications using ANNs are shown in Table 4. For all sets of fundamentals, the error rates are much lower than for the RW benchmark. For most models that include time dummies, the results are statistically significant. Between these models, the differences in error rates and statistical significance are small. The low classification errors, as well as the presence of statistical significance in many cases, suggest the predictive power of fundamentals in terms of the exchange rate direction. However, the classification errors are much higher when the time dummies are excluded, and statistical significance disappears. This shows that the time dummies contain significant information for the predictions.
Based on these observations, I tested a new approach, in which I included only the time dummies as features. The goal was to investigate whether the time dummies alone could be responsible for the forecastability of exchange rate movement directions. Table 5 contains the results of this experiment. It can be observed that the error rates of the ANN models are in most cases smaller than the RW error rates and the difference is highly statistically significant. This raises the question of the role of fundamentals and their contribution to the predictive performance in the classification models of Table 3 and Table 4. In Figure 1, I compare the error rates of the fundamentals-based ANN models from Table 4, including time dummies, with the error rates of the ANN models only using time dummies as features from Table 5. It can be seen that the error rates from the predictions of the ANN models from Table 5, called “Only TD”, are not strictly lower than those from the ANN models in Table 4, “AF”, “PPP”, “UIP”, and “MM”. e.g., in the majority of cases, “MM” yields lower error rates than "Only TD". Furthermore, Figure 2 shows, in how many cases a certain level of statistical significance was reached by the models from Table 4 compared to the “Only TD” model of Table 5. It can be observed that “Only TD” displays statistical significance in six cases (for six country pairs) of which it reached three times the significance at the one percent level and three times at the five percent level. This is arguably worse than, for example, the “MM” model of Table 4, which reaches statistical significance at the one percent level in six cases. From this, I conclude that the good performance of the classifying ANN models from Table 4 cannot be attributed to the prediction timing alone, but fundamentals have contributed to the forecasting performance as well. However, the amount of the contribution of the fundamentals to the forecasting performance is unclear. There might be complex interactions between time dummies and fundamentals that are responsible for the forecasting performance of Table 4.

6. Discussion

According to Alvarez et al. (2007), if fundamentals do not have a significant effect on exchange rate movements, monetary policy would not affect the exchange rate, since stimulating fundamentals would not lead to changes in exchange rates, but only to risk premia. The results from the ANN classification models of Table 4 suggest that fundamentals have forecasting power for exchange rates. However, as Table 5 shows, much of this is due to the time dummies. Therefore, the prediction timing is important. A possible explanation for these observations is that the fundamentals have some forecasting power for the exchange rate movement directions, but only in combination with the prediction timing. It is possible that there are complex interdependencies between time dummies and fundamental data. This fits well with the scapegoat theory of Bacchetta and Wincoop (2004). They argue that fundamental variables can be scapegoats in that the perceived importance of certain fundamentals by market participants, policymakers, and analysts change over time. Therefore, the weight they attach to individual fundamentals changes over time, leading to time-varying expectations as well as varying foreign exchange trading decisions. Therefore, the influence of macroeconomic fundamentals on exchange rates also changes similarly over time. This effect could be captured by complex interactions between the time dummies and the fundamentals, since the time dummies contain the information about the timing. This has implications for monetary policy because the temporary scapegoat effect distorts the relationship between fundamentals and exchange rates. As a result, policymakers cannot rely on past relationships between fundamentals and exchange rates because they might have changed. Moreover, changes in fundamentals might indicate that policy intervention is needed, but the scapegoat effect distorts the exchange rate, making it appear that policy intervention is not needed and that the exchange rate is independent of fluctuations in fundamentals. The empirical results of this paper strengthen the necessary conditions for the existence of the scapegoat effect, namely that the effect size of the influence of fundamentals on exchange rates depends on prediction timing.

7. Conclusions

In this paper, I examined the predictive power of macroeconomic fundamentals, when used in nonlinear machine learning models. I applied artificial neural networks (ANNs) in form of a multilayer perceptron model, as well as gradient boosted decision trees using XGBoost, to forecast exchange rates movements. I compared the OOS-RMSE for regression as well as the OOS classification error for the classification of individually trained models for each currency pair to the random walk benchmark. The fundamentals were derived from the PPP, UIP, and MM theories. I compared the significance of the differences in the predictive performance of the trained models with the random walk benchmark using the Diebold–Mariano test statistic and p-value. For the regression setting, i.e., the prediction of exchange rate differentials, I found no convincing evidence that fundamentals possess predictive power. For the classification setting, i.e., the prediction of exchange rate movement directions, the XGBoost models were able to outperform the random walk benchmark by a small margin, which was in some cases statistically significant. The ANN models were able to outperform the random walk benchmark by a larger margin, which was statistically significant at the 1 percent level in many cases. However, this was only the case when time dummies were included in the models. ANN regressions using only time dummies as explanatory variables showed good predictive performances and high levels of statistical significance in many cases as well. This called into question the role of fundamentals in the predictions of the well-performing models. However, a comparison of these results with the ANN models for classifications with fundamental data showed that the use of the MM fundamentals leads to better results in terms of statistical significance and error rates. Hence, the predictive performance cannot be attributed to the time dummies alone. One possible explanation for this is that complex interactions between time dummies and fundamentals could be the key to good directional forecasts for exchange rates. The relationship between time dummies and fundamental data needs to be explored in more detail in future studies.

Funding

The funding was provided by the German Research Foundation (DFG).

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Alvarez, Fernando, Andrew Atkeson, and Patrick J. Kehoe. 2007. If Exchange Rates are Random Walks, Then Almost Everything We Say About Monetary Policy is Wrong. American Economic Review 97: 339–45. [Google Scholar] [CrossRef]
  2. Amat, Christophe, Tomasz Michalski, and Gilles Stoltz. 2018. Fundamentals and exchange rate forecastability with simple machine learning methods. Journal of International Money and Finance 88: 1–24. [Google Scholar] [CrossRef]
  3. Amat, Christophe, Tomasz Michalski, and Gilles Stoltz. 2020. Data set and programs to reproduce the forecasts Fundamentals and exchange rate forecastability with simple machine learning methodss. Mendeley Data V1. [Google Scholar] [CrossRef]
  4. Bacchetta, Philippe, and Eric van Wincoop. 2004. A Scapegoat Model of Exchange Rate Fluctuations. Working Paper 10245. Cambridge, MA, USA: National Bureau of Economic Research. [Google Scholar] [CrossRef]
  5. Bajari, Patrick, Denis Nekipelov, Stephen P. Ryan, and Miaoyu Yang. 2015. Demand Estimation with Machine Learning and Model Combination. Working Paper 20955. Cambridge, MA, USA: National Bureau of Economic Research. [Google Scholar] [CrossRef]
  6. Chen, Tianqi, and Carlos Guestrin. 2016. Xgboost: A Scalable Tree Boosting System. Available online: http://arxiv.org/abs/1603.02754 (accessed on 29 October 2021).
  7. Dal Bianco, Marcos, Maximo Camacho, and Gabriel Perez Quiros. 2012. Short-run forecasting of the euro-dollar exchange rate with economic fundamentals. Journal of International Money and Finance 31: 377–96. [Google Scholar] [CrossRef] [Green Version]
  8. Edison, Hali J., and Jan Tore Klovland. 1987. A quantitative reassessment of the purchasing power parity hypothesis: Evidence from norway and the united kingdom. Journal of Applied Econometrics 2: 309–33. [Google Scholar] [CrossRef] [Green Version]
  9. Engel, Charles, Dohyeon Lee, Chang Liu, Chenxin Liu, and Steve Pak Yeung Wu. 2017. The Uncovered Interest Parity Puzzle, Exchange Rate Forecasting, and Taylor Rules. Working Paper 24059. Cambridge, MA, USA: National Bureau of Economic Research. [Google Scholar] [CrossRef]
  10. Goodfellow, Ian, Yoshua Bengio, and Aaron Courville. 2016. Deep Learning. Cambridge: MIT Press, Available online: http://www.deeplearningbook.org (accessed on 29 October 2021).
  11. Hornik, Kurt. 1991. Approximation capabilities of multilayer feedforward networks. Neural Networks 4: 251–57. [Google Scholar] [CrossRef]
  12. Juselius, Katarina. 1995. Do purchasing power parity and uncovered interest rate parity hold in the long run? an example of likelihood inference in a multivariate time-series model. Journal of Econometrics 69: 211–40. [Google Scholar] [CrossRef]
  13. Kingma, Diederik P., and Jimmy Ba. 2015. Adam: A method for stochastic optimization. Paper present at 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA, May 7–9; Edited by Yoshua Bengio and Yan LeCun. Conference Track Proceedings. [Google Scholar]
  14. Mark, Nelson C. 1995. Exchange rates and fundamentals: Evidence on long-horizon predictability. The American Economic Review 85: 201–18. [Google Scholar]
  15. Meese, Richard A., and Kenneth Rogoff. 1983. Empirical exchange rate models of the seventies: Do they fit out of sample? Journal of International Economics 14: 3–24. [Google Scholar] [CrossRef]
  16. Meredith, Guy, and Menzie D. Chinn. 1998. Long-Horizon Uncovered Interest Rate Parity. Working Paper 6797. Cambridge, MA, USA: National Bureau of Economic Research. [Google Scholar] [CrossRef]
  17. Neely, Christopher, and Lucio Sarno. 2002. How Well Do Monetary Fundamentals Forecast Exchange Rates? Working Papers 2002-007. St. Louis, MO, USA: Federal Reserve Bank of St. Louis. [Google Scholar]
  18. Plakandaras, Vasilios, Theophilos Papadimitriou, and Periklis Gogas. 2015. Forecasting daily and monthly exchange rates with machine learning techniques. Journal of Forecasting 34: 560–73. [Google Scholar] [CrossRef]
  19. Qureshi, Shafiullah, Ba M. Chu, and Fanny S. Demers. 2020. Forecasting Canadian GDP Growth Using XGBoost. Carleton Economic Papers 20-14. Ottawa: Department of Economics, Carleton University. [Google Scholar]
  20. Srivastava, Nitish, Geoffrey Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. 2014. Dropout: A simple way to prevent neural networks from overfitting. Journal of Machine Learning Research 15: 1929–58. [Google Scholar]
  21. Vitek, Francis. 2005. The Exchange Rate Forecasting Puzzle. International Finance 0509005. Munich: University Library of Munich, Germany. [Google Scholar]
  22. Yao, Yuan, Lorenzo Rosasco, and Andrea Caponnetto. 2007. On early stopping in gradient descent learning. Constructive Approximation 26: 289–315. [Google Scholar] [CrossRef]
Figure 1. Error rates—every set of fundamentals vs. only TD.
Figure 1. Error rates—every set of fundamentals vs. only TD.
Jrfm 15 00002 g001
Figure 2. Level of significance—every set of fundamentals vs. only TD.
Figure 2. Level of significance—every set of fundamentals vs. only TD.
Jrfm 15 00002 g002
Table 1. One-month-ahead forecasting of exchange rate differentials with fundamentals using XGBoost.
Table 1. One-month-ahead forecasting of exchange rate differentials with fundamentals using XGBoost.
XGBoost—Regression—With Time Dummies
All fundamentalsMM fundamentalsPPP fundamentalsUIP fundamentals
Currency pairDMp-valueTheil RatioDMp-valueTheil RatioDMp-valueTheil RatioDMp-valueTheil Ratio
PTE/USD2.81880.005 ***1.037−0.29740.76630.9966−1.46450.14360.9888−0.00990.99210.9999
AUD/USD0.37550.70741.00270.860.391.0066−0.44060.65960.9970.58760.55691.0039
CAN/USD0.37550.70741.00270.860.391.0066−0.44060.65960.9970.58760.55691.0039
CHF/USD0.37550.70741.00270.860.391.0066−0.44060.65960.9970.58760.55691.0039
DEM/USD2.02980.0427 **1.01440.31540.75261.00251.79170.0735 *1.01140.71160.47691.0045
DNK/USD0.31760.75091.00240.30460.76071.00250.64750.51751.0036−0.32260.74710.9981
FRF/USD5.48620.0000 ***1.04652.78780.0054 *1.02921.93420.0534 *1.01392.57250.0103 ***1.0247
ITL/USD2.02980.0427 **1.01440.31540.75261.00251.79170.0735 *1.01140.71160.47691.0045
JPY/USD0.37550.70741.00270.860.391.0066−0.44060.65960.9970.58760.55691.0039
SEK/USD0.37550.70741.00270.860.391.0066−0.44060.65960.9970.58760.55691.0039
XGBoost—Regression—No Time Dummies
All fundamentalsMM fundamentalsPPP fundamentalsUIP fundamentals
Currency pairDMp-valueTheil RatioDMp-valueTheil RatioDMp-valueTheil RatioDMp-valueTheil Ratio
PTE/USD2.80060.0053 **1.05031.79650.0729 *1.01941.75160.0804 *1.02181.33720.18171.0216
AUD/USD0.53690.59141.0052.03640.042 **1.01622.2310.0259 **1.0181.55220.12091.0092
CAN/USD0.53690.59141.0052.03640.042 **1.01622.2310.0259 **1.0181.55220.12091.0092
CHF/USD0.53690.59141.0052.03640.042 **1.01622.2310.0259 **1.0181.55220.12091.0092
DEM/USD2.77820.0056 *1.0271.72470.0849 **1.0132.39190.017 **1.02340.88830.37461.0059
DNK/USD1.68580.0922 *1.01983.38950.0007 ***1.02623.23470.0013 ***1.02331.91870.05531.0131
FRF/USD2.71650.0067 *1.03422.00770.045 **1.02093.48990.0005 ***1.04510.55990.57571.0053
ITL/USD2.77820.0056 *1.0271.72470.0849 *1.0132.39190.017 **1.02340.88830.37461.0059
JPY/USD0.53690.59141.0052.03640.042 **1.01622.2310.0259 **1.0181.55220.12091.0092
SEK/USD0.53690.59141.0052.03640.042 **1.01622.2310.0259 **1.0181.55220.12091.0092
For every currency pair, a separate XGBoost model is estimated to regress exchange rate differentials on every set of fundamentals from the PPP, UIP and the MM theories as well as the combined AF approach. Out-of-sample Diebold–Mariano statistics and p-values are calculated for differences in RMSE between the estimated models and the random walk benchmark. Statistical significance is marked by *, ** or *** for the 10, 5, or 1 percentage level, respectively. The data range from March 1973 to December 2014. A Theil ratio above one indicates that the OOS RMSE of the XGBoost model is smaller than the one of the random walk.
Table 2. One-month-ahead forecasting of exchange rate differentials with fundamentals using ANN.
Table 2. One-month-ahead forecasting of exchange rate differentials with fundamentals using ANN.
ANN—Regression—With Time Dummies
All fundamentalsMM fundamentalsPPP fundamentalsUIP fundamentals
Currency pairDMp-valueTheil RatioDMp-valueTheil RatioDMp-valueTheil RatioDMp-valueTheil Ratio
PTE/USD2.05870.04 **1.04722.32380.0205 **1.06632.30420.0216 **1.05071.9050.0573 *1.0378
AUD/USD−0.47440.63530.9950.30590.75981.0023−1.22470.2210.9966−0.34370.73120.9984
CAN/USD−1.50790.13190.9887−0.80130.42310.998−1.11490.26520.99310.22580.82141.0033
CHF/USD−0.60490.54541.0074−0.31430.75331.0031−0.61130.54110.995−0.56620.57140.9974
DEM/USD4.5440.0000 ***1.04694.11260.0000 ***1.04475.30710.0000 ***1.04353.7830.0002 ***1.027
DNK/USD−1.36970.17110.9945−0.10120.91941.0107−0.20690.83611.01010.52830.59741.0122
FRF/USD5.8950.0000 ***1.11466.48740.0000 ***1.08934.8160.0000 ***1.06415.09740.0000 ***1.0781
ITL/USD4.90560.0000 ***1.04524.62230.0000 ***1.06595.08420.0000 ***1.05474.1120.0000 ***1.0385
JPY/USD1.46230.1441.0208−1.32560.18530.9942−1.41380.15770.9963−0.36690.71381.0038
SEK/USD−1.16390.24480.9982−0.92540.3550.99670.09050.92791.00820.10460.91671.0017
ANN—Regression—No Time Dummies
All fundamentalsMM fundamentalsPPP fundamentalsUIP fundamentals
Currency pairDMp-valueTheil RatioDMp-valueTheil RatioDMp-valueTheil RatioDMp-valueTheil Ratio
PTE/USD2.88670.004 ***1.00270.25560.79830.99580.76510.44450.9969−0.20060.84110.9947
AUD/USD1.5290.12661.00261.38290.1670.99881.05470.29180.99761.19060.23410.9984
CAN/USD0.16960.86540.99891.55290.12080.99942.01260.0444 **1.00092.60560.0093 ***1.0043
CHF/USD1.73080.08381.0022.39720.0167 **1.00292.62250.0089 ***1.00262.4840.0132 **1.0021
DEM/USD−1.4340.15191.0001−2.48940.013 **0.995−1.12490.26091.0028−1.49560.13510.9967
DNK/USD0.00510.99590.99770.4980.61860.99722.79430.0053 ***1.00462.12060.0342 **1.0005
FRF/USD−1.38680.16590.9982−1.38690.16590.9957−1.12670.26020.9985−1.50570.13250.9978
ITL/USD−1.48850.1370.9972−1.75420.07970.9959−1.25540.20960.9977−1.77420.0763 *0.9977
JPY/USD1.48670.13741.0011.87330.06131.00021.39460.16340.99882.73580.0063 ***1.0027
SEK/USD2.23960.0253 **1.00393.1860.0015 **1.00791.89330.0586 *0.99951.75690.0792 *1.0001
For every currency pair, a separate MLP model is estimated to regress exchange rate differentials on every set of fundamentals from the PPP, UIP and the MM theories as well as the combined AF approach. Out-of-sample Diebold–Mariano statistics (DM) and p-values are calculated for differences in RMSE between the estimated models and the random walk benchmark. Statistical significance is marked by *, ** or *** for the 10, 5, or 1 percentage level, respectively. The data range from March 1973 to December 2014. A Theil ratio above one indicates that the OOS RMSE of the XGBoost model is smaller than the one of the random walk.
Table 3. One-month-ahead forecasting of exchange rate direction with fundamentals using XGBoost.
Table 3. One-month-ahead forecasting of exchange rate direction with fundamentals using XGBoost.
XGBoost—Classification—With Time Dummies
All fundamentalsMM fundamentalsPPP fundamentalsUIP fundamentals
Currency pairDMp-valueCEDMp-valueCEDMp-valueCEDMp-valueCE
PTE/USD−2.46820.0139 **0.4497−1.55840.11970.4681−1.55840.11970.4681−1.14720.25170.4765
AUD/USD−0.64060.52190.4897−1.28210.20010.4795−1.28210.20010.4795−0.25620.79780.4959
CAN/USD−0.64060.52190.4897−1.28210.20010.4795−1.28210.20010.4795−0.25620.79780.4959
CHF/USD−0.64060.52190.4897−1.28210.20010.4795−1.28210.20010.4795−0.25620.79780.4959
DEM/USD−1.22930.21920.4801−1.09980.27170.4822−1.48870.13690.4759−1.09980.27170.4822
DNK/USD−1.26570.2060.4789−0.93220.35150.4845−1.33240.18310.4778−0.99890.31810.4834
FRF/USD−0.69150.48940.488−0.62230.53390.4892−0.82990.40680.4856−1.17620.23990.4797
ITL/USD−1.22930.21920.4801−1.09980.27170.4822−1.48870.13690.4759−1.09980.27170.4822
JPY/USD−0.64060.52190.4897−1.28210.20010.4795−1.28210.20010.4795−0.25620.79780.4959
SEK/USD−0.64060.52190.4897−1.28210.20010.4795−1.28210.20010.4795−0.25620.79780.4959
XGBoost—Classification- No Time Dummies
All fundamentalsMM fundamentalsPPP fundamentalsUIP fundamentals
Currency pairDMp-valueCEDMp-valueCEDMp-valueCEDMp-valueCE
PTE/USD−0.08190.93480.4983−3.9810.0001 ***0.4195−3.9810.0001 ***0.4195−0.7370.46140.4849
AUD/USD−0.25620.79780.49590.19220.84770.5031−0.32030.74880.4949−1.41060.15870.4774
CAN/USD−0.25620.79780.49590.19220.84770.5031−0.32030.74880.4949−1.41060.15870.4774
CHF/USD−0.25620.79780.49590.19220.84770.5031−0.32030.74880.4949−1.41060.15870.4774
DEM/USD−1.48870.13690.4759−1.42380.15480.477−1.42380.15480.477−0.32330.74660.4948
DNK/USD−0.59910.54920.490.13310.89410.5022−1.06560.28690.4823−0.73230.46420.4878
FRF/USD−1.17620.23990.4797−1.940.0527 *0.4665−1.940.0527 *0.46650.69150.48940.512
ITL/USD−1.48870.13690.4759−1.42380.15480.477−1.42380.15480.477−0.32330.74660.4948
JPY/USD−0.25620.79780.49590.19220.84770.5031−0.32030.74880.4949−1.41060.15870.4774
SEK/USD−0.25620.79780.49590.19220.84770.5031−0.32030.74880.4949−1.41060.15870.4774
For every currency pair, a separate XGBoost model is estimated to forecast exchange rate movement direction for every set of fundamentals from the PPP, UIP and the MM theories as well as the combined AF approach. Out-of-sample Diebold–Mariano statistics and p-values are calculated for differences in classification error rate (CE) between the estimated models and the random walk benchmark. Statistical significance is marked by *, ** or *** for the 10, 5, or 1 percentage level, respectively. The data range from March 1973 to December 2014. A CE below 0.5 indicates that the estimated model outperforms the random walk benchmark.
Table 4. One-month-ahead forecasting of exchange rate direction with fundamentals using ANN.
Table 4. One-month-ahead forecasting of exchange rate direction with fundamentals using ANN.
ANN—Classification—With Time Dummies
All fundamentalsMM fundamentalsPPP fundamentalsUIP fundamentals
Currency pairDMp-valueCEDMp-valueCEDMp-valueCEDMp-valueCE
PTE/USD−1.80570.0715 *0.4631−0.8190.41310.4832−1.31160.19020.4732−2.71790.0068 ***0.4446
AUD/USD−3.02450.0026 ***0.4517−3.08950.0021 ***0.4507−2.82980.0048 ***0.4548−3.15450.0017 ***0.4497
CAN/USD−4.59680.0000 ***0.4271−4.46460.0000 ***0.4292−3.34980.0008 ***0.4466−3.28470.0011 ***0.4476
CHF/USD−4.06940.0001 ***0.4353−3.93810.0001 ***0.4374−2.05410.0402 **0.4671−3.15450.0017 ***0.4497
DEM/USD0.12930.89710.5021−1.16450.24450.4812−1.16450.24450.4812−0.38790.69820.4937
DNK/USD−3.68810.0002 ***0.439−3.82430.0001 ***0.4368−2.53810.0113 **0.4579−3.21290.0014 ***0.4468
FRF/USD−1.10690.26870.48090.62230.53390.51080.41480.67840.5072−0.27650.78220.4952
ITL/USD0.06470.94850.5010.1940.84630.50310.06470.94850.501−1.22930.21920.4801
JPY/USD−4.53060.0000 ***0.4281−3.21960.0013 ***0.4487−3.93810.0001 ***0.4374−4.13510.0000 ***0.4343
SEK/USD−1.79640.0727 *0.4713−3.08950.0021 ***0.4507−3.21960.0013 ***0.4487−2.70020.007 ***0.4569
ANN—Classification—No Time Dummies
All fundamentalsMM fundamentalsPPP fundamentalsUIP fundamentals
Currency pairDMp-valueCEDMp-valueCEDMp-valueCEDMp-valueCE
PTE/USD0.65510.51270.51340.16370.870.50340.08190.93480.50170.57310.56680.5117
AUD/USD1.98960.0469 **0.53181.98960.0469 **0.53181.34630.17850.52162.18310.0293 **0.5349
CAN/USD1.66770.0957 *0.52671.7320.0836 *0.52771.7320.0836 *0.52772.31220.021 **0.537
CHF/USD1.7320.0836 *0.52771.60340.10920.52572.31220.021 **0.5372.31220.021 **0.537
DEM/USD0.0000 ***1.00.50−0.64660.5180.4895−0.64660.5180.4895−0.06470.94850.499
DNK/USD1.59960.110.52661.73330.0834 *0.52882.40370.0164 **0.53992.8750.0041 ***0.5477
FRF/USD−0.34570.72970.494−1.59240.11170.4725−0.13830.89010.4976−0.27650.78220.4952
ITL/USD−0.06470.94850.499−1.68340.0926 *0.4728−0.12930.89710.4979−0.06470.94850.499
JPY/USD1.7320.0836 *0.52771.86080.0631 *0.52982.31220.021 **0.5371.92520.0545 *0.5308
SEK/USD1.98960.0469 **0.53181.7320.0836 *0.52772.11860.0344 **0.53391.98960.0469 **0.5318
For every currency pair, a separate MLP model is estimated to forecast exchange rate movement direction for every set of fundamentals from the PPP, UIP and the MM theories as well as the combined AF approach. Out-of-sample Diebold–Mariano statistics and p-values are calculated for differences in classification error rate (CE) between the estimated models and the random walk benchmark. Statistical significance is marked by *, ** or *** for the 10, 5, or 1 percentage level, respectively. The data range from March 1973 to December 2014. A CE below 0.5 indicates that the estimated model outperforms the random walk benchmark.
Table 5. One-month-ahead forecasting of exchange rate differentials/direction without fundamentals using ANN/XGBoost.
Table 5. One-month-ahead forecasting of exchange rate differentials/direction without fundamentals using ANN/XGBoost.
XGBoost RegressionXGBoost Classification
Currency pairDMp-valueTheil RatioDMp-valueCE
PTE/USD−0.6640.50690.9939−2.46820.0139 **0.5503
AUD/USD0.51550.60631.0032−1.02540.30540.5164
CAN/USD0.51550.60631.0032−1.02540.30540.5164
CHF/USD0.51550.60631.0032−1.02540.30540.5164
DEM/USD1.19510.23231.0062−1.09980.27170.5178
DNK/USD0.94250.34621.006−1.73330.0834 *0.5288
FRF/USD1.49990.1341.0099−1.17620.23990.5203
ITL/USD1.19510.23231.0062−1.09980.27170.5178
JPY/USD0.51550.60631.0032−1.02540.30540.5164
SEK/USD0.51550.60631.0032−1.02540.30540.5164
ANN RegressionANN Classification
Currency pairDMp-valueTheil RatioDMp-valueCE
PTE/USD1.65330.0988 *1.03650.00001.00000.5000
AUD/USD0.72420.46911.0174−3.54550.0004 ***0.4435
CAN/USD0.21730.8281.0104−2.18310.0293 **0.4651
CHF/USD0.88950.37391.0139−3.21960.0013 **0.4487
DEM/USD4.08280.0000 ***1.03020.00001.00000.5000
DNK/USD1.25170.2111.0219−2.40370.0164 **0.4601
FRF/USD5.2340.0000 ***1.07340.06910.94490.5012
ITL/USD4.34490.0000 ***1.0398−0.12930.89710.4979
JPY/USD−0.47380.63571.0067−3.4150.0007 ***0.4456
SEK/USD−0.31020.75651.0019−3.74160.0002 ***0.4405
For every currency pair, a separate XGBoost ANN model is estimated to forecast exchange rate differentials, movement directions, only using time dummies as features. Out-of-sample Diebold–Mariano statistics and p-values are calculated for differences in RMSE/CE between the estimated models and the random walk benchmark. Statistical significance is marked by *, ** or *** for the 10, 5, or 1 percentage level, respectively. The data range from March 1973 to December 2014. A classification error rate (CE) below 0.5, a Theil ration below one, indicates that the estimated model outperforms the random walk benchmark.
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Pfahler, J.F. Exchange Rate Forecasting with Advanced Machine Learning Methods. J. Risk Financial Manag. 2022, 15, 2. https://doi.org/10.3390/jrfm15010002

AMA Style

Pfahler JF. Exchange Rate Forecasting with Advanced Machine Learning Methods. Journal of Risk and Financial Management. 2022; 15(1):2. https://doi.org/10.3390/jrfm15010002

Chicago/Turabian Style

Pfahler, Jonathan Felix. 2022. "Exchange Rate Forecasting with Advanced Machine Learning Methods" Journal of Risk and Financial Management 15, no. 1: 2. https://doi.org/10.3390/jrfm15010002

Article Metrics

Back to TopTop