Advancing Stock Market Predictions with Time Series Analysis including LSTM and ARIMA

Authors

  • Ishtiaq Ahammad Department of Computer Science and Engineering, Northern University Bangladesh, Dhaka, Bangladesh https://orcid.org/0000-0003-2422-8918
  • William Ankan Sarkar Department of Computer Science and Engineering, Prime University, Dhaka, Bangladesh
  • Famme Akter Meem Department of Computer Science and Engineering, Prime University, Dhaka, Bangladesh
  • Jannatul Ferdus Department of Computer Science and Engineering, Prime University, Dhaka, Bangladesh
  • Md. Kawsar Ahmed Department of Computer Science and Engineering, Prime University, Dhaka, Bangladesh
  • Md. R. Rahman Department of Computer Science and Engineering, Prime University, Dhaka, Bangladesh
  • Rabeya Sultana Department of Computer Science and Engineering, Prime University, Dhaka, Bangladesh
  • Md. Shihabul Islam Department of Computer Science and Engineering, Prime University, Dhaka, Bangladesh

DOI:

https://doi.org/10.37256/ccds.5220244470

Keywords:

stock market prediction, time series analysis, LSTM, ARIMA, machine learning, predictive modeling, comparative analysis

Abstract

Predicting stock market prices accurately is a major task for investors and traders seeking to optimize their decision-making processes. This research focuses on the comparative analysis of advanced machine learning (ML) techniques, particularly, the Long Short-Term Memory (LSTM) model and Autoregressive Integrated Moving Average (ARIMA) model for predicting stock market prices. The study enforces thorough data collection and preprocessing to ensure the quality and reliability of the historical stock price data, forming a robust foundation for the predictive models. The core contribution of this paper lies in its systematic and comparative analysis of these two models. A range of performance metrics, including Mean Absolute Error (MAE) and Root Mean Square Error (RMSE), are employed to assess and contrast the predictive accuracy and efficiency of the LSTM and ARIMA models. The research findings indicate that the ARIMA model, contrary to expectations, outperforms the LSTM model in this study, achieving lower RMSE and MAE values. Specifically, the ARIMA model demonstrates a Test RMSE of 4.336 and a Test MAE of 3.45926, indicating its superior predictive accuracy compared to the LSTM model. Furthermore, the study sets its findings against the backdrop of existing literature by comparing the performance of its models with those reported in previous research. This comparison shows better results achieved by our stock market prediction models. By addressing limitations observed in prior studies and demonstrating practical applicability, this research contributes to advancing stock market prediction methodologies, offering valuable insights for investors and traders.

Downloads

Published

2024-05-15

How to Cite

1.
Ahammad I, Ankan Sarkar W, Akter Meem F, Ferdus J, Ahmed MK, Rahman MR, Sultana R, Islam MS. Advancing Stock Market Predictions with Time Series Analysis including LSTM and ARIMA. Cloud Computing and Data Science [Internet]. 2024 May 15 [cited 2024 Dec. 4];5(2):226-41. Available from: https://ojs.wiserpub.com/index.php/CCDS/article/view/4470