
Kupiec unconditional-coverage LR test for VaR exceedances
Source:R/k05_tranche1.R
morie_kupiec_var_test.RdUnder the null the exceedance indicator is i.i.d. Bernoulli(alpha),
so LR_uc = -2 log[ (1-p)^(T-N) p^N / ((1-N/T)^(T-N) (N/T)^N ) ] is
asymptotically chi-square on 1 df. This tests coverage ONLY: a model
that puts every breach in one cluster passes it. Pair it with
morie_christoffersen_cc.