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. 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).
    5. 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.
    6. Youtao Xiang & Sumuya Borjigin, 2024. "High–low volatility spillover network between economic policy uncertainty and commodity futures markets," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 44(8), pages 1295-1319, August.
    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. Rainer Alt, 2021. "Electronic Markets on robotics," Electronic Markets, Springer;IIM University of St. Gallen, vol. 31(3), pages 465-471, September.
    9. Woode, John Kingsley & Owusu Junior, Peterson & Adam, Anokye M., 2024. "Dynamic interdependence structure of industrial metals and the African stock market," Resources Policy, Elsevier, vol. 88(C).
    10. Farid, Saqib & Kayani, Ghulam Mujtaba & Naeem, Muhammad Abubakr & Shahzad, Syed Jawad Hussain, 2021. "Intraday volatility transmission among precious metals, energy and stocks during the COVID-19 pandemic," Resources Policy, Elsevier, vol. 72(C).
    11. 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.
    12. Zhuo Chen & Bo Yan & Hanwen Kang, 2022. "Dynamic correlation between crude oil and agricultural futures markets," Review of Development Economics, Wiley Blackwell, vol. 26(3), pages 1798-1849, August.
    13. Abdulwahhab, Ali H. & Abdulaal, Alaa Hussein & Thary Al-Ghrairi, Assad H. & Mohammed, Ali Abdulwahhab & Valizadeh, Morteza, 2024. "Detection of epileptic seizure using EEG signals analysis based on deep learning techniques," Chaos, Solitons & Fractals, Elsevier, vol. 181(C).
    14. Abhirup Khanna & Bhawna Yadav Lamba & Sapna Jain & Vadim Bolshev & Dmitry Budnikov & Vladimir Panchenko & Alexandr Smirnov, 2023. "Biodiesel Production from Jatropha: A Computational Approach by Means of Artificial Intelligence and Genetic Algorithm," Sustainability, MDPI, vol. 15(12), pages 1-33, June.
    15. Shahid Nawaz Khan & Syed Ali Abbas Kazmi & Abdullah Altamimi & Zafar A. Khan & Mohammed A. Alghassab, 2022. "Smart Distribution Mechanisms—Part I: From the Perspectives of Planning," Sustainability, MDPI, vol. 14(23), pages 1-109, December.
    16. 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.
    17. Yousaf, Imran & Beljid, Makram & Chaibi, Anis & Ajlouni, Ahmed AL, 2022. "Do volatility spillover and hedging among GCC stock markets and global factors vary from normal to turbulent periods? Evidence from the global financial crisis and Covid-19 pandemic crisis," Pacific-Basin Finance Journal, Elsevier, vol. 73(C).
    18. Ahmad, Wasim & Hernandez, Jose Arreola & Saini, Seema & Mishra, Ritesh Kumar, 2021. "The US equity sectors, implied volatilities, and COVID-19: What does the spillover analysis reveal?," Resources Policy, Elsevier, vol. 72(C).
    19. 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).
    20. Goodell, John W. & Ben Jabeur, Sami & Saâdaoui, Foued & Nasir, Muhammad Ali, 2023. "Explainable artificial intelligence modeling to forecast bitcoin prices," International Review of Financial Analysis, Elsevier, vol. 88(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.