IDEAS home Printed from https://ideas.repec.org/p/arx/papers/2406.18206.html
   My bibliography  Save this paper

LSTM-ARIMA as a Hybrid Approach in Algorithmic Investment Strategies

Author

Listed:
  • Kamil Kashif
  • Robert 'Slepaczuk

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 boosts the 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 from January 2000 to August 2023. The testing architecture is based on the walk-forward procedure for the hyperparameter tunning phase that uses Random Search and backtesting the algorithms. The selection of the optimal model is determined based on adequately selected performance metrics focused on risk-adjusted return measures. We considered two strategies for each algorithm: Long-Only and Long-Short to present the 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 which confirms the strong potential behind hybrid ML-TS (machine learning - time series) models in searching for the optimal algorithmic investment strategies.

Suggested Citation

  • Kamil Kashif & Robert 'Slepaczuk, 2024. "LSTM-ARIMA as a Hybrid Approach in Algorithmic Investment Strategies," Papers 2406.18206, arXiv.org.
  • Handle: RePEc:arx:papers:2406.18206
    as

    Download full text from publisher

    File URL: http://arxiv.org/pdf/2406.18206
    File Function: Latest version
    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. 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.
    3. 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).
    4. 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.
    5. Sergio Castellano Gómez & Robert Ślepaczuk, 2021. "Robust optimisation in algorithmic investment strategies," Working Papers 2021-27, Faculty of Economic Sciences, University of Warsaw.
    6. 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.
    7. 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.
    8. 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.
    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, January.

    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. Zhang, Yagang & Wang, Hui & Wang, Jingchao & Cheng, Xiaodan & Wang, Tong & Zhao, Zheng, 2024. "Ensemble optimization approach based on hybrid mode decomposition and intelligent technology for wind power prediction system," Energy, Elsevier, vol. 292(C).
    3. 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.
    4. 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.
    5. Zhao, Xinxing & Li, Kainan & Ang, Candice Ke En & Cheong, Kang Hao, 2023. "A deep learning based hybrid architecture for weekly dengue incidences forecasting," Chaos, Solitons & Fractals, Elsevier, vol. 168(C).
    6. 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).
    7. Lanmei Wang & Yao Wang & Guibao Wang & Jianke Jia, 2020. "Near-field sound source localization using principal component analysis–multi-output support vector regression," International Journal of Distributed Sensor Networks, , vol. 16(4), pages 15501477209, April.
    8. Bartosz Bieganowski & Robert Ślepaczuk, 2024. "Supervised Autoencoder MLP for Financial Time Series Forecasting," Working Papers 2024-03, Faculty of Economic Sciences, University of Warsaw.
    9. Li, Ruilian & Zeng, Deliang & Li, Tingting & Ti, Baozhong & Hu, Yong, 2023. "Real-time prediction of SO2 emission concentration under wide range of variable loads by convolution-LSTM VE-transformer," Energy, Elsevier, vol. 269(C).
    10. Hao, Peng & Guo, Junpeng, 2017. "Constrained center and range joint model for interval-valued symbolic data regression," Computational Statistics & Data Analysis, Elsevier, vol. 116(C), pages 106-138.
    11. 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.
    12. Wang, Jun & Cao, Junxing & Fu, Jingcheng & Xu, Hanqing, 2022. "Missing well logs prediction using deep learning integrated neural network with the self-attention mechanism," Energy, Elsevier, vol. 261(PB).
    13. Mojtaba Sedighi & Hossein Jahangirnia & Mohsen Gharakhani & Saeed Farahani Fard, 2019. "A Novel Hybrid Model for Stock Price Forecasting Based on Metaheuristics and Support Vector Machine," Data, MDPI, vol. 4(2), pages 1-28, May.
    14. Fargalla, Mandella Ali M. & Yan, Wei & Deng, Jingen & Wu, Tao & Kiyingi, Wyclif & Li, Guangcong & Zhang, Wei, 2024. "TimeNet: Time2Vec attention-based CNN-BiGRU neural network for predicting production in shale and sandstone gas reservoirs," Energy, Elsevier, vol. 290(C).
    15. Ha, Youngmin & Zhang, Hai, 2019. "Fast multi-output relevance vector regression," Economic Modelling, Elsevier, vol. 81(C), pages 217-230.
    16. Virginie Terraza & Aslı Boru İpek & Mohammad Mahdi Rounaghi, 2024. "The nexus between the volatility of Bitcoin, gold, and American stock markets during the COVID-19 pandemic: evidence from VAR-DCC-EGARCH and ANN models," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 10(1), pages 1-34, December.
    17. Agbessi Akuété Pierre & Salami Adekunlé Akim & Agbosse Kodjovi Semenyo & Birregah Babiga, 2023. "Peak Electrical Energy Consumption Prediction by ARIMA, LSTM, GRU, ARIMA-LSTM and ARIMA-GRU Approaches," Energies, MDPI, vol. 16(12), pages 1-12, June.
    18. 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.
    19. 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.
    20. 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.

    More about this item

    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

    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:arx:papers:2406.18206. 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: arXiv administrators (email available below). General contact details of provider: http://arxiv.org/ .

    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.