IDEAS home Printed from https://ideas.repec.org/p/hal/journl/hal-03149342.html
   My bibliography  Save this paper

Comparing classic time series models and the LSTM recurrent neural network: An application to S&P 500 stocks
[Comparativa de los models clásicos de series temporales con la red neuronal recurrente LSTM: Una aplicación a las acciones del S&P 500]

Author

Listed:
  • Javier Oliver Muncharaz

    (UPV - Universitat Politècnica de València = Universitad Politecnica de Valencia = Polytechnic University of Valencia)

Abstract

In the financial literature, there is great interest in the prediction of stock prices. Stock prediction is necessary for the creation of different investment strategies, both speculative and hedging ones. The application of neural networks has involved a change in the creation of predictive models. In this paper, we analyze the capacity of recurrent neural networks, in particular the long short-term recurrent neural network (LSTM) as opposed to classic time series models such as the Exponential Smooth Time Series (ETS) and the Arima model (ARIMA). These models have been estimated for 284 stocks from the S&P 500 stock market index, comparing the MAE obtained from their predictions. The results obtained confirm a significant reduction in prediction errors when LSTM is applied. These results are consistent with other similar studies applied to stocks included in other stock market indices, as well as other financial assets such as exchange rates.

Suggested Citation

  • Javier Oliver Muncharaz, 2020. "Comparing classic time series models and the LSTM recurrent neural network: An application to S&P 500 stocks [Comparativa de los models clásicos de series temporales con la red neuronal recurrente ," Post-Print hal-03149342, HAL.
  • Handle: RePEc:hal:journl:hal-03149342
    DOI: 10.46503/ZVBS2781
    Note: View the original document on HAL open archive server: https://hal.science/hal-03149342
    as

    Download full text from publisher

    File URL: https://hal.science/hal-03149342/document
    Download Restriction: no

    File URL: https://libkey.io/10.46503/ZVBS2781?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Peter R. Winters, 1960. "Forecasting Sales by Exponentially Weighted Moving Averages," Management Science, INFORMS, vol. 6(3), pages 324-342, April.
    2. Hedayati , Amin & Hedayati , Moein & Esfandyari, Morteza, 2016. "Stock market index prediction using artificial neural network," Journal of Economics, Finance and Administrative Science, Universidad ESAN, vol. 21(41), pages 89-93.
    3. Mingyue Qiu & Yu Song, 2016. "Predicting the Direction of Stock Market Index Movement Using an Optimized Artificial Neural Network Model," PLOS ONE, Public Library of Science, vol. 11(5), pages 1-11, May.
    4. Fat Codruta Maria & Dezsi Eva, 2011. "Exchange-Rates Forecasting: Exponential Smoothing Techniques And Arima Models," Annals of Faculty of Economics, University of Oradea, Faculty of Economics, vol. 1(1), pages 499-508, July.
    5. Chujie Tian & Jian Ma & Chunhong Zhang & Panpan Zhan, 2018. "A Deep Neural Network Model for Short-Term Load Forecast Based on Long Short-Term Memory Network and Convolutional Neural Network," Energies, MDPI, vol. 11(12), pages 1-13, December.
    6. Zhang, Guoqiang & Eddy Patuwo, B. & Y. Hu, Michael, 1998. "Forecasting with artificial neural networks:: The state of the art," International Journal of Forecasting, Elsevier, vol. 14(1), pages 35-62, March.
    7. Taewook Kim & Ha Young Kim, 2019. "Forecasting stock prices with a feature fusion LSTM-CNN model using different representations of the same data," PLOS ONE, Public Library of Science, vol. 14(2), pages 1-23, February.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Jujie Wang & Shiyao Qiu, 2021. "Improved Multi-Scale Deep Integration Paradigm for Point and Interval Carbon Trading Price Forecasting," Mathematics, MDPI, vol. 9(20), pages 1-20, October.

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Petropoulos, Fotios & Apiletti, Daniele & Assimakopoulos, Vassilios & Babai, Mohamed Zied & Barrow, Devon K. & Ben Taieb, Souhaib & Bergmeir, Christoph & Bessa, Ricardo J. & Bijak, Jakub & Boylan, Joh, 2022. "Forecasting: theory and practice," International Journal of Forecasting, Elsevier, vol. 38(3), pages 705-871.
      • Fotios Petropoulos & Daniele Apiletti & Vassilios Assimakopoulos & Mohamed Zied Babai & Devon K. Barrow & Souhaib Ben Taieb & Christoph Bergmeir & Ricardo J. Bessa & Jakub Bijak & John E. Boylan & Jet, 2020. "Forecasting: theory and practice," Papers 2012.03854, arXiv.org, revised Jan 2022.
    2. Ehsan Hoseinzade & Saman Haratizadeh & Arash Khoeini, 2019. "U-CNNpred: A Universal CNN-based Predictor for Stock Markets," Papers 1911.12540, arXiv.org.
    3. Semenoglou, Artemios-Anargyros & Spiliotis, Evangelos & Makridakis, Spyros & Assimakopoulos, Vassilios, 2021. "Investigating the accuracy of cross-learning time series forecasting methods," International Journal of Forecasting, Elsevier, vol. 37(3), pages 1072-1084.
    4. Maia, André Luis Santiago & de Carvalho, Francisco de A.T., 2011. "Holt’s exponential smoothing and neural network models for forecasting interval-valued time series," International Journal of Forecasting, Elsevier, vol. 27(3), pages 740-759.
    5. Po Yun & Chen Zhang & Yaqi Wu & Xianzi Yang & Zulfiqar Ali Wagan, 2020. "A Novel Extended Higher-Order Moment Multi-Factor Framework for Forecasting the Carbon Price: Testing on the Multilayer Long Short-Term Memory Network," Sustainability, MDPI, vol. 12(5), pages 1-16, March.
    6. Jan G. De Gooijer & Rob J. Hyndman, 2005. "25 Years of IIF Time Series Forecasting: A Selective Review," Monash Econometrics and Business Statistics Working Papers 12/05, Monash University, Department of Econometrics and Business Statistics.
    7. Heni Boubaker & Giorgio Canarella & Rangan Gupta & Stephen M. Miller, 2023. "A Hybrid ARFIMA Wavelet Artificial Neural Network Model for DJIA Index Forecasting," Computational Economics, Springer;Society for Computational Economics, vol. 62(4), pages 1801-1843, December.
    8. Myladis R. Cogollo & Gilberto González-Parra & Abraham J. Arenas, 2021. "Modeling and Forecasting Cases of RSV Using Artificial Neural Networks," Mathematics, MDPI, vol. 9(22), pages 1-20, November.
    9. Zhenni Ding & Huayou Chen & Ligang Zhou, 2023. "Using shapely values to define subgroups of forecasts for combining," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 42(4), pages 905-923, July.
    10. AsadUllah, Muhammad & Mujahid, Hira & I. Tabash, Mosab & Ayubi, Sharique & Sabri, Rabia, 2020. "Forecasting indian rupee/us dollar: arima, exponential smoothing, naïve, nardl, combination techniques," MPRA Paper 111150, University Library of Munich, Germany.
    11. Feng Xu & Mohamad Sepehri & Jian Hua & Sergey Ivanov & Julius N. Anyu, 2018. "Time-Series Forecasting Models for Gasoline Prices in China," International Journal of Economics and Finance, Canadian Center of Science and Education, vol. 10(12), pages 1-43, December.
    12. Maia, André Luis Santiago & de Carvalho, Francisco de A.T., 2011. "Holt's exponential smoothing and neural network models for forecasting interval-valued time series," International Journal of Forecasting, Elsevier, vol. 27(3), pages 740-759, July.
    13. Dhruhi Sheth & Manan Shah, 2023. "Predicting stock market using machine learning: best and accurate way to know future stock prices," International Journal of System Assurance Engineering and Management, Springer;The Society for Reliability, Engineering Quality and Operations Management (SREQOM),India, and Division of Operation and Maintenance, Lulea University of Technology, Sweden, vol. 14(1), pages 1-18, February.
    14. Ehsan Hoseinzade & Saman Haratizadeh, 2018. "CNNPred: CNN-based stock market prediction using several data sources," Papers 1810.08923, arXiv.org.
    15. Hakan Gunduz, 2021. "An efficient stock market prediction model using hybrid feature reduction method based on variational autoencoders and recursive feature elimination," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 7(1), pages 1-24, December.
    16. De Gooijer, Jan G. & Hyndman, Rob J., 2006. "25 years of time series forecasting," International Journal of Forecasting, Elsevier, vol. 22(3), pages 443-473.
    17. Swaminathan, Kritika & Venkitasubramony, Rakesh, 2024. "Demand forecasting for fashion products: A systematic review," International Journal of Forecasting, Elsevier, vol. 40(1), pages 247-267.
    18. Ayan Chattopadhyay & Somarata Chakraborty, 2019. "Market size growth survival in multi-generation technology environment: A predictive review of the Indian air-conditioner and refrigerator industry," Asian Journal of Empirical Research, Asian Economic and Social Society, vol. 9(5), pages 132-146, May.
    19. Caporale, Guglielmo Maria & Gil-Alana, Luis Alberiko & Poza, Carlos, 2022. "The COVID-19 pandemic and the degree of persistence of US stock prices and bond yields," The Quarterly Review of Economics and Finance, Elsevier, vol. 86(C), pages 118-123.
    20. Md. Nazmul Hasan & Rafia Nishat Toma & Abdullah-Al Nahid & M M Manjurul Islam & Jong-Myon Kim, 2019. "Electricity Theft Detection in Smart Grid Systems: A CNN-LSTM Based Approach," Energies, MDPI, vol. 12(17), pages 1-18, August.

    More about this item

    Keywords

    Recurrent Neural Network; Long short-term neural network; S&P 500; Arima; Redes neuronales recurrentes;
    All these keywords.

    NEP fields

    This paper has been announced in the following NEP Reports:

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:hal:journl:hal-03149342. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: CCSD (email available below). General contact details of provider: https://hal.archives-ouvertes.fr/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.