risk.validation.hosmerLemeshowTest
R2026bSyntax
Description
returns the Hosmer-Lemeshow test result, hHLTest = risk.validation.hosmerLemeshowTest(Probability,NumEvents,NumTrials)hHLTest, 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 the confidence level for the hypothesis test.hHLTest = risk.validation.hosmerLemeshowTest(Probability,NumEvents,NumTrials,ConfidenceLevel=confidenceLevel)
Examples
Input Arguments
Output Arguments
More About
Alternative Functionality
The risk.validation.hosmerLemeshowTest function is similar to the
risk.validation.binomialTest function. The difference between the two functions
is that the risk.validation.hosmerLemeshowTest function computes a single
scalar test result from the aggregated PD data, while the risk.validation.binomialTest computes a vector of test results, one for each PD
value.
References
[1] Hosmer, D. W., Jr., and S. Lemeshow. 1980. “Goodness-of-fit tests for the multiple logistic regression model.” Communications in Statistics—Theory and Methods 9:1043–1069.
[2] 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.
Version History
Introduced in R2025a