risk.validation.hosmerLemeshowTest
Syntax
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=confLevel)
Examples
Input Arguments
Output Arguments
More About
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