Deepak Bastola
  • Research Projects
  • Courses
  • CV
  • Packages

On this page

  • 1 Why Deterministic Point Forecasts Fail in Risk Management
  • 2 Epistemic vs. Aleatoric Decomposition and Credible Band Calibration
  • 3 Open Directions for Student Researchers

Bayesian Recurrent Networks and Variational Uncertainty Decomposition

Epistemic vs. Aleatoric Risk Calibration for Non-Stationary Financial Volatility

Author

Deepak Bastola

Published

October 20, 2026

1 Why Deterministic Point Forecasts Fail in Risk Management

Standard deterministic neural networks compress predictive distributions into a single point estimate \(\hat{y}_{t+1}\), offering zero distinction between aleatoric market noise (irreducible return shocks during turbulent trading days) and epistemic model uncertainty (parameter ambiguity when the market enters an out-of-distribution structural regime).

Rather than optimizing deterministic weights \(\mathbf{W}\), a Bayesian Recurrent Neural Network (Bayesian LSTM) places a prior distribution \(p(\mathbf{W})\) over the recurrent gate parameters and approximates the intractable posterior \(p(\mathbf{W} \mid \mathcal{D})\) via a variational family \(q_\theta(\mathbf{W})\) by maximizing the Evidence Lower Bound (ELBO):

\[\mathcal{L}_{\mathrm{ELBO}}(\theta) = \mathbb{E}_{q_\theta(\mathbf{W})}\!\left[\log p(\mathcal{D} \mid \mathbf{W})\right] - \mathrm{KL}\!\left(q_\theta(\mathbf{W}) \;\|\; p(\mathbf{W})\right).\]

Across \(N = 1,210\) daily S&P 500 market observations (where annualized realized volatility rejects a unit root via the Augmented Dickey-Fuller test, \(\mathrm{ADF} = -3.214, p = 0.0192\)), we decompose predictive variance via the Law of Total Variance:

\[\mathrm{Var}(y^* \mid \mathbf{x}^*, \mathcal{D}) = \underbrace{\mathrm{Var}_{q_\theta(\mathbf{W})}\!\left(\mathbb{E}[y^* \mid \mathbf{x}^*, \mathbf{W}]\right)}_{\sigma^2_{\mathrm{epistemic}}\;\text{(Model / Weight Uncertainty)}} + \underbrace{\mathbb{E}_{q_\theta(\mathbf{W})}\!\left[\mathrm{Var}(y^* \mid \mathbf{x}^*, \mathbf{W})\right]}_{\sigma^2_{\mathrm{aleatoric}}\;\text{(Intrinsic Market Noise)}}.\]

2 Epistemic vs. Aleatoric Decomposition and Credible Band Calibration

By drawing \(M = 200\) Monte Carlo weight realizations \(\{\mathbf{W}^{(m)}\}_{m=1}^M \sim q_\theta(\mathbf{W})\) at test time, the Bayesian LSTM constructs full posterior predictive trajectories over \(n_{\mathrm{test}} = 238\) held-out trading days:

  1. Out-of-Sample Point & Distributional Accuracy: The posterior predictive mean achieves out-of-sample \(\mathrm{MSE} = 1.114\), \(\mathrm{MAE} = 0.648\%\), and \(R^2 = 0.715\) on annualized 21-day realized volatility.
  2. State-Dependent Variance Expansion: During calm market periods, total predictive spread remains tight (\(\sigma_{\mathrm{tot}} \approx 0.78\%\)). During sudden macro volatility shocks, both epistemic dispersion \(\sigma_{\mathrm{epi}}\) and heteroscedastic aleatoric noise \(\sigma_{\mathrm{alea}}\) expand automatically, yielding \(97.1\%\) empirical coverage for the \(95\%\) credible band (and \(71.0\%\) coverage for the \(50\%\) interquartile band).
  3. Post-Hoc Temperature Scaling: Evaluating the empirical Probability Integral Transform (PIT) calibration curve allows post-hoc temperature rescaling \(T^*\) so that nominal \(1-\alpha\) credible intervals align exactly with empirical coverage across every quantile.

Diagnostic Metric Empirical Value Statistical Interpretation
0 Stationarity Check (21-Day Annualized Vol) ADF = -3.214 (p = 0.0192) Rejects unit root; stationary mean-reverting c...
1 Posterior Mean Forecast Accuracy MSE = 1.114, MAE = 0.648%, R^2 = 0.715 Tracks abrupt volatility spikes and exponentia...
2 95% Posterior Credible Band Coverage 97.06% (Nominal 95.0%) Conservative epistemic widening during volatil...
3 50% Interquartile Credible Band Coverage 71.01% (Nominal 50.0%) Calibrated via post-hoc temperature scaling on...

3 Open Directions for Student Researchers

Research Track Core Mathematical Question Quantitative Methods
1. Variational Bayes vs. Concrete Dropout How closely does continuous Concrete Dropout approximate Flipout Variational Bayes KL divergence on non-stationary volatility surfaces? Variational Inference, ELBO Optimization
2. Conformalized Bayesian Quantile Regression Can Adaptive Conformal Inference (ACI) guarantee finite-sample \(1-\alpha\) coverage under adversarial regime shifts? Split Conformal Prediction, Quantile Loss
3. Uncertainty-Aware Kelly Portfolio Sizing Does scaling position sizes inversely with epistemic variance \(\sigma^2_{\mathrm{epi}, t}\) reduce maximum drawdown during tail events? Stochastic Optimal Control, Sharpe / Sortino Attribution

© 2026 Deepak Bastola

 

View source on GitHub