Derive why the directions that maximise the multi-class Fisher criterion are the leading eigenvectors of . Start with a single direction and maximise . How do you show that for two classes the result reduces to ?
Supervised learning, Fisher discriminant analysis
Level L4 Advanced. Length Long. Nature Mat Mathematical.
What's being asked
Whether you can use a Lagrangian (or Rayleigh quotient) argument to get a generalised eigenproblem and read off its meaning.
Key idea
Maximising subject to gives , and the maximum value is the largest .
Steps
- The ratio is unchanged if is rescaled. So fix the scale with the constraint and maximise .
- Lagrangian: . Setting gives .
- If is invertible, this is the ordinary eigenproblem .
- Multiply by : . So the value of the criterion at a stationary point is the eigenvalue itself, and the maximum is the largest eigenvalue.
- For several directions we maximise . Using the same argument, the optimum is the matrix of eigenvectors with the largest eigenvalues. There are at most nonzero eigenvalues because .
- Two classes: with , which is rank one. Then , and the equation gives , so . The only nonzero eigenvalue is .
- Note that is not symmetric. In practice solve the symmetric generalised problem, for example by whitening with first, so the eigenvectors are orthogonal in the whitened space and the eigenvalues are real.
Common mistakes
- Forgetting that the eigenvectors are orthogonal only after whitening by , not in the original space.
- Taking the eigenvectors of or of alone. The order and the use of matter.
- Forgetting the constraint: without it, the ratio's numerator is not bounded and the problem is ill-posed.
How long your answer should be
One page; 10 minutes.
Last checked on 4 December 2026.
Read this
Previous in Supervised learning: Two classes have densities and with equal priors. Show that the Bayes error is , where and is the standard normal cdf. What is its value for , , , and how does it compare with the Bhattacharyya bound?
Next in Supervised learning: Prove that the leave-one-out residual of ordinary least squares is , where is the ordinary residual and the leverage, so LOOCV needs only one fit. How do you check it on the points by computing the LOOCV mean squared error both ways?