Stock Market Analysis and Prediction Using LSTM: A Case Study on Technology Stocks

Zhenglin Li,Hanyi Yu,Jinxin Xu,Jihang Liu,Yuhong Mo
DOI: https://doi.org/10.62836/iaet.v2i1.162
2023-11-24
Abstract:This research explores the application of Long Short-Term Memory (LSTM) networks for stock market analysis and prediction, focusing on four major technology stocks: Apple Inc. (AAPL), Google LLC (GOOG), Microsoft Corporation (MSFT), and Amazon.com Inc. (AMZN). Historical stock price data from Yahoo Finance spanning from January 1, 2012, to the present is utilized. The study aims to develop and evaluate an LSTM-based prediction model for forecasting future stock prices. The LSTM model consists of two LSTM layers with 128 and 64 units, respectively, followed by two dense layers. The model is trained using the Adam optimizer and mean squared error (MSE) loss function. Evaluation of the model is done using the root mean squared error (RMSE) metric. The results demonstrate the potential of LSTM models in capturing complex patterns in stock price movements and making reasonably accurate predictions.
What problem does this paper attempt to address?