Skip to main content
Log in

Forecasting precious metal returns with multivariate random forests

  • Published:
Empirical Economics Aims and scope Submit manuscript

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.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6

Similar content being viewed by others

Notes

  1. For a numerical example that illustrates how the Mahalanobis distance is used to build a multivariate regression tree, see Behrens et al. (2018).

  2. The data are from Datastream (metal prices) and the FRED board of the Fed of St. Louis (predictors).

  3. The Giacomini and White (2008) test of out-of-sample predictive ability gives similar results (not reported, but available upon request).

  4. 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

    Article  Google Scholar 

  • 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

    Article  Google Scholar 

  • 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

    Article  Google Scholar 

  • Batten JA, Ciner C, Lucey BM (2010) The macroeconomic determinants of volatility in precious metals markets. Resour Policy 35:65–71

    Article  Google Scholar 

  • 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

    Article  Google Scholar 

  • Baur DG, McDermott K (2010) Is gold a safe haven? International evidence. J Bank Finance 34:1886–1898

    Article  Google Scholar 

  • 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

    Article  Google Scholar 

  • 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

    Article  Google Scholar 

  • Beckmann J, Czudaj R (2013) Oil and gold price dynamics in a multivariate cointegration framework. Int Econ Econ Policy 10:453–468

    Article  Google Scholar 

  • 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

    Article  Google Scholar 

  • 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

    Google Scholar 

  • Breiman L (2001) Random forests. Mach Learn 45:5–32

    Article  Google Scholar 

  • Breiman L, Friedman JH, Oshen R, Stone C (1983) Classification and regression trees. Chapman & Hall, New York

    Google Scholar 

  • De’ath G (2002) Multivariate regression trees: a new technique for modeling species-environment relationships. Ecology 83:1105–1117

    Google Scholar 

  • Diebold FX, Mariano RS (1995) Comparing predictive accuracy. J Bus Econ Stat 13:253–263

    Google Scholar 

  • Erb CB, Harvey CR (2006) The strategic and tactical value of commodity futures. Financ Anal J 62:69–97

    Article  Google Scholar 

  • Giacomini R, White H (2008) Tests of conditional predictive ability. Econometrica 74:1545–1578

    Article  Google Scholar 

  • 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

    Article  Google Scholar 

  • Hastie T, Tibshirani R, Friedman J (2009) The elements of statistical learning. Data mining, inference, and prediction. Springer, New York

    Google Scholar 

  • 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

    Article  Google Scholar 

  • Kucher O, McCoskey S (2017) The long-run relationship between precious metal prices and the business cycle. Q Rev Econ Finance 65:263–275

    Article  Google Scholar 

  • Lucey BM, Sile L (2015) What precious metals act as safe havens, and when? Some US evidence. Appl Econ Lett 22:35–45

    Article  Google Scholar 

  • Malliaris AG, Malliaris M (2015) What drives gold returns? A decision tree analysis. Finance Res Lett 13:45–53

    Article  Google Scholar 

  • McLachlan GJ (1999) Mahalanobis distance. Resonance 4:20–26

    Article  Google Scholar 

  • Manasse P, Roubini N (2009) “Rules of thumb” for sovereign debt crises. J Int Econ 78:192–205

    Article  Google Scholar 

  • 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

    Article  Google Scholar 

  • Pierdzioch C, Risse M, Rohloff S (2015) Cointegration of the prices of gold and silver: RALS-based evidence. Finance Res Lett 15:133–137

    Article  Google Scholar 

  • 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

    Article  Google Scholar 

  • 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

    Article  Google Scholar 

  • Pierdzioch C, Risse M, Rohloff S (2016c) A quantile-boosting approach to forecasting gold returns. North Am J Econ Finance 35:38–55

    Article  Google Scholar 

  • Pukthuanthong K, Roll R (2011) Gold and the dollar (and the euro, pound, and yen). J Bank Finance 35:2070–2083

    Article  Google Scholar 

  • 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

    Article  Google Scholar 

  • Reboredo JC (2013b) Is gold a hedge or safe haven against oil price movements? Resour Policy 38:130–137

    Article  Google Scholar 

  • Sari R, Hammoudeh S, Soytas U (2010) Dynamics of oil price, precious metal prices, and exchange rate. Energy Econ 32:351–362

    Article  Google Scholar 

  • Segal MR (1992) Tree-structured methods for longitudinal data. J Am Stat Assoc 87:407–418

    Article  Google Scholar 

  • Segal M, Xiao Y (2011) Multivariate random forests. Wiley Interdiscip Rev: Data Min Knowl Discov 1:80–87

    Google Scholar 

  • Sinclair TM, Stekler HO, Carnow W (2015) Evaluating a vector of the Fed’s forecasts. Int J Forecast 31:157–164

    Article  Google Scholar 

  • 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

    Article  Google Scholar 

  • Zeng T, Swanson NR (1997) Predictive evaluation of econometric forecasting models in commodity futures markets. Stud Nonlinear Dyn Econ 2:159–177

    Google Scholar 

Download references

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

Authors

Corresponding author

Correspondence to Christian Pierdzioch.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

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

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00181-018-1558-9

Keywords

JEL classification

Navigation