IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v11y2023i18p3813-d1233502.html
   My bibliography  Save this article

Silver Price Forecasting Using Extreme Gradient Boosting (XGBoost) Method

Author

Listed:
  • Dylan Norbert Gono

    (Department of Mathematics, Faculty of Mathematics and Natural Sciences, Universitas Padjadjaran, Sumedang 45363, Indonesia)

  • Herlina Napitupulu

    (Department of Mathematics, Faculty of Mathematics and Natural Sciences, Universitas Padjadjaran, Sumedang 45363, Indonesia)

  • Firdaniza

    (Department of Mathematics, Faculty of Mathematics and Natural Sciences, Universitas Padjadjaran, Sumedang 45363, Indonesia)

Abstract

This article presents a study on forecasting silver prices using the extreme gradient boosting (XGBoost) machine learning method with hyperparameter tuning. Silver, a valuable precious metal used in various industries and medicine, experiences significant price fluctuations. XGBoost, known for its computational efficiency and parallel processing capabilities, proves suitable for predicting silver prices. The research focuses on identifying optimal hyperparameter combinations to improve model performance. The study forecasts silver prices for the next six days, evaluating models based on mean absolute percentage error (MAPE) and root mean square error (RMSE). Model A (the best model based on MAPE value) suggests silver prices decline on the first and second days, rise on the third, decline again on the fourth, and stabilize with an increase on the fifth and sixth days. Model A achieves a MAPE of 5.98% and an RMSE of 1.6998, utilizing specific hyperparameters. Conversely, model B (the best model based on RMSE value) indicates a price decrease until the third day, followed by an upward trend until the sixth day. Model B achieves a MAPE of 6.06% and an RMSE of 1.6967, employing distinct hyperparameters. The study also compared the proposed models with several other ensemble models (CatBoost and random forest). The model comparison was carried out by incorporating 2 additional metrics (MAE and SI), and it was found that the proposed models exhibited the best performance. These findings provide valuable insights for forecasting silver prices using XGBoost.

