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.
References
[1]
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
[2]
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
[3]
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
[4]
Nikou, M., Mansourfar, G. and Bagherzadeh, J. (2019) Stock Price Prediction Using DEEP Learning Algorithm and Its Comparison with Machine Learning Algorithms. IntelligentSystemsinAccounting, FinanceandManagement, 26, 164-174. https://doi.org/10.1002/isaf.1459
[5]
Gao, W. and Su, C. (2020) Analysis on Block Chain Financial Transaction under Artificial Neural Network of Deep Learning. JournalofComputationalandAppliedMathematics, 380, Article 112991. https://doi.org/10.1016/j.cam.2020.112991
[6]
Kalyoncu, S., Jamil, A., Karataş, E., Rasheed, J. and Djeddi, C. (2020) Stock Market Value Prediction Using Deep Learning. DataScienceandApplications, 3, 10-14. https://www.jdatasci.com/index.php/jdatasci/article/view/42
[7]
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ı. EuropeanJournalofScienceandTechnology, No. 21, 444-454. https://doi.org/10.31590/ejosat.822153
[8]
Khanderwal, S. and Mohanty, D. (2021) Stock Price Prediction Using ARI-MA Model. InternationalJournalofMarketing&HumanResourceResearch, 2, 98-107. https://journal.jis-institute.org/index.php/ijmhrr/article/view/235
[9]
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. EmergingScienceJournal, 6, 1046-1061. https://doi.org/10.28991/esj-2022-06-05-09
[10]
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
[11]
Rahman, M.O., Hossain, M.S., Junaid, T.S., Forhad, M.S.A. and Hossen, M.K. (2019) Predicting Prices of Stock Market Using Gated Recurrent Units (GRUs) Neural Networks. InternationalJournalofComputerScienceandNetworkSecurity, 19, 213-222.
[12]
Chen, C., Xue, L. and Xing, W. (2023) Research on Improved GRU-Based Stock Price Prediction Method. AppliedSciences, 13, Article 8813. https://doi.org/10.3390/app13158813
[13]
Wu, H., Chen, S. and Ding, Y. (2023) Comparison of ARIMA and LSTM for Stock Price Prediction. Financial Engineering and Risk Management, 6, 1-7. https://doi.org/10.23977/ferm.2023.060101
[14]
Ghosh, A., Bose, S., Maji, G., Debnath, N. and Sen, S. (2019) Stock Price Prediction Using LSTM on Indian Share Market. EPiC Series in Computing, 63, 101-110. https://doi.org/10.29007/qgcz
[15]
Nabipour, M., Nayyeri, P., Jabani, H., Mosavi, A., Salwana, E. and Shahab, S. (2020) Deep Learning for Stock Market Prediction. Entropy, 22, Article 840. https://doi.org/10.3390/e22080840
[16]
Hu, Z., Zhao, Y. and Khushi, M. (2021) A Survey of Forex and Stock Price Prediction Using Deep Learning. AppliedSystemInnovation, 4, Article 9. https://doi.org/10.3390/asi4010009
[17]
Moghar, A. and Hamiche, M. (2020) Stock Market Prediction Using LSTM Recurrent Neural Network. ProcediaComputerScience, 170, 1168-1173. https://doi.org/10.1016/j.procs.2020.03.049
[18]
Nti, I.K., Adekoya, A.F. and Weyori, B.A. (2019) A Systematic Review of Fundamental and Technical Analysis of Stock Market Predictions. ArtificialIntelligenceReview, 53, 3007-3057. https://doi.org/10.1007/s10462-019-09754-z
[19]
Ma, Q. (2020) Comparison of ARIMA, ANN and LSTM for Stock Price Prediction. E3SWebofConferences, 218, Article 01026. https://doi.org/10.1051/e3sconf/202021801026
[20]
Seabe, P.L., Moutsinga, C.R.B. and Pindza, E. (2023) Forecasting Cryptocurrency Prices Using LSTM, GRU, and Bi-Directional LSTM: A Deep Learning Approach. FractalandFractional, 7, Article 203. https://doi.org/10.3390/fractalfract7020203
[21]
Wikipedia (2024) Augmented Dickey-Fuller Test. https://en.wikipedia.org/w/index.php?title=Augmented_Dickey%E2%80%93Fuller_test&oldid=1225407051
[22]
Siam, M.K.H., Tasnia, N., Mahmud, S., Halder, M. and Rana, M.M. (2023) A Next-Generation Device for Crop Yield Prediction Using IoT and Machine Learning. In: Nguyen, T.D.L., Verdú, E., Le, A.N. and Ganzha, M., Eds., Intelligent Systems and Networks, Springer, 668-678. https://doi.org/10.1007/978-981-99-4725-6_78
[23]
Siam, M.K., Bhattacharjee, M., Mahmud, S. and Masud, M. (2023) The Impact of Machine Learning on Society: An Analysis of Current Trends and Future Implications. EasyChair Preprint. https://doi.org/10.13140/RG.2.2.18751.48804
[24]
Smith, C.E., Shiekh, K., Cooreman, H., Rahman, S., Zhu, Y., Siam, M.K., et al. (2024) Early Adoption of Generative Artificial Intelligence in Computing Education: Emergent Student Use Cases and Perspectives in 2023. Proceedingsofthe 2024 onInnovationandTechnologyinComputerScienceEducationV. 1, Milan, 8-10 July 2024, 3-9. https://doi.org/10.1145/3649217.3653575