Research Article

Analysis of stock forecasting based on LSTM

Jinzhao Zhang*
Tianjin University of Science and TechnologyTianjin University of Science and TechnologyTianjin University of Science and Technology

* Corresponding author: [email protected]

Abstract

The use of the long short-term memory (LSTM) machine learning algorithm for stock prediction is widely used contemporarily. This study the feasibility of price prediction based on LSTM. This study first collected extensive data on stock prices, including the closing prices, volumes, and other relevant indicators, for several companies. Then, it implemented an LSTM-based model using this data, which was trained on a dataset containing historical stock price information over a fixed period. The model’s performance was evaluated using a separate test set. Based on the analysis, LSTM is successful in forecasting stock a remarkable degree of precision, rendering it an invaluable asset for investors aiming to make well-informed investment choices. Its ability to capture long-term dependencies and patterns within time series data makes it an ideal choice for forecasting future trends in financial markets. By leveraging this model, investors can gain valuable insights into potential market movements and adjust their investment strategies accordingly. Overall, the promising results obtained from applying LSTM-based models highlight their potential value in supporting investors' decision-making processes and ultimately improving investment outcomes.

Keywords: Machine learning; stock prediction; LSTM
Published: March 25, 2024
DOI: 10.54254/2755-2721/51/20241345
Volume: ACE Vol.51
pp. 196-201
Download PDF

References

  1. Argade S, Chothe P, Gawande A and Joshi S 2022 SSRN 4128716.
  2. Mobarra M 2023 LSTM stock price prediction Kaggle Retrieved from: https://wwwkagglecom/code/mahdimobarra/lstm-stock-price-prediction.
  3. Colah A 2015 Understanding LSTM networks Retrieved from: http://colahgithubio/posts/2015-08-Understanding-LSTMs/
  4. Grigoryan H 2016 Database Systems Journal vol 7 p 1.
  5. Qian F and Chen X 2019 IEEE 4th International Conference on Cloud Computing and Big Data Analysis (ICCCBDA) Chengdu China 2019 pp 483-486.
  6. Cheng L C, Huang Y H, and Wu M E 2018 IEEE International Conference on Big Data (Big Data) Seattle WA USA pp 4716-4718.
  7. Tinto V 1975 Review of Educational Research vol 45(1) pp 89-125.
  8. Madge S and Bhatt S 2015 Applied Mathematics Journal of Hindawi vol 20 p 18.
  9. Gupta U Bhattacharjee V and Bishnu P S 2022 Expert Systems with Applications vol 207 p 117986.
  10. Kanwal A, Lau M F, Ng S P H, Sim K Y and Chandrasekaran S 2022 Expert Systems with Applications vol 202 p 117123.