Multiple discriminant analysis (multi-class Fisher LDA) solves . For classes in dimensions with training points, how many useful discriminant directions are there, and what goes wrong with ? How can you fix it?
Supervised learning, Fisher discriminant analysis
Level L3 Intermediate. Length Medium. Nature Th+Mat Both.
What's being asked
Whether you know the rank of and the small-sample problem of .
Key idea
has rank at most , so at most directions are useful; is singular when .
Steps
- The between-class scatter is built from vectors . They satisfy one linear relation, , so they span at most dimensions.
- So has rank at most , and has at most non-zero eigenvalues. Here : only two useful directions, however large is. Use them to project to 2-D.
- is a sum of outer products, with linear constraints (each class's deviations sum to zero). Its rank is at most .
- Since , is singular (not invertible), so does not exist and the method fails as stated.
- Fixes: first reduce dimension with PCA (keep fewer than components), or add a ridge (regularised LDA), or use the pseudo-inverse.
Common mistakes
- Saying there are discriminant directions. There are at most .
- Forgetting that has rank at most , not , so counting points is not enough.
- Applying PCA and then LDA but keeping too many components, so is still singular.
How long your answer should be
Half a page; 4 minutes.
Last checked on 4 December 2026.
Read this
Previous in Supervised learning: points are drawn uniformly in the unit ball in dimensions. Show that the median distance from the origin to the nearest point is . What is its value for with and , and what does it mean for k-NN?
Next in Supervised learning: For GDA with binary , and , how do you derive the maximum likelihood estimates of , , and from labelled points?