Logistic regression: why MLE and not OLS?
mediumAnswer
- Y ∈ {0, 1} → OLS predicts outside [0, 1] and residuals are heteroscedastic (Var = p(1-p)).
- Logistic: p = σ(x'β), maximize Σ log .
- No closed form → IRLS or gradient descent.
- Softmax = generalization to k classes.
- Interpretation: ratio for a unit change in .
- Foundation of most tabular binary classifiers and the top layer of neural nets.
Check yourself — multiple choice
- Use OLS
- OLS predicts outside [0,1] with heteroscedastic residuals; logistic: MLE of Bernoulli with σ(x'β); ratio for a unit change
- Same as OLS
- Requires normality
Logistic: MLE (Bernoulli); ratio.
#regression#glm
Practise Statistics Fundamentals
215 interview questions in this topic.