tbfi
Time between failures independence test for value-at-risk (VaR) backtesting
Description
generates the time between failures independence (TBFI) test for value-at-risk
(VaR) backtesting.TestResults
= tbfi(vbt
)
adds an optional name-value pair argument for
TestResults
= tbfi(vbt
,Name,Value
)TestLevel
.
Examples
Input Arguments
Output Arguments
More About
Algorithms
The likelihood ratio (test statistic) of the TBFI test is the sum of TUFF
likelihood ratios for each time between failures. If x is the number
of failures, and n1 is the number of periods
until the first failure, n2 the number of
periods between the first and the second failure, and, in general,
ni is the number of
periods between failure i - 1
and failure
i, then a likelihood ratio
LRatioTBFIi for
each ni is based on the
TUFF formula
As with the tuff
test,
LRatioTBFIi =
-2
log(pVaR) if
ni =
1
.
The TBFI likelihood ratio LRatioTBFI is then the sum of the individual likelihood ratios for all times between failures
which is asymptotically distributed as a chi-square distribution with x degrees of freedom, where x is the number of failures.
The p-value of the tbfi
test is the
probability that a chi-square distribution with x degrees of
freedom exceeds the likelihood ratio LRatioTBFI
where F is the cumulative distribution of a chi-square variable with x degrees of freedom and x is the number of failures.
The result of the test is to accept if
and reject otherwise, where F is the cumulative distribution of a chi-square variable with x degrees of freedom and x is the number of failures.
If there are no failures in the sample, the test statistic is not defined. This is
handled the same as a TUFF test with no failures. For more information, see
tuff
.
References
[1] Haas, M. "New Methods in Backtesting." Financial Engineering, Research Center Caesar, Bonn, 2001.
Version History
Introduced in R2016b