Combining wavelet decomposition with machine learning to forecast gold returns

This paper combines the discrete wavelet transform with support vector regression for forecasting gold-price dynamics. The advantages of this approach are investigated using a relatively small set of economic and financial predictors. I measure model performance by differentiating between a statistically-motivated out-of-sample forecasting exercise and an economically-motivated trading strategy. Disentangling the predictors with respect to their time and frequency domains leads to improved forecasting performance. The results are robust compared to alternative forecasting approaches. My findings on the relative importances of such wavelet decompositions suggest that the influences of short-term and long-term trends are not stable over the full evaluation period.

[1]  A. Haar Zur Theorie der orthogonalen Funktionensysteme , 1910 .

[2]  Adrian E Raftery,et al.  Dynamic Model Averaging in Large Model Spaces Using Dynamic Occam's Window. , 2014, European economic review.

[3]  António Rua,et al.  A wavelet approach for factor‐augmented forecasting , 2011 .

[4]  António Rua,et al.  International comovement of stock market returns: a wavelet analysis , 2009 .

[5]  Gary Koop,et al.  Forecasting in Dynamic Factor Models Using Bayesian Model Averaging , 2004 .

[6]  J. Stock,et al.  Macroeconomic Forecasting Using Diffusion Indexes , 2002 .

[7]  T. Berger,et al.  Forecasting Based on Decomposed Financial Return Series: A Wavelet Analysis , 2016 .

[8]  Maria Joana Soares,et al.  Business Cycle Synchronization and the Euro: a Wavelet Analysis ∗ , 2011 .

[9]  J. Fortune,et al.  The inflation rate of the price of gold, expected prices and interest rates , 1987 .

[10]  J. Bai,et al.  Forecasting economic time series using targeted predictors , 2008 .

[11]  Marcelo C. Medeiros,et al.  Forecasting macroeconomic variables in data-rich environments , 2016 .

[12]  Adrian E. Raftery,et al.  Prediction under Model Uncertainty Via Dynamic Model Averaging : Application to a Cold Rolling Mill 1 , 2008 .

[13]  J. Beckmann,et al.  Gold price dynamics and the role of uncertainty , 2018, Quantitative Finance.

[14]  Antonis Alexandridis,et al.  A comparison of wavelet networks and genetic programming in the context of temperature derivatives , 2017 .

[15]  Serena Ng,et al.  Working Paper Series , 2019 .

[16]  Gonçalo Faria,et al.  Forecasting Stock Market Returns by Summing the Frequency-Decomposed Parts , 2016, SSRN Electronic Journal.

[17]  Allan Timmermann,et al.  Complete subset regressions , 2013 .

[18]  James B. Ramsey,et al.  Wavelets in Economics and Finance: Past and Future , 2002 .

[19]  Terence C. Mills,et al.  Gold as a hedge against the dollar , 2005 .

[20]  Robert H. Kewley,et al.  Data strip mining for the virtual design of pharmaceuticals with neural networks , 2000, IEEE Trans. Neural Networks Learn. Syst..

[21]  F. Ziegelmann,et al.  LASSO‐Type Penalties for Covariate Selection and Forecasting in Time Series , 2016 .

[22]  The Economic Value of Predicting Stock Index Returns and Volatility , 2004, Journal of Financial and Quantitative Analysis.

[23]  R. Tibshirani,et al.  REJOINDER TO "LEAST ANGLE REGRESSION" BY EFRON ET AL. , 2004, math/0406474.

[24]  António Rua,et al.  A wavelet-based multivariate multiscale approach for forecasting , 2017 .

[25]  Guofu Zhou,et al.  Short Interest and Aggregate Stock Returns , 2016 .

[26]  Richard Roll,et al.  Gold and the Dollar (and the Euro, Pound, and Yen) , 2011 .

[27]  Patrick M. Crowley,et al.  A Guide to Wavelets for Economists , 2007 .

[28]  Christian Pierdzioch,et al.  On the efficiency of the gold market: Results of a real-time forecasting approach , 2014 .

[29]  Stephen A. Ross,et al.  A Test of the Efficiency of a Given Portfolio , 1989 .

[30]  Dirk G. Baur,et al.  A melting pot — Gold price forecasts under model and parameter uncertainty , 2016 .

[31]  Charlotte Christiansen,et al.  Macro-Finance Determinants of the Long-Run Stock-Bond Correlation: The DCC-MIDAS Specification , 2015 .

[32]  Marcelo C. Medeiros,et al.  Real-time inflation forecasting with high-dimensional models: The case of Brazil , 2017 .

[33]  Christian Pierdzioch,et al.  A Quantile-Boosting Approach to Forecasting Gold Returns , 2015 .

[34]  Heung Wong,et al.  Modelling and forecasting by wavelets, and the application to exchange rates , 2003 .

[35]  Christian Pierdzioch,et al.  Predicting Recessions With Boosted Regression Trees , 2017 .

[36]  S. B. Thompson,et al.  Predicting Excess Stock Returns Out of Sample: Can Anything Beat the Historical Average? , 2008 .

[37]  Gonçalo Faria,et al.  Forecasting the Equity Risk Premium with Frequency-Decomposed Predictors , 2017, SSRN Electronic Journal.

[38]  Bernhard Schölkopf,et al.  A tutorial on support vector regression , 2004, Stat. Comput..

[39]  Su Zhou,et al.  Gold and commodity prices as leading indicators of inflation: Tests of long-run relationship and predictive performance , 1997 .

[40]  Yunqian Ma,et al.  Practical selection of SVM parameters and noise estimation for SVM regression , 2004, Neural Networks.

