# Tail Risk Lab: How often does the unlikely happen?

Prepared for Zhaozhong Xu · November 2026

## Abstract

This study compares four one-day market-loss forecasting rules using 6,539 daily U.S. equity-market returns from 2000–2025. Each forecast uses only data available before the forecast day. The main retrospective evaluation covers 4,024 trading days from 2010–2025. At the 99% confidence level, Gaussian EWMA VaR produces 95 breaches (2.36%), while EWMA-filtered historical simulation produces 45 (1.12%), versus a nominal rate of 1%. The filtered model improves marginal coverage in this sample, but its breaches remain clustered and its quantile-loss advantage is statistically inconclusive under the reported paired block bootstrap. The results support distinguishing marginal coverage, temporal independence, and predictive scoring rather than treating any one metric as model validation.

## Research question and scope

Does adapting to volatility and retaining empirical tail shape improve the calibration of market-loss forecasts relative to Gaussian and unfiltered historical baselines?

The unit of analysis is a daily broad U.S. equity-market return. This is a risk forecasting project, not an executable investment strategy. No positions, leverage rules, trading costs or Sharpe ratios are manufactured for it. No performance is claimed for an investable ETF or a customer portfolio.

## Data and provenance

Source: Kenneth French Data Library, daily Fama/French three-factor file. Market total return is reconstructed as `r_t = (Mkt−RF_t + RF_t)/100`; the source reports returns in percent. The market is a value-weighted CRSP-based U.S. equity universe described by the provider, not the S&P 500. Only the market and risk-free columns are used. Source URL and SHA-256 hashes are recorded in `data/provenance.json`; the raw archive is retained.

The snapshot downloaded on 2026-11-28 UTC is based on the September 2026 CRSP database. The study deliberately ends at 2025-12-31. There are 6,539 observations starting 2000-01-03. Dates are unique and sorted; missing trading dates are not filled with zero returns. The provider changed its U.S. return input format beginning with the January 2025 release, so this is a revised historical dataset. It does not recreate the precise data vintage available to a forecaster in each historical year.

References:

- Data and construction: https://mba.tuck.dartmouth.edu/pages/faculty/ken.french/data_library.html and https://mba.tuck.dartmouth.edu/pages/faculty/ken.french/Data_Library/f-f_factors.html
- EWMA background: J.P. Morgan / Reuters, *RiskMetrics Technical Document*, fourth edition (1996): https://www.msci.com/documents/10199/5915b101-4206-4ba0-aee2-3449d5c7e95a
- Volatility modeling context: Robert Engle's Nobel lecture: https://www.nobelprize.org/uploads/2018/06/engle-lecture.pdf
- Coverage diagnostics: Kupiec (1995), *Techniques for Verifying the Accuracy of Risk Measurement Models*: https://fraser.stlouisfed.org/files/docs/publications/bog_feds/feds_1995-024.pdf ; Christoffersen (1998), *Evaluating Interval Forecasts*: https://users.ssc.wisc.edu/~behansen/718/Christoffersen1998.pdf . Formulas implemented below are the likelihood-ratio coverage and first-order independence diagnostics.

## Forecast design

Let `L_t = −r_t`, so positive losses are adverse. For confidence `α`, VaR is a loss quantile `q_t(α)`. A breach means `L_t > q_t(α)`; ties are not breaches. The nominal breach probability is `p = 1−α`. Expected shortfall (ES) is the mean of the upper `1−α` probability mass of the predictive loss distribution. We evaluate α = 0.95 and 0.99.

| Model | Conditional loss distribution | History / fixed parameter |
| --- | --- | --- |
| Historical | Empirical distribution of raw losses | Previous 1,000 trading days |
| Rolling Gaussian | Normal(0, s_t²), s_t² is past squared-return mean | Previous 252 trading days |
| EWMA Gaussian | Normal(0, σ_t²) | λ = 0.94 |
| Filtered historical | σ_t times empirical standardized historical losses | Previous 1,000 standardized residuals |

