arXiv(opens in a new tab)stat.MESep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.06413

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

Ebrahim Khaled Ebrahim

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.

A PDF page turning into lines of clean text

Preparing the full text

It will appear here by itself. You can read the abstract meanwhile.

References (24)

  • Prepivoting to reduce level error of confidence sets
  • Prepivoting test statistics: a bootstrap view of asymptotic refinements
  • and Sur, P
  • and Lehmann, E.L
  • and Moons, K.G.M
  • Unweighted sum of squares test for proportions
  • The well-calibrated Bayesian
  • and El-Kotory, A (opens the publisher in a new tab)
  • Bias reduction of maximum likelihood estimates
  • and Tibshirani, R
  • and Chen, S.X
  • and Lemeshow, S
  • and Samworth, R.J
  • and Mehrabi, M
  • and van Houwelingen, J.C
  • and Spruill, M.C
  • and Ambler, G
  • and Geroldinger, A
  • and Bühlmann, P
  • and Candès, E.J
  • and Vickers, A.J
  • and Steyerberg, E.W
  • and Dezeure, R
  • and Zhang, S.S