- Journal of Artificial Intelligence and Data Science
- Volume:3 Issue:1
- Predicting Stock Price from Historical Data using LSTM Technique
Predicting Stock Price from Historical Data using LSTM Technique
Authors : Foysal Ahamed NİROB, Mohammad Mahmudul HASAN
Pages : 36-49
View : 82 | Download : 84
Publication Date : 2023-06-30
Article Type : Research Paper
Abstract :The accurate prediction of stock prices in the financial domain has always been a challenging task. While the Efficient Market Hypothesis declared that it is impossible to predict stock prices accurately, research has shown that stock price changes may be predicted with some degree of certainty with predictive models if appropriate and suitable variables are chosen. This work presents a robust and accurate model using statistical and Long Short-Term Memory insert ignore into journalissuearticles values(LSTM); techniques. Daily stock price data of a particular company was collected from the Yahoo Finance database which served as the primary source for the analysis. The Long Short-Term Memory insert ignore into journalissuearticles values(LSTM); technique was mainly used to forecast the stock market closing price on a particular day. The accuracy of this model was evaluated through multiple matrices which included Mean Squared Error insert ignore into journalissuearticles values(MSE);, Root Mean Squared Error insert ignore into journalissuearticles values(RMSE);, Mean Absolute Error insert ignore into journalissuearticles values(MAE);, R-squared, and Directional Accuracy. This provided a clear and comprehensive assessment of the accuracy and performance. This study not only predicted the stock price using the proposed LSMA model but also analysed its accuracy by comparing it with popular conventional methods such as Simple Moving Average insert ignore into journalissuearticles values(SMA); and Exponential Moving Average insert ignore into journalissuearticles values(EMA); providing insights into the effectiveness of the LSMA model.Keywords : Long Short Term Memory, Simple moving average, Stock Price Prediction, Recurrent Neural Network, Directional Accuracy