LDA and logistic regression both give linear decision boundaries. When would you expect each to do better, and why, in terms of data size, model correctness and outliers?
Supervised learning, Generative and discriminative models
Level L4 Advanced. Length Medium. Nature Th Theoretical.
What's being asked
Whether you can compare estimators for the same boundary form: efficiency versus robustness.
Key idea
LDA makes stronger assumptions: if they hold it needs fewer samples; if they fail, logistic regression is more robust and has lower asymptotic error.
Steps
- Same form: if the classes are Gaussians with a shared covariance, the log-odds is exactly linear. Logistic regression fits directly, while LDA fits means and covariance and computes from them.
- Small , Gaussian assumption true: LDA estimates by simple averages. It uses information about that logistic regression ignores, and has lower variance. Ng and Jordan (2001) proved this for naive Bayes (Gaussian with a diagonal covariance) versus logistic regression in features: the generative model gets close to its own asymptotic error after examples, whereas logistic regression needs order . Their result is for the diagonal-covariance case; with a full covariance, is singular unless there are about or more points, so full LDA has no such advantage.
- Large , Gaussian assumption false: logistic regression makes no assumption about and converges to the linear model that is best in log-loss, so its asymptotic error is usually lower or equal. LDA is biased, because its fitted means and covariance are tied to the wrong model.
- Outliers and heavy tails: LDA's means and covariance are sensitive, so it can be badly shifted, while logistic regression downweights points far from the boundary.
- Other cases: logistic regression handles binary and categorical features more naturally. LDA copes with perfectly separable data, where logistic regression's weights diverge without regularisation.
- In practice they often give almost the same boundary; the better choice is settled by cross-validation.
Common mistakes
- Saying "generative is always better with little data". This holds only if the generative assumption is roughly correct, and the Ng–Jordan speed-up is for naive Bayes, not full-covariance LDA.
- Claiming logistic regression has no assumptions. It assumes the log-odds is linear in .
- Forgetting separable data, which is a real difference between the two.
How long your answer should be
Half a page; 4 minutes.
Last checked on 4 December 2026.
Read this
Previous in Supervised learning: Show that, as , the error rate of the 1-nearest-neighbour classifier for two classes is at most , where is the Bayes error. What does it say numerically for ?
Next in Supervised learning: Under what conditions on does the k-NN classifier approach the Bayes error as ? Why does a fixed not suffice, and why is a sensible choice?