IDEAS home Printed from https://ideas.repec.org/p/pre/wpaper/202611.html

Machine Learning Forecasting of U.S. Stock Market Volatility: The Role of Stock and Oil Bubbles

Author

Listed:
  • Onur Polat

    (Institute of Informatics, Hacettepe University, Beytepe Campus, 06800 Cankaya, Ankara, Turkiye)

  • Rangan Gupta

    (Department of Economics, University of Pretoria, Private Bag X20, Hatfield 0028, South Africa)

  • Dhanashree Somani

    (Department of Statistics, University of Florida, 230 Newell Drive, Gainesville, FL, 32601, USA)

  • Sayar Karmakar

    (Department of Statistics, University of Florida, 230 Newell Drive, Gainesville, FL, 32601, USA)

Abstract

This study examines the predictive power of multi-scale positive and negative speculative bubbles in equity and energy markets for S&P 500 realized variance across horizons from 1 to 24 months. Using a hierarchical modeling framework and machine learning estimators, the analysis evaluates whether stock and oil bubbles provide incremental information beyond macroeconomic variables and financial uncertainty. Applying Clark and West's (2007) tests for nested model comparisons, the results reveal a hierarchy in predictive content that varies by forecast horizon. At the 1-month horizon, neither stock nor oil bubbles improves forecast accuracy. At the 3-month horizon, oil bubbles emerge as the dominant predictor; the Bayesian Regularized Neural Network (BRNN) estimator achieves a statistically significant improvement when oil bubbles are included with stock bubbles, resulting in a 30.7 percent reduction in mean squared error (MSE). At the 6-month horizon, stock bubbles become more important, with both the Gradient Boosting Machine (GBM) and BRNN estimators showing significant improvements. For longer horizons, oil bubbles remain relevant, but their predictive value depends on the estimator: BRNN captures oil bubble effects at 12 months, while GBM does so at 24 months. These findings highlight the importance of horizonspecific model selection and indicate a complex transmission of speculative shocks across asset classes.