All Gaussian forecasts assume zero mean at the one-day horizon. We use the second moment rather than subtracting a fitted mean, and label this explicitly. EWMA evolves as

`σ_(t+1)² = 0.94 σ_t² + 0.06 r_t²`.

Variance is initialized from the first 252 observations. After that, standardized loss is `z_t = −r_t / σ_t`, using the variance forecast made **before** observing `r_t`. The filtered model forecasts the empirical distribution of `{σ_t z_s : s = t−1000,…,t−1}`. It can represent skewness and heavy tails without fitting a parametric tail. It assumes standardized historical residuals are relevant for tomorrow; this is a substantial modeling assumption, not a theorem.

For Gaussian VaR, `q_t = σ_t Φ⁻¹(α)`; ES is `σ_t φ(Φ⁻¹(α))/(1−α)`. Historical quantiles use the inverse empirical CDF: sorted loss index `ceil(nα)−1`. Empirical ES integrates the empirical quantile function over `[α,1]`, including fractional boundary mass. This handles ties consistently; it is not simply an average of strict exceedances.

The first 252 days initialize EWMA and the next 1,000 populate standardized residuals. All models are scored on the same dates beginning in January 2005. Data from 2000–2004 are warm-up. The 2005–2009 development period is shown diagnostically, and 2010–2025 is the main evaluation. The fixed rules are not tuned on either period. This chronological split controls mechanical look-ahead, but is **not** an independently preregistered experiment or protection against every researcher choice. Results were generated together in this project.

## Evaluation

1. **Breach frequency** and a 95% Wilson interval. Wilson intervals use a binomial independence approximation; dependence can understate uncertainty.
2. **Kupiec unconditional coverage:** with `x` breaches in `n` forecasts, compare a Bernoulli likelihood at nominal `p` to one at `x/n`. `LR_uc = 2(log L(x/n) − log L(p))`; the asymptotic reference is χ² with one degree of freedom.
3. **Christoffersen independence:** count consecutive breach transitions `n_00, n_01, n_10, n_11`. Compare a single transition probability to separate probabilities after a breach and after a non-breach. `LR_ind` has an asymptotic χ²(1) reference. Joint conditional coverage uses `LR_uc + LR_ind` and χ²(2).
4. **Quantile / pinball loss:** `ρ_α(L−q) = (α − 1{L<q})(L−q)`. This is a proper quantile score; lower is better in expectation at the true quantile. It balances conservatism against failures. Reported score units are basis points of return; it is not a portfolio P&L.
5. **Uncertainty in paired score differences:** circular moving-block bootstrap of daily filtered-minus-EWMA-Gaussian pinball loss. 1,000 replicates, seed 2026; block lengths 5, 20 and 60 days. The primary descriptive interval uses 20 days. It includes sampling dependence within blocks, but cannot guarantee coverage under nonstationarity or structural change. Multiple levels, periods and comparisons are exploratory; no multiplicity adjustment is applied.
6. **Descriptive ES residual:** mean of `I(L>q)(L−q)/(1−α) − (ES−q)`. At the correct VaR and ES under a continuous conditional distribution its conditional expectation is zero. Its sample mean is stored in JSON for inspection. It is not an ES hypothesis test, confidence interval or certification of tail severity.

Boundary likelihoods use the convention `0 log 0 = 0`. Sparse transitions, especially 99% breaches during short crisis windows, make asymptotic p-values fragile. A failure to reject never establishes that a model is correct.

## Main results: 2010–2025

Every row contains 4,024 forecasts. Nominal breach rates are 5% and 1%.

