tbf
Time between failures mixed test for value-at-risk (VaR) backtesting
Description
generates the time between failures mixed test (TBF) for value-at-risk (VaR)
backtesting.TestResults
= tbf(vbt
)
adds an optional name-value pair argument for
TestResults
= tbf(vbt
,Name,Value
)TestLevel
.
Examples
Input Arguments
Output Arguments
More About
Algorithms
The likelihood ratio (test statistic) of the TBF test is the sum of the likelihood ratios of the POF and TBFI tests
which is asymptotically distributed as a chi-square distribution with
x+1 degrees of freedom, wherex is the
number of failures. See the Algorithms sections for pof
and tbfi
for the definitions of their
likelihood ratios.
The p-value of the tbf
test is the
probability that a chi-square distribution with x+1 degrees of
freedom exceeds the likelihood ratio LRatioTBF
where F is the cumulative distribution of a chi-square variable with x+1 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+1 degrees of freedom and x is the number of failures. If the likelihood ratio (LRatioTBF) is undefined, that is, with no failures yet, the TBF result is to accept only when both POF and TBFI tests accept.
References
[1] Haas, M. "New Methods in Backtesting." Financial Engineering, Research Center Caesar, Bonn, 2001.
Version History
Introduced in R2016b