[41]  Doron Avramov,et al.  Stock Return Predictability and Model Uncertainty , 2002 .

[42]  J. Contreras,et al.  Forecasting electricity prices for a day-ahead pool-based electric energy market , 2005 .

[43]  Kurt Hornik,et al.  kernlab - An S4 Package for Kernel Methods in R , 2004 .

[44]  Juan C. Reboredo,et al.  Is gold a safe haven or a hedge for the US dollar? Implications for risk management , 2013 .

[45]  Christian Pierdzioch,et al.  A boosting approach to forecasting gold and silver returns: economic and statistical forecast evaluation , 2016 .

[46]  Won Joong Kim,et al.  Forecasting the price of gold using dynamic model averaging , 2015 .

[47]  C. De Mol,et al.  Forecasting Using a Large Number of Predictors: Is Bayesian Regression a Valid Alternative to Principal Components? , 2006, SSRN Electronic Journal.

[48]  Allan Timmermann,et al.  Complete subset regressions with large-dimensional sets of predictors , 2015 .

[49]  L. Blose,et al.  Gold prices, cost of carry, and expected inflation , 2010 .

[50]  Nikolay Robinzonov,et al.  Stock market volatility: Identifying major drivers and the nature of their impact , 2015 .

[51]  Gordon Leitch,et al.  Economic Forecast Evaluation: Profits versus the Conventional Error Measures , 1991 .

[52]  Stéphane Mallat,et al.  A Theory for Multiresolution Signal Decomposition: The Wavelet Representation , 1989, IEEE Trans. Pattern Anal. Mach. Intell..

[53]  Marco Lippi,et al.  The Generalized Dynamic Factor Model , 2002 .

[54]  Theo Berger,et al.  Does gold act as a hedge or a safe haven for stocks? A smooth transition approach , 2015 .

[55]  Guofu Zhou,et al.  Out-of-Sample Equity Premium Prediction: Combination Forecasts and Links to the Real Economy , 2009 .

[56]  Maria Joana Soares,et al.  Oil and the macroeconomy: using wavelets to analyze old issues , 2011 .

[57]  Guofu Zhou,et al.  Forecasting the Equity Risk Premium: The Role of Technical Indicators , 2011, Manag. Sci..

[58]  Thoranin Sujjaviriyasup,et al.  A new class of MODWT-SVM-DE hybrid model emphasizing on simplification structure in data pre-processing: A case study of annual electricity consumptions , 2017, Appl. Soft Comput..

[59]  Massimiliano Marcellino,et al.  Forecasting economic activity with targeted predictors , 2015 .

[60]  B. Lucey,et al.  The Financial Economics of Gold – A Survey , 2015 .

[61]  Gaël Varoquaux,et al.  Scikit-learn: Machine Learning in Python , 2011, J. Mach. Learn. Res..

[62]  Vladimir N. Vapnik,et al.  The Nature of Statistical Learning Theory , 2000, Statistics for Engineering and Information Science.

[63]  I. Welch,et al.  A Comprehensive Look at the Empirical Performance of Equity Premium Prediction II , 2004, SSRN Electronic Journal.

[64]  Gold as an Infl ation Hedge in a Time-Varying Coefficient Framework , 2012 .

[65]  G. Koop,et al.  A New Index of Financial Conditions , 2013 .

[66]  Ammar Belatreche,et al.  Forecasting price movements using technical indicators: Investigating the impact of varying input window length , 2017, Neurocomputing.

[67]  Jonathan A. Batten,et al.  On the Economic Determinants of the Gold-Inflation Relation , 2014 .

[68]  J. Stock,et al.  Forecasting Using Principal Components From a Large Number of Predictors , 2002 .

[69]  Marco Gallegati,et al.  A wavelet-based approach to test for financial market contagion , 2012, Comput. Stat. Data Anal..

[70]  M. Kern,et al.  Forecasting house-price growth in the Euro area with dynamic model averaging , 2016 .

[71]  Paulo Cortez,et al.  Using sensitivity analysis and visualization techniques to open black box data mining models , 2013, Inf. Sci..

[72]  A. Walden,et al.  Wavelet Methods for Time Series Analysis , 2000 .

[73]  G. Koop,et al.  Forecasting In ation Using Dynamic Model Averaging , 2009 .

[74]  Fionn Murtagh,et al.  On neuro-wavelet modeling , 2004, Decis. Support Syst..

[75]  R. Tibshirani Regression Shrinkage and Selection via the Lasso , 1996 .

[76]  D. Baur,et al.  Institute for International Integration Studies Is Gold a Safe Haven? International Evidence Is Gold a Safe Haven? International Evidence Is Gold a Safe Haven? International Evidence , 2022 .

[77]  B. Lucey,et al.  Institute for International Integration Studies Is Gold a Hedge or a Safe Haven? an Analysis of Stocks, Bonds and Gold Is Gold a Hedge or a Safe Haven? an Analysis of Stocks, Bonds and Gold , 2022 .

[78]  Jan Prüser,et al.  Adaptive learning from model space , 2018, Journal of Forecasting.

[79]  M. Risse,et al.  Using dynamic model averaging in state space representation with dynamic Occam’s window and applications to the stock and gold market , 2017 .

[80]  Youngmin Seo,et al.  River Stage Modeling by Combining Maximal Overlap Discrete Wavelet Transform, Support Vector Machines and Genetic Algorithm , 2017 .

[81]  Todd E. Clark,et al.  Approximately Normal Tests for Equal Predictive Accuracy in Nested Models , 2005 .