{"id":"327bc043-f585-48df-8884-e2a9e56e7c0a","arxiv_id":"2609.06413","paper_version":1,"verdict":"ACCEPT","confidence":"HIGH","novelty_score":8.0,"correctness_risk":"medium","formal_verification":"none","parameter_count":1,"one_line_summary":"The Hosmer-Lemeshow goodness-of-fit test is invalid after ridge regression due to shrinkage-induced non-centrality; the authors derive a corrected test and show it restores nominal size in simulations and changes the clinical interpretation of a glaucoma prediction model.","lead":"Penalized logistic regression (ridge) is increasingly used for clinical prediction models, but the standard Hosmer-Lemeshow test for calibration is invalid after penalization because shrinkage systematically displaces the grouped residuals, causing the test to reject correctly specified models up to 100% of the time.","discovery_kind":"first_principles","skeptic_critique":{"model":"deepseek/deepseek-v4-flash","headline":"The theoretical correction assumes fixed p and λ=o(n); validity in proportional high-dimensional regimes (p/n→κ>0) lacks asymptotic justification and is only verified for two simulation designs.","rationale":"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.","tokens_in":19207,"tokens_out":3413,"duration_ms":31870,"concrete_test":"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.","verdict_should_be":"UNCHANGED","load_bearing_attack":"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.","agreement_with_reader":"partial"},"referee_report":{"model":"deepseek/deepseek-v4-flash","summary":"Ebrahim studies the Hosmer-Lemeshow test and an EDGE variant when the logistic model is fitted with a ridge penalty. Section 2 shows that under fixed-dimension asymptotics with lambda = o(n) the grouped residual vector has mean mu_K = U M^{-1} K beta and covariance Omega_K at least the maximum-likelihood covariance, so referring the statistic to the MLE-based reference over-rejects; the dominant driver is the non-centrality induced by shrinkage. Section 3 proposes subtracting an estimate of mu_K based on beta-tilde = beta-hat + F^{-1} K beta-hat, proves that the covariance returns to I_G - U F^{-1} U^T to first order through the algebraic identity M^{-1}(I + K F^{-1}) = F^{-1}, and uses bootstrap prepivoting for the finite-sample null distribution. Section 4 gives an attenuation law for departures that survive grouping on the fitted index; Section 5 documents size and power in two simulation designs; Section 6 reanalyzes two glaucoma datasets and shows that the uncorrected verdict is weakened or reversed by orders of magnitude.","tokens_in":19748,"tokens_out":17411,"duration_ms":159159,"significance":"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.","major_comments":[],"minor_comments":[{"comment":"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.","section":"Abstract and Section 3.2"},{"comment":"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.","section":"Section 2.1 and Proposition 1"},{"comment":"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.","section":"Section 4.1"},{"comment":"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.","section":"Table 3 footnote"},{"comment":"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.","section":"Section 6.2(b)"}],"recommendation":"minor_revision"},"author_rebuttal":null,"desk_editor":{"model":"deepseek/deepseek-v4-flash","letter":"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.\n\nThree soft spots are worth noting, in decreasing order of load-bearing importance.\n\nFirst, 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.\n\nSecond, 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.\n\nThird, 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.\n\nNone 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.\n\nRecommendation: 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.","headline":"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.","tokens_in":20713,"tokens_out":951,"duration_ms":26753},"pith_extraction":{"msc":["62J07","62F03","62P10"],"pacs":[],"model":"deepseek/deepseek-v4-flash","headline":"The Hosmer-Lemeshow test is invalid when applied after ridge regression, and a shrinkage correction restores its validity.","keywords":["ridge regression","Hosmer-Lemeshow test","goodness-of-fit","penalized logistic regression","calibration","shrinkage","prepivoting","clinical prediction model"],"falsifier":"Simulate data from a correctly specified logistic model with ridge penalty at a typical cross-validated $\\lambda$, compute the uncorrected Hosmer-Lemeshow test's rejection rate at the nominal 0.05 level. If the rate is far above 0.05 (e.g., >0.5), the paper's central claim that shrinkage invalidates the test is confirmed; a rate near 0.05 would contradict it.","tokens_in":22359,"feed_emoji":"⚠️","tokens_out":2612,"duration_ms":62125,"temperature":0.7,"pith_summary":"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.","feed_headline":"Shrkage corrupts the Hosmer-Lemeshow test","feed_subtitle":"Under penalized logistic regression, a standard calibration test rejects correct models up to 100% of the time.","key_machinery":"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_discovery":"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.","pith_inferences":["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."],"forward_implications":["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."],"supporting_citations":[{"why":"Supplies the test that the paper shows is invalid under ridge regression.","marker":"[Hosmer and Lemeshow, 1980]"},{"why":"Supplies the ridge logistic regression method that is the target of the correction.","marker":"[le Cessie and van Houwelingen, 1992]"},{"why":"Establishes that the maximum likelihood estimator is biased in high dimensions, providing context for the distortion even without penalization.","marker":"[Sur and Candès, 2019]"},{"why":"Provides the debiased estimator framework that the correction uses to undo shrinkage.","marker":"[van de Geer et al., 2014]"},{"why":"Supplies the prepivoting principle used to achieve finite-sample validity of the corrected test.","marker":"[Beran, 1988]"}],"fun_headline_variants":["Shrinkage corrupts the Hosmer-Lemeshow test","Penalized regression breaks calibration testing","Hosmer-Lemeshow test rejects perfect models 100% of time","Standard calibration test invalid under shrinkage","Corrected Hosmer-Lemeshow test fixes shrinkage bias"],"cache_read_input_tokens":0,"weakest_assumption_plain":"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.","fun_headline_variants_meta":{"raw":{"variants":["Shrinkage corrupts the Hosmer-Lemeshow test","Penalized regression breaks calibration testing","Hosmer-Lemeshow test rejects perfect models 100% of time","Standard calibration test invalid under shrinkage","Corrected Hosmer-Lemeshow test fixes shrinkage bias"]},"model":"deepseek/deepseek-v4-flash","effort":"low","cost_usd":0.000239,"raw_usage":{"cost":0.000238728,"is_byok":false,"cost_details":{"upstream_inference_cost":0.000238728,"upstream_inference_prompt_cost":0.000101528,"upstream_inference_completions_cost":0.0001372},"total_tokens":1420,"prompt_tokens":930,"completion_tokens":490,"prompt_tokens_details":{"audio_tokens":0,"video_tokens":0,"cached_tokens":256,"cache_write_tokens":0},"completion_tokens_details":{"audio_tokens":0,"image_tokens":0,"reasoning_tokens":412}},"tokens_in":930,"tokens_out":490,"cost_source":"openrouter_usage","duration_ms":5103,"temperature":1.0,"reasoning_tokens":412,"transport_provider":"openrouter","cache_read_input_tokens":0,"cache_creation_input_tokens":0},"cache_creation_input_tokens":0},"created_at":"2026-09-10T00:38:32.385064+00:00","model_set":{"reader":"deepseek/deepseek-v4-flash"},"pipeline_version":"pith-pipeline@v1.4.1-alltime-deepseek-or-medium","input_kind":null,"input_chars":null,"input_total_chars":null,"passes_missing":null,"published_standing":null,"published_confidence":null,"objection_audit":null,"run_record":null,"basis":{"kind":"not_recorded","source":null,"chars_given":null,"chars_total":null},"receipt":null,"falsifier":"Simulate data from a correctly specified logistic model with ridge penalty at a typical cross-validated $\\lambda$, compute the uncorrected Hosmer-Lemeshow test's rejection rate at the nominal 0.05 level. If the rate is far above 0.05 (e.g., >0.5), the paper's central claim that shrinkage invalidates the test is confirmed; a rate near 0.05 would contradict it.","supporting_citations":[{"cited_title":"and Lemeshow, S","cited_arxiv_id":null,"evidence_quote":"Supplies the test that the paper shows is invalid under ridge regression."},{"cited_title":"and van Houwelingen, J.C","cited_arxiv_id":null,"evidence_quote":"Supplies the ridge logistic regression method that is the target of the correction."},{"cited_title":"and Dezeure, R","cited_arxiv_id":null,"evidence_quote":"Provides the debiased estimator framework that the correction uses to undo shrinkage."},{"cited_title":null,"cited_arxiv_id":null,"evidence_quote":"Supplies the prepivoting principle used to achieve finite-sample validity of the corrected test."}],"lane_accuracy":{"status":"not yet measured","lane":{"model":"deepseek/deepseek-v4-flash","input_kind":null},"url":"https://pith.science/accuracy"},"review_version":1}