Performance Analysis of ARIMA, LSTM, and Hybrid ARIMA-LSTM in Forecasting the Composite Stock Price Index
Abstract
This study evaluates the performance of ARIMA, LSTM, and hybrid ARIMA-LSTM models in predicting the closing and opening prices of the Indonesia Stock Exchange Composite Index (IHSG) over various periods (2007-2020, 2007-2022, and 2007-2024). For the LSTM model, a lag of 1 was chosen based on MAPE analysis, showing strong dependence on the previous day’s price. Different learning rates (0.01, 0.001, 0.0001) and batch sizes (16, 32) were tested on various network architectures. Results indicate that while ARIMA effectively captures linear patterns, LSTM consistently outperforms with lower MAPE values—2.27% for closing and 2.02% for opening prices—especially with a simple (1-50-1) architecture and a learning rate of 0.001. The hybrid ARIMA(0,1,1)-LSTM(1-50-1) model showed competitive results, achieving MAPE of 2.00% for closing and 1.74% for opening prices using batch size 16. However, its success depends on ARIMA’s ability to model linear components. Key findings emphasize LSTM’s dominance in accuracy, the importance of parameter tuning, and the effectiveness of simple network structures. The hybrid approach holds promise when linear and nonlinear data components are clearly separable. This research offers methodological insights for optimizing stock price prediction models and practical guidance for model configuration, contributing to the advancement of financial market forecasting.
Keywords
Full Text:
PDFReferences
[1] A. Gara et al. “Overview of the Blue Gene/L system architecture”. IBM Journal of Research and Development 49.2–3 (2005), pp. 195–212. DOI: https://doi.org/10.1147/rd.492.0195.
[2] R. Umami. “Pengaruh Nilai Tukar, Suku Bunga, Dan Inflasi Terhadap Harga Saham Di Suatu Perusahaan”. Jurnal Studi Manajemen dan Bisnis 5.2 (2020), pp. 85–89. DOI: https://doi.org/10.21107/jsmb.v5i2.6658.
[3] Salwan Hanafi, Sri Indah Nikensari, and Saparuddin Mukhtar. “Analysis of Factors Affecting the Composite Stock Price Index of Consumption Goods in the Indonesia Stock Exchange”. International Journal of Economy, Education and Entrepreneurship (IJE3) 2.3 (2022), pp. 110–120. DOI: https://doi.org/10.53067/ije3.v2i3.100. URL: https://journal.yp3a.org/index.php/IJE3/article/view/100.
[4] F. Sumantri and U. Latifah. “Analisa Pengaruh Marko Ekonomi Terhadap Indeks Harga Saham Gabungan Periode 2015–2019”. Dialektika: Jurnal Ekonomi dan Ilmu Sosial 6.2 (2021), pp. 11–21. DOI: https://doi.org/10.36636/dialektika.v6i2.617.
[5] Ria Apriyani, Titing Suharti, and Diah Yudhawati. “Pengaruh Inflasi, Kurs dan Suku Bunga terhadap IHSG di Bursa Efek Indonesia”. Jurnal Ilmiah Swara Manajemen 3.4 (2023), pp. 768–778. e-ISSN: 2962-8938. DOI: https://doi.org/10.32493/jism.v3i4. URL: http://openjournal.unpam.ac.id/index.php/JISM/article/view/11339.
[6] N. Najibullah. “Pengaruh Indeks Global Terhadap Indeks Harga Saham Gabungan (IHSG): Bukti Empiris Menggunakan Data Harian”. Jurnal Mahasiswa Akuntansi Samudra 4.4 (2023), pp. 171–178. DOI: https://doi.org/10.33059/jmas.v4i4.8303.
[7] W. F. Velicer and P. C. Molenaar. Time Series Analysis for Psychological Research. 2012. DOI: https://doi.org/10.1002/9781118133880.hop202022.
[8] G. J. Evans and M. G. Kendall. “Time Series”. Operational Research Quarterly 26.1 (1975), p. 112. DOI: https://doi.org/10.2307/3007831.
[9] B. A. Hakim, K. A. Notodiputro, Y. Angraini, L. Nissa, and A. Mualifah. “Time Series Model for Train Passenger Forecasting”. Barekeng: Jurnal Ilmu Matematika dan Terapan 19.2 (2025), pp. 755–766. DOI: https://doi.org/10.30598/barekengvol19iss2pp0755-0766.
[10] A. T. Nguyen, D. H. Pham, B. L. Oo, Y. Ahn, and B. T. H. Lim. “Predicting Air Quality Index Using Attention Hybrid Deep Learning and Quantum-Inspired Particle Swarm Optimization”. Journal of Big Data 11.1 (2024). DOI: https://doi.org/10.1186/s40537-024-00926-5.
[11] Abel Gempati, Faisal Agymnastiar Rahmad Fradani, Rayya Malik Ibrahim, Tenry Kusuma Astuti, Yusuf Riyan Prasetyo, and Laksmi Yustika Devi. “Peramalan Data IHSG 2021–2025 di Indonesia dengan Time Series Modeling Autoregressive Integrated Moving Average (ARIMA)”. Jurnal Ilmiah Ekonomi dan Manajemen 3.5 (2025), pp. 225–234. DOI: https://doi.org/10.61722/jiem.v3i5.4650.
[12] Andryan Kalmer Wijaya, Henry Lucky, and Samsul Arifin. “Web Application for IHSG Prediction Using Machine Learning Algorithms”. Indonesian Journal of Applied Mathematics and Statistics (IdJAMS) 2.1 (2025), pp. 29–40. DOI: https://doi.org/10.71385/idjams.v2i1.21. URL: https://idjams.com/index.php/jms/index.
[13] Sakshi Kulshreshtha and Vijayalakshmi A. “An ARIMA-LSTM Hybrid Model for Stock Market Prediction Using Live Data”. Journal of Engineering Science and Technology Review 13.4 (2020), pp. 117–123. DOI: https://doi.org/10.25103/jestr.134.11. URL: https://www.jestr.org.
[14] Sepp Hochreiter and Jürgen Schmidhuber. “Long Short-Term Memory”. Neural Computation 9.8 (1997), pp. 1735–1780. DOI: https://doi.org/10.1162/neco.1997.9.8.1735.
[15] J. Duan, Y. Gong, J. Luo, and Z. Zhao. “Air-quality prediction based on the ARIMA-CNN-LSTM combination model optimized by dung beetle optimizer”. Scientific Reports 13.1 (2023), pp. 1–16. DOI: https://doi.org/10.1038/s41598-023-36620-4.
[16] Arief Fadhlurrahman Rasyid, Dewi R. Agushinta, and Dharma T. Ediraras. “Deep Learning Methods In Predicting Indonesia Composite Stock Price Index (IHSG)”. International Journal of Computer and Information Technology 10.5 (2021), pp. 209–217. DOI: https://doi.org/10.24203/ijcit.v10i5.153.
[17] A. Yusuf. “Prediksi Indeks Harga Saham Gabungan (IHSG) Menggunakan Long Short-Term Memory”. Epsilon: Jurnal Matematika Murni dan Terapan 15.2 (2022), p. 124. DOI: https://doi.org/10.20527/epsilon.v15i2.5026.
[18] S. Ayub and Y. Z. Jafri. “Comparative Study of an ANN-ARIMA Hybrid Model for Predicting Karachi Stock Price”. American Journal of Mathematical Sciences 10.1 (2020), pp. 1–9. DOI: https://doi.org/10.5923/j.ajms.20201001.01.
[19] Yudi Susanto and Brodjol Sutijo Suprih Ulama. “Pemodelan Curah Hujan dengan Pendekatan Model ARIMA, Feed Forward Neural Network dan Hybrid (ARIMA-NN) di Banyuwangi”. Jurnal Sains dan Seni ITS 5.2 (2016), pp. D145–D150. DOI: https://doi.org/10.12962/j23373520.v5i2.16409.
[20] D. Pratiwi and M. Hadijati. “Inflation modeling in Indonesia using hybrid autoregressive integrated moving average (ARIMA)-neural network (NN)”. IOP Conference Series: Materials Science and Engineering 1115.1 (2021), p. 012058. DOI: https://doi.org/10.1088/1757-899X/1115/1/012058.
[21] L. N. A. Mualifah, A. M. Soleh, and K. A. Notodiputro. “Comparison of GARCH, LSTM, and Hybrid GARCH-LSTM Models for Analyzing Data Volatility”. International Journal of Advanced Soft Computing and its Applications 16.2 (2024), pp. 150–165. DOI: https://doi.org/10.15849/IJASCA.240730.10.
[22] I. Magfirrah, M. Ilma, K. A. Notodiputro, Y. Angraini, and L. N. A. Mualifah. “Comparative Analysis of ARIMA and LSTM for Forecasting Maximum Wind Speed in Kupang City, East Nusa Tenggara”. Jambura Journal of Mathematics 6.2 (2024), pp. 169–175. DOI: https://doi.org/10.37905/jjom.v6i2.25834.
[23] W. A. Pratiwi, A. F. Rizki, K. A. Notodiputro, Y. Angraini, and L. N. A. Mualifah. “The Comparison of ARIMA and RNN for Forecasting Gold Futures Closing Prices”. Barekeng: Jurnal Ilmu Matematika dan Terapan 19.1 (2025), pp. 397–406. DOI: https://doi.org/10.30598/barekengvol19iss1pp397-406.
[24] S. Siami-Namini, N. Tavakoli, and A. Siami Namin. “A Comparison of ARIMA and LSTM in Forecasting Time Series”. Proceedings of the 17th IEEE International Conference on Machine Learning and Applications (ICMLA). 2018, pp. 1394–1401. DOI: https://doi.org/10.1109/ICMLA.2018.00227.
[25] S. M. Al-Selwi et al. “RNN-LSTM: From applications to modeling techniques and beyond—Systematic review”. Journal of King Saud University - Computer and Information Sciences 36.5 (2024), p. 102068. DOI: https://doi.org/10.1016/j.jksuci.2024.102068.
[26] H. Ihsan, Irwan, and A. I. E. Nensi. “Implementation of Backpropagation and Hybrid ARIMA-NN Methods in Predicting Accuracy Levels of Rainfall in Makassar City”. Barekeng: Jurnal Ilmu Matematika dan Terapan 18.4 (2024), pp. 10–14. DOI: https://doi.org/10.30598/barekengvol18iss4pp2435-2448.
[27] Narendra Babu Chindanur and Eswara B. “A Moving-Average Filter Based Hybrid ARIMA–ANN Model for Forecasting Time Series Data”. Applied Soft Computing 23 (Oct. 2014), pp. 27–38. DOI: https://doi.org/10.1016/j.asoc.2014.05.028.
[28] Hyeong Kyu Choi. “Stock price correlation coefficient prediction with ARIMA-LSTM hybrid model”. arXiv preprint arXiv:1808.01560 (2018). DOI: https://doi.org/10.48550/arXiv.1808.01560. URL: https://arxiv.org/abs/1808.01560.
[29] Kamil Kashif and Robert Ślepaczuk. LSTM-ARIMA as a Hybrid Approach in Algorithmic Investment Strategies. 2024. arXiv: 2406.18206 [q-fin.TR]. DOI: https://doi.org/10.48550/arXiv.2406.18206.
[30] Aris Gunaryati, Achmad Benny Mutiara, and Sulistyo Puspitodjati. “Enhancing Sharia Stock Price Forecasting using a Hybrid ARIMA-LSTM with Locally Weighted Scatterplot Smoothing Regression Approach”. Journal of Applied Data Sciences 6.1 (2025), pp. 683–694. DOI: https://doi.org/10.47738/jads.v6i1.514. URL: https://www.bright-journal.org/Journal/index.php/JADS/article/view/514.
[31] Dominik Stempień and Robert Ślepaczuk. Hybrid Models for Financial Forecasting: Combining Econometric, Machine Learning, and Deep Learning Models. 2025. arXiv: 2505.19617 [q-fin.TR]. DOI: https://doi.org/10.48550/arXiv.2505.19617.
DOI: https://doi.org/10.18860/cauchy.v10i2.33379
Refbacks
Copyright (c) 2025 Andi Illa Erviani Nensi

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Editorial Office
Mathematics Department,
Maulana Malik Ibrahim State Islamic University of Malang
Gajayana Street 50 Malang, East Java, Indonesia 65144
e-mail: cauchy@uin-malang.ac.id

CAUCHY: Jurnal Matematika Murni dan Aplikasi is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.








