LSTM Networks and ARIMA Models for Financial Time Series Prediction
Abstract
In this study, we evaluate the forecasting effectiveness of the classical ARIMA model and the deep learning-based LSTM model in the financial domain. An investment portfolio comprising equal shares of gold, the S&P 500, and 2-year U.S, is constructed to predict future trends, thereby accounting for market factors and risk-free interest rates. Various historical data are used to train the model and forecast the value of protfolio respectively. For the ARIMAmodel,predictions are made by segmenting the model into three groups based on the time span of the training data. The LSTM model utilizes 80% of the data as the training set and 20% as the test set. Furthermore, by employing diverse initial states for parallel training and averaging, errors are reasonably reduced. Key indicators, such as the portfolio’s expected annual returns, daily logarithmic returns, volatility, and value at risk (VaR), are calculated.The findings suggest that both the forecasting models and the constructed portfolio are effective. Future research could focus on using prediction models to optimize and dynamically adjust portfolios, thereby enhancing returns
References
- Renuka Devi, Alok Agrawal, Joydip Dhar, and A.K. Misra. Forecasting of indian tourism industry using modeling approach. MethodsX, page 102723, 2024.
- Hongwei Zhang, Xinyi Zhao, Wang Gao, and Zibo Niu. The role of higher moments in predicting china’s oil futures volatility: Evidence from machine learning models. Journal of Commodity Markets, 32:100352, 2023.
- Robert Culkin and Sanjiv R. Das. Machine learning in finance: the case of deep learning for option pricing. Journal of Investment Management, 15(4):92–100, 2017.
- Paul Friedrich and Josef Teichmann. Deep investing in kyle’s single period model. arXiv preprint arXiv:2006.13889, 2020.
- Jian-Xun Mi, An-Di Li, and Li-Fang Zhou. Review study of interpretation methods for future interpretable machine learning. IEEE Access, 8:191969–191985, 2020.
- Alex Sherstinsky. Fundamentals of recurrent neural network (rnn) and long short-term memory(lstm) network. Physica D: Nonlinear Phenomena, 404:132306, 2020.
- Carmina Fjellstr¨ om. Long short-term memory neural network for financial time series. In 2022 IEEE International Conference on Big Data (Big Data), pages 3496–3504. IEEE, 2022.
- Wenpeng Yin, Katharina Kann, Mo Yu, and Hinrich Sch¨ utze. Comparative study of cnn and rnn for natural language processing. arXiv preprint arXiv:1702.01923, 2017.
- Jiang Wang, Yi Yang, Junhua Mao, Zhiheng Huang, Chang Huang, and Wei Xu. Cnn-rnn: A unified framework for multi-label image classification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2285–2294, 2016.
- Jian Cao, Zhi Li, and Jian Li. Financial time series forecasting model based on ceemdan and lstm. Physica A: Statistical Mechanics and its Applications, 519:127–139, 2019
- Jay F.K. Au Yeung, Zi-Kai Wei, Kit Yan Chan, Henry Y.K. Lau, and Ka-Fai Cedric Yiu. Jump detection in financial time series using machine learning algorithms. Soft Computing, 24:17891801, 2020
- Robert H. Shumway and David S. Stoffer. Arima models. Time Series Analysis and its Applications: With R Examples, pages 75–163, 2017