Forecasting Stock Returns Using Long Short-Term Memory (LSTM) Model Based on Inflation Data and Historical Stock Price Movements
Dublin Core
Title
Forecasting Stock Returns Using Long Short-Term Memory (LSTM) Model Based on Inflation Data and Historical Stock Price Movements
Subject
forecasting; inflation; long short-term memory; stock forecasting; stock return
Description
The stock market is crucial for economic growth and development, offering profit opportunities that attract investors worldwide. However, its inherent volatility necessitates the inclusion of macroeconomic indicators like inflation, which can affect stock valuation and investor behavior.This study explores predicting stock returns using a Long Short-Term Memory (LSTM) model by incorporating inflation data, historical stock price movements, and calculated returns as input features. Thedataset was split into 80% for training and 20% for testing, with hyperparameter tuning conducted using the RMSprop optimizer under varying batch sizes and epoch settings. Experimental results show that the configuration using RMSprop with a batch size of 8 and 200 epochs delivered the best performance, achieving a Root Mean Squared Error (RMSE) of 0.0167 and a Mean Absolute Percentage Error (MAPE) of 25.89%. These results represent a significant improvement over alternative configurations and previous benchmarks. This study underscores the importance of including inflation as a predictive variable, enhancing the model's accuracy. The findings highlight the relevance of incorporating macroeconomic factors into stock returnforecasting, providing valuable insights for investors and financial analysts seeking data-driven strategies in decision-making processes
Creator
Nur Faid Prasetyo1, Wina Witanti2*, Asep Id Hadiana
Source
https://jurnal.iaii.or.id/index.php/RESTI/article/view/6422/1056
Publisher
Departmentof Informatics, Facultyof Science and Informatics, Universitas Jenderal Achmad Yani, Cimahi, Indonesia
Date
May 24, 2025
Contributor
FAJAR BAGUS W
Format
PDF
Language
ENGLISH
Type
TEXT
Files
Collection
Citation
Nur Faid Prasetyo1, Wina Witanti2*, Asep Id Hadiana, “Forecasting Stock Returns Using Long Short-Term Memory (LSTM) Model Based on Inflation Data and Historical Stock Price Movements,” Repository Horizon University Indonesia, accessed January 27, 2026, https://repository.horizon.ac.id/items/show/10516.