Research Article

Stock price prediction using LSTM neural networks: Techniques and applications

Zian Wang*
University of Leeds

* Corresponding author: [email protected]

Abstract

The prediction of stock prices has garnered significant attention due to the potential financial gains and complex questions involved. This paper elaborates a comparison between the Long Short-Term Memory (LSTM) model, optimised using the early-stopping method, and the conventional mathematical method Autoregressive Integrated Moving Average Model(ARIMA), which is conducted using the S&P500 from 2022, May 01 to 2024, May 01. The results indicate that the LSTM surpasses ARIMA. To be more specific, LSTM achieves a 92% reduction in error rates compared to ARIMA. In addition, when the optimised LSTM is implemented in 6 different stocks, the results indicate a negative correlation between the volatility and accuracy of the stocks. This study demonstrates the advantages of optimised LSTM for predicting stock prices, and the importance of market volatility as a crucial aspect that significantly impacts the accuracy of stock price forecast.

Keywords: LSTM; ARIMA; Stock price prediction; Time series forecasting
Published: August 14, 2024
DOI: 10.54254/2755-2721/86/20241605
Volume: ACE Vol.86
pp. 275-281
Download PDF

References

  1. Box, George; Jenkins, Gwilym (1970). Time Series Analysis: Forecasting and Control. San Francisco: Holden-Day.
  2. Medsker, L. R., & Jain, L. (2001). Recurrent neural networks. Design and Applications, 5(64-67), 2.
  3. Hochreiter, S., & Schmidhuber, J. (1997). Long short-term memory. Neural computation, 9(8), 1735-1780.
  4. Gers, F. A., Schmidhuber, J., & Cummins, F. (2000). Learning to forget: Continual prediction with LSTM. Neural computation, 12(10), 2451-2471.
  5. Sagheer, A., & Kotb, M. (2019). Time series forecasting of petroleum production using deep LSTM recurrent networks. Neurocomputing, 323, 203-213.
  6. Huck, N. (2009). Pairs selection and outranking: An application to the S&P 100 index. European Journal of Operational Research, 196(2), 819-825.
  7. Fischer, T., & Krauss, C. (2018). Deep learning with long short-term memory networks for financial market predictions. European journal of operational research, 270(2), 654-669.
  8. Ariyo, A. A., Adewumi, A. O., & Ayo, C. K. (2014, March). Stock price prediction using the ARIMA model. In 2014 UKSim-AMSS 16th international conference on computer modelling and simulation (pp. 106-112). IEEE.
  9. Yahoo Finance. https://finance.yahoo.com