Compare LDA and PCA
Data Description 1 There are three classes They have same variance but different mean value and different direction of the primary variance. Two of them have same direction of the primary variance, the other one has the primary direction perpendicular to others.
LDA outperform PCA LDA Result(0.0% error) PCA Result (6.31% error)
Data Description 2 There are two classes One of them has its primary direction perpendicular to the other one. One of them has comparative small data set than the other one.
PCA outperform LDA LDA Result(21.9% error) PCA Result(2.48% error)