Research Article

Apple, Microsoft, and Amazon stock price prediction based on ARIMA and LSTM

Xinyao Xia*
University of Southern California

* Corresponding author: [email protected]

Abstract

Along with the advancement in technology and data analysis, efforts have been made to use various factors to predict the stock market to improve portfolio performance and ensure an efficient market. This study explores two stock forecasting models, Long Short-Term Memory(LSTM) and Auto Regressive Integrated Moving Average (ARIMA), and evaluates their performance on the same datasets of historical stock prices of Apple, Microsoft, and Amazon. While ARIMA exhibited superior performance in terms of Root Mean Squared Error(RMSE) and R2 metrics, the research acknowledges inherent limitations, such as the exclusion of potential external influencing factors and the simplistic approach toward LSTM optimization. Despite ARIMA's commendable forecasting ability in this context, the dynamic and non-linear nature of stock prices suggests the potential of hybrid models and broader datasets for future research. The findings underscore the significance of selecting appropriate forecasting tools in the volatile domain of stock investments and pave the way for a more holistic and informed approach to stock price prediction.

Keywords: Stock forecasting; machine learning; time series analysis; Long Short-Term Memory (LSTM); Auto Regressive Integrated Moving Average (ARIMA)
Published: March 28, 2024
DOI: 10.54254/2755-2721/53/20241352
Volume: ACE Vol.53
pp. 181-189
Download PDF

References

  1. Lo, A. W. (n.d.). The Adaptive Markets Hypothesis: Market Efficiency from an Evolutionary Perspective.
  2. Atsalakis, G., & K, V. (2013). Surveying stock market forecasting techniques - Part I: Conventional methods. (pp. 49–104).
  3. Obthong, M., Tantisantiwong, N., Jeamwatthanachai, W., & Wills, G. (2020). A Survey on Machine Learning for Stock Price Prediction: Algorithms and Techniques: Proceedings of the 2nd International Conference on Finance, Economics, Management and IT Business, 63–71. https://doi.org/10.5220/0009340700630071
  4. Beaudry, P., & Portier, F. (2004). Stock Prices, News and Economic Fluctuations (w10548; p. w10548). National Bureau of Economic Research. https://doi.org/10.3386/w10548
  5. Degutis, A., & Novickytė, L. (2014). THE EFFICIENT MARKET HYPOTHESIS: A CRITICAL REVIEW OF LITERATURE AND METHODOLOGY. Ekonomika, 93(2), 7–23. https://doi.org/10.15388/Ekon.2014.2.3549
  6. Khan, S., & Alghulaiakh, H. (2020). ARIMA Model for Accurate Time Series Stocks Forecasting. International Journal of Advanced Computer Science and Applications, 11(7). https://doi.org/10.14569/IJACSA.2020.0110765
  7. Yan, X., Weihan, W., & Chang, M. (2021). Research on financial assets transaction prediction model based on LSTM neural network. Neural Computing and Applications, 33(1), 257–270. https://doi.org/10.1007/s00521-020-04992-7
  8. Wu, J. M.-T., Li, Z., Herencsar, N., Vo, B., & Lin, J. C.-W. (2023). A graph-based CNN-LSTM stock price prediction algorithm with leading indicators. Multimedia Systems, 29(3), 1751–1770. https://doi.org/10.1007/s00530-021-00758-w
  9. Lu, W., Li, J., Li, Y., Sun, A., & Wang, J. (2020). A CNN-LSTM-Based Model to Forecast Stock Prices. Complexity, 2020, 1–10. https://doi.org/10.1155/2020/6622927
  10. Abraham, R., Samad, M. E., Bakhach, A. M., El-Chaarani, H., Sardouk, A., Nemar, S. E., & Jaber, D. (2022). Forecasting a Stock Trend Using Genetic Algorithm and Random Forest. Journal of Risk and Financial Management, 15(5), Article 5. https://doi.org/10.3390/jrfm15050188
  11. Sonkiya, P., Bajpai, V., & Bansal, A. (2021). Stock price prediction using BERT and GAN (arXiv:2107.09055). arXiv. http://arxiv.org/abs/2107.09055
  12. Hochreiter, S., & Schmidhuber, J. (1997). Long Short-Term Memory. Neural Computation, 9(8), 1735-1780.