Skip to content
DraconiticResearch
Search Sources API
197,688 studies31 sourcesUpdated 34 min ago
PreprintarXiv licencearXiv

Shrinkage invalidates the Hosmer-Lemeshow test: goodness of fit for penalized logistic regression, with an application to glaucoma diagnosis

Abstract

Clinical prediction models are increasingly fitted by penalized logistic regression, because collinearity or many candidate predictors makes maximum likelihood unstable or impossible. Calibration is then almost always assessed by a grouped goodness-of-fit test such as the Hosmer-Lemeshow test. We show that this combination is invalid. Under ridge regression the grouped standardized residuals acquire a non-centrality induced by shrinkage, so the reference distribution used in practice is wrong, and at the penalty that most improves the fitted probabilities the test rejects correctly specified models between 92 and 100 per cent of the time. We derive the corrected law and define the shrinkage-corrected Hosmer-Lemeshow test, which subtracts an estimate of that non-centrality, restoring the maximum likelihood reference exactly to first order, and is made valid by prepivoting at a power cost we measure. We also give the attenuation law governing what any such test can detect once the linear predictor must be estimated. In glaucoma diagnosis by confocal laser tomography, where the maximum likelihood estimate does not exist, the corrected test finds the evidence for misfit weaker by more than three orders of magnitude: the fitted risks are too flat rather than mis-ordered, so the model needs recalibration rather than rebuilding.

Related

  1. A penalized logistic generalized regression estimator
    Grayson W. White, Kelly S. McConville, Cooper S. Schumacher
    arXivPreprintCC BY 4.0Full textStatisticsarXiv
  2. Penalized Cause-Specific Hazard Regression under Competing Risks: An Elastic Net Approach Using SANAD Trial Data
    Avinash Kumar
    arXivPreprintarXiv licenceFull textStatisticsarXiv
  3. Fast Computation of Nested Cross-Validation for Penalized Regression
    Shuyang Cao, Alex Stringer
    arXivPreprintarXiv licenceFull textStatisticsarXiv
  4. Linking COPD Prevalence with Income Distribution: A Spatial Heterogeneous Compositional Regression via Geographically Weighted Penalized Approach
    Jingwen Deng, Shujie Ma, Sergio J. Rey +1
    arXivPreprintarXiv licenceFull textStatisticsarXiv
  5. A Unified Coordinate Descent Framework for Penalized Longitudinal Log-Contrast Quantile Regression
    Changwei Du, Linhui Li, Huijuan Ma +1
    arXivPreprintarXiv licenceFull textStatisticsarXiv
BibTeX
@misc{ebrahim2026shrinkage,
  title = {{Shrinkage invalidates the Hosmer-Lemeshow test: goodness of fit for penalized logistic regression, with an application to glaucoma diagnosis}},
  author = {Ebrahim Khaled Ebrahim},
  howpublished = {arXiv},
  year = {2026},
  month = sep,
  doi = {10.48550/arxiv.2609.06413},
  eprint = {2609.06413},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.06413},
}
RIS
TY  - UNPB
TI  - Shrinkage invalidates the Hosmer-Lemeshow test: goodness of fit for penalized logistic regression, with an application to glaucoma diagnosis
AU  - Ebrahim Khaled Ebrahim
PY  - 2026
DA  - 2026/09/06
PB  - arXiv
DO  - 10.48550/arxiv.2609.06413
UR  - https://arxiv.org/abs/2609.06413
AB  - Clinical prediction models are increasingly fitted by penalized logistic regression, because collinearity or many candidate predictors makes maximum likelihood unstable or impossible. Calibration is then almost always assessed by a grouped goodness-of-fit test such as the Hosmer-Lemeshow test. We show that this combination is invalid. Under ridge regression the grouped standardized residuals acquire a non-centrality induced by shrinkage, so the reference distribution used in practice is wrong, and at the penalty that most improves the fitted probabilities the test rejects correctly specified models between 92 and 100 per cent of the time. We derive the corrected law and define the shrinkage-corrected Hosmer-Lemeshow test, which subtracts an estimate of that non-centrality, restoring the maximum likelihood reference exactly to first order, and is made valid by prepivoting at a power cost we measure. We also give the attenuation law governing what any such test can detect once the linear predictor must be estimated. In glaucoma diagnosis by confocal laser tomography, where the maximum likelihood estimate does not exist, the corrected test finds the evidence for misfit weaker by more than three orders of magnitude: the fitted risks are too flat rather than mis-ordered, so the model needs recalibration rather than rebuilding.
ER  -