Linear Discriminant Analysis
A classification method that finds the linear combination of features maximising between-class separation relative to within-class scatter.
Dashed ellipses share the same shape (shared Ī£). When P(Cā) > 0.5, the boundary shifts toward class 0 ā class 1 gets a wider decision region.
Linear Discriminant Analysis (LDA) is a generative classifier that assumes each class is drawn from a multivariate Gaussian distribution with the same covariance matrix.
The model:
- Class has prior
- Features given class follow (shared covariance )
By Bayes' theorem, the posterior:
The decision boundary between classes and is linear in (the quadratic terms cancel because is shared).
- Decision boundaries are always linear (hyperplanes), thanks to the shared-covariance assumption
- A generative model: estimates the full class-conditional distributions, not just the boundary
- Doubles as a dimensionality reduction technique: classes need at most discriminant directions
- More data-efficient than logistic regression when the Gaussian assumption genuinely holds
- Using LDA when classes have clearly different shapes/spreads: the shared-covariance assumption is violated, biasing the boundary ā QDA is the natural fallback
- Applying LDA directly when : the estimated covariance matrix becomes singular; shrinkage or dimensionality reduction is needed first
Features: height (, ), weight. LDA estimates class means and a pooled covariance, then classifies by which class has higher posterior probability. The boundary is a line in (height, weight) space.
LDA is a generative model. What does it model that logistic regression (a discriminative model) doesn't? What's a potential advantage of the generative approach?
Solution
LDA models the joint distribution ā the distribution of features within each class. Logistic regression models only directly.
Advantage of generative approach: you can generate synthetic data from the fitted model; you can compute (for outlier detection); estimates can be more efficient when the Gaussian assumption holds, because the generative model extracts more signal from the data.
Disadvantage: if the Gaussian assumption is violated, LDA is misspecified ā logistic regression, which doesn't assume a distribution on , is more robust.
Related concepts
Needs first