tailrisk_backtest_var
Backtest value-at-risk models with rolling windows, using Kupiec and Christoffersen tests to verify breach rates and clustering for out-of-sample validation.
Instructions
Backtest a VaR model out of sample with Kupiec and Christoffersen tests.
Each forecast uses only trailing data, so the result is a genuine out-of-sample assessment of whether breaches occur at the right rate and without clustering. This is the evidence a model validation report needs.
Returns:
str: JSON with n_forecasts, n_breaches, breach_rate,
expected_breach_rate, the Kupiec, Christoffersen and conditional
coverage statistics with p-values, and a plain-language verdict.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |