When I plot a PCA the axis titles are PC1/2 - "% of explained var." and when I plot LDA the axis titles are LD1/2 - "% of explained between-group Variance". What would be the correct way when I do a PCA+LDA plot? Releated links: https://stackoverflow.com/questions/62573178/pca-lda-analysis-r Proportion of explained variance in PCA and LDA)
Asked
Active
Viewed 92 times
2
-
1Do you mean that you are plotting both PCA and LDA axes in the same figure or that you are performing LDA on PCA scores? – Jun 27 '20 at 22:17
-
I wish to know what will be the correct way when I perform LDA on PCA data – user2916044 Jun 28 '20 at 10:27
1 Answers
0
If you are plotting the LDA points calculated from PCA scores, you just use the percentage of LDA explained variance.
In the figure caption or in the methods you describe the choice of the principal components and the details about the explained variance. You can see PCA as a feature engineering process, then LDA as a classification model based on them.
-
LDA present the % of explained between-group Variance but in this case I do not have groups just PC1 and PC2 (for example) so what the LDA % explain? – user2916044 Jun 28 '20 at 15:04
-
-
script can be seen in https://stackoverflow.com/questions/62573178/pca-lda-analysis-r – user2916044 Jun 28 '20 at 15:54
-
Yes but if you look at the formula for lda, they use species as a grouping factor. If you have a grouping factor then you just use the pca scores as predictors, as explained in my answer. – Jun 28 '20 at 16:05