Logistic regression and odds ratios
Logistic regression models the log-odds of a binary outcome as a linear function of predictors, so each exponentiated coefficient is an odds ratio.
- P(Y = 1) for predictor values x
- odds of the outcome
- change in log-odds per unit of xⱼ, others fixed (fitted by maximum likelihood)
- multiplicative change in the odds per unit increase of xⱼ
- Wald statistic, compared with the standard normal
- deviance (−2 log-likelihood) of the model and of the intercept-only model
- number of coefficients including the intercept
When to use
A binary (0/1) outcome — default or not, converted or not — predicted from quantitative and/or categorical predictors.
Assumptions
- Independent observations; log-odds linear in the (quantitative) predictors.
- Enough events: few outcomes per coefficient give unstable estimates.
- No (quasi-)complete separation: if a predictor splits the outcomes perfectly, the maximum likelihood estimate does not exist and the engine stops with an explanation.
How to interpret
- OR = 1.5: each extra unit of x multiplies the odds (not the probability) by 1.5, i.e. +50% odds.
- Effects on the probability scale depend on where you start; report predicted probabilities for meaningful profiles.
- McFadden's pseudo-R² = 1 − ℓ/ℓ₀ is not comparable with linear-regression .
Common mistakes
- Calling an odds ratio a risk ratio ("1.65 times as likely") — they agree only when the outcome is rare.
- Reading β on the probability scale.
- Ignoring separation warnings or huge standard errors.
- Using a 0.5 cut-off by default without considering costs — see classification metrics.
Example
Ten learners: hours of study 1, 2, 2, 3, 4, 4, 5, 6, 6, 7; passed 0, 0, 1, 0, 0, 1, 1, 0, 1, 1.
- Fit: logit(π) = −2.001 + 0.500·hours. OR = per hour (95% CI 0.76 to 3.60; Wald p = 0.21).
- Predicted pass probability after 5 hours: .
- With ten learners the interval includes OR = 1, so the data are consistent with no association as well as a strong one.