risk.validation.trafficLightVaRTest
Syntax
Description
returns the traffic light test result, hTLTest = risk.validation.trafficLightVaRTest(VaRLevel,NumExceptions,NumObservations)hTLTest, for a given VaR
confidence level, number of VaR exceptions, and number of observations. The output is an
integer indicating the zone that the test statistic falls into.
specifies additional options using one or more name-value arguments. For example, you can
specify the bounds for the zones.hTLTest = risk.validation.trafficLightVaRTest(VaRLevel,NumExceptions,NumObservations,Name=Value)
Examples
Input Arguments
Name-Value Arguments
Output Arguments
More About
Alternative Functionality
Function
You can use the varbacktest object function tl to perform a traffic light test on a timeseries of portfolio outcomes.
tl allows you to perform traffic light tests on multiple timeseries
with different VaR levels.
References
[1] Basel Committee on Banking Supervision, "Supervisory Framework for the Use of "Backtesting in Conjunction with the Internal Models Approach to Market Risk Capital Requirements." January, 1996. https://www.bis.org/publ/bcbs22.pdf.
[2] Basel Committee on Banking Supervision, "Calculation of RWA for market risk." January, 2022. https://www.bis.org/basel_framework/chapter/MAR/32.htm?inforce=20220101&published=20191215.
Version History
Introduced in R2025b