INTEGRATING THE STOCHASTIC VOLATILITY MODEL WITH ARTIFICIAL INTELLIGENCE (TRANSFORMER MODEL) FOR ANALYZING AND FORECASTING THE VOLATILITY OF S&P 500 INDEX STOCK PRICES

  • Guelmine Hichem University of Tissemsilt, Tissemsilt, Algeria
  • Beldjehem Moufida Laboratory of Self-Development and Good Governance, 8 May 1945 University of Guelma, Guelma, Algeria
  • Boussaha Mohamed Lakhdar Laboratory for Modern Economics and Sustainable Development, University of Tissemsilt, Tissemsilt, Algeria
Keywords: Stock Price Volatility, Daily Returns, Stochastic Volatility Model, Transformer Model, S&P500 Index

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

Published
2025-04-13
Citations
How to Cite
Guelmine Hichem, Beldjehem Moufida, & Boussaha Mohamed Lakhdar. (2025). INTEGRATING THE STOCHASTIC VOLATILITY MODEL WITH ARTIFICIAL INTELLIGENCE (TRANSFORMER MODEL) FOR ANALYZING AND FORECASTING THE VOLATILITY OF S&P 500 INDEX STOCK PRICES. International Journal of Innovative Technologies in Social Science, (2(46). https://doi.org/10.31435/ijitss.2(46).2025.4095