| Confidence | Model | Breaches | Breach rate | Mean quantile loss (bp) | Coverage p | Joint coverage p |
| --- | --- | ---: | ---: | ---: | ---: | ---: |
| 95% | Historical | 168 | 4.175% | 14.201 | 0.0136 | <0.0001 |
| 95% | Rolling Gaussian | 205 | 5.094% | 13.968 | 0.7841 | <0.0001 |
| 95% | EWMA Gaussian | 229 | 5.691% | 12.517 | 0.0489 | 0.0549 |
| 95% | Filtered historical | 205 | 5.094% | 12.596 | 0.7841 | 0.1365 |
| 99% | Historical | 42 | 1.044% | 4.785 | 0.7819 | 0.0036 |
| 99% | Rolling Gaussian | 100 | 2.485% | 5.038 | <0.0001 | <0.0001 |
| 99% | EWMA Gaussian | 95 | 2.361% | 4.137 | <0.0001 | <0.0001 |
| 99% | Filtered historical | 45 | 1.118% | 3.841 | 0.4592 | 0.0047 |

At 99%, filtered historical simulation has **7.15% lower mean pinball loss** than Gaussian EWMA in this sample. Its breach rate is also much closer to the nominal rate. Historical simulation has an apparently good unconditional rate too, but fails the joint coverage diagnostic. The same failure for filtered historical simulation shows that getting the total number of failures approximately right does not ensure good conditional forecasts. At 95%, Gaussian EWMA has slightly lower mean score than the filtered model, emphasizing that model ranking depends on the part of the distribution being forecast.

For filtered-minus-EWMA-Gaussian mean score difference at 99%, the estimate is **−0.296 bp**, with a 20-day bootstrap 95% interval of **[−0.726, +0.044] bp**. It includes zero. At 95%, the estimate is +0.079 bp and the interval is [−0.029, +0.190] bp. Neither supports an unqualified superiority claim. At 99%, the intervals also include zero with 5- and 60-day blocks. Exact values are in `results.json`.

The dashboard also exposes 2007-07 through 2009-06, February–June 2020, and calendar 2022 diagnostics. The financial-crisis subset overlaps development rather than the main evaluation. These periods are selected historical stress windows; they are not independent replication datasets, and short-window p-values deserve particular caution.

## Verification

Automated tests check future-return perturbation invariance, current-day forecast invariance, ES boundary mass/ties, coverage-likelihood boundary cases, ES ordering, and paired-bootstrap behavior. Input dates and the frozen CSV fingerprint are checked during reproduction. All study computations use the Python standard library. The dashboard reads generated outputs; it does not fit models in a browser or fetch live market quotes. Deterministic bootstrap seeds permit exact reruns on the same data, aside from insignificant platform floating-point differences.

## Limitations and next research steps

- One broad equity series cannot establish general performance across asset classes, portfolios or conditional information sets.
- The revised source vintage and retrospective study design preclude a point-in-time performance claim.
- The 1,000-day empirical window has only about ten observations in its upper 1% tail; ES estimates can be unstable. Initial sample and decay choices matter.
- Conditional mean, jumps, leverage effects and asymmetric volatility are not explicitly modeled. EWMA can lag abrupt shocks; standardized residuals are not guaranteed independent or stationary.
- The bootstrap assumes blocks represent dependence adequately and cannot make unknown future distributions resemble the past. The project offers no finite-sample certified tail-risk bound.
- Multiple diagnostics and stress windows are descriptive; p-values are not a model-selection oracle. Non-rejection is not validation.
- Expected shortfall forecasts are included, but no formal joint VaR/ES scoring comparison or ES calibration test is implemented.

Useful extensions are a Student-t GARCH baseline with parameters estimated on past data only, joint VaR/ES scoring, longer-window/decay sensitivity evaluated under a new locked protocol, and a genuinely untouched future evaluation or a separate asset class. A normalizing-flow density model would only be justified after these transparent baselines and an explicit plan to avoid tail overfitting.

## Reproduction and authorship

Run `python3 experiments/run_study.py` from the root, then `python3 -m unittest discover -s tests -v`. Serve `dist/` with `python3 -m http.server 8080 --directory dist`. Inputs, full forecasts, analysis code and results are included in the source package. This project was implemented with AI assistance for Zhaozhong Xu; presenting it in interviews requires reviewing the code, reproducing the results, and being able to explain the assumptions and limitations.
