Accurately forecasting financial market volatility serves as an essential foundation for risk management, trading strategies, and portfolio optimization across modern financial institutions. For several decades, empirical finance relied on conditional heteroskedasticity models such as ARCH and GARCH to capture volatility clustering and persistence in asset returns. The subsequent availability of high-frequency intraday transaction data allowed researchers to construct realized volatility measures that directly compute daily price variation from intraday returns. Among existing econometric methodologies, the Heterogeneous Autoregressive model of realized volatility, known as the HAR model, emerged as the standard benchmark across empirical studies because it parsimoniously captures volatility persistence over daily, weekly, and monthly horizons. However, conventional linear specifications cannot always accommodate nonlinear relationships, complex predictor interactions, or structural shifts across changing macroeconomic environments, prompting researchers Weijia Peng and Eman Abdelfattah to investigate how flexible machine learning algorithms and regime-dependent parameters evaluate realized volatility across major sectors of the S&P 500 index.
In financial econometric theory, asset price variation is commonly decomposed into continuous price paths and sudden discontinuous price jumps that reflect unexpected market events. Previous studies extended the linear HAR framework by decomposing realized variance into continuous variation and aggregate jump components, while subsequent research separated jump variation according to its underlying economic origin. Specifically, idiosyncratic jumps represent isolated shocks that affect an individual sector independently, whereas systematic co-jumps capture common shocks that occur simultaneously across multiple market sectors. Because idiosyncratic jumps and systematic co-jumps represent economically distinct sources of market risk, they exert different predictive influences on future volatility dynamics. While econometricians had previously examined jump decompositions within linear frameworks, their behavior had not been systematically assessed within an expansive machine learning setting. The authors designed their study to evaluate an established predictor structure containing realized volatility, continuous variation, systematic co-jumps, and idiosyncratic jumps across diverse machine learning algorithms while holding the underlying information set constant against the linear HAR benchmark.
To conduct this empirical evaluation, the researchers gathered high-frequency trade and quote intraday observations from the Wharton Research Data Services database spanning February 6, 2007, through July 29, 2026, comprising a total of 4899 trading days. The empirical dataset focused on five SPDR exchange-traded funds representing core S&P 500 sectors: Financials (XLF), Technology (XLK), Consumer Staples (XLP), Utilities (XLU), and Consumer Discretionary (XLY). Intraday transaction prices were sampled at 5-minute intervals, producing 78 observations per trading day after excluding overnight returns to preserve intraday measurement consistency. Data cleaning procedures followed established econometric filters, including previous-tick filtering and the removal of artificial recording errors and spurious jump spikes using a fixed return threshold of 0.005. Daily realized volatility was calculated by summing the squared 5-minute log returns, while bipower variation was computed to isolate the continuous component of quadratic variation. Co-jumps across the panel of sectors were formally identified whenever two or more sector funds exhibited statistically significant simultaneous jump exceedances during the same 5-minute interval.
Summary statistics calculated across the 4899 daily observations revealed substantial differences in the magnitude and distribution of continuous and discontinuous price movements across sectors. For all five sector funds, realized volatility exhibited higher sample means and standard deviations than individual jump components, with Consumer Discretionary displaying an average daily realized volatility of 0.151 and Financials showing an average of 0.174. Co-jump variation consistently displayed a higher sample mean and standard deviation than idiosyncratic jump variation across every sector examined. Furthermore, co-jump distributions were characterized by pronounced right skewness and extreme kurtosis relative to continuous bipower variation. For instance, in the Financials sector, co-jump variation reached a skewness of 6.043 and a kurtosis of 61.027, whereas idiosyncratic jump variation exhibited a skewness of 4.958 and a kurtosis of 38.606. Similar distributional asymmetries appeared in the Consumer Staples and Utilities sectors, indicating that sudden market-wide discontinuities generate heavy-tailed shocks that linear econometric specifications struggle to capture.
The researchers organized their experimental investigation into three distinct methodological phases. In Phase I, the authors evaluated eight machine learning regression algorithms alongside the benchmark linear HAR model to generate one-day-ahead point forecasts of continuous realized volatility. The evaluated regression models included Decision Tree, Random Forest, Extra Trees, AdaBoost, Stochastic Gradient Descent, Extreme Gradient Boosting (XGBoost), K-Nearest Neighbors, and Multilayer Perceptron neural networks. The complete dataset was partitioned chronologically into an 80 percent training set and a 20 percent out-of-sample testing set. Hyperparameters were tuned exclusively within the training data using three-fold stratified cross-validation after standardizing all features with a standard scaler. In their methodology, the authors noted that shuffling validation folds excluded the test sample from tuning but did not preserve chronological ordering within cross-validation folds, presenting an acknowledged limitation relative to rolling-window validation.
Out-of-sample regression results for the Consumer Discretionary sector demonstrated that tree-based ensemble models achieved the strongest predictive performance. Extra Trees and XGBoost tied for the highest out-of-sample coefficient of determination at 0.744, outperforming the benchmark linear HAR model, which attained an out-of-sample R-squared of 0.737. Extra Trees achieved the lowest test mean squared error of 0.00247, while XGBoost recorded the lowest test mean absolute error of 0.0308 alongside an average training execution time of 2.959 seconds. In contrast, the unconstrained single Decision Tree produced the weakest point forecasts, recording an out-of-sample R-squared of 0.652 and a mean squared error of 0.00336. Feature importance analyses revealed that daily lagged realized volatility served as the most influential predictor across all regression models, followed by weekly realized volatility. Systematic co-jump measures generally contributed greater predictive importance than idiosyncratic jumps, although the exact ranking of jump features varied across specific algorithm architectures.
To determine whether the predictive differences between the linear HAR model and machine learning regressors reached statistical significance, the authors conducted pairwise Diebold-Mariano tests on out-of-sample squared-error losses across all five sectors. The tests contrasted the linear HAR model against the lowest-performing learner, Decision Tree, and the top-performing ensemble, Extra Trees. In comparisons against the individual Decision Tree, the HAR benchmark achieved a statistically significantly lower mean squared error across four sectors: Consumer Discretionary (statistic -6.2575, p < 0.0001), Utilities (statistic -2.7727, p = 0.0056), Technology (statistic -2.8523, p = 0.0043), and Financials (statistic -3.2035, p = 0.0014), while remaining statistically indistinguishable in Consumer Staples (statistic -1.7666, p = 0.0773). Conversely, when evaluated against Extra Trees, the ensemble algorithm produced statistically significantly lower forecast losses than HAR in Consumer Discretionary (statistic 5.3841, p < 0.0001), Technology (statistic 3.8613, p = 0.0001), Consumer Staples (statistic 2.4960, p = 0.0126), and Financials (statistic 3.5208, p = 0.0004). However, for the Utilities sector, the linear HAR model retained a statistically significant advantage over Extra Trees with a test statistic of -2.7010 and p = 0.0069, confirming that machine learning algorithms do not possess a universal advantage across every market sector.
In Phase II, the authors shifted from point estimation to directional volatility forecasting, defining a binary classification task to predict whether realized volatility on day t+1 would exceed realized volatility on day t. Directional classification was evaluated across seventeen models, including twelve individual classifiers and five stacked ensembles incorporating logistic regression, support vector classifiers, naive Bayes, gradient boosting, and neural networks. On the baseline Consumer Discretionary dataset without regime features, XGBoost attained the highest classification performance, generating an accuracy of 0.621, precision of 0.626, recall of 0.621, and an F1 score of 0.621. Individual multi-layer perceptron and CatBoost models followed closely with F1 scores of 0.619. In contrast, Gaussian Naive Bayes generated the lowest classification performance, recording an accuracy of 0.527 and an F1 score of 0.473. These baseline classification results demonstrated that while tree-based boosting algorithms reliably identify the direction of daily volatility shifts, directional accuracy without structural market context remains constrained near 62 percent.
To address structural changes in market conditions across the twenty-year sample period, the researchers implemented Markov regime-switching models to capture unobserved latent volatility states. They estimated both two-state and three-state Markov models using realized volatility features from the training sample and extracted filtered regime probabilities recursively using the Hamilton filter, ensuring that test-period predictions contained zero forward-looking information. Both specifications correctly identified historic crisis periods, such as the 2008-2009 global financial crisis and the 2020 COVID-19 pandemic shock, as high-volatility regimes. However, whereas the two-state model grouped moderate turbulence together with extreme crises into a single broad state, the three-state model established a more granular partition separating tranquil periods, moderate volatility, and extreme market stress into distinct low, medium, and high regimes. When applied in an ensemble forecasting framework, the two-regime model failed to improve point-forecast accuracy, producing lower test R-squared values than the benchmark across all sectors. In contrast, the three-regime ensemble generated uniform out-of-sample improvements, raising R-squared values from 0.5312 to 0.5928 in XLY and from 0.4538 to 0.6093 in XLP, corresponding to root mean squared error reductions between 6.8 percent and 15.4 percent.
In Phase III, the authors incorporated the filtered high- and medium-volatility regime probabilities from the three-state Markov model as additional input predictors for directional classification models. The inclusion of regime-dependent features generated substantial performance gains across nearly all classifiers evaluating the Consumer Discretionary sector. CatBoost and two CatBoost-based stacking ensembles achieved the highest performance, each recording an accuracy of 0.695, precision of 0.698, recall of 0.695, and an F1 score of 0.695, marking a notable improvement over the Phase II benchmark F1 score of 0.621. Random Forest and XGBoost also improved markedly, achieving F1 scores of 0.687 and 0.682, respectively. Sensitivity analyses utilizing an alternative 70:30 chronological training-testing split confirmed the stability of these findings, yielding test F1 scores for the regime-augmented CatBoost model of 0.7127 for XLY, 0.7402 for XLU, 0.7116 for XLK, 0.7374 for XLP, and 0.7041 for XLF, demonstrating consistent predictive robustness across differing evaluation windows.
Despite the observed statistical improvements in point forecasts and directional classification accuracy, the authors carefully noted key limitations regarding the practical interpretation of their findings. First, the empirical investigation focused strictly on statistical point predictions and binary directional movements, leaving the quantification of predictive uncertainty through density, interval, or quantile forecasts unaddressed. Second, the authors emphasized that lower out-of-sample forecast errors do not automatically establish superior investment profitability, effective hedging performance, or enhanced risk management in live financial markets. Demonstrating real-world utility would require formal decision-based economic evaluations that incorporate transaction costs, portfolio utility functions, and empirical coverage tests for Value-at-Risk and Expected Shortfall measures. Furthermore, because extreme crisis periods constitute a relatively small fraction of the out-of-sample test window, performance estimates during severe market dislocations remain subject to wider statistical uncertainty, highlighting the need for future research to test these jump-augmented, regime-dependent machine learning architectures across broader international asset classes and alternative hyperparameter configurations.
Subject of Research: Machine learning and regime-switching models for financial market realized volatility forecasting
Article Title: Forecasting realized volatility using idiosyncratic and systematic jump risks: A machine learning approach with market regimes
Article References: Peng, W., & Abdelfattah, E. (2026). Forecasting realized volatility using idiosyncratic and systematic jump risks: A machine learning approach with market regimes. Systems and Soft Computing, 9, Article 200664. https://doi.org/10.1016/j.sasc.2026.200664
Image Credits: AI Generated
DOI: 10.1016/j.sasc.2026.200664
Keywords: realized volatility, machine learning, Markov regime-switching, systematic co-jumps, idiosyncratic jumps, HAR model, XGBoost, Extra Trees, CatBoost, financial econometrics, S&P 500 sector ETFs, high-frequency data, bipower variation, directional volatility forecasting, Diebold-Mariano test, Consumer Discretionary, volatility dynamics
News Source: Teresa Odom. (November 24, 2026). Machine Learning and Market Regimes Improve Stock Sector Volatility Forecasting. Scienmag.



