Application of Long Short-Term Memory (LSTM) in Stock Price Prediction

  • Sunday D
N/ACitations
Citations of this article
12Readers
Mendeley users who have this article in their library.

Abstract

No doubt, the stock market has been one of the most volatile and this makes it very difficult to carry out forecast or prediction about the movement in share prices. However, the advent of machine learning is gradually changing the narratives as there are a number of neural networks which could be used to develop models to effectively predict the stock prices. This study examined the application of Long Short-Term Memory algorithms in predicting stock prices using time series data on Apple shares from 2017 to 2022. The closing price of the stocks was adopted and the data split into 98% for training and 2% for test because the study only wanted to make prediction for the last 20 days. TensorFlow together with its subset Keras libraries were employed with other libraries like Dropout for regularization and sklearn for normalization. NumPy to build array, pandas for data analysis were also imported with matplotlib for the purpose of plotting the result graph. The LSTM model was trained to learn from the sequential data and predict the share price. The outcome revealed that the machine learnt very effectively and has a predictive ability for share prices. The model was able to predict the trend or pattern in prices almost accurately.

Cite

CITATION STYLE

APA

Sunday, D. O. (2024). Application of Long Short-Term Memory (LSTM) in Stock Price Prediction. International Journal of Development and Economic Sustainability, 12(3), 36–45. https://doi.org/10.37745/ijdes.13/vol12n33645

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free