Quant techniques · risk model validation

Backtesting Value at Risk: coverage and clustering tests

A VaR model is a forecast of a loss quantile, so validation should ask whether its exceptions occur at the expected rate and whether they cluster. Counting breaches alone tests only average coverage. A model can hit the target frequency while failing to raise its VaR during volatile periods.

Observed VaR exceptions versus the forecast

Observed breach rate (%)

A 99% VaR forecast expects 2.5 exceptions in 250 independent days; clustering also matters.

Define the exception sequence

Let LtL_t be the realized portfolio loss and VaRt∣t−1αVaR_{t|t-1}^{\alpha} the one-step-ahead forecast of its upper-tail α\alpha-quantile, made before observing day tt. Define the hit indicator

It=1{Lt>VaRt∣t−1α},p=1−α.I_t=\mathbf{1}\{L_t>VaR_{t|t-1}^{\alpha}\},\qquad p=1-\alpha.

For a correctly calibrated continuous conditional distribution, ItI_t should have conditional exception probability pp. With TT forecasts and x=∑tItx=\sum_t I_t exceptions, the simplest unconditional-coverage test compares the observed frequency p^=x/T\hat p=x/T with pp.

The Kupiec proportion-of-failures likelihood-ratio statistic is

LRuc=−2log⁡[(1−p)T−xpx(1−p^)T−xp^x],LR_{uc}=-2\log\left[ \frac{(1-p)^{T-x}p^x}{(1-\hat p)^{T-x}\hat p^x} \right],

with the usual boundary convention when x=0x=0 or x=Tx=T. Under the null and standard large-sample conditions, it is asymptotically χ12\chi^2_1. A rejection says the unconditional exception rate is inconsistent with the target; it does not reveal the pattern of failures.

Test whether exceptions cluster

To test independence, count transitions between consecutive hit indicators. Let nijn_{ij} be the number of transitions from It−1=iI_{t-1}=i to It=jI_t=j. Under independence, the hit probability is the same after a hit and after a non-hit. Under a first-order Markov alternative, estimate

π^01=n01n00+n01,π^11=n11n10+n11,\hat\pi_{01}=\frac{n_{01}}{n_{00}+n_{01}},\qquad \hat\pi_{11}=\frac{n_{11}}{n_{10}+n_{11}},

and under the independence null use the common estimate

π^=n01+n11n00+n01+n10+n11.\hat\pi=\frac{n_{01}+n_{11}}{n_{00}+n_{01}+n_{10}+n_{11}}.

The independence likelihood-ratio statistic compares the Markov likelihood

L1=(1−π^01)n00π^01n01(1−π^11)n10π^11n11L_1=(1-\hat\pi_{01})^{n_{00}}\hat\pi_{01}^{n_{01}} (1-\hat\pi_{11})^{n_{10}}\hat\pi_{11}^{n_{11}}

with the independent-hit likelihood

L0=(1−π^)n00+n10π^n01+n11,LRind=−2log⁡(L0/L1).L_0=(1-\hat\pi)^{n_{00}+n_{10}}\hat\pi^{n_{01}+n_{11}}, \qquad LR_{ind}=-2\log(L_0/L_1).

Under the null, LRindLR_{ind} is asymptotically χ12\chi^2_1. The Christoffersen conditional-coverage statistic combines the two checks:

LRcc=LRuc+LRind∼χ22LR_{cc}=LR_{uc}+LR_{ind}\sim\chi^2_2

asymptotically. This is a test against a specific first-order dependence alternative, not every possible form of conditional misspecification.

Interpret the tests in context

At 99% VaR, the expected exception probability is only 1%. With 250 daily forecasts, the model produces an average of 2.5 exceptions under the null. That is little data for diagnosing a tail model, so failure to reject can simply reflect low power. A p-value is not evidence that the model is accurate, and the tests say nothing directly about the sizes of losses beyond VaR.

Always plot the forecast and exception sequence through time. Exceptions concentrated in a crisis may indicate stale volatility estimates even if the overall count is near target. Compare models with appropriate quantile scores or exceedance residual diagnostics, and evaluate tail severity with an ES-sensitive procedure if expected shortfall is also a target.

Forecast timing is part of the test

Each VaR value must be timestamped and fixed before the corresponding loss is observed. Recomputing historical VaR with parameters fitted on the full sample contaminates the exception sequence and invalidates the intended out-of-sample test.

Practical details and limitations

Use a consistent loss sign convention, portfolio definition, horizon, and exception rule. If losses have atoms at the VaR threshold, strict exceedance may not have probability exactly 1−α1-\alpha; randomized or tie-aware quantile definitions may be needed. Overlapping multi-day losses create dependence even when daily innovations are independent, so the one-day Bernoulli reference distribution and transition test cannot be applied blindly.

The chi-square approximations can be poor when exceptions or transition cells are sparse. Report the number and timing of exceptions, test statistics, degrees of freedom, and limitations. For small samples, simulation-based critical values under a clearly specified null can be more appropriate, but they still depend on the assumed data-generating process.

Show answer

A 99% one-day VaR model has 12 exceptions in 500 forecasts, and most occur in two short clusters. What does the exception count suggest about unconditional coverage? What additional information does an independence test use, and what risk-model question remains unanswered by both tests?

Further reading