Skip to content
Tailwise Risk
Menu
Livev1.0

VaR backtesting traffic light

Inputs
Count exceptions from P&L and VaR data

Columns: pnl,var or date,pnl,var. VaR as a positive loss amount. An exception is a day where loss > VaR. Data stays in your browser.

Results

Green zone, plus factor 0.00. Kupiec p-value 0.0250. Suspiciously few exceptions: 0 observed against 2.5 expected. The model may be overconservative, which overstates capital and can hide a mis-specified distribution.

Basel traffic light · T = 250 · 99%

Green zone

Plus factor

+0.00

Exceptions
0
expected 2.50
Kupiec LR
5.025
χ²(1) under H₀
p-value
0.0250
reject at 5%
P(X ≤ x)
8.11%
binomial, under H₀

Two-sided reading · too few

Suspiciously few exceptions: 0 observed against 2.5 expected. The model may be overconservative, which overstates capital and can hide a mis-specified distribution.

01Inputs

Inputs

Observations T
Number of trading days in the backtest window. The Basel zones apply only at T = 250.
Confidence level
The VaR confidence level, e.g. 99%. The exception probability under the null is p = 1 − confidence.
Exceptions x
Days on which the loss exceeded VaR. Entered directly or counted from your file.
P&L and VaR data (optional)
CSV with pnl,var or date,pnl,var. VaR as a positive number. Parsed locally.

02Outputs

Outputs

Traffic-light zone and plus factor
Green 0–4, yellow 5–9, red 10 or more, with plus factors 0, 0.40–0.85 and 1.00. Shown only at T = 250, 99%.
Kupiec LR and p-value
The likelihood-ratio statistic and its χ²(1) p-value. Finite at x = 0 and x = T.
P(X ≤ x)
Binomial cumulative probability of observing x or fewer exceptions if the model is correct.
Two-sided reading
Flags too many and suspiciously few exceptions at the 5% level.

03Formulas

Formulas

Under the null hypothesis that the model is correctly calibrated, exceptions are binomial:

Kupiec’s proportion-of-failures statistic, with :

Kupiec (1995)

The terms use the convention 0 · ln 0 = 0, so the statistic is finite at the edges:

Basel traffic light for T = 250 at 99%, with the multiplier 3 + plus factor:

Basel traffic light zones and plus factors
ZoneExceptionsPlus factor
Green0–40.00
Yellow5 / 6 / 7 / 8 / 90.40 / 0.50 / 0.65 / 0.75 / 0.85
Red10+1.00
How this works