9.8 Linear Discriminant Analysis (LDA)
Alright, let’s talk about Linear Discriminant Analysis, or LDA. Don’t get it twisted—this isn’t the Latent Dirichlet Allocation for topic modeling. This is the other LDA, the one that’s like a much more sophisticated, class-conscious cousin to PCA. While PCA is obsessed with maximum variance and ignores your class labels entirely (how rude), LDA actually uses those labels to find the axes that maximize the separation between your pre-defined classes. It’s a supervised learning algorithm moonlighting as a dimensionality reduction technique.