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. 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).
    4. 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).
    5. 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.
    6. Bosch, David & Pradkhan, Elina, 2015. "The impact of speculation on precious metals futures markets," Resources Policy, Elsevier, vol. 44(C), pages 118-134.
    7. 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.
    8. 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.
    9. 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).
    10. 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).
    11. Qadan, Mahmoud, 2019. "Risk appetite and the prices of precious metals," Resources Policy, Elsevier, vol. 62(C), pages 136-153.
    12. Fischer, Thomas & Krauss, Christopher, 2018. "Deep learning with long short-term memory networks for financial market predictions," European Journal of Operational Research, Elsevier, vol. 270(2), pages 654-669.
    13. 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.
    14. Zhang, Pinyi & Ci, Bicong, 2020. "Deep belief network for gold price forecasting," Resources Policy, Elsevier, vol. 69(C).
    15. 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).
    16. Plakandaras, Vasilios & Ji, Qiang, 2022. "Intrinsic decompositions in gold forecasting," Journal of Commodity Markets, Elsevier, vol. 28(C).
    17. 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).
    18. Kang, Sang Hoon & McIver, Ron & Yoon, Seong-Min, 2017. "Dynamic spillover effects among crude oil, precious metal, and agricultural commodity futures markets," Energy Economics, Elsevier, vol. 62(C), pages 19-32.
    19. 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. Gil Cohen, 2024. "Gold, bitcoin and the financial fear gouge," Economics and Business Letters, Oviedo University Press, vol. 13(3), pages 132-140.
    5. Mohammad Zoynul Abedin & Mahmudul Hasan Moon & M. Kabir Hassan & Petr Hajek, 2025. "Deep learning-based exchange rate prediction during the COVID-19 pandemic," Annals of Operations Research, Springer, vol. 345(2), pages 1335-1386, February.
    6. 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).
    7. 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).
    8. 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.
    9. Evrim Mandacı, Pınar & Cagli, Efe Çaglar & Taşkın, Dilvin, 2020. "Dynamic connectedness and portfolio strategies: Energy and metal markets," Resources Policy, Elsevier, vol. 68(C).
    10. 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).
    11. Barua, Ronil & Sharma, Anil K., 2022. "Dynamic Black Litterman portfolios with views derived via CNN-BiLSTM predictions," Finance Research Letters, Elsevier, vol. 49(C).
    12. Shicheng Zhou & Zizhou Zhang & Rong Zhang & Yuchen Yin & Chia Hong Chang & Qinyan Shen, 2025. "Regression and Forecasting of U.S. Stock Returns Based on LSTM," Papers 2502.05210, arXiv.org, revised Mar 2025.
    13. 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).
    14. Caporin, Massimiliano & Naeem, Muhammad Abubakr & Arif, Muhammad & Hasan, Mudassar & Vo, Xuan Vinh & Hussain Shahzad, Syed Jawad, 2021. "Asymmetric and time-frequency spillovers among commodities using high-frequency data," Resources Policy, Elsevier, vol. 70(C).
    15. Mehmet Balcilar & Ojonugwa Usman & Busra Agan, 2024. "On the connectedness of commodity markets: A critical and selective survey of empirical studies and bibliometric analysis," Journal of Economic Surveys, Wiley Blackwell, vol. 38(1), pages 97-136, February.
    16. Mensi, Walid & Al Rababa'a, Abdel Razzaq & Vo, Xuan Vinh & Kang, Sang Hoon, 2021. "Asymmetric spillover and network connectedness between crude oil, gold, and Chinese sector stock markets," Energy Economics, Elsevier, vol. 98(C).
    17. Shahzad, Syed Jawad Hussain & Rehman, Mobeen Ur & Jammazi, Rania, 2019. "Spillovers from oil to precious metals: Quantile approaches," Resources Policy, Elsevier, vol. 61(C), pages 508-521.
    18. 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).
    19. Flori, Andrea & Regoli, Daniele, 2021. "Revealing Pairs-trading opportunities with long short-term memory networks," European Journal of Operational Research, Elsevier, vol. 295(2), pages 772-791.
    20. Bouri, Elie & Jalkh, Naji, 2024. "Flight-to-safety across time and market conditions," International Review of Economics & Finance, Elsevier, vol. 94(C).

    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.