LSTM prediction capability on the South African JSE Top 40 of historical and live data
Thesis / Dissertation
2025
Permanent link to this Item
Authors
Supervisors
Journal Title
Link to Journal
Journal ISSN
Volume Title
Publisher
Publisher
University of Cape Town
Department
Faculty
License
Series
Abstract
This study evaluates the efficacy of Long Short-Term Memory (LSTM) models in stock price forecasting using data from the South African FTSE/JSE Top 40 index, a domain yet to be extensively explored, particularly in real-time data analysis. Addressing the gap in existing research, this study assesses LSTM model predictive capability in the South African stock market on historical data and its adaptability to the dynamic, real-time stock market environment over the period from January 2001 to January 2024. Various LSTM models were trained with different configurations, and the results show that a single-layer LSTM model performs better than its multilayer counterpart in processing historical data, in terms of the mean absolute error (MAE), the root mean square error (RMSE), Mean Absolute Percentage Error (MAPE) and the R-squared. However, when applied to real-time data, the accuracy of the single-layer model diminishes, underscoring the challenges posed by the dynamic and unpredictable nature of live stock market conditions. The findings contribute to the field of financial forecasting by demonstrating the strengths and limitations of the LSTM model in the context of the South African stock market. While showcasing significant potential in historical data analysis, performing on par with previous studies, the study underscores the need for further development of the model for real-time forecasting. Future research directions include extending the testing period, integrating diverse data sets, and exploring a combination of LSTM with other forecasting methodologies.
Description
Keywords
Reference:
Elhag, M. 2025. LSTM prediction capability on the South African JSE Top 40 of historical and live data. . University of Cape Town ,Faculty of Commerce ,School of Economics. http://hdl.handle.net/11427/41537