Research Article

Predicting Stock Price from Historical Data using LSTM Technique

Volume: 3 Number: 1 June 30, 2023
EN

Predicting Stock Price from Historical Data using LSTM Technique

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 (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 (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 (MSE), Root Mean Squared Error (RMSE), Mean Absolute Error (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 (SMA) and Exponential Moving Average (EMA) providing insights into the effectiveness of the LSMA model.

Keywords

References

  1. [1] J. Sen, and T. D. Chaudhuri, “An alternative framework for time-series decomposition and forecasting and its relevance for portfolio choice - a comparative study of the Indian consumer durable and small-cap sector,” Journal of Economic Libraries, vol. 3, no. 2, pp. 303-326, 2016.
  2. [2] J. Sen, and T. D. Chaudhuri, “Decomposition of time series data of stock markets and its implications for prediction - An application for the Indian auto sector,” In Proceedings of the 2nd National Conference on Advances in Business Research and Management Practices, Kolkata, India, pp. 15-28, 2016.
  3. [3] J. Sen, and T. D. Chaudhuri, “An investigation of the structural characteristics of the Indian IT sector and the capital goods sector - An application of the R programming language in time series decomposition and forecasting,” Journal of Insurance and Financial Management, vol. 1, no. 4, pp. 68-132, 2016.
  4. [4] J. Sen, and T. D. Chaudhuri, “A time series analysis-based forecasting framework for the Indian healthcare sector,” Journal of Insurance and Financial Management, vol. 3, no. 1, pp. 66-94, 2017.
  5. [5] J. Sen, and T. D. Chaudhuri, “A Robust Analysis and Forecasting Framework for the Indian Mid Cap Sector Using Time Series Decomposition Approach,” Journal of Insurance and Financial Management, vol. 3, no. 4, pp. 1-32, 2017.
  6. [6] Y. Deshmukh, D. Saratkar, and Y. Tiwari, “Stock market prediction using machine learning,” International Journal of Advanced Research in Computer and Communication Engineering, pp. 31-35, 2019.
  7. [7] K. Kim and I. Han, “Genetic algorithms approach to feature discretization in artificial neural networks for the prediction of stock price index,” Expert Systems with Applications, vol. 19, pp. 125-132, 2000.
  8. [8] M. Qiu and Y. Song, “Predicting the direction of stock market index movement using an optimized artificial neural network model,” Public Library of Science ONE, vol. 11, no. 5, pp. 1-12, 2016.

Details

Primary Language

English

Subjects

Artificial Intelligence

Journal Section

Research Article

Publication Date

June 30, 2023

Submission Date

April 20, 2023

Acceptance Date

June 16, 2023

Published in Issue

Year 2023 Volume: 3 Number: 1

APA
Nirob, F. A., & Hasan, D. M. M. (2023). Predicting Stock Price from Historical Data using LSTM Technique. Journal of Artificial Intelligence and Data Science, 3(1), 36-49. https://izlik.org/JA75GG43FY
AMA
1.Nirob FA, Hasan DMM. Predicting Stock Price from Historical Data using LSTM Technique. Journal of Artificial Intelligence and Data Science. 2023;3(1):36-49. https://izlik.org/JA75GG43FY
Chicago
Nirob, Foysal Ahamed, and Dr. Mohammad Mahmudul Hasan. 2023. “Predicting Stock Price from Historical Data Using LSTM Technique”. Journal of Artificial Intelligence and Data Science 3 (1): 36-49. https://izlik.org/JA75GG43FY.
EndNote
Nirob FA, Hasan DMM (June 1, 2023) Predicting Stock Price from Historical Data using LSTM Technique. Journal of Artificial Intelligence and Data Science 3 1 36–49.
IEEE
[1]F. A. Nirob and D. M. M. Hasan, “Predicting Stock Price from Historical Data using LSTM Technique”, Journal of Artificial Intelligence and Data Science, vol. 3, no. 1, pp. 36–49, June 2023, [Online]. Available: https://izlik.org/JA75GG43FY
ISNAD
Nirob, Foysal Ahamed - Hasan, Dr. Mohammad Mahmudul. “Predicting Stock Price from Historical Data Using LSTM Technique”. Journal of Artificial Intelligence and Data Science 3/1 (June 1, 2023): 36-49. https://izlik.org/JA75GG43FY.
JAMA
1.Nirob FA, Hasan DMM. Predicting Stock Price from Historical Data using LSTM Technique. Journal of Artificial Intelligence and Data Science. 2023;3:36–49.
MLA
Nirob, Foysal Ahamed, and Dr. Mohammad Mahmudul Hasan. “Predicting Stock Price from Historical Data Using LSTM Technique”. Journal of Artificial Intelligence and Data Science, vol. 3, no. 1, June 2023, pp. 36-49, https://izlik.org/JA75GG43FY.
Vancouver
1.Foysal Ahamed Nirob, Dr. Mohammad Mahmudul Hasan. Predicting Stock Price from Historical Data using LSTM Technique. Journal of Artificial Intelligence and Data Science [Internet]. 2023 Jun. 1;3(1):36-49. Available from: https://izlik.org/JA75GG43FY

All articles published by JAIDA are licensed under a Creative Commons Attribution 4.0 International License.

88x31.png