
Stock price prediction using LSTM neural networks: Techniques and applications
- 1 University of Leeds
* Author to whom correspondence should be addressed.
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
[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
Cite this article
Wang,Z. (2024). Stock price prediction using LSTM neural networks: Techniques and applications. Applied and Computational Engineering,86,275-281.
Data availability
The datasets used and/or analyzed during the current study will be available from the authors upon reasonable request.
Disclaimer/Publisher's Note
The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of EWA Publishing and/or the editor(s). EWA Publishing and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
About volume
Volume title: Proceedings of the 6th International Conference on Computing and Data Science
© 2024 by the author(s). Licensee EWA Publishing, Oxford, UK. This article is an open access article distributed under the terms and
conditions of the Creative Commons Attribution (CC BY) license. Authors who
publish this series agree to the following terms:
1. Authors retain copyright and grant the series right of first publication with the work simultaneously licensed under a Creative Commons
Attribution License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this
series.
2. Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the series'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 series.
3. 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 (See
Open access policy for details).