Is the value at risk exceeded as often as it should be? The likelihood ratio test of Kupiec (1995) compares the share of days with a loss beyond it with the share it promises, such as 5%.
Examples
golemcrypto:::kupiec_test(c(18, 40), days = 365, p = 0.05)
#> [1] 9.520191e-01 5.453917e-06