A regression-based test to backtest VaR models proposed by Engle and Manganelli (2004)
A regression-based test to backtest VaR models proposed by Engle and Manganelli (2004)
Typical VaR tests cannot control for the dependence of violations, i.e., violations may cluster while the overall (unconditional) average of violations is not significantly different from α=1−VaR. The conditional expectation should also be zero meaning that Hitt(α) is uncorrelated with its own past and other lagged variables (such as rt, rt2 or the one-step ahead forecast VaR). To test this assumption, the dynamic conditional quantile (DQ) test is used which involves the following statistic DQ=HitTX(XTX)−1XTHit/α(1−α)
where X is the matrix of explanatory variables (e.g., raw and squared past returns) and Hit the vector collecting Hitt(α). Under the null hypothesis, Engle and Manganelli (2004) show that the proposed statistic DQ follows a χq2 where q=rank(X).
methods
DQtest(y, VaR, VaR_level, lag =1, lag_hit =1, lag_var =1)## S4 method for signature 'ANY'DQtest(y, VaR, VaR_level, lag =1, lag_hit =1, lag_var =1)
Arguments
y: The time series to apply a VaR model (a single asset rerurn or portfolio return).
VaR: The forecast VaR.
VaR_level: The VaR level, typically 95% or 99%.
lag: The chosen lag for y.Default is 1.
lag_hit: The chosen lag for hit. Default is 1.
lag_var: The chosen lag for VaR forecasts. Default is 1.
Engle, Robert F., and Simone Manganelli. "CAViaR: Conditional autoregressive value at risk by regression quantiles." Journal of Business & Economic Statistics 22, no. 4 (2004): 367-381.