A one-day 95 percent VaR forecast was exceeded on 12 of the last 100 trading days, where a correct forecast leads one to expect 5. Is that more than bad luck, and would the verdict change if the 12 exceptions had all come in one bad fortnight? Frequency and timing are separate questions with separate tests. This lesson turns exceptions into Bernoulli observations, derives the binomial count and the likelihood ratio test of unconditional coverage, and builds the transition count tests of independence and conditional coverage, saying which reference distributions are exact and which hold only in large samples.
Key terms
VaR backtesting
Definition Let be the loss of a fixed portfolio over period , positive for an adverse outcome, so when is the PnL of the period. Let be the information available when the forecast for period is issued, and let
be the conditional distribution function of the loss under the physical measure , the right measure here because forecasts are compared with realized losses. A VaR forecast at confidence level is an -measurable number that is meant to equal the lower conditional quantile
A VaR backtest uses the forecasts and the realized losses of periods to test a stated hypothesis about the exceptions, the periods in which the loss exceeds its forecast. The hypothesis usually tested is correct conditional coverage at a stated rate ,
where for forecasts that equal the conditional quantile of continuous conditional loss laws. The loss must be measured over the horizon of the forecast and on the portfolio it was made for, and the forecast must be the one issued at time , not a version recomputed later with data that include . A rejection is evidence against the tested hypothesis. A nonrejection in a short sample does not show that the forecasts are correct.
In plain words A 95 percent VaR promises that, whatever happened before, the next loss exceeds the forecast with probability 5 percent. A backtest holds the forecaster to that promise using the record, and asks both how often the promise failed and whether the failures came in bunches.
Example In a constructed model, daily losses are independent and identically distributed with finite variance, and every day a 10-day VaR is forecast for the next 10 days. Two windows that start one day apart share 9 of their 10 daily losses, so their 10-day losses have correlation . With normal daily losses, each 10-day forecast can be the exact 99 percent quantile, and still an exception in one window is followed by an exception in the next window with probability about , against without the overlap. The outcome of a window is not yet known when the next forecast is issued, so the forecasts can all be correct while the exceptions are strongly dependent. Tests that assume independent exceptions then need nonoverlapping windows, which leave about one tenth as many observations, or a reference distribution that allows for the overlap.
Exception indicator
Definition The exception indicator of period is
which is when the realized loss strictly exceeds the forecast and otherwise. If the forecast equals the lower conditional quantile, then by the right continuity of , so
with equality exactly when , in particular whenever is continuous. An atom of the loss law at the quantile makes the exception probability smaller than , and a test must then use the actual probability. Now suppose that for every , and that every earlier indicator with is known when the forecast for period is issued, that is, -measurable. Fix and write for the event . The event belongs to , so conditioning on gives
and induction on turns the right side into a product of Bernoulli probabilities. So correct conditional coverage makes the indicators independent Bernoulli variables with parameter , which is the null hypothesis of the tests below. The overlapping windows of the previous card break the measurability condition, which is why their exceptions can be dependent.
In plain words The indicator turns each period into a yes or no answer to one question, whether the loss broke through the forecast. When the forecasts are correct, the loss laws have no atoms and each answer is known before the next forecast is made, these answers behave like independent coin tosses that come up yes with probability .
Example A constructed loan position loses nothing over the next period with probability and currency units with probability . Its distribution function equals at , so the 95 percent VaR is . The strict exception has probability , not , so a correct forecast produces exceptions at the rate , and a test against would treat the low exception rate of a correct forecast as evidence against it. With the rule instead, every period would be an exception, since the loss is never negative.
Binomial exception count
Definition The exception count over periods is . If are independent Bernoulli variables with parameter , then has the distribution ,
for , with and . The exact upper tail
measures how surprising or more exceptions are under this null. A one-sided exact test at a significance level for too many exceptions rejects when for the observed count . Because is discrete, the actual size of this test is the upper tail at the smallest rejected count, which is at most and usually below it. Without independence the count need not be binomial, since in general
and positively correlated exceptions spread the count more widely than the binomial law does. The count also discards the order of the exceptions, so a count near says nothing about their timing, and a surprising count does not identify the cause of the miscalibration.
In plain words Under the ideal null, counting exceptions is counting heads in tosses of a coin that lands heads with probability . The count can be checked against the binomial law exactly, with no large-sample approximation, but it cannot tell whether the exceptions were spread out or bunched together.
Example In the constructed record of days at , the null gives , and , a standard deviation of about . The observed has the exact upper tail . For a one-sided test at level , the tails and show that the test rejects exactly when , so its actual size is about . The count lies well inside the rejection region.
Unconditional coverage test
Definition The unconditional coverage test compares the null hypothesis that are independent Bernoulli variables with the stated parameter against the alternative that they are independent Bernoulli variables with an unrestricted parameter . For an observed sequence with exceptions, the likelihood and the log-likelihood, with log the natural logarithm here and below, are
For the derivative
vanishes only at , and , so is the unique maximizer. For or the likelihood is monotone in and is again largest at . The likelihood ratio statistic is
where a term of the form at or is read as its limit . The binomial coefficient is the same under both hypotheses and cancels. The statistic is nonnegative, and it is only when . As a standard asymptotic result, under the null with a fixed the statistic converges in distribution to as , so rejecting when , the quantile of , gives a test whose size tends to . The test is two-sided, so it rejects too few exceptions as well as too many. With a small expected count , or with on the boundary, exact binomial probabilities are more reliable than the reference.
In plain words The statistic measures how much better the observed exception rate explains the record than the promised rate does. A large value says that the promised rate fits badly, whether the exceptions were too frequent or too rare.
Example In the constructed record, , so and
It exceeds , and the asymptotic p-value is about , while the exact one-sided upper tail is about . The approximation also shows in the size of the test. At the rule rejects exactly when or , and under the null these counts have probability about , not .
Independence test
Definition For , the transition count is the number of periods with and , for , so that . The first-order Markov alternative lets the exception probability depend on the previous indicator through and . Conditional on the first indicator , the likelihood of the observed sequence is
and its two factors are maximized separately at
Independence means . With and the likelihood becomes , which is maximized at . Writing and for the two maximized log-likelihoods, with , the independence statistic is
If no transition starts from one of the two states, for example when no exception occurs before period , that factor of the likelihood is constant, its estimate is undefined, and the statistic is . As a standard asymptotic result, under independent Bernoulli indicators with a fixed parameter in , the statistic converges in distribution to as . In a finite sample this reference needs all four transition counts to be reasonably large. The alternative is first-order dependence only, so the test cannot be expected to detect dependence that leaves the two adjacent transition probabilities equal.
In plain words The test asks whether an exception makes another exception in the next period more likely, or less likely. It compares the exception rate right after an exception with the rate right after a quiet period.
Example Two constructed 20-period records each have four exceptions. In the spaced record they fall in periods 5, 10, 15 and 20, so , , and . Hence and , and the exception in period 20 starts no transition because the sample ends there. In the clustered record they fall in periods 9, 10, 11 and 12, so , , and , with and . Both records have . The statistic is about for the spaced record and for the clustered one. With only three or four transitions out of an exception the reference is rough, but an exact check is available. Under independent Bernoulli indicators with any common parameter, all placements of four exceptions are equally likely given . Exactly of them, the runs of four consecutive periods, give a statistic of or more, a conditional probability of .
Conditional coverage test
Definition The conditional coverage test takes as its null hypothesis , which is independence together with the stated rate, against the first-order Markov alternative. With the same conditioning on , the null likelihood of the transitions is
and the statistic is with . Inserting the maximized independent log-likelihood between the two terms gives the exact identity
where is the unconditional coverage statistic computed from the indicators , which contain exceptions. The coverage statistic computed from all indicators uses different data and in general does not satisfy this identity. As a standard asymptotic result, under the null the statistic converges in distribution to , whose quantile is , and the same caution about sparse transition counts applies. A first-order Markov alternative is also narrower than the full hypothesis of correct coverage given all of , so a nonrejection does not confirm that hypothesis.
In plain words Conditional coverage asks two things at once, that exceptions occur at the promised rate and that this rate does not change after an exception. The statistic splits into one part for each question, provided both parts are computed from the same observations.
Example In both 20-period records, of the transitions end in an exception, so
The clustered record has and the spaced record has . Both exceed , mainly because four exceptions are far more than the one expected in 20 periods at , and the clustered record also has a large independence part. The coverage statistic of the full sample, four exceptions in 20 periods, is about , and adding it to the clustered gives , not . Records this short illustrate the decomposition but are too sparse to support firm conclusions from the references.
Check yourself
- A one-day 99 percent VaR is backtested over 250 days and has 6 exceptions. Under the null of independent exceptions with probability , find the mean and the standard deviation of the count and the probability of 6 or more exceptions. What do the exact one-sided test and the unconditional coverage test say at level ?
Show the answer
The count is , so its mean is and its variance is , a standard deviation of about . The probabilities of to exceptions are about , , , , and , which add to about , so
This is below , so the exact one-sided test rejects. The estimate is , and
which is below , with asymptotic p-value about , so the unconditional coverage test does not reject at level . The two results do not contradict each other. The first is an exact one-sided test for too many exceptions, the second is a two-sided test judged against an asymptotic reference, and with an expected count of only that reference is a rough guide.
- A 95 percent VaR model has no exceptions in 100 days, and a colleague calls this the best possible backtest result. Compute the unconditional coverage statistic and the exact probability of zero exceptions under the null, say whether the colleague is right, and explain how the assessment changes if the loss law has an atom at the forecast.
Show the answer
With the estimate is , the first term of the statistic is by the convention , and
well above , with asymptotic p-value about . Because is on the boundary, the exact probability is the better guide, and under the null . Both say that zero exceptions are unlikely for a correctly calibrated forecast. The record is evidence that exceptions occur less often than 5 percent of the time, which means the VaR forecasts are too high, so the colleague is wrong. An atom at the forecast changes the benchmark. For the loan position of the exception indicator card, a correct VaR of has exception probability , not , and zero exceptions in 100 periods then has probability . That is about eight times the probability under the rate , so against the correct rate the record is much weaker evidence against the forecasts.
- A 95 percent VaR record of 21 days has exceptions in periods 4, 5, 13 and 14. Find the transition counts and the estimates , and , and compute , the coverage part on the 20 transitions and . Does adding the full-sample coverage statistic to give ?
Show the answer
The 20 transitions are , , and , so , and . The three log-likelihoods are
Hence , the coverage part is , and , their sum. The full-sample coverage statistic uses all 21 indicators with and is about , so adding it to gives about , not . Against the asymptotic references, does not reject independence, while rejects conditional coverage, with asymptotic p-value about , mainly because of the count. Only four transitions start from an exception, so the independence reference is rough. Given , an exact check counts of the equally likely placements, about 8 percent, with an independence statistic of at least .