What is the upper bound on the number of components LDA can extract?

Quick Overview

Asks for the maximum number of components Linear Discriminant Analysis can extract and the reason for the limit. Tests the rank of the between-class scatter matrix, the constraint on class means, the binary case, and how the bound compares with PCA.

What is the upper bound on the number of components LDA can extract?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

What is the upper bound on the number of components LDA can extract? Here LDA means Linear Discriminant Analysis used for supervised dimensionality reduction, with $C$ classes and $d$ features. ```hint Look at the between-class scatter Write the between-class scatter matrix as a sum over classes and ask what constraint the class means satisfy relative to the overall mean. ``` ### What a Strong Answer Covers - The bound in terms of the number of classes and the number of features. - The rank argument for the between-class scatter matrix, including the constraint that ties the class means together. - Why the LDA eigenproblem has no further useful directions beyond that rank. - Practical consequences: the binary case, library limits, and the contrast with PCA. ### Follow-up Questions - In a two-class problem with 500 features you need a 2-D plot that separates the classes. What are your options? - What goes wrong in LDA when the number of features exceeds the number of samples, and how do implementations handle it? - Can LDA produce fewer informative directions than the bound? When?

Overview: Asks for the maximum number of components Linear Discriminant Analysis can extract and the reason for the limit. Tests the rank of the between-class scatter matrix, the constraint on class means, the binary case, and how the bound compares with PCA.

PracHub logo
General
Nov 24, 2026
easyMachine Learning EngineerOtherMachine Learning
0
0

What is the upper bound on the number of components LDA can extract?

Here LDA means Linear Discriminant Analysis used for supervised dimensionality reduction, with CC classes and dd features.

What a Strong Answer Covers Guidance

  • The bound in terms of the number of classes and the number of features.
  • The rank argument for the between-class scatter matrix, including the constraint that ties the class means together.
  • Why the LDA eigenproblem has no further useful directions beyond that rank.
  • Practical consequences: the binary case, library limits, and the contrast with PCA.

Follow-up Questions Guidance

  • In a two-class problem with 500 features you need a 2-D plot that separates the classes. What are your options?
  • What goes wrong in LDA when the number of features exceeds the number of samples, and how do implementations handle it?
  • Can LDA produce fewer informative directions than the bound? When?