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 ?
Supervised learning, Fisher discriminant analysis
Level L3 Intermediate. Length Long. Nature Th+Mat Both.
What's being asked
Whether you can maximise a ratio of quadratic forms and interpret the answer.
Key idea
Set the gradient of to zero: with , so and .
Steps
- The idea: project the data on so the projected means are far apart (numerator) and each class is tight (denominator, the scatter of projected data). Write , so .
- Take the gradient with respect to using the quotient rule: .
- Set and divide by (nonzero at the optimum): .
- The factor is just a scalar. So , and . The length of does not matter because is unchanged if is scaled.
- Numbers: , so . Then and , so .
- Compare with the naive direction : and , so . So the Fisher direction is better.
- The maximum value is , matching the above.
Common mistakes
- Using the between-class scatter in the denominator, or swapping the roles of numerator and denominator.
- Forgetting and using directly. That is the right answer only when .
- Treating the length of as meaningful. Only its direction matters.
How long your answer should be
One page; 7 minutes.
Last checked on 4 December 2026.
Read this
Previous in Supervised learning: 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?
Next in Supervised learning: In Gaussian discriminant analysis with (the same for both classes) and , show that , the logistic function of a linear function of . Give and . For , , , in one dimension, what is ?