risk.validation.binomialTest
R2026bSyntax
Description
returns the binomial test result or results, hBinTest = risk.validation.binomialTest(Probability,NumEvents,NumTrials)hBinTest, for a given set
of probabilities, events, and trials. The output is 1 if the test rejects
the null hypothesis at the 95% confidence level, or 0 otherwise.
Probability contains numeric values that represent quantities such as
probability of default (PD) estimates.
specifies optional name-value arguments. For example, you can set a specific confidence
level for the binomial test by using the hBinTest = risk.validation.binomialTest(Probability,NumEvents,NumTrials,Name=Value)ConfidenceLevel name-value
argument.
Examples
Input Arguments
Name-Value Arguments
Output Arguments
More About
Alternative Functionality
You can use the varbacktest object function bin to perform a binomial test on a timeseries of portfolio outcomes. The
bin function allows you to perform binomial tests on multiple timeseries with
different VaR confidence levels.
References
[1] Basel Committee on Banking Supervision. “Studies on the Validation of Internal Rating Systems.” Working Paper 14. May, 2005. https://www.bis.org/publ/bcbs_wp14.htm.