Backtesting

Last updated 29 November 2026

Glossary · Topics: Value at Risk

Depth

Comparing a model's forecasts with what then happened. For a Value at Risk model, it counts the periods in which the loss was larger than the VaR forecast for that period, called exceptions, and compares the count with the number the confidence level implies.

Calculation. Each day's VaR, computed from the positions at the close, is set against the profit or loss of the next day. A loss beyond the VaR is an exception, also called an exceedance or a breach. A 99% VaR should be exceeded on about one day in a hundred: 2.5 days in a year of 250 trading days. Chance alone gives more or fewer, so the count is judged against the binomial distribution. With a correct model, five or more exceptions in 250 days occur about 11% of the time, and ten or more about 0.03% of the time.

Use. Risk managers and model validation teams backtest a VaR model before it is used and regularly afterward. Too many exceptions mean that the model understates risk; none over a long period suggests that it overstates it. Bank regulators tie capital to the result. Under the Basel rules, up to four exceptions in 250 days at 99% place a model in the green zone, five to nine in the yellow zone, called amber in the current text, where the capital multiplier rises, and ten or more in the red zone.

Formula. With nn periods and a VaR at confidence level cc, each period has a probability p=1−cp = 1 - c of an exception, and the number of exceptions XX is binomial:

P(X=x)=(nx) px (1−p)n−xP(X = x) = \binom{n}{x}\,p^x\,(1-p)^{n-x}

Kupiec's proportion-of-failures test (1995) compares the observed rate of exceptions, p^=x/n\hat{p} = x/n, with pp:

LR=−2ln⁡[(1−p)n−x px(1−p^)n−x p^x]LR = -2\ln\left[\frac{(1-p)^{n-x}\,p^x}{(1-\hat{p})^{n-x}\,\hat{p}^x}\right]

Under a correct model, LRLR follows, in large samples, a chi-squared distribution with one degree of freedom, so a value above 3.84 rejects the model at the 5% level. For 250 days at 99%, the test rejects at seven or more exceptions, and also at none.

In practice. The profit or loss used matters. The actual result of a day includes the trades made during the day, and in some definitions fees and commissions too. A hypothetical result revalues the positions held at the close with the next day's market data, and so tests the model alone. Bank regulators ask for both.

Backtests use a one-day VaR even where the reported VaR covers ten days. Over ten days a trading portfolio changes too much for the comparison to mean anything, and a year holds 250 one-day periods but only 25 separate ten-day ones.

The test is weak. With 250 days, a model whose true coverage is 98%, twice the intended rate of exceptions, still shows four or fewer exceptions 44% of the time. A longer record, or a lower confidence level such as 95%, gives more exceptions to count and a sharper test.

The count is not everything. Exceptions should be scattered: when they come in clusters, the model is slow to respond to a rise in volatility, even if the count is acceptable (Christoffersen, 1998). The size of the exceptions matters too, which is the subject of expected shortfall.