Department of Statistics and Actuarial Science, Dedan Kimathi University of Technology, Nyeri, Kenya.
* Corresponding Author
ORCID Details
Dennis Cheruiyot Kiplangat: https://orcid.org/0000-0002-7545-3894
Simon Maina Mundia: https://orcid.org/0009-0002-1089-6392
International Journal of Science and Research Archive, 2026, 21(01), 101–117
Article DOI: 10.30574/ijsra.2026.21.1.1845
Received on 25 August 2026; revised on 30 September 2026; accepted on 02 October 2026
Financial time series exhibit complex characteristics, including volatility, nonlinearity, and temporal dependencies, which make accurate forecasting challenging. This study investigated the use of a dynamic Long Short-Term Memory (LSTM) neural network to forecast stock prices and market direction. Augmented Dickey-Fuller tests confirmed stationarity of the return series, while model performance was evaluated using RMSE, MAPE, Directional Accuracy, and Theil's U-statistic against a naive forecasting benchmark. The model achieved low forecasting errors, with Apple and Microsoft recording RMSE values of 4.56 and 5.34 and MAPE values of 2.34% and 2.87%, respectively. Nvidia and Tesla recorded MAPE values of 2.98% and 4.12%. Directional Accuracy ranged from 56.7% to 62.1%, while Theil's U-statistic ranged from 0.67 to 0.85, indicating improved performance relative to the naive benchmark. Diebold-Mariano tests also indicated superior predictive performance compared with selected traditional and static neural-network models. Residual diagnostics showed fat-tailed errors but no significant residual serial correlation. The findings indicate that dynamic LSTM networks can effectively capture nonlinear temporal dependencies in financial time series and have potential applications in financial forecasting, algorithmic trading and portfolio risk management.
Stock Return Forecasting; Financial Time Series; Dynamic Long Short-Term Memory (DLSTM); Sequential Neural Networks; Deep Learning; Time-Series Prediction; Directional Accuracy; Algorithmic Trading.
Preview Article PDF
James Asumbo Otieno, Dennis Cheruiyot Kiplangat and Simon Maina Mundia. PREDICTING CLOSING STOCK RETURNS USING SEQUENTIAL ARTIFICIAL NEURAL NETWORK. International Journal of Science and Research Archive, 2026, 21(01), 101–117. Article DOI: https://doi.org/10.30574/ijsra.2026.21.1.1845.






