Research Article

Effectiveness Validation of LSTM for Stock Prices Prediction on Four Stocks

Mingxuan Huang*
Shandong University

* Corresponding author: [email protected]

Abstract

Due to the significant volatility and complexity of financial data, stock price prediction is a difficult undertaking. Researchers have also begun using various models to predict stock prices. LSTM (Long short-term memory) are used in this study to predict the stock prices of four companies between 2013 and 2019. The author compares the performance of two loss functions, MSE (Mean squared error) and MAE (Mean absolute error), and evaluate the effectiveness of the proposed approach. The experiments show that LSTM is a promising model for stock price prediction, and the data's long-term dependencies can be captured by it. The predicted stock price curves closely match the real data curves, although there are some limitations in predicting the changes in stock prices. Furthermore, the study demonstrates that the choice of loss function has a significant impact on the prediction results.As a result, it's crucial to choose the loss function carefully depending on the dataset's features. Overall, the research shows that LSTM and other machine learning models have great potential for stock price prediction. Yet it's crucial to remember that the stock market is incredibly volatile and uncertain, and these models should be used as complementary tools to assist human experts in making investment decisions.

Keywords: deep learning; LSTM; stock price prediction
Published: August 1, 2023
DOI: 10.54254/2755-2721/8/20230279
Volume: ACE Vol.8
pp. 578-583
Download PDF

References

  1. Avdalovic, S. M., & Milenković, I. (2017). Impact of company performances on the stock price: An empirical analysis on select companies in Serbia. Economics of Agriculture, 64(2), 561-570.
  2. Masulis, R. W. (1980). Stock repurchase by tender offer: An analysis of the causes of common stock price changes. The Journal of Finance, 35(2), 305-319.
  3. Lu, W., Li, J., Wang, J., & Qin, L. (2021). A CNN-BiLSTM-AM method for stock price prediction. Neural Computing and Applications, 33, 4741-4753.
  4. Hu, Z., Zhao, Y., & Khushi, M. (2021). A survey of forex and stock price prediction using deep learning. Applied System Innovation, 4(1), 9.
  5. Soni, P., Tewari, Y., & Krishnan, D. (2022). Machine Learning approaches in stock price prediction: A systematic review. In Journal of Physics: Conference Series, 2161(1), 012065.
  6. Li, H., Shen, Y., & Zhu, Y. (2018). Stock price prediction using attention-based multi-input LSTM. In Asian conference on machine learning, 454-469.
  7. Ding, G., & Qin, L. (2020). Study on the prediction of stock price based on the associated network model of LSTM. International Journal of Machine Learning and Cybernetics, 11, 1307-1317.
  8. Pramod, B. S., & Pm, M. S. (2021). Stock price prediction using LSTM. Test Engineering and Management, 83, 5246-5251.
  9. Lawrence, A., Ryans, J., Sun, E., & Laptev, N. (2018). Earnings announcement promotions: A Yahoo Finance field experiment. Journal of Accounting and Economics, 66(2-3), 399-414.
  10. Ferdiansyah, F., Othman, S. H., Radzi, R. Z. R. M., Stiawan, D., Sazaki, Y., & Ependi, U. (2019, October). A lstm-method for bitcoin price prediction: A case study yahoo finance stock market. In 2019 International Conference on Electrical Engineering and Computer Science (ICECOS), 206-210.