Stock Price Prediction and Traditional Models: An Approach to Achieve Short-, Medium- and Long-Term Goals
- 1 Department of Statistics, Federal College of Animals Health and Production Technology, Ibadan, Nigeria
- 2 New York Institute of Technology, New York, USA
Abstract
A comparative analysis of deep learning models and traditional statistical methods for stock price prediction uses data from the Nigerian stock exchange. Historical data, including daily prices and trading volumes, are employed to implement models such as Long Short Term Memory (LSTM) networks, Gated Recurrent Units (GRUs), Autoregressive Integrated Moving Average (ARIMA), and Autoregressive Moving Average (ARMA). These models are assessed over three-time horizons: short-term (1 year), medium-term (2.5 years), and long-term (5 years), with performance measured by Mean Squared Error (MSE) and Mean Absolute Error (MAE). The stability of the time series is tested using the Augmented Dickey-Fuller (ADF) test. Results reveal that deep learning models, particularly LSTM, outperform traditional methods by capturing complex, nonlinear patterns in the data, resulting in more accurate predictions. However, these models require greater computational resources and offer less interpretability than traditional approaches. The findings highlight the potential of deep learning for improving financial forecasting and investment strategies. Future research could incorporate external factors such as social media sentiment and economic indicators, refine model architectures, and explore real-time applications to enhance prediction accuracy and scalability.
- Chatterjee, A., Bhowmick, H. and Sen, J. (2021) Stock Price Prediction Using Time Series, Econometric, Machine Learning, and Deep Learning Models. In 2021 IEEE Mysore Sub Section International Conference (MysuruCon), Hassan, 24 October 2021, 89-296. https://doi.org/10.1109/MysuruCon52639.2021.9641610
- Liu, J., Chao, F., Lin, Y.-C. and Lin, C.-M. (2019) Stock Prices Prediction Using Deep Learning Models. arXiv: 1909.12227. https://doi.org/10.48550/arxiv.1909.12227
- Vijh, M., Chandola, D., Tikkiwal, V.A. and Kumar, A. (2020) Stock Closing Price Prediction Using Machine Learning Techniques. Procedia Computer Science , 167, 599-606. https://doi.org/10.1016/j.procs.2020.03.326
- Nikou, M., Mansourfar, G. and Bagherzadeh, J. (2019) Stock Price Prediction Using DEEP Learning Algorithm and Its Comparison with Machine Learning Algorithms. Intelligent Systems in Accounting , Finance and Management , 26, 164-174. https://doi.org/10.1002/isaf.1459
- Gao, W. and Su, C. (2020) Analysis on Block Chain Financial Transaction under Artificial Neural Network of Deep Learning. Journal of Computational and Applied Mathematics , 380, Article 112991. https://doi.org/10.1016/j.cam.2020.112991
- Kalyoncu, S., Jamil, A., Karataş, E., Rasheed, J. and Djeddi, C. (2020) Stock Market Value Prediction Using Deep Learning. Data Science and Applications , 3, 10-14. https://www.jdatasci.com/index.php/jdatasci/article/view/42
- Aygun, B. and Kabakci Gunay, E. (2021) Günlük Bitcoin Değerini Tahmin Etmek İçin İstatistiksel ve Makine Öğrenimi Algoritmalarının Karşılaştırılması. European Journal of Science and Technology , No. 21, 444-454. https://doi.org/10.31590/ejosat.822153
- Khanderwal, S. and Mohanty, D. (2021) Stock Price Prediction Using ARI-MA Model. International Journal of Marketing & Human Resource Research , 2, 98-107. https://journal.jis-institute.org/index.php/ijmhrr/article/view/235
- Rubi, M.A., Chowdhury, S., Abdul Rahman, A.A., Meero, A., Zayed, N.M. and Islam, K.M.A. (2022) Fitting Multi-Layer Feed Forward Neural Network and Autoregressive Integrated Moving Average for Dhaka Stock Exchange Price Predicting. Emerging Science Journal , 6, 1046-1061. https://doi.org/10.28991/esj-2022-06-05-09
- Mehtab, S., Sen, J. and Dutta, A. (2021) Stock Price Prediction Using Machine Learning and LSTM-Based Deep Learning Models. Machine Learning and Metaheuristics Algorithms , and Applications , Chennai, 14-17 October 2020, 88-106. https://doi.org/10.1007/978-981-16-0419-5_8