Implementation of the Hybrid ARIMA-LSTM Model for Gold Price Prediction Based on Yahoo Finance Data

Authors

  • Talitha Hananta Nurendasari Universitas Islam Nahdlatul Ulama Jepara image/svg+xml
  • Gentur Wahyu Nyipto Wibowo Universitas Islam Nahdlatul Ulama Jepara image/svg+xml
  • Harminto Mulyo Universitas Islam Nahdlatul Ulama Jepara image/svg+xml

DOI:

https://doi.org/10.35870/ijsecs.v5i3.5560

Keywords:

ARIMA, LSTM, Hybrid Forecasting, Gold Price Prediction, Time Series Analysis

Abstract

This paper presents a hybrid ARIMA–LSTM model to forecast daily gold price using historical data from Yahoo Finance. Gold price is highly volatile due to macroeconomic, geopolitical, and monetary factors, making accurate forecasting difficult and increasing uncertainty in investment decisions. In this study, ARIMA is used for modeling linear patterns in the time series data, while an LSTM network captures the nonlinear relationships and temporal dynamics that are not captured by statistical models. The dataset consists of daily observations of gold prices between June 2022 and June 2025. The analysis involves cleaning and normalizing the data, splitting it into training and testing subsets, estimating ARIMA parameters, extracting residuals, and forecasting these residuals with LSTM. Performance evaluation is carried out through MAE, RMSE, and MAPE metrics. The hybrid framework compares favorably against standalone ARIMA and LSTM models in terms of all three metrics used for assessment. Empirical results show that the hybrid ARIMA–LSTM model produces lower forecasting errors than the individual models on all evaluation metrics. These findings validate that combining statistical time series modeling with neural sequence learning increases predictive reliability in volatile commodity markets. The proposed framework can be considered methodologically sound for gold price forecasting and subsequently may enhance informed decision-making within financial analysis as well as investment practice.

Downloads

Download data is not yet available.

Author Biographies

  • Talitha Hananta Nurendasari, Universitas Islam Nahdlatul Ulama Jepara

    Universitas Islam Nahdlatul Ulama Jepara, Jepara Regency, Central Java Province, Indonesia

  • Gentur Wahyu Nyipto Wibowo, Universitas Islam Nahdlatul Ulama Jepara

    Universitas Islam Nahdlatul Ulama Jepara, Jepara Regency, Central Java Province, Indonesia

  • Harminto Mulyo, Universitas Islam Nahdlatul Ulama Jepara

    Universitas Islam Nahdlatul Ulama Jepara, Jepara Regency, Central Java Province, Indonesia

References

Baur, D. G., & Smales, L. A. (2018). Gold and geopolitical risk. SSRN. https://doi.org/10.2139/ssrn.3109136

Zhu, Y., Fan, J., & Tucker, J. (2018). The impact of monetary policy on gold price dynamics. Research in International Business and Finance, 44, 319–331. https://doi.org/10.1016/j.ribaf.2017.07.100

Ding, Q., Huang, J., Gao, W., & Zhang, H. (2022). Does political risk matter for gold market fluctuations? A structural VAR analysis. Research in International Business and Finance, 60, Article 101618. https://doi.org/10.1016/j.ribaf.2022.101618

Arumugam, V., & Natarajan, V. (2023). Time series modeling and forecasting using autoregressive integrated moving average and seasonal autoregressive integrated moving average models. Instrumentation, Mesures, Métrologies, 22(4). https://doi.org/10.18280/i2m.220404

Rizvi, S. (2024). Classical forecasting methods revisited: The role of ARIMA in modern finance. Journal of Applied Statistics, 51(5), 823–840. https://doi.org/10.1080/02664763.2023.2284973

Cao, L. (2024). Time series analysis and forecasting using ARIMA models: Applications in financial markets. Journal of Financial Data Science, 6(2), 45–58. https://doi.org/10.3905/jfds.2024.1.056

Enow, S. T. (2025). Modelling financial time series with threshold nonlinearity. International Journal of Research in Business and Social Science, 14(8), 152–156. https://doi.org/10.20525/ijrbs.v14i8.4540

Zhou, M., Li, H., & Wang, S. (2023). LSTM networks for financial market prediction: A review and case study. IEEE Access, 11, 13555–13570. https://doi.org/10.1109/ACCESS.2023.3245123

Taslim, M., & Murwantara, I. (2024). Challenges in LSTM-based time series forecasting for financial applications. Indonesian Journal of Artificial Intelligence and Data Mining, 7(2), 56–64. https://doi.org/10.11591/ijaidm.v7i2.2024

