IDEAS home Printed from https://ideas.repec.org/a/eee/chsofr/v175y2023ip2s0960077923009803.html
   My bibliography  Save this article

Forecasting gold price using machine learning methodologies

Author

Listed:
  • Cohen, Gil
  • Aiche, Avishay

Abstract

This study investigates the potential of advanced Machine Learning (ML) methodologies to predict fluctuations in the price of gold. The study employs data from leading global stock indices, the S&P500 VIX volatility index, major commodity futures, and 10-year bond yields from the US, Germany, France, and Japan. Lagged values of these features up to 10 previous days are also used. Four machine learning models are used: Random Forest, Gradient Boosted Regression Trees (GBRT), and Extreme Gradient Boosting (XGBoost), to forecast future gold prices. The study finds that the most influential stocks indices for prediction are one-day lagged data of ASX, S&P500, TA35, IBEX, and AEX, as well as U.S. and Japan bonds yields and delayed data of gas and silver. Furthermore, the study's models identify that one-day lagged VIX score and our VIX dummy variable have a significant impact on gold price, indicating that economic uncertainty affects gold prices. The results suggest that incorporating various financial indicators and moving averages can be a powerful tool for predicting future gold prices. GBRT and XGBoost can be valuable models for making informed decisions about gold investments.

Suggested Citation

  • Cohen, Gil & Aiche, Avishay, 2023. "Forecasting gold price using machine learning methodologies," Chaos, Solitons & Fractals, Elsevier, vol. 175(P2).
  • Handle: RePEc:eee:chsofr:v:175:y:2023:i:p2:s0960077923009803
    DOI: 10.1016/j.chaos.2023.114079
    as

    Download full text from publisher

    File URL: http://www.sciencedirect.com/science/article/pii/S0960077923009803
    Download Restriction: Full text for ScienceDirect subscribers only

    File URL: https://libkey.io/10.1016/j.chaos.2023.114079?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    References listed on IDEAS

    as
    1. Elsayed, Ahmed H. & Gozgor, Giray & Yarovaya, Larisa, 2022. "Volatility and return connectedness of cryptocurrency, gold, and uncertainty: Evidence from the cryptocurrency uncertainty indices," Finance Research Letters, Elsevier, vol. 47(PB).
    2. Syed Jawad Hussain Shahzad & Elie Bouri & Mobeen Ur Rehman & David Roubaud, 2022. "The hedge asset for BRICS stock markets: Bitcoin, gold or VIX," The World Economy, Wiley Blackwell, vol. 45(1), pages 292-316, January.
    3. Adekoya, Oluwasegun B. & Oliyide, Johnson A. & Olubiyi, Ebenezer A. & Adedeji, Adedayo O., 2023. "The inflation-hedging performance of industrial metals in the world's most industrialized countries," Resources Policy, Elsevier, vol. 81(C).
    4. Yu, Baojun & Li, Changming & Mirza, Nawazish & Umar, Muhammad, 2022. "Forecasting credit ratings of decarbonized firms: Comparative assessment of machine learning models," Technological Forecasting and Social Change, Elsevier, vol. 174(C).
    5. Qadan, Mahmoud, 2019. "Risk appetite and the prices of precious metals," Resources Policy, Elsevier, vol. 62(C), pages 136-153.
    6. Ghosh, Pushpendu & Neufeld, Ariel & Sahoo, Jajati Keshari, 2022. "Forecasting directional movements of stock prices for intraday trading using LSTM and random forests," Finance Research Letters, Elsevier, vol. 46(PA).
    7. Akhtaruzzaman, Md & Boubaker, Sabri & Lucey, Brian M. & Sensoy, Ahmet, 2021. "Is gold a hedge or a safe-haven asset in the COVID–19 crisis?," Economic Modelling, Elsevier, vol. 102(C).
    8. Rehman, Mobeen Ur & Shahzad, Syed Jawad Hussain & Uddin, Gazi Salah & Hedström, Axel, 2018. "Precious metal returns and oil shocks: A time varying connectedness approach," Resources Policy, Elsevier, vol. 58(C), pages 77-89.
    9. Zhang, Pinyi & Ci, Bicong, 2020. "Deep belief network for gold price forecasting," Resources Policy, Elsevier, vol. 69(C).
    10. Zheng, Yao, 2015. "The linkage between aggregate investor sentiment and metal futures returns: A nonlinear approach," The Quarterly Review of Economics and Finance, Elsevier, vol. 58(C), pages 128-142.
    11. E, Jianwei & Ye, Jimin & Jin, Haihong, 2019. "A novel hybrid model on the prediction of time series and its application for the gold price analysis and forecasting," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 527(C).
    12. Bosch, David & Pradkhan, Elina, 2015. "The impact of speculation on precious metals futures markets," Resources Policy, Elsevier, vol. 44(C), pages 118-134.
    13. Plakandaras, Vasilios & Ji, Qiang, 2022. "Intrinsic decompositions in gold forecasting," Journal of Commodity Markets, Elsevier, vol. 28(C).
    14. Wang, Kuan-Min & Lee, Yuan-Ming, 2022. "Is gold a safe haven for exchange rate risks? An empirical study of major currency countries," Journal of Multinational Financial Management, Elsevier, vol. 63(C).
    15. Erdinc Akyildirim & Ahmet Goncu & Ahmet Sensoy, 2021. "Prediction of cryptocurrency returns using machine learning," Annals of Operations Research, Springer, vol. 297(1), pages 3-36, February.
    16. Svetlana Borovkova & Ioannis Tsiamas, 2019. "An ensemble of LSTM neural networks for high‐frequency stock market classification," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 38(6), pages 600-619, September.
    17. Carmona, Pedro & Climent, Francisco & Momparler, Alexandre, 2019. "Predicting failure in the U.S. banking sector: An extreme gradient boosting approach," International Review of Economics & Finance, Elsevier, vol. 61(C), pages 304-323.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Gil Cohen, 2022. "Algorithmic Strategies for Precious Metals Price Forecasting," Mathematics, MDPI, vol. 10(7), pages 1-12, April.
    2. Gil, Cohen, 2022. "Intraday Trading of Precious Metals Futures Using Algorithmic Systems," Chaos, Solitons & Fractals, Elsevier, vol. 154(C).
    3. Talbi, Marwa & de Peretti, Christian & Belkacem, Lotfi, 2020. "Dynamics and causality in distribution between spot and future precious metals: A copula approach," Resources Policy, Elsevier, vol. 66(C).
    4. Liu, Qing & Liu, Min & Zhou, Hanlu & Yan, Feng, 2022. "A multi-model fusion based non-ferrous metal price forecasting," Resources Policy, Elsevier, vol. 77(C).
    5. Talbi, Marwa & Bedoui, Rihab & de Peretti, Christian & Belkacem, Lotfi, 2021. "Is the role of precious metals as precious as they are? A vine copula and BiVaR approaches," Resources Policy, Elsevier, vol. 73(C).
    6. Ali, Fahad & Bouri, Elie & Naifar, Nader & Shahzad, Syed Jawad Hussain & AlAhmad, Mohammad, 2022. "An examination of whether gold-backed Islamic cryptocurrencies are safe havens for international Islamic equity markets," Research in International Business and Finance, Elsevier, vol. 63(C).
    7. Cheng, Sheng & Zhang, Zongyou & Cao, Yan, 2022. "Can precious metals hedge geopolitical risk? Fresh sight using wavelet coherence analysis," Resources Policy, Elsevier, vol. 79(C).
    8. Carvajal-Patiño, Daniel & Ramos-Pollán, Raul, 2022. "Synthetic data generation with deep generative models to enhance predictive tasks in trading strategies," Research in International Business and Finance, Elsevier, vol. 62(C).
    9. Khalfaoui, Rabeh & Tiwari, Aviral Kumar & Kablan, Sandrine & Hammoudeh, Shawkat, 2021. "Interdependence and lead-lag relationships between the oil price and metal markets: Fresh insights from the wavelet and quantile coherency approaches," Energy Economics, Elsevier, vol. 101(C).
    10. Soni, Rajat Kumar & Nandan, Tanuj, 2022. "Modeling Covid-19 contagious effect between asset markets and commodity futures in India," Resources Policy, Elsevier, vol. 79(C).
    11. Mustafa Tevfik Kartal & Mustafa Kevser & Fatih Ayhan, 2023. "Asymmetric effects of global factors on return of cryptocurrencies by novel nonlinear quantile approaches," Economic Change and Restructuring, Springer, vol. 56(3), pages 1515-1535, June.
    12. Hoque, Mohammad Enamul & Soo-Wah, Low & Tiwari, Aviral Kumar & Akhter, Tahmina, 2023. "Time and frequency domain connectedness and spillover among categorical and regional financial stress, gold and bitcoin market," Resources Policy, Elsevier, vol. 85(PA).
    13. Das, Sudeepa & Sahu, Tirath Prasad & Janghel, Rekh Ram, 2022. "Oil and gold price prediction using optimized fuzzy inference system based extreme learning machine," Resources Policy, Elsevier, vol. 79(C).
    14. Inzamam Ul Haq, 2023. "Time‐frequency comovement among green financial assets and cryptocurrency uncertainties," Economic Notes, Banca Monte dei Paschi di Siena SpA, vol. 52(1), February.
    15. Boubaker, Sabri & Goodell, John W. & Kumar, Satish & Sureka, Riya, 2023. "COVID-19 and finance scholarship: A systematic and bibliometric analysis," International Review of Financial Analysis, Elsevier, vol. 85(C).
    16. Banerjee, Ameet Kumar & Akhtaruzzaman, Md & Dionisio, Andreia & Almeida, Dora & Sensoy, Ahmet, 2022. "Nonlinear nexus between cryptocurrency returns and COVID-19 news sentiment," Journal of Behavioral and Experimental Finance, Elsevier, vol. 36(C).
    17. Ioannis E. Tsolas, 2020. "Precious Metal Mutual Fund Performance Evaluation: A Series Two-Stage DEA Modeling Approach," JRFM, MDPI, vol. 13(5), pages 1-13, April.
    18. Das, Debojyoti & Bhatia, Vaneet & Kumar, Surya Bhushan & Basu, Sankarshan, 2022. "Do precious metals hedge crude oil volatility jumps?," International Review of Financial Analysis, Elsevier, vol. 83(C).
    19. Dante Miller & Jong-Min Kim, 2021. "Univariate and Multivariate Machine Learning Forecasting Models on the Price Returns of Cryptocurrencies," JRFM, MDPI, vol. 14(10), pages 1-10, October.
    20. Praveen Puram & Soumya Roy & Deepak Srivastav & Anand Gurumurthy, 2023. "Understanding the effect of contextual factors and decision making on team performance in Twenty20 cricket: an interpretable machine learning approach," Annals of Operations Research, Springer, vol. 325(1), pages 261-288, June.

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:eee:chsofr:v:175:y:2023:i:p2:s0960077923009803. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Thayer, Thomas R. (email available below). General contact details of provider: https://www.journals.elsevier.com/chaos-solitons-and-fractals .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.