Komparasi Akurasi Model SARIMA, LSTM, dan GRU dalam Peramalan Indeks Harga Saham S&P 500
DOI:
https://doi.org/10.47065/bulletincsr.v6i5.1322Keywords:
GRU; LSTM; SARIMA; S&P 500 Index; Stock Price ForecastingAbstract
Movement of S&P 500 stock price index is non-linear and influenced by numerous macroeconomic factors, making closing price forecasting a critical challenge for investors and portfolio managers in investment decision-making. This study aims to determine whether deep learning models outperform classical statistical models in forecasting non-linear patterns in the daily closing price data of the S&P 500 index using a public dataset. The forecasting models employed are Seasonal Autoregressive Integrated Moving Average (SARIMA), Long Short-Term Memory (LSTM), and Gated Recurrent Unit (GRU). The three models were independently constructed and trained, then evaluated using Mean Absolute Error (MAE), Root Mean Squared Error (RMSE), Mean Absolute Percentage Error (MAPE), and the coefficient of determination (R-squared). Results show that GRU delivered the best performance, with an MAE of 87.04, RMSE of 100.72, MAPE of 2.94 percent, and R-squared of 0.836, followed by LSTM with an MAE of 105.89, RMSE of 132.13, MAPE of 3.55 percent, and R-squared of 0.718. SARIMA performed considerably worse, with an MAE of 418.77, RMSE of 610.20, MAPE of 13.72 percent, and a negative R-squared of -5.02, indicating its inability to capture the non-linear patterns and strong trends in the data. These findings confirm that deep learning models, particularly GRU, outperform classical statistical models in forecasting highly volatile stock indices, while also offering better computational efficiency than LSTM.
Downloads
References
S&P Dow Jones Indices, "S&P 500," S&P Global. [Online]. Available: https://www.spglobal.com/spdji/en/indices/equity/sp-500/. [Accessed: Aug. 05, 2026].
Yahoo Finance, "S&P 500 (^GSPC) Historical Data." [Online]. Available: https://finance.yahoo.com/quote/%5EGSPC/history. [Accessed: Aug. 05, 2026].
H. Yilmazkuday, "Geopolitical risk and stock prices," European Journal of Political Economy, vol. 83, p. 102553, 2024, doi: 10.1016/j.ejpoleco.2024.102553.
A. Shleifer, Inefficient Markets: An Introduction to Behavioral Finance. Oxford, U.K.: Oxford University Press, 2000.
Z. Wang, "Stock price prediction using LSTM neural networks: Techniques and applications," Applied and Computational Engineering, vol. 86, pp. 275-281, 2024, doi: 10.54254/2755-2721/86/20241605.
C. Nugent, "S&P 500 stock data," Kaggle. [Online]. Available: https://www.kaggle.com/datasets/camnugent/sandp500. [Accessed: Aug. 21, 2026].
O. S. Adesina and L. O. Obokoh, "A hybrid framework of deep learning and traditional time series models for exchange rate prediction," Scientific African, vol. 29, p. e02818, 2025, doi: 10.1016/j.sciaf.2025.e02818.
R. J. Hyndman and G. Athanasopoulos, Forecasting: Principles and Practice, 3rd ed. Melbourne, Australia: OTexts, 2021.
A. Nielsen, Practical Time Series Analysis: Prediction with Statistics and Machine Learning. Sebastopol, CA, USA: O'Reilly Media, 2019.
W. Chen, W. Hussain, F. Cauteruccio, and X. Zhang, "Deep learning for financial time series prediction: A state-of-the-art review of standalone and hybrid models," Computer Modeling in Engineering & Sciences, vol. 139, no. 1, pp. 187-224, 2024, doi: 10.32604/cmes.2023.031388.
A. Farhadi, A. Zamanifar, A. Alipour, A. Taheri, and M. Asadolahi, "A hybrid LSTM-GRU model for stock price prediction," IEEE Access, vol. 13, pp. 117594-117618, 2025, doi: 10.1109/ACCESS.2025.3586558.
J. Chung, C. Gulcehre, K. Cho, and Y. Bengio, "Empirical evaluation of gated recurrent neural networks on sequence modeling," arXiv preprint arXiv:1412.3555, 2014.
R. W. Akbari, A. P. Kuncoro, and A. Jahir, "Comparative study of LSTM and GRU accuracy in predicting BBRI stock closing price," Journal of Applied Informatics and Computing, vol. 10, no. 1, pp. 837-846, 2026, doi: 10.30871/jaic.v10i1.11938.
Y. K?relli, "Comparative analysis of LSTM and ARIMA models in stock price prediction: A technology company example," Black Sea Journal of Engineering and Science, vol. 7, no. 5, pp. 866-873, Sep. 2024, doi: 10.34248/bsengineering.1445997.
Z. ?engül Abed?, "Forecasting foreign trade in Türkiye's agri-food sector: A comparative analysis of SARIMA, LSTM, and GRU models," Turkish Journal of Agricultural and Natural Sciences, vol. 12, no. 4, pp. 1007-1026, 2025, doi: 10.30910/turkjans.1756810.
M. A. Hossain, R. Karim, M. R. Thulasiram, and B. M. Nguyen, "Systematic comparison, evaluation and identification of robust model to forecast the closing price of S&P 500 financial sector through classical and AI-based approaches," Journal of Risk and Financial Management, vol. 16, no. 3, p. 165, 2023, doi: 10.3390/jrfm16030165.
S. Berradi, M. Lazaar, and H. H. H. Aldayel, "Forecasting the S&P 500 financial sector using deep learning: LSTM vs. GRU," International Journal of Financial Innovation in Banking, vol. 4, no. 1, pp. 1-18, 2023.
Y. Li and H. Chen, "A comparative study of LSTM, GRU, and hybrid LSTM-GRU models for forecasting S&P 500 index," Highlights in Business, Economics and Management, vol. 21, pp. 132-145, 2024, doi: 10.54097/hbem.v21i.13601.
A. Yunita, M. I. Pratama, M. Z. Almuzakki, H. Ramadhan, E. A. P. Akhir, A. B. F. Mansur, and A. H. Basori, "Performance analysis of neural network architectures for time series forecasting: A comparative study of RNN, LSTM, GRU, and hybrid models," MethodsX, vol. 15, p. 103462, 2025, doi: 10.1016/j.mex.2025.103462.
O. Moseane, J. T. Tsoku, and D. Metsileng, "Hybrid time series and ANN-based ELM model on JSE/FTSE closing stock prices," Frontiers in Applied Mathematics and Statistics, vol. 10, p. 1454595, 2024, doi: 10.3389/fams.2024.1454595.
K. Lahboub and M. Benali, "Assessing the predictive power of transformers, ARIMA, and LSTM in forecasting stock prices of Moroccan credit companies," Journal of Risk and Financial Management, vol. 17, no. 7, p. 293, 2024, doi: 10.3390/jrfm17070293.
P. Pilla and R. Mekonen, "Forecasting S&P 500 using LSTM models," arXiv preprint arXiv:2501.17366, 2025.
F. Kamalov, L. Smail, and I. Gurrib, "Forecasting with deep learning: S&P 500 index," in Proc. 2020 13th Int. Symp. Computational Intelligence and Design (ISCID), 2020, pp. 422-425.
F. H. Sezgin, Ö. Algorabi, G. Sart, and M. Güler, "Hyperparameter-optimized RNN, LSTM, and GRU models for airline stock price prediction: A comparative study on THYAO and PGSUS," Symmetry, vol. 17, no. 11, p. 1905, 2025, doi: 10.3390/sym17111905.
M.-J. Park and H.-S. Yang, "Comparative study of time series analysis algorithms suitable for short-term forecasting in implementing demand response based on AMI," Sensors, vol. 24, no. 22, p. 7205, 2024, doi: 10.3390/s24227205.
M. L. Hossain, S. M. N. Shams, and S. M. Ullah, "Time-series and deep learning approaches for renewable energy forecasting in Dhaka: A comparative study of ARIMA, SARIMA, and LSTM models," Discover Sustainability, vol. 6, art. no. 775, 2025, doi: 10.1007/s43621-025-01733-5.
William, A. K. Wilham, and S. R. Manalu, "Stocks and models: A comparative benchmark of machine learning and deep learning approaches for stock market prediction," Procedia Computer Science, vol. 269, pp. 1532-1545, 2025, doi: 10.1016/j.procs.2025.09.095.
Bila bermanfaat silahkan share artikel ini
Berikan Komentar Anda terhadap artikel Komparasi Akurasi Model SARIMA, LSTM, dan GRU dalam Peramalan Indeks Harga Saham S&P 500
ARTICLE HISTORY
How to Cite
Issue
Section
Copyright (c) 2026 Imam Adiyana, Angga Kurniawan, Bella Okta Sari Miranda

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under Creative Commons Attribution 4.0 International License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (Refer to The Effect of Open Access).