Livieris, I. E., Pintelas, E., & Pintelas, P. (2020). A CNN–LSTM model for gold price time-series forecasting. Neural Computing and Applications, 32(23), 17351–17360. https://doi.org/10.1007/s00521-020-04867-x

Boongasame, L., Viriyaphol, P., Tassanavipas, K., & Temdee, P. (2023). Gold-price forecasting method using long short-term memory and the association rule. Journal of Mobile Multimedia, 19(1), 165–186. https://doi.org/10.13052/jmm1550-4646.1919

Ben Ameur, H., Boubaker, S., Ftiti, Z., Louhichi, W., & Tissaoui, K. (2024). Forecasting commodity prices: Empirical evidence using deep learning tools. Annals of Operations Research, 339(1), 349–367. https://doi.org/10.1007/s10479-022-05076-6

Popli, R., Kansal, I., Kumar, R., Khullar, V., Sharma, P., & Parsad, D. (2024). Gold price prediction in stock exchange using LSTM and Bi-LSTM multivariate deep learning approaches. In Computational Intelligence and Mathematical Applications (pp. 1–5). CRC Press.

Sanjaya, R., Florentin, S. F., & Santoso, A. (2024). Predicting gold prices using deep learning: A comparison between ARIMA and LSTM. Journal of Computational Finance, 28(1), 77–95. https://doi.org/10.21314/JCF.2024.438

Antwi, E., Gyamfi, E. N., Kyei, K. A., Gill, R., & Adam, A. M. (2022). Modeling and forecasting commodity futures prices: Decomposition approach. IEEE Access, 10, 27484–27503. https://doi.org/10.1109/ACCESS.2022.3152694

Gasmi, M., Aloui, C., & Hkiri, B. (2024). Hybrid forecasting models in financial econometrics: An application of ARIMA–LSTM for commodity prices. Computational Economics, 64(3), 721–740. https://doi.org/10.1007/s10614-024-10234-9

He, X. (2023). A hybrid ARIMA–LSTM model for stock price prediction: Evidence from Apple Inc. International Journal of Forecasting, 39(4), 1195–1207. https://doi.org/10.1016/j.ijforecast.2022.09.012

Nichani, K., Zhang, Y., & Lee, J. (2024). Enhanced stock forecasting using hybrid ARIMA–LSTM models: A case study on Microsoft. Expert Systems with Applications, 238, Article 121548. https://doi.org/10.1016/j.eswa.2023.121548

Saleti, S., Panchumarthi, L. Y., Kallam, Y. R., Parchuri, L., & Jitte, S. (2024). Enhancing forecasting accuracy with a moving average-integrated hybrid ARIMA–LSTM model. SN Computer Science, 5(6), Article 704. https://doi.org/10.1007/s42979-024-03060-4

García, F., Guijarro, F., Oliver, J., & Tamošiūnienė, R. (2023). Foreign exchange forecasting models: ARIMA and LSTM comparison. Engineering Proceedings, 39(1), Article 81. https://doi.org/10.3390/engproc2023039081

Alharbi, M. H. (2025). Prediction of the stock market using LSTM, ARIMA, and hybrid of LSTM–ARIMA models. Journal of Knowledge Management Application and Practice, 7(1), 15–22. https://doi.org/10.18576/jkmap/070102

Dhuhita, A., Pramudita, D., & Nugroho, A. (2023). The validity of Yahoo Finance data for machine learning-based stock prediction. Procedia Computer Science, 216, 987–995. https://doi.org/10.1016/j.procs.2023.01.123

Dalimunthe, R., Siregar, H., & Putra, A. (2025). Financial time series prediction using hybrid ARIMA–LSTM with Yahoo Finance data. International Journal of Artificial Intelligence Research, 9(1), 33–42. https://doi.org/10.11591/ijair.v9i1.2025

Yeng, P., & Siahaan, R. (2024). Hybrid ARIMA–LSTM for gold price prediction using Yahoo Finance data. Journal of Data Science and Machine Learning, 12(3), 201–213. https://doi.org/10.32628/jdsml.v12i3.2024

Downloads

Published

2025-12-01

How to Cite

Nurendasari, T. H., Wibowo, G. W. N., & Mulyo, H. (2025). Implementation of the Hybrid ARIMA-LSTM Model for Gold Price Prediction Based on Yahoo Finance Data. International Journal Software Engineering and Computer Science (IJSECS), 5(3), 1148-1154. https://doi.org/10.35870/ijsecs.v5i3.5560

Similar Articles

6-10 of 11

You may also start an advanced similarity search for this article.

Most read articles by the same author(s)