Backtesting
Backtesting compares a model's forecasts with the outcomes that later occurred, over a sample not used to build the model. For value at risk it counts the days on which the loss exceeded the estimate and compares that count with the number the confidence level implies.
What it is
Backtesting is the comparison of a model’s forecasts with the outcomes that actually occurred, using data that were not used to build the model. The Federal Reserve’s model risk guidance describes it as a form of outcomes analysis and names value at risk as the standard example.
The test needs three things: a forecast made in advance, the realised result for the same period, and a rule that says when the gap is too large to be chance.
For a value-at-risk model the forecast is a loss threshold. An exception is a day on which the realised loss is larger than the threshold. If the confidence level is c and the number of days is n, the model predicts about (1 - c) x n exceptions. A review of backtesting procedures published by the Federal Reserve Board covers the proportion-of-failures test of Kupiec, which asks whether the observed count is consistent with that expected rate.
For a credit model the forecast is a probability of default per rating grade. The test compares it with the share of obligors in that grade that defaulted.
Why it matters
A model can be sound in design and still be wrong in use, because markets or portfolios differ from the data it was built on. Backtesting is the direct evidence on whether the forecasts held. Without it, a model is judged on its construction alone.
Worked example
Illustrative numbers. A one-day value-at-risk figure at 99 percent confidence is checked over 250 trading days.
Expected exceptions: 250 x 1% = 2.5.
Observed exceptions: 6.
The binomial probability of 6 or more exceptions, if the true exception rate is 1 percent, is about 4 percent. That is low enough to call the result unlikely under the model, so the model goes to review.
Credit case. A rating grade has a predicted default rate of 2 percent. Of 1,000 obligors in the grade, 30 default. The observed rate is 3 percent, above the forecast, and the validator tests whether a gap of that size is within statistical noise for 1,000 obligors.
How to read it
Too many exceptions point to a model that understates risk. Too few point to one that overstates it. Exceptions that cluster in the same weeks suggest the model reacts too slowly to changes in volatility, even when the total count looks acceptable.
Assumptions
- The outcomes are comparable with the forecast: same horizon, same portfolio, same definition of loss.
- The sample is long enough for rare events. With a high confidence level, few exceptions are expected, so one or two extra change the verdict.
- Exceptions are independent of one another. If they cluster, a count test alone misses the pattern.
Who uses it
- Model validators run the tests independently of the model’s developers and report the result.
- Market risk analysts produce the daily forecasts and the exceptions list.
- Credit risk modellers compare predicted and observed default rates by grade.
- Investment risk analysts use the results to judge how far to rely on a risk figure.
Common confusions
- Backtesting is not the same as stress testing. It checks forecasts against what happened; a stress test applies a scenario that may never have occurred.
- A model that passes a count test can still be poor. Counting exceptions says nothing about how large the losses beyond the threshold were.
- Testing on the data used to build the model is not a backtest. The sample must lie outside development.
- Zero exceptions are not proof of a good model. They can show a threshold set too wide.