LSTM-Based Time Series Prediction Model: A Case Study with YFinance Stock Data
The goal of this study is to anticipate the time series of stock data that YFinance provides using a Long Short-Term Memory (LSTM) model, with a particular emphasis on the closing prices and daily returns of Apple Inc. (AAPL). The historical closing price data from January 1, 2010, to September 20,...
Saved in:
Main Author: | |
---|---|
Format: | Article |
Language: | English |
Published: |
EDP Sciences
2025-01-01
|
Series: | ITM Web of Conferences |
Online Access: | https://www.itm-conferences.org/articles/itmconf/pdf/2025/01/itmconf_dai2024_03015.pdf |
Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
_version_ | 1825206595776151552 |
---|---|
author | Yu Yimiao |
author_facet | Yu Yimiao |
author_sort | Yu Yimiao |
collection | DOAJ |
description | The goal of this study is to anticipate the time series of stock data that YFinance provides using a Long Short-Term Memory (LSTM) model, with a particular emphasis on the closing prices and daily returns of Apple Inc. (AAPL). The historical closing price data from January 1, 2010, to September 20, 2021, was used as the training set, while the data from September 21, 2021, to August 22, 2024, was employed as the validation set to test the model’s predictive capability. The experimental results demonstrate that the LSTM architecture performs excellently in handling data with long-term dependencies and trends, attaining a root mean square error (RMSE) of 5.2129 and a coefficient of determination (R2) of 0.94, thus accurately forecasting the stock price movements of Apple Inc. However, the model exhibits poor performance in predicting high-frequency fluctuations, with an R2 of only -0.1, indicating a weak ability to capture high-frequency volatility. |
format | Article |
id | doaj-art-cad60d91a0664e3ebafa9a10afb1f4b5 |
institution | Kabale University |
issn | 2271-2097 |
language | English |
publishDate | 2025-01-01 |
publisher | EDP Sciences |
record_format | Article |
series | ITM Web of Conferences |
spelling | doaj-art-cad60d91a0664e3ebafa9a10afb1f4b52025-02-07T08:21:11ZengEDP SciencesITM Web of Conferences2271-20972025-01-01700301510.1051/itmconf/20257003015itmconf_dai2024_03015LSTM-Based Time Series Prediction Model: A Case Study with YFinance Stock DataYu Yimiao0Department of Information Engineering, Zhejiang Ocean UniversityThe goal of this study is to anticipate the time series of stock data that YFinance provides using a Long Short-Term Memory (LSTM) model, with a particular emphasis on the closing prices and daily returns of Apple Inc. (AAPL). The historical closing price data from January 1, 2010, to September 20, 2021, was used as the training set, while the data from September 21, 2021, to August 22, 2024, was employed as the validation set to test the model’s predictive capability. The experimental results demonstrate that the LSTM architecture performs excellently in handling data with long-term dependencies and trends, attaining a root mean square error (RMSE) of 5.2129 and a coefficient of determination (R2) of 0.94, thus accurately forecasting the stock price movements of Apple Inc. However, the model exhibits poor performance in predicting high-frequency fluctuations, with an R2 of only -0.1, indicating a weak ability to capture high-frequency volatility.https://www.itm-conferences.org/articles/itmconf/pdf/2025/01/itmconf_dai2024_03015.pdf |
spellingShingle | Yu Yimiao LSTM-Based Time Series Prediction Model: A Case Study with YFinance Stock Data ITM Web of Conferences |
title | LSTM-Based Time Series Prediction Model: A Case Study with YFinance Stock Data |
title_full | LSTM-Based Time Series Prediction Model: A Case Study with YFinance Stock Data |
title_fullStr | LSTM-Based Time Series Prediction Model: A Case Study with YFinance Stock Data |
title_full_unstemmed | LSTM-Based Time Series Prediction Model: A Case Study with YFinance Stock Data |
title_short | LSTM-Based Time Series Prediction Model: A Case Study with YFinance Stock Data |
title_sort | lstm based time series prediction model a case study with yfinance stock data |
url | https://www.itm-conferences.org/articles/itmconf/pdf/2025/01/itmconf_dai2024_03015.pdf |
work_keys_str_mv | AT yuyimiao lstmbasedtimeseriespredictionmodelacasestudywithyfinancestockdata |