Is that correct that LDA/FDA can only generate 2 outputs as a dimensional reduction method?
Suppose I have 100 features, I want to reduce to 5 features. Is LDA/FDA not usable?
Is that correct that LDA/FDA can only generate 2 outputs as a dimensional reduction method?
Suppose I have 100 features, I want to reduce to 5 features. Is LDA/FDA not usable?
Applying LDA to data with $K$ classes allows you to project the data onto a $K-1$ dimensional surface in a way that separates the data by class. You cannot arbitrarily choose the number of "features" that the data gets transformed into.
Also, note that you need labels to perform LDA, which is not always available (or relevant). That's why PCA is usually preferred because it's class-agnostic.
The number of output dimensions in LDA is linked to the number of degrees of freedom in the dataset, which is linked to the number of classes $c$: eigenvalues above $c$ will be zero and bear no information (same as with PCA and explained variance).
2 classes/labels (c), 50 features/dimensions/attributes (d), 150 samples/instances (n). I want to compare PCA and LDA. LDA only produce 1 feature as output because c-1 = 2-1 =1.
– aan
May 08 '20 at 22:30
1 feature from my 2 classes of dataset.
– aan
May 09 '20 at 08:37
2 classes, the output will be 1 dimensionality ( 2 – 1 =1 ), likewise, if my original dataset has 5 classes, the output will be 4 dimensionality. – aan May 07 '20 at 16:11eigenvalues for dimensions > c−1 will be 0 or imaginary (where c is the classes).– aan May 07 '20 at 16:35in LDA/FDA, theeigenvalues for dimensions > c−1 will be 0 or imaginary (where c is the classes).That is why the output is “c-1” where “c” is the number of classes and the dimensionality of the data is n with “n>c” – aan May 07 '20 at 16:43