Open Access Articles

Intelligent Stock Price Prediction Using LSTM, GRU, ARIMA, and ARIMAX Models: Analysis and Performance Comparison

Authors

  • Seyyedeh Bita Amiri Department of Computer Science, Hakim Sabzevari University, Sabzevar, Iran.
  • Arefeh Amidian * Department of Computer Science, Hakim Sabzevari University, Sabzevar, Iran.
  • Zohre Fasihfar Department of Computer Science, Hakim Sabzevari University, Sabzevar, Iran.

https://doi.org/10.22105/aaa.v2i2.67

Abstract

This study examines and compares the performance of four-time series forecasting models, including ARIMA, ARIMAX, LSTM, and GRU, in forecasting the stock price of Iran Export Bank over 16 years (2009-2025). The data were prepared for modeling after performing preprocessing steps such as normalization. In the modeling section, the classical ARIMA models and the improved version of ARIMAX, which also consider exogenous variables (such as trading volume, moving average, and volatility), were used along with deep learning-based Recurrent Neural Networks (RNNs), namely LSTM and GRU. The results showed that the deep learning models LSTM and GRU performed significantly better than the classical models. Among the classical models, ARIMAX performed significantly better in forecasting than ARIMA, which had very poor performance. The LSTM model provided the most accurate forecasts and was able to model more than 98.67 percent of the data changes. The GRU model also performed close to LSTM, approximately 98.61, but its accuracy was slightly lower than LSTM. The results show that deep learning models, especially LSTM, perform better than classical models in simulating nonlinear patterns and long-term dependencies in financial data. Overall, deep learning-based models, especially LSTM, are powerful tools for predicting complex time series and can play an important role in investment decisions and analyzing stock market trends.

Keywords

Time series Deep learning LSTM GRU ARIMAX
References (22)
  1. [1] Shaygani, M., & Nourbakhsh, A. (2023). Predicting stock prices in the tehran stock exchange with artificial intelligence. The second national conference on new developments in financial, economic and accounting studies. (In Persian). Civilica. https://civilica.com/doc/2116487

  2. [2] Abdi, N., MoradzadehFard, M., Ahmadzadeh, H., & Khoddam, M. (2024). A hybrid model for portfolio optimization based on stock price forecasting with LSTM recurrent neural network using multi-criteria decision making techniques and mean-CVaR. International journal of finance & managerial accounting, 9(35), 1–14. http://www.ijfma.ir/article_22706.html

  3. [3] Yaraqi, M., & Rabiei, A. (2021). Review and comparison of LSTM and GRU deep recurrent neural network algorithms in currency valuation time series data models. Computer science, 5(4), 40-50. (In Persian). https://dor.isc.ac/dor/20.1001.1.2538161.1399.5.4.4.1

  4. [4] Pai, P. F., & Lin, C. S. (2005). A hybrid ARIMA and support vector machines model in stock price forecasting. Omega, 33(6), 497–505. https://doi.org/10.1016/j.omega.2004.07.024

  5. [5] Gülmez, B. (2023). Stock price prediction with optimized deep LSTM network with artificial rabbits optimization algorithm. Expert systems with applications, 227, 120346. https://doi.org/10.1016/j.eswa.2023.120346

Article Metrics

How to Cite

Amiri, S. B. ., Amidian, A. ., & Fasihfar, Z. (2025). Intelligent Stock Price Prediction Using LSTM, GRU, ARIMA, and ARIMAX Models: Analysis and Performance Comparison. Accounting and Auditing With Applications , 2(2), 109-121. https://doi.org/10.22105/aaa.v2i2.67

Similar Articles

1-10 of 11

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