IDEAS home Printed from https://ideas.repec.org/p/war/wpaper/2024-07.html
   My bibliography  Save this paper

LSTM-ARIMA as a Hybrid Approach in Algorithmic Investment Strategies

Author

Listed:
  • Kamil Kashif

    (University of Warsaw, Faculty of Economic Sciences)

  • Robert Ślepaczuk

    (University of Warsaw, Faculty of Economic Sciences, Quantitative Finance Research Group, Department of Quantitative Finance and Machine Learning)

Abstract

This study focuses on building an algorithmic investment strategy employing a hybrid approach that combines LSTM and ARIMA models referred to as LSTM-ARIMA. This unique algorithm uses LSTM to produce final predictions but boost results of this RNN by adding the residuals obtained from ARIMA predictions among other inputs. The algorithm is tested across three equity indices (S&P 500, FTSE 100, and CAC 40) using daily frequency data spanning from January, 2000 to August, 2023. The architecture of testing is based on the walk-forward procedure which is applied for hyperparameter tunning phase that uses using Random Search and backtesting the algorithms. The selection of the optimal model is determined based on adequately selected performance metrics combining focused on risk-adjusted return measures. We considered two strategies for each algorithm: Long-Only and Long-Short in order to present situation of two various groups of investors with different investment policy restrictions. For each strategy and equity index, we compute the performance metrics and visualize the equity curve to identify the best strategy with the highest modified information ratio. The findings conclude that the LSTM-ARIMA algorithm outperforms all the other algorithms across all the equity indices what confirms strong potential behind hybrid ML-TS (machine learning - time series) models in searching for the optimal algorithmic investment strategies.