Suggested Citation

  • Dylan Norbert Gono & Herlina Napitupulu & Firdaniza, 2023. "Silver Price Forecasting Using Extreme Gradient Boosting (XGBoost) Method," Mathematics, MDPI, vol. 11(18), pages 1-15, September.
  • Handle: RePEc:gam:jmathe:v:11:y:2023:i:18:p:3813-:d:1233502
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/11/18/3813/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/11/18/3813/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Sami Ben Jabeur & Salma Mefteh-Wali & Jean-Laurent Viviani, 2021. "Forecasting gold price with the XGBoost algorithm and SHAP interaction values," Post-Print hal-03331805, HAL.
    2. Chao Qin & Yunfeng Zhang & Fangxun Bao & Caiming Zhang & Peide Liu & Peipei Liu, 2021. "XGBoost Optimized by Adaptive Particle Swarm Optimization for Credit Scoring," Mathematical Problems in Engineering, Hindawi, vol. 2021, pages 1-18, March.
    3. Federico Divina & Miguel García Torres & Francisco A. Goméz Vela & José Luis Vázquez Noguera, 2019. "A Comparative Study of Time Series Forecasting Methods for Short Term Electric Energy Consumption Prediction in Smart Buildings," Energies, MDPI, vol. 12(10), pages 1-23, May.
    4. Shaikh, Imlak, 2021. "On the relation between Pandemic Disease Outbreak News and Crude oil, Gold, Gold mining, Silver and Energy Markets," Resources Policy, Elsevier, vol. 72(C).
    5. Christian Janiesch & Patrick Zschech & Kai Heinrich, 2021. "Machine learning and deep learning," Electronic Markets, Springer;IIM University of St. Gallen, vol. 31(3), pages 685-695, September.
    6. Al-Yahyaee, Khamis Hamed & Mensi, Walid & Sensoy, Ahmet & Kang, Sang Hoon, 2019. "Energy, precious metals, and GCC stock markets: Is there any risk spillover?," Pacific-Basin Finance Journal, Elsevier, vol. 56(C), pages 45-70.
    7. Christian Pierdzioch & Marian Risse, 2020. "Forecasting precious metal returns with multivariate random forests," Empirical Economics, Springer, vol. 58(3), pages 1167-1184, March.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Parisa Foroutan & Salim Lahmiri, 2024. "Deep learning systems for forecasting the prices of crude oil and precious metals," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 10(1), pages 1-40, December.

    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. Díaz, Juan D. & Hansen, Erwin & Cabrera, Gabriel, 2023. "Gold risk premium estimation with machine learning methods," Journal of Commodity Markets, Elsevier, vol. 31(C).
    2. Mensi, Walid & Lee, Yun-Jung & Vo, Xuan Vinh & Yoon, Seong-Min, 2021. "Quantile connectedness among gold, gold mining, silver, oil and energy sector uncertainty indexes," Resources Policy, Elsevier, vol. 74(C).
    3. Jen-Yu Lee & Tien-Thinh Nguyen & Hong-Giang Nguyen & Jen-Yao Lee, 2022. "Towards Predictive Crude Oil Purchase: A Case Study in the USA and Europe," Energies, MDPI, vol. 15(11), pages 1-15, May.
    4. Mostafa Bigdeli & Mahsa Akbari, 2024. "Machine-learning-based Classification of Customers’ Behavioural Model in Instagram," Paradigm, , vol. 28(2), pages 223-240, December.
    5. Mensi, Walid & Rehman, Mobeen Ur & Vo, Xuan Vinh, 2022. "Spillovers and diversification benefits between oil futures and ASEAN stock markets," Resources Policy, Elsevier, vol. 79(C).
    6. Amal A. Al-Shargabi & Abdulbasit Almhafdy & Dina M. Ibrahim & Manal Alghieth & Francisco Chiclana, 2021. "Tuning Deep Neural Networks for Predicting Energy Consumption in Arid Climate Based on Buildings Characteristics," Sustainability, MDPI, vol. 13(22), pages 1-20, November.
    7. Eduard Hartwich & Alexander Rieger & Johannes Sedlmeir & Dominik Jurek & Gilbert Fridgen, 2023. "Machine economies," Electronic Markets, Springer;IIM University of St. Gallen, vol. 33(1), pages 1-13, December.
    8. Najla Alharbi & Bashayer Alkalifah & Ghaida Alqarawi & Murad A. Rassam, 2024. "Countering Social Media Cybercrime Using Deep Learning: Instagram Fake Accounts Detection," Future Internet, MDPI, vol. 16(10), pages 1-22, October.
    9. Rui Ma & Jia Wang & Wei Zhao & Hongjie Guo & Dongnan Dai & Yuliang Yun & Li Li & Fengqi Hao & Jinqiang Bai & Dexin Ma, 2022. "Identification of Maize Seed Varieties Using MobileNetV2 with Improved Attention Mechanism CBAM," Agriculture, MDPI, vol. 13(1), pages 1-16, December.
    10. Alqahtani, Faisal & Hamdi, Besma & Hammoudeh, Shawkat, 2021. "The effects of global factors on the Saudi Arabia equity market by firm size: Implications for risk management based on quantile analysis and frequency domain causality," Journal of Multinational Financial Management, Elsevier, vol. 61(C).
    11. Mighri, Zouheir & Ragoubi, Hanen & Sarwar, Suleman & Wang, Yihan, 2022. "Quantile Granger causality between US stock market indices and precious metal prices," Resources Policy, Elsevier, vol. 76(C).
    12. Guangchao Li & Zhaoqin Yi & Liqin Han & Ping Hu & Wei Chen & Xuefeng Ye & Zhen Yang, 2024. "The Synergistic Effect of the Same Climatic Factors on Water Use Efficiency Varies between Daily and Monthly Scales," Sustainability, MDPI, vol. 16(20), pages 1-20, October.
    13. Cheng Yang & Fuhao Sun & Yujie Zou & Zhipeng Lv & Liang Xue & Chao Jiang & Shuangyu Liu & Bochao Zhao & Haoyang Cui, 2024. "A Survey of Photovoltaic Panel Overlay and Fault Detection Methods," Energies, MDPI, vol. 17(4), pages 1-37, February.
    14. 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).
    15. Hong, Jichao & Li, Kerui & Liang, Fengwei & Yang, Haixu & Zhang, Chi & Yang, Qianqian & Wang, Jiegang, 2024. "A novel state of health prediction method for battery system in real-world vehicles based on gated recurrent unit neural networks," Energy, Elsevier, vol. 289(C).
    16. Shuai Sang & Lu Li, 2024. "A Novel Variant of LSTM Stock Prediction Method Incorporating Attention Mechanism," Mathematics, MDPI, vol. 12(7), pages 1-20, March.
    17. Kriebel, Johannes & Stitz, Lennart, 2022. "Credit default prediction from user-generated text in peer-to-peer lending using deep learning," European Journal of Operational Research, Elsevier, vol. 302(1), pages 309-323.
    18. Vladimir Franki & Darin Majnarić & Alfredo Višković, 2023. "A Comprehensive Review of Artificial Intelligence (AI) Companies in the Power Sector," Energies, MDPI, vol. 16(3), pages 1-35, January.
    19. Dong Zhang & Pengkun Wu & Chong Wu & Eric W. T. Ngai, 2024. "Forecasting duty-free shopping demand with multisource data: a deep learning approach," Annals of Operations Research, Springer, vol. 339(1), pages 861-887, August.
    20. Naeem, Muhammad Abubakr & Agyemang, Abraham & Hasan Chowdhury, Md Iftekhar & Hasan, Mudassar & Shahzad, Syed Jawad Hussain, 2022. "Precious metals as hedge and safe haven for African stock markets," Resources Policy, Elsevier, vol. 78(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:gam:jmathe:v:11:y:2023:i:18:p:3813-:d:1233502. 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: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    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.