Methodology · arXiv:2609.06413 v1 · submitted 6 Sep 2026 · 33 references
Shrinkage invalidates the Hosmer-Lemeshow test: goodness of fit for penalized logistic regression, with an application to glaucoma diagnosis
The paper says
“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.”
more of the abstract
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.
from the abstract
Pith says
Machine review · deepseek-v4-flash · 10 Sep 2026 · what was read was not recorded · not checked by a person
It can be wrong. Challenge this review or reply to it.
Holds up. This paper shows that the Hosmer–Lemeshow test is badly invalid after ridge regression, and provides a corrected test; the theory is clean for fixed p, but the high-dimensional justification relies on prepivoting with limited analytic support. This line is wrong
5 minor
How often objections from reviews like this one are right: not yet measured
Not checked: figures, code, what the 33 references say.
5 minor objections
The paper says, at Abstract and Section 3.2
Pith says: minor objection 1 of 5
The phrase 'made valid by prepivoting' in the abstract is stronger than the analytic results, which are fixed-dimension and first-order with lambda = o(n); the validity in proportional regimes is supported by simulation, as the authors themselves state in Section 8(a). I suggest qualifying the abstract wording so that the scope of the validity claim matches the theory and the simulation evidence.
The paper says, at Section 2.1 and Proposition 1
Pith says: minor objection 2 of 5
The group-membership matrix C is defined from fitted probabilities but the expansion treats it as fixed; the text should state either that the randomness of the group boundaries is asymptotically negligible, or point to the part of the supplementary material where this is proved, so that readers do not have to infer it.
show 3 more
The paper says, at Section 4.1
Pith says: minor objection 3 of 5
The paragraph explaining that tau already contains the factor rho_k is easy to misread; I suggest stating explicitly that power curves plotted against tau are not intended to display attenuation, since attenuation has been absorbed by construction, and that the attenuation law governs how much tau a given nominal gamma buys.
The paper says, at Table 3 footnote
Pith says: minor objection 4 of 5
The footnote with internal stream names and dates such as 'T25 power highB.R, stream 20260810' reads like a development log and should be replaced by a standard reproducibility pointer; such details belong in the replication archive rather than in the published table.
The paper says, at Section 6.2(b)
Pith says: minor objection 5 of 5
The phrase 'weaker than the uncorrected analysis suggested by more than three orders of magnitude' is fine because the uncorrected p-values are reported only below a 1e-5 resolution limit, but the text should make clear that the comparison uses that resolution limit rather than exact uncorrected p-values.
What would settle it
Simulate the prepivoted SC.HL test under a high-dimensional proportional regime: n=200, p=100 (p/n=0.5), independent standard normal covariates, logistic model with β=(1,-0.5,0.3,rep(0,97)), λ chosen by 10-fold CV. Use 1000 Monte Carlo replications with B=199 bootstrap resamples. Compute rejection rate at nominal α=0.05 for both decile and EDGE bases. If the rate exceeds 0.08 (more than 3 MC standard errors above 0.05), the test fails to control size in this regime, weakening the claim of general validity.
from the skeptic's reading
How the review went
4 readings by deepseek-v4-flash · 10 Sep 2026
- Reader holds up
- Skeptic partly agrees
- Editor wrote the verdict above
- Referee minor revision: 5 minor
Not run on this paper: the simulated authors' defence.
Pith did not check this review's objections against the paper.
The review in full
The review in brief, machine-written
The paper's central claim—that the Hosmer–Lemeshow test rejects correctly specified models at rates approaching 100% once ridge regression is used—is well supported by analytic derivation and simulation. The mechanism (shrinkage induces a non-centrality in the grouped residuals) is clearly explained, and the corrected test (remove the non-centrality estimate, then prepivot) works in the settings tested. The literature this engages with is appropriate, and the practical consequences for clinical prediction modelling are real: the standard diagnostic is producing verdicts about the estimator, not the model. The paper is honest about its limitations, which earns trust.
Three soft spots are worth noting, in decreasing order of load-bearing importance.
First, the analytic derivation (Proposition 1 and the correction in Proposition 2) holds the dimension fixed and assumes λ=o(n). The proportional high-dimensional regime (p/n→κ>0) is not covered by the theory. The paper falls back on prepivoting for validity there, and the simulation evidence covers only one design (p/n=0.25, AR(0.7) covariates). Prepivoting is a general technique, but its consistency for high-dimensional logistic ridge is not established here. The glaucoma analysis (p/n=0.32) operates beyond the theoretical guarantee. This is the single most consequential gap for general applicability.
Second, the bootstrap fixes λ at the estimate from the original data, but in practice λ is chosen by cross-validation on the same data. The selection effect is not accounted for. The authors note this as open, but it means the test's reported size may degrade under repeated CV-driven penalty selection.
Third, the debiased estimator β̃ inverts the Fisher information matrix F. On the glaucoma data F is near-singular (condition number ~9e7). The paper argues that large components in low-variance directions leave Xβ̃ stable, which is a plausible heuristic but not a guarantee. A practitioner with similarly ill-conditioned data would need to check that the generator probabilities are not degenerate.
None of these flaws is fatal. The paper is transparent about them, the simulation evidence is honest (including the low power in design B and the conservative behaviour on one cell), and the code is provided. The corrected test is a genuine improvement over current practice, and the paper deserves a serious referee.
Recommendation: accept with revision. The gaps should be discussed more thoroughly—perhaps a design-dependence caveat on the generator's stability, and a stronger qualification that the test's high-dimensional validity is empirical rather than analytic.
The strongest objection
The central correction (Proposition 2) is derived under fixed dimension p and λ=o(n), using a first-order expansion that may not hold when p/n→κ∈(0,1). The paper relies on prepivoting to achieve valid size in such regimes, but bootstrap consistency in high-dimensional logistic regression with ridge penalty is not established. The generator π(β̃) uses β̃=β̂+F^{-1}Kβ̂, which inverts the Fisher information F. In high dimensions with p comparable to n, F can be nearly singular, and β̃ may be highly variable. The argument that large components in low-varance directions keep Xβ̃ stable is heuristic. Size simulations in Table 2 cover only p/n=0.25 with one covariance structure (AR(0.7)), and show conservatism at light penalty. It is unknown whether size control holds for other proportional regimes, e.g., p/n=0.5 with independent covariates or stronger collnearity. This is the single most load-bearing vulnerability because the entire practical applicability beyond low dimensions depends on the prepivoted test's validity.
The reader and I agree that the high-dimensional proportional regime is the weakest point. The paper acknowledges this limitation and provides empirical evidence for p/n=0.25 with AR(0.7) covariates, which is supportive but not exhaustive. The paper's central claim—that the Hodgkin-Lemeshow test is invalid under ridge regression and that the corrected test restores validity—is well-supported in lower dimensions and the specific high-dimensional designs tested. The concern does not invalidate the core contribution; it identifies a scope condition that requires further verification. The verdict remains ACCEPT, but with attention to the open issue.
The referee's report
The result, if correct, is methodologically significant: it identifies a systematic failure mode in a standard calibration check for penalized logistic-regression models and offers a concrete correction with measured power cost. The central derivation is not circular: the non-centrality is analytic, and the cancellation in Proposition 2 is an algebraic identity rather than a fitted quantity. The paper is unusually transparent, with simulation designs, seeds, code, a replication archive, and openly stated limitations. The main limitation, acknowledged in Section 8(a), is that the prepivoted procedure's validity in the proportional regime p/n -> kappa is empirical rather than analytic; the formal theory is first-order with fixed p and lambda = o(n). Because the central invalidity claim does not depend on that extension, I regard this as a scope restriction rather than a fatal flaw, and the manuscript's own disclosure is a strength.
Pith's reading of the paper (a machine's summary, not the authors')
The paper shows that the Hosmer-Lemeshow test for goodness of fit, routinely used to assess calibration of logistic regression models, becomes invalid when the model is fitted by ridge regression. Shrinkage displaces the grouped residuals systematically, so a correctly specified model is rejected between 92 and 100 percent of the time at the penalty that cross-validation typically selects. The paper derives the corrected distribution, introduces a debiased estimator to remove the displacement, and validates the resulting test via prepivoting (bootstrap). In a glaucoma diagnosis example where the maximum likelihood estimate does not exist, the uncorrected test overwhelmingly rejects, while the corrected test finds only modest evidence of misfit, suggesting the model needs recalibration rather than rebuilding.
What carries the argument. The key machinery is the derivation of the non-centrality parameter of the grouped residuals under ridge regression (Proposition 1). The paper shows that the Hosmer-Lemeshow statistic follows a non-central chi-squared distribution with mean offset $\mu_K = U M^{-1} K \beta$, where $K$ is the penalty matrix and $M = F + K$ is the penalized Fisher information. The correction uses a debiased estimator $\tilde{\beta} = \hat{\beta} + F^{-1} K \hat{\beta}$ to estimate $\mu_K$; subtracting it restores the central chi-squared reference exactly to first order (Proposition 2). Prepivoting (bootstrap from $\pi(\tilde{\beta})$) then yields finite-sample validity. Additionally, the attenuation law (Proposition 3) quantifies how estimation of the linear predictor attenuates detectable departures by a factor $\rho^{2k}$ for a degree-$k$ Hermite polynomial component.
Core claim. The central discovery is that under ridge penalization, the grouped residuals of the Hosmer-Lemeshow test acquire a non-zero mean due to shrinkage, violating the central chi-squared reference distribution used in practice. The size distortion is severe: at the penalty that minimizes the mean absolute error of the fitted probabilities, the test rejects correctly specified models with probability near one. The paper provides a correction by subtracting an estimate of the non-centrality, which restores the maximum likelihood reference to first order (Proposition 2), and completes the procedure with prepivoting to achieve correct finite-sample size. It also separates two null hypotheses—structural correctness versus calibration—that coincide under maximum likelihood but diverge under penalization, explaining why a test designed for the first falsely rejects the second.
The premise it rests on. The derivation assumes fixed dimension $p$ and that the penalty $\lambda$ grows slower than $n$, so the first-order expansion may not hold in high-dimensional proportional regimes where $p/n$ is bounded away from zero; the prepivoting step also requires the Fisher information matrix to be invertible, which may fail in extremely collinear designs.
If the paper is right (Pith's inferences, not the authors')
Any grouped goodness-of-fit test applied after penalized logistic regression without correction is systematically anti-conservative, rejecting correct models far more often than the nominal level.
The shrinkage-corrected Hosmer-Lemeshow test allows practitioners to assess calibration of penalized models without the artifact of shrinkage, restoring the interpretability of the p-value.
The attenuation law implies that higher-order departures (quadratic, cubic) are extremely hard to detect via grouped tests when the fitted index is noisy, especially in high dimensions.
The distinction between structural correctness and calibration means that a penalized model may be structurally correct yet appear miscalibrated due solely to the penalty; the test's rejection should not automatically prompt model rebuilding.
The method extends to any smooth penalty (Liu estimator, elastic net, Firth's correction), though not to the lasso due to the randomness of its subgradient.
The separation of null hypotheses suggests that calibration checks for penalized models should directly test calibration rather than indirect structural tests, perhaps using recalibration-based statistics.
The attenuation law implies that in high dimensions, grouped tests have very limited power against anything beyond linear-in-the-index departures; alternative approaches targeting specific covariates may be needed.
The correction relies on a debiased estimator, connecting this work to the debiased lasso literature for goodness-of-fit testing in high-dimensional logistic regression.
The paper's glaucoma example suggests that the common practice of reporting Hosmer-Lemeshow p-values for penalized models may have led to many false rejections in the clinical prediction literature, calling for re-evaluation of published findings.
Check this review
Pith stored no record of this review's passes and took no fingerprint of it. Reviews made by code from 13 Nov 2026 on carry both.
How often reviews like this one are right
Reviews like this one: written by deepseek-v4-flash, where what was read was not recorded.
How often objections from reviews like this one are right: not yet measured
Reviews by people
This review was written by a machine. No person has reviewed this paper on Pith yet. A scientist listed on Pith can review it for a fee, and their review is published here whatever it concludes.
The paper
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.
The paper's own sentences, arranged, kept beside the review and separate from it. Each label is drawn from a closed vocabulary; the number beside it is the probability the classifier gave that label. No sentence in this record was written by a model.
abstract compiled · 2026-09-23
The authors' main claim, as the classifier picked it out 0.98
“We show that this combination is invalid.”
How the main claim is stated: asserted 1.00
What the abstract itself states, as probabilities: claims first 0.06 · states limitation 0.70 · human participants 0.75 · controlled comparison 0.05 · randomized assignment 0.01 · states quantitative result 0.99 · compares with prior results 0.68 · mentions code or data availability 0.02
The abstract, sentence by sentence
This table labels the abstract only (arXiv listing abstract v1). The number is the probability the classifier gave the label.
| Sentence | Role | The authors' own work | States the main conclusion | Strength |
|---|---|---|---|---|
| Clinical prediction models are increasingly fitted by penalized logistic regression, because collinearity or many candidate predictors makes maximum likelihood unstable or impossible. | background 1.00 | 0.05 | 0.02 | asserted 0.98 |
| Calibration is then almost always assessed by a grouped goodness-of-fit test such as the Hosmer-Lemeshow test. | background 1.00 | 0.06 | 0.02 | asserted 0.90 |
| We show that this combination is invalid. | result 0.61 | 0.85 | 0.81 | asserted 1.00 |
| 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. | result 1.00 | 0.93 | 0.40 | asserted 1.00 |
| 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. | contribution 0.60 | 0.97 | 0.17 | asserted 1.00 |
| We also give the attenuation law governing what any such test can detect once the linear predictor must be estimated. | contribution 0.84 | 0.91 | 0.04 | asserted 1.00 |
| 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. | result 0.90 | 0.96 | 0.11 | asserted 1.00 |
What kind of paper the classifier reports this is: method or tool 0.72 · evidence from proof or derivation 0.96
What was examined, and what was not
Sources read
- arXiv listing abstract v1
Not examined
- full text
- figures and tables
- references and citing sentences
- relations to other papers
Levels run
- P abstract
Not run
- S sections
- T body sentences
- C citations
- R cross-paper relations
How the labels were made
Compiled by classifier-1.13.0 via TypeSafe API, question bank abstract-p1-20260923, 2026-09-23: 1 request, 5,780 input tokens.
Every quoted sentence on this record is the authors'. Every label is from Pith's closed vocabulary, with the probability shown beside it. This record as JSON
References (33)
- [1] Beran, R. (1987). Prepivoting to reduce level error of confidence sets. Biometrika, 74(3), 457--468 on Pith
- [2] Beran, R. (1988). Prepivoting test statistics: a bootstrap view of asymptotic refinements. Journal of the American Statistical Association, 83(403), 687--697 on Pith
- [3] Cand\`es, E.J. and Sur, P. (2020). The phase transition for the existence of the maximum likelihood estimate in high-dimensional logistic regression. The Annals of Statistics, 48(1), 27--42 on Pith
- [4] Chernoff, H. and Lehmann, E.L. (1954). The use of maximum likelihood estimates in ^2 tests for goodness of fit. The Annals of Mathematical Statistics, 25(3), 579--586 on Pith
- [5] Coan, L.J., Williams, B.M., Krishna Adithya, V. et al. (2023). Automatic detection of glaucoma via fundus imaging and artificial intelligence: a review. Survey of Ophthalmology, 68(1), 17--41 on Pith
- [6] Collins, G.S., Reitsma, J.B., Altman, D.G. and Moons, K.G.M. (2015). Transparent reporting of a multivariable prediction model for individual prognosis or diagnosis (TRIPOD): the TRIPOD statement. BMJ, 350, g7594 on Pith
- [7] Copas, J.B. (1989). Unweighted sum of squares test for proportions. Journal of the Royal Statistical Society, Series C, 38(1), 71--80 on Pith
- [8] Dawid, A.P. (1982). The well-calibrated Bayesian. Journal of the American Statistical Association, 77(379), 605--613 on Pith
- [9] Ebrahim, E.K. and El-Kotory, A. (2026). EDGE: a closed-form directed test for the calibration of probabilistic binary classifiers. Submitted to Advances in Data Analysis and Classification. Preprint, https://doi.org/10.5281/zenodo.21902134 on Pithdoi:10.5281/zenodo.21902134
- [10] Firth, D. (1993). Bias reduction of maximum likelihood estimates. Biometrika, 80(1), 27--38 on Pith
- [11] Friedman, J., Hastie, T. and Tibshirani, R. (2010). Regularization paths for generalized linear models via coordinate descent. Journal of Statistical Software, 33(1), 1--22 on Pith
- [12] Gulati, G., Upshaw, J., Wessler, B.S. et al. (2022). Generalizability of cardiovascular disease clinical prediction models: 158 independent external validations of 104 unique models. Circulation: Cardiovascular Quality and Outcomes, 15(4), e008487 on Pith
- [13] Guo, B. and Chen, S.X. (2016). Tests for high dimensional generalized linear models. Journal of the Royal Statistical Society, Series B, 78(5), 1079--1102 on Pith
- [14] Hosmer, D.W. and Lemeshow, S. (1980). Goodness of fit tests for the multiple logistic regression model. Communications in Statistics -- Theory and Methods, 9(10), 1043--1069 on Pith
- [15] Hosmer, D.W., Hosmer, T., le Cessie, S. and Lemeshow, S. (1997). A comparison of goodness-of-fit tests for the logistic regression model. Statistics in Medicine, 16(9), 965--980 on Pith
- [16] Jankov\'a, J., Shah, R.D., B\"uhlmann, P. and Samworth, R.J. (2020). Goodness-of-fit testing in high dimensional generalized linear models. Journal of the Royal Statistical Society, Series B, 82(3), 773--795 on Pith
- [17] Javanmard, A. and Mehrabi, M. (2024). GRASP: a goodness-of-fit test for classification learning. Journal of the Royal Statistical Society, Series B, 86(1), 215--245 on Pith
- [18] le Cessie, S. and van Houwelingen, J.C. (1991). A goodness-of-fit test for binary regression models, based on smoothing methods. Biometrics, 47(4), 1267--1282 on Pith
- [19] le Cessie, S. and van Houwelingen, J.C. (1992). Ridge estimators in logistic regression. Journal of the Royal Statistical Society, Series C, 41(1), 191--201 on Pith
- [20] Moore, D.S. and Spruill, M.C. (1975). Unified large-sample theory of general chi-squared statistics for tests of fit. The Annals of Statistics, 3(3), 599--616 on Pith
show 13 more
- [21] Nattino, G., Pennell, M.L. and Lemeshow, S. (2020). Assessing the goodness of fit of logistic regression models in large samples: a modification of the Hosmer--Lemeshow test. Biometrics, 76(2), 549--560 on Pith
- [22] Pavlou, M., Omar, R.Z. and Ambler, G. (2024). Penalized regression methods with modified cross-validation and bootstrap tuning produce better prediction models. Biometrical Journal, 66(5), e2300245 on Pith
- [23] Puhr, R., Heinze, G., Nold, M., Lusa, L. and Geroldinger, A. (2017). Firth's logistic regression with rare events: accurate effect estimates and predictions? Statistics in Medicine, 36(14), 2302--2317 on Pith
- [24] Riley, R.D., Snell, K.I.E., Martin, G.P. et al. (2021). Penalization and shrinkage methods produced unreliable clinical prediction models especially when sample size was small. Journal of Clinical Epidemiology, 132, 88--96 on Pith
- [25] Shah, R.D. and B\"uhlmann, P. (2018). Goodness-of-fit tests for high dimensional linear models. Journal of the Royal Statistical Society, Series B, 80(1), 113--135 on Pith
- [26] Sur, P. and Cand\`es, E.J. (2019). A modern maximum-likelihood theory for high-dimensional logistic regression. Proceedings of the National Academy of Sciences, 116(29), 14516--14525 on Pith
- [27] Sur, P., Chen, Y. and Cand\`es, E.J. (2019). The likelihood ratio test in high-dimensional logistic regression is asymptotically a rescaled chi-square. Probability Theory and Related Fields, 175(1--2), 487--558 on Pith
- [28] Van Calster, B. and Vickers, A.J. (2015). Calibration of risk prediction models: impact on decision-analytic performance. Medical Decision Making, 35(2), 162--169 on Pith
- [29] Van Calster, B., Nieboer, D., Vergouwe, Y., De Cock, B., Pencina, M.J. and Steyerberg, E.W. (2016). A calibration hierarchy for risk models was defined: from utopia to empirical data. Journal of Clinical Epidemiology, 74, 167--176 on Pith
- [30] Van Calster, B., McLernon, D.J., van Smeden, M. et al. (2019). Calibration: the Achilles heel of predictive analytics. BMC Medicine, 17, 230 on Pith
- [31] Van Calster, B., van Smeden, M., De Cock, B. and Steyerberg, E.W. (2020). Regression shrinkage methods for clinical prediction models do not guarantee improved performance: simulation study. Statistical Methods in Medical Research, 29(11), 3166--3178 on Pith
- [32] van de Geer, S., B\"uhlmann, P., Ritov, Y. and Dezeure, R. (2014). On asymptotically optimal confidence regions and tests for high-dimensional models. The Annals of Statistics, 42(3), 1166--1202 on Pith
- [33] Zhang, C.-H. and Zhang, S.S. (2014). Confidence intervals for low dimensional parameters in high dimensional linear models. Journal of the Royal Statistical Society, Series B, 76(1), 217--242 on Pith
Cited by 1 Pith paper
Reviewed papers on Pith that cite this one. The full citation record
Challenges and discussion
Disagree with the review, or know something it missed? Leave a comment, or challenge this review formally: a challenge becomes a permanent entry in this paper's record, and its decision is published here.
Come back by email
A short list of the week's newly reviewed papers. Nothing is sent until you confirm from your inbox, and every email has a link that stops it. No account.
No comments yet.
Sign in to comment