Suggested Citation

  • Onur Polat & Rangan Gupta & Dhanashree Somani & Sayar Karmakar, 2026. "Machine Learning Forecasting of U.S. Stock Market Volatility: The Role of Stock and Oil Bubbles," Working Papers 202611, University of Pretoria, Department of Economics.
  • Handle: RePEc:pre:wpaper:202611
    as

    Download full text from publisher

    File URL: https://drupalwebprod-files.up.ac.za/Public/2026-04/202611.pdf?VersionId=LXFU0llJKs_rDslJfGkuVYbMYQTTa5zf
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Tim Bollerslev & Benjamin Hood & John Huss & Lasse Heje Pedersen, 2018. "Risk Everywhere: Modeling and Managing Volatility," The Review of Financial Studies, Society for Financial Studies, vol. 31(7), pages 2729-2773.
    2. Filimonov, V. & Sornette, D., 2013. "A stable and robust calibration scheme of the log-periodic power law model," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 392(17), pages 3698-3707.
    3. David E. Rapach & Jack K. Strauss & Mark E. Wohar, 2008. "Chapter 10 Forecasting Stock Return Volatility in the Presence of Structural Breaks," Frontiers of Economics and Globalization, in: Forecasting in the Presence of Structural Breaks and Model Uncertainty, pages 381-416, Emerald Group Publishing Limited.
    4. Clark, Todd E. & West, Kenneth D., 2007. "Approximately normal tests for equal predictive accuracy in nested models," Journal of Econometrics, Elsevier, vol. 138(1), pages 291-311, May.
    5. Sydney C. Ludvigson & Serena Ng, 2009. "Macro Factors in Bond Risk Premia," The Review of Financial Studies, Society for Financial Studies, vol. 22(12), pages 5027-5067, December.
    6. Vladimir Filimonov & Didier Sornette, 2011. "A Stable and Robust Calibration Scheme of the Log-Periodic Power Law Model," Papers 1108.0099, arXiv.org, revised Jun 2013.
    7. Foglia, Matteo & Gupta, Rangan & Caraiani, Petre & Pacelli, Vincenzo, 2026. "Time-varying spillover of multi-scale positive and negative bubbles in stock and oil markets," Finance Research Letters, Elsevier, vol. 88(C).
    8. Ser-Huang Poon & Clive W.J. Granger, 2003. "Forecasting Volatility in Financial Markets: A Review," Journal of Economic Literature, American Economic Association, vol. 41(2), pages 478-539, June.
    9. Gupta, Rangan & Nel, Jacobus & Nielsen, Joshua & Pierdzioch, Christian, 2025. "Stock market volatility and multi-scale positive and negative bubbles," The North American Journal of Economics and Finance, Elsevier, vol. 75(PA).
    10. Kyle Jurado & Sydney C. Ludvigson & Serena Ng, 2015. "Measuring Uncertainty," American Economic Review, American Economic Association, vol. 105(3), pages 1177-1216, March.
    11. Rangan Gupta & Jacobus Nel & Christian Pierdzioch, 2023. "Investor Confidence and Forecastability of US Stock Market Realized Volatility: Evidence from Machine Learning," Journal of Behavioral Finance, Taylor & Francis Journals, vol. 24(1), pages 111-122, January.
    12. Afees A. Salisu & Rangan Gupta & Oguzhan Cepni & Petre Caraiani, 2024. "Oil shocks and state-level stock market volatility of the United States: a GARCH-MIDAS approach," Review of Quantitative Finance and Accounting, Springer, vol. 63(4), pages 1473-1510, November.
    13. Jeong, Kiho & Härdle, Wolfgang K. & Song, Song, 2012. "A Consistent Nonparametric Test For Causality In Quantile," Econometric Theory, Cambridge University Press, vol. 28(4), pages 861-887, August.
    14. Riza Demirer & Guilherme Demos & Rangan Gupta & Didier Sornette, 2019. "On the predictability of stock market bubbles: evidence from LPPLS confidence multi-scale indicators," Quantitative Finance, Taylor & Francis Journals, vol. 19(5), pages 843-858, May.
    15. Jushan Bai & Pierre Perron, 2003. "Computation and analysis of multiple structural change models," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 18(1), pages 1-22.
    16. Afees A. Salisu & Rangan Gupta & Ahamuefula E. Ogbonna, 2022. "A moving average heterogeneous autoregressive model for forecasting the realized volatility of the US stock market: Evidence from over a century of data," International Journal of Finance & Economics, John Wiley & Sons, Ltd., vol. 27(1), pages 384-400, January.
    Full references (including those not matched with items on IDEAS)

    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. Gupta, Rangan & Nel, Jacobus & Nielsen, Joshua & Pierdzioch, Christian, 2025. "Stock market volatility and multi-scale positive and negative bubbles," The North American Journal of Economics and Finance, Elsevier, vol. 75(PA).
    2. Matteo Bonato & Oguzhan Cepni & Rangan Gupta & Christian Pierdzioch, 2025. "Electricity Sales and Forecasting of Stock Market Realized Volatility: A State-Level Analysis of the United States," Working Papers 202540, University of Pretoria, Department of Economics.
    3. Elie Bouri & Rangan Gupta & Asingamaanda Liphadzi & Christian Pierdzioch, 2026. "Forecasting the volatility of stock returns in the G7 countries over centuries: the role of climate risks," Journal of Economics and Finance, Springer;Academy of Economics and Finance, vol. 50(1), pages 1-32, December.
    4. Somani, Dhanashree & Gupta, Rangan & Karmakar, Sayar & Plakandaras, Vasilios, 2025. "Supply bottlenecks and machine learning forecasting of international stock market volatility," Finance Research Letters, Elsevier, vol. 86(PG).
    5. Matteo Bonato & Rangan Gupta & Christian Pierdzioch, 2024. "Do Shortages Forecast Aggregate and Sectoral U.S. Stock Market Realized Variance? Evidence from a Century of Data," Working Papers 202450, University of Pretoria, Department of Economics.
    6. Demirer, Riza & Gabauer, David & Gupta, Rangan & Nielsen, Joshua, 2024. "Gold, platinum and the predictability of bubbles in global stock markets," Resources Policy, Elsevier, vol. 90(C).
    7. Riza Demirer & David Gabauer & Rangan Gupta & Joshua Nielsen, 2023. "Gold-to-Platinum Price Ratio and the Predictability of Bubbles in Financial Markets," Working Papers 202317, University of Pretoria, Department of Economics.
    8. Oguzhan Cepni & Rangan Gupta & Jacobus Nel & Joshua Nielsen, 2025. "Monetary policy shocks and multi-scale positive and negative bubbles in an emerging country: the case of India," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 11(1), pages 1-25, December.
    9. Gupta, Rangan & Nielsen, Joshua & Pierdzioch, Christian, 2024. "Stock market bubbles and the realized volatility of oil price returns," Energy Economics, Elsevier, vol. 132(C).
    10. Giovanni Bonaccolto & Massimiliano Caporin & Oguzhan Cepni & Rangan Gupta, 2026. "Forecasting Realized Volatility of State-Level Stock Markets of the United States: The Role of Sentiment," Working Papers 202603, University of Pretoria, Department of Economics.
    11. Rangan Gupta & Jacobus Nel & Christian Pierdzioch, 2023. "Investor Confidence and Forecastability of US Stock Market Realized Volatility: Evidence from Machine Learning," Journal of Behavioral Finance, Taylor & Francis Journals, vol. 24(1), pages 111-122, January.
    12. Rangan Gupta & Yuvana Jaichand & Christian Pierdzioch & Reneé van Eyden, 2023. "Realized Stock-Market Volatility of the United States and the Presidential Approval Rating," Mathematics, MDPI, vol. 11(13), pages 1-27, July.
    13. Zhangying Li & O-Chia Chuang & Rangan Gupta, 2026. "The Shifting Dynamics of Energy Supply Shocks: Natural Gas as the New Driver of European Stock Market Volatility," Working Papers 202609, University of Pretoria, Department of Economics.
    14. Elie Bouri & Ufuk Can & Oguzhan Cepni & Rangan Gupta, 2025. "Corporate Earnings Announcements and Stock Market Bubbles," Working Papers 202543, University of Pretoria, Department of Economics.
    15. Caraiani, Petre & Gupta, Rangan & Nel, Jacobus & Nielsen, Joshua, 2023. "Monetary policy and bubbles in G7 economies using a panel VAR approach: Implications for sustainable development," Economic Analysis and Policy, Elsevier, vol. 78(C), pages 133-155.
    16. Kejin Wu & Sayar Karmakar & Rangan Gupta & Christian Pierdzioch, 2023. "Climate Risks and Stock Market Volatility Over a Century in an Emerging Market Economy: The Case of South Africa," Working Papers 202326, University of Pretoria, Department of Economics.
    17. Elie Bouri & Rangan Gupta & Asingamaanda Liphadzi & Christian Pierdzioch, 2024. "Forecasting Stock Returns Volatility of the G7 Over Centuries: The Role of Climate Risks," Working Papers 202424, University of Pretoria, Department of Economics.
    18. Bonato, Matteo & Cepni, Oguzhan & Gupta, Rangan & Pierdzioch, Christian, 2023. "Climate risks and state-level stock market realized volatility," Journal of Financial Markets, Elsevier, vol. 66(C).
    19. Ufuk Can & Oguzhan Cepni & Rangan Gupta & Onur Polat, 2026. "From Supply-Chain Disruptions to Speculative Exuberance: How Energy Transportation Uncertainty Drives Oil Price Bubbles," Working Papers 202608, University of Pretoria, Department of Economics.
    20. David Gabauer & Rangan Gupta & Sayar Karmakar & Joshua Nielsen, 2022. "Stock Market Bubbles and the Forecastability of Gold Returns (and Volatility)," Working Papers 202228, University of Pretoria, Department of Economics.

    More about this item

    Keywords

    ;
    ;
    ;
    ;

    JEL classification:

    • C22 - Mathematical and Quantitative Methods - - Single Equation Models; Single Variables - - - Time-Series Models; Dynamic Quantile Regressions; Dynamic Treatment Effect Models; Diffusion Processes
    • C53 - Mathematical and Quantitative Methods - - Econometric Modeling - - - Forecasting and Prediction Models; Simulation Methods
    • G10 - Financial Economics - - General Financial Markets - - - General (includes Measurement and Data)
    • Q51 - Agricultural and Natural Resource Economics; Environmental and Ecological Economics - - Environmental Economics - - - Valuation of Environmental Effects

    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:pre:wpaper:202611. 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: Rangan Gupta (email available below). General contact details of provider: https://edirc.repec.org/data/decupza.html .

    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.