Abstract
We use multivariate random forests to compute out-of-sample forecasts of a vector of returns of four precious metal prices (gold, silver, platinum, and palladium). We compare the multivariate forecasts with univariate out-of-sample forecasts implied by random forests independently fitted to every single return series. Using univariate and multivariate forecast evaluation criteria, we show that multivariate forecasts are more accurate than univariate forecasts.
Similar content being viewed by others
Notes
For a numerical example that illustrates how the Mahalanobis distance is used to build a multivariate regression tree, see Behrens et al. (2018).
The data are from Datastream (metal prices) and the FRED board of the Fed of St. Louis (predictors).
The Giacomini and White (2008) test of out-of-sample predictive ability gives similar results (not reported, but available upon request).
Results (not reported) of the Diebold–Mariano test show that multivariate random forests perform significantly better than the VAR models.
References
Agyei-Ampomah S, Gounopoulos D, Mazouz K (2014) Does gold offer a better protection against losses in sovereign debt bonds than other metals? J Bank Finance 50:507–521
Aye GC, Gupta R, Hammoudeh S, Kim WJ (2015) Forecasting the price of gold using dynamic model averaging. Int Rev Financ Anal 41:257–266
Balcilar M, Gupta R, Pierdzioch C (2017) On exchange-rate movements and gold-price fluctuations: evidence for gold-producing countries from a nonparametric causality-in-quantiles test. Int Econ Econ Policy 14:691–700
Batten JA, Ciner C, Lucey BM (2010) The macroeconomic determinants of volatility in precious metals markets. Resour Policy 35:65–71
Batten JA, Ciner C, Lucey BM (2015) Which precious metals spill over on which, when and why? Some evidence. Appl Econ Lett 22:466–473
Baur DG, McDermott K (2010) Is gold a safe haven? International evidence. J Bank Finance 34:1886–1898
Baur DG, Lucey BM (2010) Is gold a hedge or a safe haven? An analysis of stocks, bonds and gold. Financ Rev 45:217–229
Baur DG, Tran D (2014) The long-run relationship of gold and silver and the influence of bubbles and financial crises. Empir Econ 47:1525–1541
Beckmann J, Czudaj R (2013) Oil and gold price dynamics in a multivariate cointegration framework. Int Econ Econ Policy 10:453–468
Beckmann J, Berger T, Czudaj R (2015) Does gold act as a hedge or a safe haven for stocks? A smooth transition approach. Econ Model 48:16–24
Behrens C, Pierdzioch C, Risse M (2018) A test of the joint efficiency of macroeconomic forecasts using multivariate random forests. J Forecast 37:560–572
Breiman L (1996) Bagging predictors. Mach Learn 24:123–140
Breiman L (2001) Random forests. Mach Learn 45:5–32
Breiman L, Friedman JH, Oshen R, Stone C (1983) Classification and regression trees. Chapman & Hall, New York
De’ath G (2002) Multivariate regression trees: a new technique for modeling species-environment relationships. Ecology 83:1105–1117
Diebold FX, Mariano RS (1995) Comparing predictive accuracy. J Bus Econ Stat 13:253–263
Erb CB, Harvey CR (2006) The strategic and tactical value of commodity futures. Financ Anal J 62:69–97
Giacomini R, White H (2008) Tests of conditional predictive ability. Econometrica 74:1545–1578
Gupta R, Majumdar A, Pierdzioch C, Wohar ME (2017) Do terror attacks predict gold returns? Evidence from a quantile-predictive-regression approach. Q Rev Econ Finance 65:276–284
Hastie T, Tibshirani R, Friedman J (2009) The elements of statistical learning. Data mining, inference, and prediction. Springer, New York
Hammoudeh SM, Yuan Y, McAleer M, Thompson MA (2010) Precious metals-exchange rate volatility transmissions and hedging strategies. Int Rev Econ Finance 19:633–647
Kucher O, McCoskey S (2017) The long-run relationship between precious metal prices and the business cycle. Q Rev Econ Finance 65:263–275
Lucey BM, Sile L (2015) What precious metals act as safe havens, and when? Some US evidence. Appl Econ Lett 22:35–45
Malliaris AG, Malliaris M (2015) What drives gold returns? A decision tree analysis. Finance Res Lett 13:45–53
McLachlan GJ (1999) Mahalanobis distance. Resonance 4:20–26
Manasse P, Roubini N (2009) “Rules of thumb” for sovereign debt crises. J Int Econ 78:192–205
Pierdzioch C, Risse M, Rohloff S (2014) On the efficiency of the gold market: results of a real-time forecasting approach. Int Rev Financ Anal 32:95–108
Pierdzioch C, Risse M, Rohloff S (2015) Cointegration of the prices of gold and silver: RALS-based evidence. Finance Res Lett 15:133–137
Pierdzioch C, Risse M, Rohloff S (2016a) Fluctuations of the real exchange rate, real interest rates, and the dynamics of the price of gold in a small open economy. Empir Econ 51:1481–1499
Pierdzioch C, Risse M, Rohloff S (2016b) Are precious metals a hedge against exchange-rate movements? An empirical exploration using Bayesian additive regression trees. North Am J Econ Finance 38:27–38
Pierdzioch C, Risse M, Rohloff S (2016c) A quantile-boosting approach to forecasting gold returns. North Am J Econ Finance 35:38–55
Pukthuanthong K, Roll R (2011) Gold and the dollar (and the euro, pound, and yen). J Bank Finance 35:2070–2083
Rahman R (2017) MultivariateRandomForest: models multivariate cases using random forests, https://CRAN.R-project.org/package=MultivariateRandomForest. R package version 1.1.5
R Core Team (2017) R: a language and environment for statistical computing. Vienna, Austria: R Foundation for Statistical Computing. http://www.R-project.org/. R version 3.3.3
Reboredo JC (2013a) Is gold a safe haven or a hedge for the U.S. dollar? Implications for risk management. J Bank Finance 37:2665–2676
Reboredo JC (2013b) Is gold a hedge or safe haven against oil price movements? Resour Policy 38:130–137
Sari R, Hammoudeh S, Soytas U (2010) Dynamics of oil price, precious metal prices, and exchange rate. Energy Econ 32:351–362
Segal MR (1992) Tree-structured methods for longitudinal data. J Am Stat Assoc 87:407–418
Segal M, Xiao Y (2011) Multivariate random forests. Wiley Interdiscip Rev: Data Min Knowl Discov 1:80–87
Sinclair TM, Stekler HO, Carnow W (2015) Evaluating a vector of the Fed’s forecasts. Int J Forecast 31:157–164
Sinclair TM, Stekler HO, Müller-Dröge C (2016) Evaluating forecasts of a vector of variables: a German forecasting competition. J Forecast 35:493–503
Zeng T, Swanson NR (1997) Predictive evaluation of econometric forecasting models in commodity futures markets. Stud Nonlinear Dyn Econ 2:159–177
Acknowledgements
We thank two anonymous reviewers for helpful comments. We also thank the German Science Foundation (Deutsche Forschungsgemeinschaft) for financial support (project Macroeconomic Forecasting in Great Crises; Grant No. FR 2677/4-1). The usual disclaimer applies.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
Pierdzioch, C., Risse, M. Forecasting precious metal returns with multivariate random forests. Empir Econ 58, 1167–1184 (2020). https://doi.org/10.1007/s00181-018-1558-9
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00181-018-1558-9