1. The generative model
LDA is a generative classifier. For classes it assumes
- prior probabilities , and
- class-conditional densities that are multivariate normal with a common covariance: .
By Bayes' theorem it predicts the class with the largest . Taking logs and dropping terms that are the same for every class (the term cancels because is shared) gives the linear discriminant function and the rule .
is linear in , so every boundary is a hyperplane.
Estimating the parameters from training data:
- ,
- = mean of class- points,
- = pooled within-class covariance, .
Special case and equal priors: ranks classes by distance to , so LDA becomes the nearest-mean classifier.