INTEGRATING THE STOCHASTIC VOLATILITY MODEL WITH ARTIFICIAL INTELLIGENCE (TRANSFORMER MODEL) FOR ANALYZING AND FORECASTING THE VOLATILITY OF S&P 500 INDEX STOCK PRICES
Abstract
This study aimed to develop a hybrid model combining the Stochastic Volatility (SV) model with Artificial Intelligence (Transformer Model) to analyze and predict stock price volatility, applied to the S&P500 index during the period from January 3, 2001 to November 30, 2024. The objective was to enhance the accuracy of financial returns predictions by integrating the conditional volatility outputs from the SV model into the Transformer model. Both models were evaluated using time-series data and performance metrics, including MSE, RMSE, and MAE, to measure prediction accuracy. The implementation was carried out in Python leveraging its relevant libraries.
The results demonstrated that the hybrid model outperformed the simple Transformer model, as performance metrics values showed a significant decrease. This indicates that incorporating SV outputs as an additional source of information improved the Transformer model's ability to capture temporal patterns, thereby reducing significant predictions errors.
References
Andersen, T. G., & Benzoni, L. (2008). Stochastic Volatility. SSRN Electronic Journal. https://doi.org/10.2139/ssrn.1076672
Bhowmik, R., & Wang, S. (2020). Stock Market Volatility and Return Analysis: A Systematic Literature Review. Entropy, 22(5), 522. https://doi.org/10.3390/e22050522
Denis Rothman. (2021). Transformers for Natural Language Processing: Build innovative deep neural network architectures for NLP with Python, PyTorch, TensorFlow, BERT, RoBERTa, and more. Packt Publishing.
investing. (2024, November 30). World and Sector Indices. https://sa.investing.com
Neil Shephard. (2003). Stochastic Volatility. In Smile Pricing Explained. Palgrave Macmillan. https://doi.org/10.1057/9781137335722.0011
Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, L., & Polosukhin, I. (2017). Attention Is All You Need.
Views:
156
Downloads:
24
Copyright (c) 2025 Guelmine Hichem, Beldjehem Moufida, Boussaha Mohamed Lakhdar

This work is licensed under a Creative Commons Attribution 4.0 International License.
All articles are published in open-access and licensed under a Creative Commons Attribution 4.0 International License (CC BY 4.0). Hence, authors retain copyright to the content of the articles.
CC BY 4.0 License allows content to be copied, adapted, displayed, distributed, re-published or otherwise re-used for any purpose including for adaptation and commercial use provided the content is attributed.

