le Cessie-van Houwelingen-Copas-Hosmer Goodness-of-Fit Test for Logistic Regression
The le Cessie-van Houwelingen-Copas-Hosmer test checks the overall fit of a logistic regression by comparing the sum of squared differences between outcomes and fitted probabilities with what a correctly specified model would produce.
르 세시-반 하우벨링겐-코파스-호스머 검정은 결과와 적합 확률 차이의 제곱합을 올바른 모형에서 기대되는 값과 비교해 로지스틱 회귀의 전체 적합도를 점검합니다.
Does my logistic regression fit the data, without having to group observations into deciles?
관측치를 십분위로 묶지 않고도 내 로지스틱 회귀가 자료에 잘 맞는지 확인할 수 있을까요?
The statistic is the unweighted sum of squared residuals (n times the Brier score). Its expected value and standard deviation under a correct model, adjusted for the estimated coefficients, give a standardised z referred to the normal distribution. A small p-value signals lack of fit, such as a missing curve or interaction. The kernel-smoothed version of le Cessie and van Houwelingen is not computed.
When to use le Cessie-van Houwelingen-Copas-Hosmer Goodness-of-Fit Test for Logistic Regression
- You want a global goodness-of-fit test for a binary logistic model with continuous predictors.
- You want to avoid the arbitrary grouping of the Hosmer-Lemeshow test.
- You report fit checks alongside the logistic model.
When to use something else
- You need to see where predictions are off: use Calibration Assessment for Predicted Probabilities
- The outcome is ordinal: use Lipsitz Goodness-of-Fit Test for Ordinal Regression
- You want a measure of explained variation instead of a test: use Efron's Pseudo R-Squared for Logistic Regression
Assumptions and requirements
- Binary outcome with independent observations
- Logistic model fitted by maximum likelihood without separation
- Sample size large enough for the normal approximation
What the analysis reports
- Sum of squared errors and its expected value
- Standard deviation, z statistic and two-sided p-value
- Brier score
How to report it
The le Cessie-van Houwelingen-Copas-Hosmer test did not indicate lack of fit of the logistic model, S = [value] (expected [value]), z = [value], p = [value], N = [value].
Related methods
- Binary Logistic Regression
- Calibration Assessment for Predicted Probabilities
- Efron's Pseudo R-Squared for Logistic Regression
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with statsmodels.
독립 계산. statsmodels 대조 참조 시험 1건 통과.
Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.
허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.
Run le Cessie-van Houwelingen-Copas-Hosmer Goodness-of-Fit Test for Logistic Regression on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable and predictor (feature) columns
- Price
- 250 credits for one analysis up to 10,000 rows (complexity level 2); larger or wider data costs more. Optional methodologist review: 1200 credits.
- Checking
- Compared with independent computations
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.