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. 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, 2024. "Gold, bitcoin and the financial fear gouge," Economics and Business Letters, Oviedo University Press, vol. 13(3), pages 132-140.
    2. Gil, Cohen, 2022. "Intraday Trading of Precious Metals Futures Using Algorithmic Systems," Chaos, Solitons & Fractals, Elsevier, vol. 154(C).
    3. Gil Cohen, 2022. "Algorithmic Strategies for Precious Metals Price Forecasting," Mathematics, MDPI, vol. 10(7), pages 1-12, April.
    4. 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).
    5. 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).
    6. Barua, Ronil & Sharma, Anil K., 2022. "Dynamic Black Litterman portfolios with views derived via CNN-BiLSTM predictions," Finance Research Letters, Elsevier, vol. 49(C).
    7. 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).
    8. 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).
    9. Bouri, Elie & Jalkh, Naji, 2024. "Flight-to-safety across time and market conditions," International Review of Economics & Finance, Elsevier, vol. 94(C).
    10. Firuz Kamalov & Linda Smail & Ikhlaas Gurrib, 2021. "Stock price forecast with deep learning," Papers 2103.14081, arXiv.org.
    11. Gil Cohen, 2022. "Artificial Intelligence in Trading the Financial Markets," International Journal of Economics & Business Administration (IJEBA), International Journal of Economics & Business Administration (IJEBA), vol. 0(1), pages 101-110.
    12. 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).
    13. 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).
    14. 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).
    15. 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).
    16. Jakub Micha'nk'ow & Pawe{l} Sakowski & Robert 'Slepaczuk, 2023. "Hedging Properties of Algorithmic Investment Strategies using Long Short-Term Memory and Time Series models for Equity Indices," Papers 2309.15640, arXiv.org.
    17. Gil Cohen, 2022. "Algorithmic Trading and Financial Forecasting Using Advanced Artificial Intelligence Methodologies," Mathematics, MDPI, vol. 10(18), pages 1-13, September.
    18. Hoque, Mohammad Enamul & Sahabuddin, Mohammad & Bilgili, Faik, 2024. "Volatility interconnectedness among financial and geopolitical markets: Evidence from COVID-19 and Ukraine-Russia crises," Economic Analysis and Policy, Elsevier, vol. 82(C), pages 303-320.
    19. Julien Chevallier & Dominique Guégan & Stéphane Goutte, 2021. "Is It Possible to Forecast the Price of Bitcoin?," Forecasting, MDPI, vol. 3(2), pages 1-44, May.
    20. 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).

    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.