Class 0 has points and class 1 has points . With equal priors, fit LDA (shared covariance). What are the discriminant direction and the boundary, and which class is the query assigned to?
Supervised learning, Linear discriminant analysis
Level L3 Intermediate. Length Long. Nature Mat Mathematical.
What's being asked
Whether you can estimate class means and the pooled covariance, then apply and the midpoint threshold.
Key idea
LDA assumes with one shared , so the boundary is linear: with (for equal priors).
Steps
- Class means: and . Difference .
- Deviations from the mean. Class 0: . Class 1: .
- Scatter of each class : both equal . Total within-class scatter is .
- Pooled covariance scatter . Its inverse is .
- , which is proportional to .
- Threshold: the midpoint is , and . So the boundary is , that is .
- Query : , so it falls on the class 0 side. Class 0 is predicted. (Check with : , class 1.)
Common mistakes
- Using the plain difference of means as the direction. That ignores the correlation in and gives a different (worse) boundary.
- Dividing by instead of changes by a constant. With equal priors this does not move the boundary, but with unequal priors it changes the threshold's scale.
- Forgetting the prior term when the priors are not equal.
How long your answer should be
One page; 7–8 minutes.
Last checked on 4 December 2026.
Read this
Previous in Supervised learning: What is the AdaBoost algorithm for binary labels , and when and why must a weak classifier be rejected, in terms of its weight ?
Next in Supervised learning: For two classes, Fisher's criterion is , where are the class means and is the total within-class scatter matrix. Show that the maximiser is . How do you check it for and ?