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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"params": "<params>"
},
"name": "tailrisk_backtest_var"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |