# Backtesting and breaches

URL: https://www.aureumfrontiers.com/learn/terms/backtesting/
Summary: Backtesting replays a risk estimate over past days, built only from earlier data, and counts the days whose loss went past it.

Backtesting replays a risk estimate over past days, built only from earlier data, and counts the days whose loss went past it.

- Intermediate
- [Testing risk estimates](https://www.aureumfrontiers.com/learn/topics/checking-a-model/)
- 4 min read

## Key takeaways

- Each past day gets the estimate that could have been made before it, then is compared with what happened.
- A day whose loss went past the estimate is a breach. At 95%, about 5 in 100 days are expected to breach.
- A breach count far from expected, in either direction, means the estimate has been miscalibrated.
- A backtest describes how an estimate held up in the past window. It does not certify the next one.

In Sentinel

- Analyst and up

## How it works

A [Value at Risk](https://www.aureumfrontiers.com/learn/terms/value-at-risk/) figure is a claim about how often losses are expected to go past a line. Backtesting checks that claim against the record.

The method has three steps:

- For each past day, rebuild the estimate using only data from before that day.
- Compare the estimate with the loss the portfolio had on that day.
- Count the days where the loss was larger. Each one is a [Breach (exceedance)](https://www.aureumfrontiers.com/learn/terms/breach/).

If the estimate is well calibrated, breaches turn up at the rate the [confidence level](https://www.aureumfrontiers.com/learn/terms/confidence-and-horizon/) allows: about 5 days in 100 at 95%, about 1 in 100 at 99%.

The count then needs grading. A count of 14 where 12.5 was expected is close; a count of 30 is not. A statistical test, such as the [Kupiec test and the traffic light](https://www.aureumfrontiers.com/learn/terms/kupiec-test/), decides whether the gap is too large to be chance.

Using only earlier data matters. An estimate built with knowledge of the day it is tested on would pass too easily.

## Formula

p=1 − confidence level
Expected breaches=T × p
Breach on day t: loss on day t > VaR estimated before day t
Breach rate=breaches ÷ T
whereT=number of days tested

A well-calibrated estimate has a breach rate close to p. How close is close enough depends on T: the shorter the window, the wider the band that chance alone can produce.

## Worked example

Illustrative numbers only.

| | Days tested (T) | Confidence | Expected breaches (T × p)
| 250 | 95% | 250 × 5% = 12.5
| 250 | 99% | 250 × 1% = 2.5
| 1,008 | 95% | 1,008 × 5% = 50.4
| 1,008 | 99% | 1,008 × 1% = about 10

Suppose a 95% estimate is tested over 250 days and breached 28 times. That is more than double the 12.5 expected, which points to an estimate that has been too low. Over 1,008 days, the same breach rate would be about 113 breaches against 50.4 expected, a far clearer verdict.

At 99% over 250 days, only about 2.5 breaches are expected. Anything from zero to four breaches looks much alike, so a short 99% test says little.

## How Sentinel shows it

- Analyst and up, your own portfolio: each of the three [Value at Risk methods](https://www.aureumfrontiers.com/learn/terms/var-methods/) (Parametric, Historical and Replayed history) is backtested separately. At 95% each method is graded with the [Kupiec test](https://www.aureumfrontiers.com/learn/terms/kupiec-test/). At 99% it is graded with the Basel traffic light over the latest 250 days (see [Basel traffic light](https://www.aureumfrontiers.com/learn/terms/basel-traffic-light/)).
- Window: as many days as the stored prices support, up to 1,008. Under 250 tested days, Sentinel shows 'Not enough history to test' and no colour.
- The verdict: a green, amber or red light, labelled Pass, Borderline or Fail at 95%. Amber and red flag a breach count too far from what the confidence level allows.
- Pro: shows the three estimates but not this backtest.
- Not tested: [Expected shortfall](https://www.aureumfrontiers.com/learn/terms/expected-shortfall/) is shown but not backtested.

The backtest applies today's holdings and weights to past prices, so it checks the estimate for your current mix, not the portfolio you held then. The S&P 500 market card runs its own backtest on the market itself (see [Market VaR backtest](https://www.aureumfrontiers.com/learn/terms/market-var-backtest/)).

## Often confused with

Backtesting a strategy. In trading, a backtest often means replaying a buying and selling rule to see what it would have earned. A risk backtest checks a loss estimate, not a return.

The Kupiec test. Backtesting is the process of counting breaches. The [Kupiec test and the traffic light](https://www.aureumfrontiers.com/learn/terms/kupiec-test/) is one way to grade the count.

Hypothetical performance. A [Hypothetical performance](https://www.aureumfrontiers.com/learn/terms/hypothetical-performance/) chart shows how today's mix would have moved over a past period. It tests no estimate.

### Limitations

- A short window gives a rough verdict, especially at 99%, where few breaches are expected.
- Counting breaches ignores their size. One breach of 20% counts the same as one of 2%.
- A simple count ignores clustering: ten breaches in one week count the same as ten spread over a year. Christoffersen (1998) proposed a test for this.
- A pass describes the past window. Conditions can change faster than history shows.

## Questions

### Why rebuild the estimate for each past day?

The test reflects only what the estimate could have known at the time. Using later data would let it see the losses it is tested against, and it would pass too easily.

### Why is a short 99% backtest hard to read?

At 99%, about 1 breach is expected in 100 days. Over 250 days, about 2.5 are expected, and anything from 0 to 4 breaches is plausible for a sound estimate, and also for a weak one.

### Does a passed backtest mean the estimate is right today?

It means the breach count over the tested window was consistent with the confidence level. It describes the past, not the next window.

## Related terms

- [Breach (exceedance)](https://www.aureumfrontiers.com/learn/terms/breach/)
- [Kupiec test and the traffic light](https://www.aureumfrontiers.com/learn/terms/kupiec-test/)
- [Value at Risk](https://www.aureumfrontiers.com/learn/terms/value-at-risk/)
- [Basel traffic light](https://www.aureumfrontiers.com/learn/terms/basel-traffic-light/)
- [Market VaR backtest](https://www.aureumfrontiers.com/learn/terms/market-var-backtest/)
- [Parametric, historical and Monte Carlo VaR](https://www.aureumfrontiers.com/learn/terms/var-methods/)
- [Confidence level and time horizon](https://www.aureumfrontiers.com/learn/terms/confidence-and-horizon/)
- [All of Testing risk estimates](https://www.aureumfrontiers.com/learn/topics/checking-a-model/)

### Sources

- Kupiec, P. (1995). Techniques for verifying the accuracy of risk measurement models. The Journal of Derivatives, 3(2), 73 to 84.
- Christoffersen, P. (1998). Evaluating interval forecasts. International Economic Review, 39(4), 841 to 862.
- Basel Committee on Banking Supervision (1996). Supervisory Framework for the Use of "Backtesting" in Conjunction with the Internal Models Approach to Market Risk Capital Requirements.
- Jorion, P. (2007). Value at Risk: The New Benchmark for Managing Financial Risk, 3rd edition. McGraw-Hill.

Reviewed against the Sentinel app on 2026-12-04 by Ethan N. Mercer. Examples are illustrative. General information, not investment advice.

## Check your understanding

4 questions on this page. Nothing is saved.

-

A 95% estimate is tested over 400 days. About how many breaches would a well-calibrated estimate produce?

- 4
- 20
- 40
- 380

### Show the answer

20. At 95%, p is 5%, and 400 × 5% = 20. See Formula.

-

A 95% estimate tested over 250 days is breached 30 times. What does that point to?

- The estimate has been too low
- The estimate has been too cautious
- The estimate is about right
- Nothing, because breaches are random

### Show the answer

The estimate has been too low. About 12.5 breaches were expected, so 30 is more than double: losses went past the line too often. See Worked example.

-

Why must each day's estimate be built only from earlier data?

- To make the test run faster
- So the estimate cannot see the losses it is tested against
- Because older data is more accurate
- To raise the confidence level

### Show the answer

So the estimate cannot see the losses it is tested against. An estimate that knew the outcome would pass too easily. See How it works.

-

Which Sentinel figure is shown but not backtested?

- Parametric Value at Risk
- Historical Value at Risk
- Replayed history Value at Risk
- Expected shortfall

### Show the answer

Expected shortfall. Sentinel backtests all three VaR methods; expected shortfall is shown without a backtest. See How Sentinel shows it.

Try again
