GOLD PRICE PREDICTION SYSTEM USING THE RANDOM FOREST METHOD

Authors

  • Kurnia Agung Prastyo Universitas Sains Al-Qur’an
  • Hidayatus Sibyan Universitas Sains Al-Qur'an
  • Nur Hasanah Universitas Sains Al-Qur’an

Keywords:

gold price prediction, Random Forest, machine learning, investment

Abstract

Gold is one of the most important commodities, serving as an investment instrument and a hedge against inflation. The high volatility of gold prices demands accurate predictions to support investment decision-making. This study aims to develop a gold price prediction system using the Random Forest method based on machine learning. The dataset used consists of daily gold prices from Yahoo Finance covering the period from 2020 to 2024. The research stages include data collection, preprocessing, model training, evaluation, and implementation into an interactive website. Evaluation results show a MAE of 329.31, MSE of 148,599.40, RMSE of 385.49, and a negative R² value (-1.97), indicating the model is not yet accurate. However, the system can provide a general overview of gold price trends and can be further improved to enhance prediction accuracy.

References

Changani, J. G. (2024). Factors influencing gold price movements: a time series analysis perspective. Available at SSRN 4815102.

Fadly, H. D., & Arifin, F. (2025). Indonesian Gold Price Prediction: A Machine Learning Approach Using Random Forest Regressor.

Hutagalung, S. V., Yennimar, Y., Rumapea, E. R., Hia, M. J. G., Sembiring, T., & Manday, D. R. (2023). Comparison of support vector regression and random forest regression algorithms on gold price predictions. Jurnal Sistem Informasi dan Ilmu Komputer, 7(1), 255-262.

Kandregula, N. (2018). AI-Driven Financial Forecasting in Fintech: Enhancing Predictive Accuracy through Machine Learning and Deep Learning Models.

Landge, U., Phokmare, O., Borane, N., & Shelke, P. (2024, June). Gold price prediction using random forest algorithm. In 2024 3rd International Conference on Applied Artificial Intelligence and Computing (ICAAIC) (pp. 1287-1292). IEEE.

Wahyuningsih, T., Manongga, D., Sembiring, I., & Wijono, S. (2024). Comparison of effectiveness of logistic regression, naive bayes, and random forest algorithms in predicting student arguments. Procedia Computer Science, 234, 349-356.

Downloads

Published

2025-10-31

Issue

Section

Articles