Suggested Citation

  • Kamil Kashif & Robert Ślepaczuk, 2024. "LSTM-ARIMA as a Hybrid Approach in Algorithmic Investment Strategies," Working Papers 2024-07, Faculty of Economic Sciences, University of Warsaw.
  • Handle: RePEc:war:wpaper:2024-07
    as

    Download full text from publisher

    File URL: https://www.wne.uw.edu.pl/download_file/4196/0
    File Function: First version, 2024
    Download Restriction: no
    ---><---

    Other versions of this item:

    References listed on IDEAS

    as
    1. Illia Baranochnikov & Robert Ślepaczuk, 2022. "A comparison of LSTM and GRU architectures with novel walk-forward approach to algorithmic investment strategy," Working Papers 2022-21, Faculty of Economic Sciences, University of Warsaw.
    2. Vikram Bali & Ajay Kumar & Satyam Gangwar, 2020. "A Novel Approach for Wind Speed Forecasting Using LSTM-ARIMA Deep Learning Models," International Journal of Agricultural and Environmental Information Systems (IJAEIS), IGI Global, vol. 11(3), pages 13-30, July.
    3. Tao Xiong & Yukun Bao & Zhongyi Hu, 2014. "Multiple-output support vector regression with a firefly algorithm for interval-valued stock price index forecasting," Papers 1401.1916, arXiv.org.
    4. Bui, Quynh & Ślepaczuk, Robert, 2022. "Applying Hurst Exponent in pair trading strategies on Nasdaq 100 index," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 592(C).
    5. Mateusz Kijewski & Robert Ślepaczuk, 2020. "Predicting prices of S&P500 index using classical methods and recurrent neural networks," Working Papers 2020-27, Faculty of Economic Sciences, University of Warsaw.
    6. Fan, Dongyan & Sun, Hai & Yao, Jun & Zhang, Kai & Yan, Xia & Sun, Zhixue, 2021. "Well production forecasting based on ARIMA-LSTM model considering manual operations," Energy, Elsevier, vol. 220(C).
    7. Rama K. Malladi & Prakash L. Dheeriya, 2021. "Time series analysis of Cryptocurrency returns and volatilities," Journal of Economics and Finance, Springer;Academy of Economics and Finance, vol. 45(1), pages 75-94, January.
    8. Sergio Castellano Gómez & Robert Ślepaczuk, 2021. "Robust optimisation in algorithmic investment strategies," Working Papers 2021-27, Faculty of Economic Sciences, University of Warsaw.
    9. Katarzyna Kryńska & Robert Ślepaczuk, 2022. "Daily and intraday application of various architectures of the LSTM model in algorithmic investment strategies on Bitcoin and the S&P 500 Index," Working Papers 2022-25, Faculty of Economic Sciences, University of Warsaw.
    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. Esteban Vanegas & Andrés Mora-Valencia, 2025. "Skew Index: a machine learning forecasting approach," Risk Management, Palgrave Macmillan, vol. 27(1), pages 1-60, February.

    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. Karol Chojnacki & Robert Ślepaczuk, 2023. "This study compares well-known tools of technical analysis (Moving Average Crossover MAC) with Machine Learning based strategies (LSTM and XGBoost) and Ensembled Machine Learning Strategies (LSTM ense," Working Papers 2023-15, Faculty of Economic Sciences, University of Warsaw.
    2. Tao XIONG & Chongguang LI & Yukun BAO, 2017. "An improved EEMD-based hybrid approach for the short-term forecasting of hog price in China," Agricultural Economics, Czech Academy of Agricultural Sciences, vol. 63(3), pages 136-148.
    3. Zaji, Amir Hossein & Bonakdari, Hossein & Khodashenas, Saeed Reza & Shamshirband, Shahaboddin, 2016. "Firefly optimization algorithm effect on support vector regression prediction improvement of a modified labyrinth side weir's discharge coefficient," Applied Mathematics and Computation, Elsevier, vol. 274(C), pages 14-19.
    4. Wang, Delu & Gan, Jun & Mao, Jinqi & Chen, Fan & Yu, Lan, 2023. "Forecasting power demand in China with a CNN-LSTM model including multimodal information," Energy, Elsevier, vol. 263(PE).
    5. Bartosz Bieganowski & Robert Ślepaczuk, 2024. "Supervised Autoencoder MLP for Financial Time Series Forecasting," Working Papers 2024-03, Faculty of Economic Sciences, University of Warsaw.
    6. Baiquan Ma & Robert Ślepaczuk, 2022. "The profitability of pairs trading strategies on Hong-Kong stock market: distance, cointegration, and correlation methods," Working Papers 2022-02, Faculty of Economic Sciences, University of Warsaw.
    7. Peng‐Fei Dai & John W. Goodell & Luu Duc Toan Huynh & Zhifeng Liu & Shaen Corbet, 2023. "Understanding the transmission of crash risk between cryptocurrency and equity markets," The Financial Review, Eastern Finance Association, vol. 58(3), pages 539-573, August.
    8. Ha, Youngmin & Zhang, Hai, 2019. "Fast multi-output relevance vector regression," Economic Modelling, Elsevier, vol. 81(C), pages 217-230.
    9. Anna Samnioti & Vassilis Gaganis, 2023. "Applications of Machine Learning in Subsurface Reservoir Simulation—A Review—Part II," Energies, MDPI, vol. 16(18), pages 1-53, September.
    10. Sun, Yuying & Zhang, Xinyu & Wan, Alan T.K. & Wang, Shouyang, 2022. "Model averaging for interval-valued data," European Journal of Operational Research, Elsevier, vol. 301(2), pages 772-784.
    11. Tanya Araújo & Paulo Barbosa, 2024. "Reconstructing Cryptocurrency Processes via Markov Chains," Computational Economics, Springer;Society for Computational Economics, vol. 64(4), pages 2509-2521, October.
    12. Wen, Kai & Jiao, Jianfeng & Zhao, Kang & Yin, Xiong & Liu, Yuan & Gong, Jing & Li, Cuicui & Hong, Bingyuan, 2023. "Rapid transient operation control method of natural gas pipeline networks based on user demand prediction," Energy, Elsevier, vol. 264(C).
    13. Lv, Sheng-Xiang & Wang, Lin, 2022. "Deep learning combined wind speed forecasting with hybrid time series decomposition and multi-objective parameter optimization," Applied Energy, Elsevier, vol. 311(C).
    14. Ahmed, Walid M.A., 2021. "How do Islamic equity markets respond to good and bad volatility of cryptocurrencies? The case of Bitcoin," Pacific-Basin Finance Journal, Elsevier, vol. 70(C).
    15. Hai Wang & Shengnan Chen, 2023. "Insights into the Application of Machine Learning in Reservoir Engineering: Current Developments and Future Trends," Energies, MDPI, vol. 16(3), pages 1-11, January.
    16. Soheila Khajoui & Saeid Dehyadegari & Sayyed Abdolmajid Jalaee, 2024. "Forecasting Imports in OECD Member Countries and Iran by Using Neural Network Algorithms of LSTM," Papers 2402.01648, arXiv.org.
    17. Xiong, Tao & Li, Chongguang & Bao, Yukun, 2017. "Interval-valued time series forecasting using a novel hybrid HoltI and MSVR model," Economic Modelling, Elsevier, vol. 60(C), pages 11-23.
    18. Ma, Bin & Guo, Xing & Li, Penghui, 2023. "Adaptive energy management strategy based on a model predictive control with real-time tuning weight for hybrid energy storage system," Energy, Elsevier, vol. 283(C).
    19. Guangyu Mu & Jiaxue Li & Zehan Liao & Ziye Yang, 2024. "An Enhanced IHHO-LSTM Model for Predicting Online Public Opinion Trends in Public Health Emergencies," SAGE Open, , vol. 14(2), pages 21582440241, June.
    20. Rasoul Amirzadeh & Asef Nazari & Dhananjay Thiruvady & Mong Shan Ee, 2023. "Modelling Determinants of Cryptocurrency Prices: A Bayesian Network Approach," Papers 2303.16148, arXiv.org.

    More about this item

    Keywords

    Deep Learning; Recurrent Neural Networks; Algorithmic Investment Strategy; LSTM; ARIMA; Hybrid/Ensemble Models; Walk-Forward Process;
    All these keywords.

    JEL classification:

    • C4 - Mathematical and Quantitative Methods - - Econometric and Statistical Methods: Special Topics
    • C14 - Mathematical and Quantitative Methods - - Econometric and Statistical Methods and Methodology: General - - - Semiparametric and Nonparametric Methods: General
    • C45 - Mathematical and Quantitative Methods - - Econometric and Statistical Methods: Special Topics - - - Neural Networks and Related Topics
    • C53 - Mathematical and Quantitative Methods - - Econometric Modeling - - - Forecasting and Prediction Models; Simulation Methods
    • C58 - Mathematical and Quantitative Methods - - Econometric Modeling - - - Financial Econometrics
    • G13 - Financial Economics - - General Financial Markets - - - Contingent Pricing; Futures Pricing

    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:war:wpaper:2024-07. 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: Marcin Bąba (email available below). General contact details of provider: https://edirc.repec.org/data/fesuwpl.html .

    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.
    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy