Linear discriminant analysis
Linear discriminant analysis is a supervised technique that projects high-dimensional data onto a lower-dimensional subspace to maximize class separation, used both as a classifier and as a preprocessing step in pattern recognition and machine learning.
What Is Linear Discriminant Analysis?
Linear discriminant analysis (LDA) is a supervised dimensionality reduction and classification technique that projects high-dimensional data onto a lower-dimensional subspace while maximizing the separation between classes. Proposed by Ronald Fisher in 1936 in the context of taxonomic classification, LDA seeks a linear projection that simultaneously keeps data from the same class tightly clustered and pushes data from different classes as far apart as possible. It occupies a foundational role in pattern recognition, machine learning, and signal processing, serving both as a standalone classifier and as a preprocessing step for other algorithms.
LDA draws on multivariate statistics and linear algebra. It assumes that the class-conditional distributions are multivariate Gaussian with identical covariance matrices, an assumption that, while often violated in practice, makes the method computationally efficient and yields competitive performance across a wide range of tasks. When the normality assumptions hold approximately, LDA achieves the Bayes-optimal decision boundary, which is a linear hyperplane.
Fisher's Criterion and Class Separability
The core optimization in LDA is Fisher's criterion: find the projection vector w that maximizes the ratio of the between-class scatter to the within-class scatter. The between-class scatter matrix measures the spread of class means relative to the overall mean, while the within-class scatter matrix measures the spread of samples around their respective class means. The solution is the eigenvector of the matrix product of the inverse within-class scatter and the between-class scatter, corresponding to the largest eigenvalue. For a c-class problem, there are at most c minus 1 discriminant directions, which is why LDA reduces dimensionality to at most c minus 1 dimensions regardless of the original feature space. Published research in IEEE Xplore on LDA for signal processing demonstrates how this criterion translates directly into improved classification performance on high-dimensional data.
Extensions and Variants
Standard LDA encounters a singularity problem when the number of samples is smaller than the number of features, a situation common in image recognition and bioinformatics. Several extensions address this. Regularized LDA adds a small multiple of the identity matrix to the within-class scatter, stabilizing the inversion. Kernel LDA maps data to a high-dimensional feature space before applying the linear projection, enabling nonlinear discriminant boundaries while retaining the LDA formulation. Incremental and online variants process data in batches, allowing the discriminant directions to update as new labeled samples arrive. The Rotational Linear Discriminant Analysis paper from IEEE Transactions surveys a range of these extensions and their respective accuracy-complexity tradeoffs. Heteroscedastic LDA relaxes the equal-covariance assumption, and conditional LDA adapts the criterion when class structures vary with an auxiliary variable.
Relationship to Other Dimensionality Reduction Methods
LDA is often contrasted with principal component analysis (PCA), the most common unsupervised dimensionality reduction method. PCA finds directions of maximum variance without regard to class labels, while LDA finds directions of maximum class discrimination. Because LDA uses class information, it typically yields more compact, class-separable representations than PCA when labeled data is available. Both methods produce linear projections and are computationally inexpensive, but they optimize complementary criteria. When combined, as in the LDA-PCA pipeline, PCA first reduces the feature space to avoid singularity and LDA then optimizes class separability, a practice common in face recognition systems. This relationship is analyzed in detail in published work on hybrid LDA for medical data classification from IEEE.
Applications
Linear discriminant analysis has applications across a range of fields, including:
- Face recognition and biometric identification
- Medical data classification and diagnostic imaging
- Remote sensing and hyperspectral image analysis
- Speech and speaker recognition preprocessing
- Machine learning pipelines as a feature extraction stage