var_test {tstests} | R Documentation |
Value at Risk and Expected Shortfall Tests
Description
The value at risk coverage and duration tests of Kupiec (1995) and Christoffersen and Pelletier (1998,2004), and expected shortfall test of Du and Escanciano (2017).
Usage
var_test(
actual,
forecast,
x,
alpha,
lags = 1,
boot = FALSE,
n_boot = 2000,
...
)
Arguments
actual |
a series representing the actual value of the series in the out of sample period. |
forecast |
the forecast values of the series at the quantile given by alpha (the forecast value at risk). |
x |
the probability integral transformed series (pit). |
alpha |
the quantile level used to calculate the forecast value at risk. |
lags |
the numbers of lags to use for the conditional shortfall test. |
boot |
whether to use bootstrap simulation for estimating the p-values of the conditional shortfall test. |
n_boot |
the bootstrap replications used to calculate the p-value. |
... |
not currently used. |
Details
This is a condensed table of both the var_cp_test
and
shortfall_de_test
.
Value
An object of class “tstest.vares” which has a print and as_flextable method.
References
Kupiec,P.H. (1995). “Techniques for verifying the accuracy of risk measurement models.” The Journal of Derivatives, 3(2), 73–84.
Christoffersen PF (1998). “Evaluating interval forecasts.” International Economic Review, 841–862.
Christoffersen PF, Pelletier,D. (2004). “Backtesting value-at-risk: A duration-based approach.” Journal of Financial Econometrics, 2(1), 84–108.
Du Z, Escanciano JC (2017). “Backtesting expected shortfall: accounting for tail risk.” Management Science, 63(4), 940–958.