Performance Evaluation of Long Short-Term Memory and Autoregressive Integrated Moving Average Time Series Models for Stock Price Prediction
Authors
Adeniran, Rachel Ihunanya.
Department of Computer Science Ladoke Akintola University of Technology, Ogbomoso, Oyo state Nigeria (NG)
Olabiyisi, Stephen Olatunde.
Department of Computer Science Ladoke Akintola University of Technology, Ogbomoso, Oyo state Nigeria (NG)
Ismaila, Wasiu Oladimeji.
Department of Computer Science Ladoke Akintola University of Technology, Ogbomoso, Oyo state Nigeria (NG)
Oyedele, Adebayo Olalere.
Department of Computer Science Ladoke Akintola University of Technology, Ogbomoso, Oyo state Nigeria (NG)
Olagbemiro, Catherine Olatorera
Department of Computer Science Ladoke Akintola University of Technology, Ogbomoso, Oyo state Nigeria (NG)
Article Information
DOI: 10.51583/IJLTEMAS.2025.14020021
Subject Category: Computer Science
Volume/Issue: 14/2 | Page No: 192-199
Publication Timeline
Submitted: 2025-03-15
Published: 2025-03-15
Abstract
Abstract: Stock price prediction is a critical task in financial markets, often complicated by the challenges of modeling highly volatile, non-linear, and dynamic time series data. This study evaluates the performance of two prominent forecasting models: Long Short-Term Memory (LSTM) networks, known for their ability to capture long-term dependencies and non-linear patterns, and the Auto-Regressive Integrated Moving Average (ARIMA), a traditional statistical model adept at linear trend modeling.
Historical stock price data from the Nigerian Exchange Limited (NGX) was utilized. Both models were implemented in a Python environment, and their predictive accuracy was assessed using performance metrics, including Mean Absolute Error (MAE), Root Mean Squared Error (RMSE), Mean Absolute Percentage Error (MAPE), and R-squared (R²). Additionally, the Diebold-Mariano (DM) test was employed to statistically compare the models’ predictive accuracies.
This study highlights the potential of LSTM models for robust stock price forecasting and provides valuable insights for selecting predictive models based on data complexity and market dynamics.
Keywords
Performance, Evaluation, Stock Price, LSTM, ARIMA
Downloads
References
1. Abubakar S. M, Adeboye K. R (2014) An intense Nigerian stock exchange market prediction using logistic with back-propagation ANN model. Science World Journal. [Google Scholar] [Crossref]
2. Adebiyi A. A, Ayo C. K, Adebiyi M. O, Otokiti S. O (2012) Stock prediction using neural network with hybridized market indicators. Journal of Emerging Trends in computing and Information Science. 3:1. [Google Scholar] [Crossref]
3. Adebola K., and Ifechukwude Jude Okafor (2024) “Forecasting Nigerian Equity Stock Returns Using Long Short-Term Memory Technique”. Journal of Advances in Mathematics and Computer Science 39 (7):45-54. [Google Scholar] [Crossref]
4. Adetunji A. B, Ganiyu A. A, Omidiora E. O and Adigun A. A (2013) Forecasting Movement of the Nigerian Stock Exchange All Share Index using Artificial Neural and Bayesian Networks. Journal of Finance and Investment Analysis, vol. 2, no.1, 2013, 41-59 ISSN: 2241-0998 (print version), 2241-0996(online) Scienpress Ltd, 2013 [Google Scholar] [Crossref]
5. Appel, G (2005) Technical analysis: power tools for active investors: FT Press [Google Scholar] [Crossref]
6. Biondo AE, Pluchino A, Rapisarda A, Helbing D (2013) Are random trading strategies more successful than technical ones? PloS one 8(7):e68344 Applying machine learning algorithms to predict [Google Scholar] [Crossref]
7. Borovkova S, Tsiamas I (2019) An ensemble of LSTM neural networks for high frequency stock market classification. J Forecast 38(6):600–619 [Google Scholar] [Crossref]
8. Brown S. J, Goetzmann WN, Kumar A (1998) The Dow theory: William Peter Hamilton’s track record reconsidered. J Financ 53(4):1311–1333 [Google Scholar] [Crossref]
9. Chanddrika P. V, Sreenvasan K. S (2020) Application of deep learning techniques on stock market indices. Journal of scientific Engineering. 7:10. [Google Scholar] [Crossref]
10. El-Nagar A. M, Zaki A. M, Soliman FAS, El-Bardini M (2022) Hybrid deep learning diagonal recurrent neural network controller for nonlinear systems. Neural Comput Appl 34(24):22367–22386. https://doi.org/10.1007/s00521-022-07673-9 [Google Scholar] [Crossref]
11. Fromlet, H. (2001) Behavioral finance-theory and practical application: Systematic analysis of departures from the homo oeconomicus paradigm are essential for realistic financial research and analysis. Business Economics, 63–69 [Google Scholar] [Crossref]
12. Ibidapo I, Adebiyi A, Okesola O (2017). Soft computing technique for stock market prediction: A literature survey. Covenant Journal of Informatics and Communication Technology. [Google Scholar] [Crossref]
13. Le TTH, Nguyen V. C, Phan THN (2022) Foreign Direct Investment, Environmental Pollution and Economic Growth—An Insight from Non-Linear ARDL Co-Integration Approach. Sustainability 14(13):8146. https://doi.org/ 10.3390/su14138146. Retrieved from learning a review paper. Int J Computer Appl 163(5):36–43 [Google Scholar] [Crossref]
14. Neenwi S, Asagba P. O, Kabari L. G (2013) Predicting the Nigerian stock market using artificial neural network. European Journal of Computer Science and Information 1(1):30-39. [Google Scholar] [Crossref]
15. Nelson, D. M, Pereira, A. C, and de Oliveira, R. A (2017) Stock market’s price movement prediction with LSTM neural networks. Paper presented at the 2017 International joint conference on neural networks (IJCNN) of Vietnam [Google Scholar] [Crossref]
16. Phuoc, T., Anh, P.T.K., Tam, P.H. et al., Applying machine learning algorithms to predict the stock price trend in the stock market – The case of Vietnam. Humanit Soc Sci Commun 11, 393 (2024). https://doi.org/10.1057/s41599-024-02807-x [Google Scholar] [Crossref]
17. Roman J, Jameel A (1996) Backpropagation and recurrent neural networks in financial analysis of multiple stock market returns. Proc HICSS-29: 29th Hawaii Int Conf Syst Sci 2:454–460 vol.2. https://doi.org/10.1109/HICSS.1996.495431. [Google Scholar] [Crossref]
18. Trinh H. H, Nguyen C. P, Hao W, Wongchoti U (2021) Does stock liquidity affect bankruptcy risk? DID analysis from Vietnam. Pac-Basin Financ J 69:101634. [Google Scholar] [Crossref]
19. Zhuge Q, Xu L, Zhang G (2017) LSTM Neural Network with Emotional Analysis Stock Price - Definition, Price Changes, How to Determine (corporatefinanceinstitute.com) [Google Scholar] [Crossref]
Metrics
Views & Downloads
Similar Articles
- Leveraging Pension Assets for Investment in Nigeria's Marginal Oil Fields: A Conceptual Analysis
- The Influence of Green Technology, Environmental Disclosure and Green Intellectual Capital on Stock Returns
- Performance Evaluation of Some Machine Learning Models for Music Genre Classification
- The Impact of Generative Artificial Intelligence on University Information Literacy Education: A Systematic Review from Challenges to Changes
- Development of a Manychat Based Chatbot for Automated Customer Support System