Logistic Regression (Binomial GLM)
Models a binary response (0/1) as a function of predictors using the logistic link function and IRLS estimation.
Description
Logistic regression is a generalized linear model (GLM) with binomial distribution and logit link function. The probability P(Y = 1 | X) is modeled via the inverse logit function: μ = 1 / (1 + exp(−X'β)). Coefficients are estimated iteratively via IRLS (Iteratively Reweighted Least Squares), solving weighted normal equations in each step with working responses z and weights w = μ(1−μ). The significance of individual coefficients is tested via Wald z-tests: z_j = β̂_j / SE(β̂_j). Odds ratios exp(β̂_j) quantify the multiplicative effect of a predictor on the odds. Model fit is assessed via deviance, AIC, BIC, and pseudo-R² measures (McFadden, Cox-Snell, Nagelkerke).
Formulas
Assumptions
- Binary response variable (0/1)
- Independence of observations
- Linear relationship between logit(π) and the predictors
- No perfect multicollinearity among predictors
- Sufficient sample size (rule of thumb: ≥ 10 events per predictor)
Limitations
- Complete or quasi-complete separation → infinite β̂ estimates and extremely large standard errors
- Not suitable for ordinal or multinomial responses
- Sensitive to outliers in predictor space
- No overdispersion handling (use quasi-binomial or beta-binomial for that)
References
- Hosmer, D.W., Lemeshow, S., Sturdivant, R.X., Applied Logistic Regression, 3rd Ed., Wiley
- Agresti, A., Categorical Data Analysis, 3rd Ed., Wiley
- McCullagh, P., Nelder, J.A., Generalized Linear Models, 2nd Ed., Chapman & Hall