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

  1. Same form: if the classes are Gaussians with a shared covariance, the log-odds is exactly linear. Logistic regression fits w,b directly, while LDA fits means and covariance and computes w,b from them.
  2. Small n, Gaussian assumption true: LDA estimates μ0,μ1,Σ by simple averages. It uses information about p(x) 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 n features: the generative model gets close to its own asymptotic error after O(log⁡n) examples, whereas logistic regression needs order n. Their result is for the diagonal-covariance case; with a full covariance, Σ is singular unless there are about d or more points, so full LDA has no such advantage.
  3. Large n, Gaussian assumption false: logistic regression makes no assumption about p(x∣y) 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.
  4. 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.
  5. 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.
  6. In practice they often give almost the same boundary; the better choice is settled by cross-validation.

Common mistakes

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 n→∞, the error rate of the 1-nearest-neighbour classifier for two classes is at most 2R∗(1−R∗), where R∗ is the Bayes error. What does it say numerically for R∗=0.1?
Next in Supervised learning: Under what conditions on k=kn does the k-NN classifier approach the Bayes error as n→∞? Why does a fixed k not suffice, and why is k≈n a sensible choice?