Efron's Pseudo R-Squared for Logistic Regression
Efron's pseudo R-squared measures how much of the variation in a binary outcome a logistic model explains, using the squared differences between the observed 0/1 values and the fitted probabilities, just as the ordinary R-squared does for a linear model.
에프론 의사 결정계수는 관측된 0과 1 값과 적합 확률의 차이를 제곱해 더한 값으로, 선형모형의 결정계수처럼 로지스틱 모형이 이분형 결과의 변동을 얼마나 설명하는지 나타냅니다.
How much of the variation in my yes/no outcome does my logistic model explain?
내 로지스틱 모형은 예/아니오 결과의 변동을 얼마나 설명할까요?
The logistic model is fitted by maximum likelihood, and Efron's R-squared is one minus the sum of squared residuals (outcome minus fitted probability) divided by the total sum of squares around the outcome mean. McFadden, Cox-Snell, Nagelkerke and Tjur measures are reported beside it because each pseudo R-squared uses a different scale.
When to use Efron's Pseudo R-Squared for Logistic Regression
- You want an intuitive, squared-error measure of explained variation for a binary logistic model.
- You need to report several pseudo R-squared definitions side by side.
- You compare models fitted to the same outcome.
When to use something else
- You need to judge whether predicted probabilities are accurate: use Calibration Assessment for Predicted Probabilities
- You need the logistic model itself with odds ratios and tests: use Binary Logistic Regression
- Comparing values across different data sets or outcomes; pseudo R-squared values are not comparable there.
Assumptions and requirements
- Binary outcome
- Logistic model fitted by maximum likelihood without separation
- Independent observations
What the analysis reports
- Efron's R-squared
- McFadden, Cox-Snell, Nagelkerke and Tjur R-squared
- Likelihood-ratio chi-square test of the model
How to report it
The logistic model explained Efron's R2 = [value] of the variation in [outcome] (McFadden R2 = [value], Nagelkerke R2 = [value]); likelihood-ratio chi2([df]) = [value], p = [value].
Related methods
- Binary Logistic Regression
- Calibration Assessment for Predicted Probabilities
- le Cessie-van Houwelingen-Copas-Hosmer Goodness-of-Fit Test for Logistic Regression
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with statsmodels and direct computations (formulas, enumeration or simulation).
독립 계산. 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 Efron's Pseudo R-Squared 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.