Method to backtest VaR violation using the Traffic Light (TL) approach of Basel
Method to backtest VaR violation using the Traffic Light (TL) approach of Basel
A method that performs backtest for VaR models using the TL approach. According to Basel, a VaR model is deemed valid if the cumulative probability of observing up to nf failures is less than 0.95 (green zone) under the binomial distribution with n (sample size) and Var level as the parameters. If the cumulative probability is between 0.95 and 0.9999 a VaR model is in yellow zone. Otherwise (>0.9999) a VaR model is in red zone.
methods
TL(y, n =NULL, no_fail =NULL, VaR, VaR_level)## S4 method for signature 'ANY'TL(y, n =NULL, no_fail =NULL, VaR, VaR_level)
Arguments
y: The time series to apply a VaR model (a single asset rerurn or portfolio return).
n: If y is not provided, then insert sample size. Default is NULL.
no_fail: If y is not provided, then insert number of fails. Default is NULL.
Basle Committee on Banking Supervision (1996). "Supervisory Framework for the Use of ‘Backtesting’ in Conjunction with the Internal Models Approach to Market Risk Capital Requirements".