Empirical evaluation of lstm-based stock price forecasting on the Nairobi securities exchange in Kenya

dc.contributor.authorKitheka, Hellen K.
dc.date.accessioned2026-06-29T16:49:50Z
dc.date.issued2025
dc.description.abstractHaving a precise prediction of stock prices can be of great importance in investment policies and budgeting. The study used the Long Short-Term Memory (LSTM) neural networks to forecast stock price changes through the formation of sequential, nonlinear relationships in financial time series data. Our data provenance and relevance are enhanced by the fact that the dataset contains the official daily stock prices of the official Nairobi Securities Exchange (NSE). Exploratory data analysis was performed before training the prediction model to carefully preprocess and study the stock prices with performance measured against a baseline with common traditional machine learning algorithms including Random Forest, Support Vector Regression, K-Nearest Neighbors and ARIMA. The LSTM generated the lowest RMSE values and maximum R2 values compared to its baselines. To enhance the interpretability of the model even more, we enhanced transparency with the help of SHAP (SHapley Additive exPlanations) analysis that revealed the most influential features used in predicting stock prices. The findings reflect that deep learning is effective in financial forecasts and give a consistent and versatile structure of comparable predictive modeling in capital markets. However, the analysis was limited by the data and the calculation capabilities, which can affect the generalization to high-frequency trading scenarios. Future work should consider hybrid deep learning architecture, including further macroeconomic and sentiment indicators, and testing the framework in other emerging markets to increase robustness and generalizability.
dc.identifier.urihttps://repository.kcau.ac.ke/handle/123456789/1197
dc.language.isoen
dc.publisherKCA University
dc.titleEmpirical evaluation of lstm-based stock price forecasting on the Nairobi securities exchange in Kenya
dc.typeThesis

Files

Original bundle

Now showing 1 - 1 of 1
Thumbnail Image
Name:
Kitheka-Empirical evaluation of lstm-based stock price forecasting on the Nairobi securities exchange in Kenya.pdf
Size:
1.43 MB
Format:
Adobe Portable Document Format

License bundle

Now showing 1 - 1 of 1
No Thumbnail Available
Name:
license.txt
Size:
1.71 KB
Format:
Item-specific license agreed to upon submission
Description: