Prediction of Volatility in Stock Commodities using Deep Learning
Keywords:
Deep Learning, Machine Learning, ARCH, GARCH, LSTM, Forecasting, Stock Commodities, S&P 500, Yahoo FinanceAbstract
Investors face risks throughout the investment process, and managing these risks depends on the volatility of stock commodities.
Understanding how to calculate and predict the volatility of stock commodities can greatly assist in forecasting future fluctuations. This research aims to assess the effectiveness of deep learning, specifically the long short-term memory (LSTM) model, in predicting volatility in stock commodities. Additionally, the research work aims to determine which model produces the best results for stock investors in forecasting volatility by comparing the GARCH model, ARCH model, and LSTM (deep learning model). The research work utilizes Yahoo Finance datasets for oil, gold, diesel, and the S&P 500 index to conduct the stock market analysis. The results of this research work show that the LSTM model achieved a high accuracy rate of 98.8%, outperforming the GARCH model at 94% and the ARCH model at 89%. Therefore, the predictive power of the LSTM model surpasses that of the ARCH and GARCH models, establishing the effectiveness of deep learning models in predicting volatility. Furthermore, the GARCH model
demonstrates superior predictive power compared to the ARCH model.
References
Discla Wenbo Ge, Pooia Lalbakhsh, Leigh Isai, Artem Lenskiy, and Hanna Suominen. 2022. Neural Network–Based Financial
Volatility Forecasting: A Systematic Review. ACM Comput. Surv. 55, 1, Arti-cle 14 (January 2022)
https://doi.org/10.1145/3483596.
Jia, F., & Yang, B. (2021, February 25). Forecasting volatility of stock index: Deep Learning model with likelihood-based loss
function. Complexity. Retrieved March 24, 2022, from https://www.hindawi.com/journals/complexity/2021/5511802/.
Saqware, G. J., & B, I. (2020). Modeling Volatility in the Stock Market for Accuracy in Forecasting. In-ternational Journal of
Recent Technology and Engineering (IJRTE), 8 (5), 1–2. https://doi.org/10.35940/ijrte.E5608.018520.
Li, Sophia Zhengzi and Tang, Yushan, Forecasting Realized Volatility: An Automatic System Using Many Features and Many
Machine Learning Algorithms (May 23, 2021). Available at SSRN: https://ssrn.com/abstract=3776915 or
http://dx.doi.org/10.2139/ssrn.3776915.
Romano, S., Barone, P. E., & Borri, P. N. (2021). (thesis). MACHINE LEARNING FOR VOLATILITY FORECASTING.
Retrieved 2022, from http://tesi.luiss.it/29954/1/710741_ROMANO_SIMONE.pdf.
Team, T. I. (2021, June 11). Generalized autoregressive conditional heteroskedasticity (GARCH) defini-tion. Investopedia.
Retrieved March 24, 2022, from https://www.investopedia.com/terms/g/garch.asp
Balaji, A. J., Ram, D. S. H., & Nair, B. B. (2018). 8th International Conference on Advances in Computing and Communication
(ICACC-2018). In Procedia Computer Science 143 (2018) 947–953. Retrieved 2022, from
https://www.sciencedirect.com/science/article/pii/S1877050918320362.
Abe, M., & Nakayama, H. (2018, June 13). Deep learning for forecasting stock returns in the cross-section. arXiv.org. Retrieved
March 24, 2022, from https://arxiv.org/abs/1801.01777.
Pyrlik, Vladimir and Leonova, Aleksandra, Forecasting Realized Volatility Using Machine Learning and Mixed-Frequency Data
(the Case of the Russian Stock Market) (December 1, 2021). CERGE-EI Working Paper Series No. 713, Available at SSRN:
https://ssrn.com/abstract=3996169 or http://dx.doi.org/10.2139/ssrn.3996169.
Kühnert, S. (2020). Functional arch and GARCH models: A Yule-Walker Approach.
https://doi.org/10.20944/preprints201912.0163.v2.
K. A. Althelaya, S. A. Mohammed and E. -S. M. El-Alfy, "Combining Deep Learning and Multi-resolution Analysis for Stock
Market Forecasting," in IEEE Access, vol. 9, pp. 13099-13111, 2021, doi: 10.1109/ACCESS.2021.3051872 from
https://ieeexplore.ieee.org/document/9324831
M. A. Istiake Sunny, M. M. S. Maswood and A. G. Alharbi, "Deep Learning-Based Stock Price Pre-diction Using LSTM and
BiDirectional LSTM Model," 2020 2nd Novel Intelligent and Leading Emerging Sciences Conference (NILES), 2020, pp. 87-92,
doi: 10.1109/NILES50944.2020.9257950 from https://ieeexplore.ieee.org/document/9257950.
Namin, S. S., & Namin, A. S. (2018, March 16). Forecasting economics and financial time se-ries: Arima vs. LSTM.
arXiv.org. Retrieved February 4, 2023, from https://arxiv.org/abs/1803.06386.
Muzaffar, S., & Afshari, A. (2019). 10th International Conference on Applied Energy (ICAE2018), 22-25 August 2018, Hong
Kong, China. In Energy Procedia. Retrieved 2022, from https://www.sciencedirect.com/science/article/pii/S1876610219310008.
Sen, Jaydip; Mehtab, Sidra; Dutta, Abhishek (2021): Stock Price Prediction Using Machine Learn-ing and LSTM-Based Deep
Learning Models. TechRxiv. Preprint. https://doi.org/10.36227/techrxiv.15103602.v1.
T. Song, J. Jiang, W. Li and D. Xu, "A Deep Learning Method With Merged LSTM Neural Networks for SSHA Prediction," in
IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing, vol. 13, pp. 2853-2860, 2020, doi:
1109/JSTARS.2020.2998461 from https://ieeexplore.ieee.org/document/9103934.
Yu, Y., Cao, J., & Zhu, J. (2019). An LSTM short-term solar irradiance forecasting under compli-cated weather conditions. IEEE
Access, 7, 145651–145666. https://doi.org/10.1109/access.2019.2946057.
Abdel-Nasser, M., & Mahmoud, K. (2017). Accurate Photovoltaic Power Forecasting models using Deep LSTM-RNN. Neural
Computing and Applications, 31(7), 2727–2740. https://doi.org/10.1007/s00521-017-3225-z.
Zhao, Z., Chen, W., Wu, X., Chen, P. C., & Liu, J. (2017). LSTM network: A deep learning approach for short‐term Traffic
forecast. IET Intelligent Transport Systems, 11(2), 68–75. https://doi.org/10.1049/iet-its.2016.0208.
Mehtab, S., & Sen, J. (2020). Stock price prediction using CNN and LSTM-based deep learning models. 2020 International
Conference on Decision Aid Sciences and Application (DASA). https://doi.org/10.1109/dasa51403.2020.9317207.
Namini, S. S., Tavakoli, N., & Namin, A. S. (2020, February 24). The performance of LSTM and BiLSTM in forecasting time
series. IEEE Xplore . Retrieved February 5, 2023, from https://ieeexplore.ieee.org/document/9005997.
Kenton, W. (2022, November 3). S&P 500 index: What it's for and why it's important in investing. Investopedia. Retrieved
January 31, 2023, from https://www.investopedia.com/terms/s/sp500.asp.
Frankel, M. (2022, September 20). How to invest in the companies in the S&P 500 index? The Mot-ley Fool. Retrieved January
, 2023, from https://www.fool.com/investing/stock-market/indexes/sp-500/.
Liu, W. K., & So, M. K. (2020). A GARCH model with Artificial Neural Networks. Information, 11(10), 489.
https://doi.org/10.3390/info11100489.
Tillgren, V., & Ahmed, S. (2022). Forecasting Time-Varying Volatility In Global Stock Markets (dissertation). (J. Stoklasa, Ed.).
Retrieved February 1, 2023, from https://lutpub.lut.fi/handle/10024/164428.
&isAllowed=y.
Václav, P. (2022). Gold as a Stable Asset in Economic Recession: An Econometric Analysis (disser-tation). Zlato jako stabilní
aktivum v ekonomické recesi: Ekonometrická analýza. Retrieved February 1, 2023, from
https://dspace.cuni.cz/handle/20.500.11956/174020.
Schmidt, L. (2021). Volatility Forecasting Performance of Garch Models: A Study on Nordic Indi-ces During Covid-19
(dissertation). Digitala Vetenskapliga Arkivet. Retrieved February 1, 2023, from https://www.divaportal.org/smash/record.jsf?pid=diva2%3A1566342&dswid=5934.
MUȘETESCU, R.-C., GRIGORE, G.-E., & NICOLAE, S. (2022). The use of GARCH autoregressive models in estimating and
forecasting the crude oil volatility. European Journal of Interdisciplinary Studies, 14(1), 13–38.
https://doi.org/10.24818/ejis.2022.02.
Vitali, G. (2019). Forecasting stock index volatility: A comparison between Garch and LSTM mod-els. universita' ca' Foscari
venezia . Retrieved February 4, 2023, from http://dspace.unive.it/bitstream/handle/10579/15933/868008-1231506.pdf.
Mahajan, V., Thakan, S., & Malik, A. (2022). Modeling and forecasting the volatility of Nifty 50 using GARCH and RNN
models. Economies, 10(5), 102. https://doi.org/10.3390/economies10050102.
Gupta, A., & Rajib, P. (2018). Do var exceptions have seasonality? an empirical study on Indian commodity spot prices. IIMB
Management Review, 30(4), 369–384. https://doi.org/10.1016/j.iimb.2018.05.008.
Liu, W. K., & So, M. K. (2020). A GARCH model with Artificial Neural Networks. Information, 11(10), 489.
https://doi.org/10.3390/info11100489.
Zhang, X., Zhang, L., Zhou, Q., & Jin, X. (2022). A novel bitcoin and gold prices prediction method using an LSTM-P neural
network model. Computational Intelligence and Neuroscience, 2022, 1–12. https://doi.org/10.1155/2022/1643413.
Ou, J.; Huang, X.; Zhou, Y.; Zhou, Z.; Nie, Q. Traffic Volatility Forecasting Using an Omnibus Fam-ily GARCH Modeling
Framework. Entropy 2022, 24, 1392. https://doi.org/10.3390/e24101392.
Hayes, A. (2022, November 10). What is a stock ticker? definition, how they work, and origins. In-vestopedia.
https://www.investopedia.com/ask/answers/12/what-is-a-stock-ticker.asp
Published
How to Cite
Issue
Section
ARK
Copyright (c) 2023 JOURNAL OF INTELLIGENT SYSTEMS AND COMPUTING

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
Articles are licensed under an open access Creative Commons CC BY-NC-ND license (http://creativecommons.org/licenses/bync-nd/4.0/), which allows reusers to copy and distribute the material in any medium or format in unadapted form only, for noncommercial purposes only, and only so long as the original work is properly cited. These conditions allow for maximum use and exposure of the work, while ensuring that the authors receive proper credit.