A Comparative Analysis of Machine Learning and Deep Learning Techniques for Accurate Market Price Forecasting

SHOBAYO, Olamilekan, ADEYEMI-LONGE, Sidikat, POPOOLA, Olusogo and OKOYEIGBO, Obinna (2024). A Comparative Analysis of Machine Learning and Deep Learning Techniques for Accurate Market Price Forecasting. [Pre-print] (Unpublished) [Pre-print]

Preprints have not been peer-reviewed. They should not be relied on to guide clinical practice or health related behaviour and should not be regarded as conclusive or be reported in news media as established information.
Documents
34209:679841
[thumbnail of preprints202409.1005.v1.pdf]
Preview
PDF
preprints202409.1005.v1.pdf - Pre-print
Available under License Creative Commons Attribution.

Download (2MB) | Preview
Abstract
The study compares three machine learning and deep learning models—Support Vector Regression (SVR), Recurrent Neural Networks (RNN), and Long Short-Term Memory (LSTM)—for predicting market prices using the NGX All-Share Index dataset. The models were evaluated using multiple error metrics, including Mean Absolute Error (MAE), Mean Squared Error (MSE), Root Mean Square Error (RMSE), Mean Percentage Error (MPE), and R-squared. RNN and LSTM were tested with both 30 and 60-day windows, with performance compared to SVR. LSTM delivered better R-squared values, with a 60-day LSTM achieving the best accuracy (R-squared = 0.993) when using a combination of endogenous market data and technical indicators. SVR showed reliable results in certain scenarios but struggled in fold 2 with sudden spike that shows high probability of not capturing the entire underlying NGX pattern in the dataset correctly as witnessed with the high validation loss during the period. Additionally, RNN faced the vanishing gradient problem that limits its long-term performance. Despite challenges, LSTM's ability to handle temporal dependencies, especially with the inclusion of On-Balance Volume, led to significant improvements in prediction accuracy. The use of the Optuna optimization framework further enhanced model training and hyperparameter tuning, contributing to the performance of the LSTM model.
More Information
Statistics

Downloads

Downloads per month over past year

View more statistics

Metrics

Altmetric Badge

Dimensions Badge

Share
Add to AnyAdd to TwitterAdd to FacebookAdd to LinkedinAdd to PinterestAdd to Email

Actions (login required)

View Item View Item