Discriminant analysis makes classification a geometry problem
A classical method uses assumptions about class distributions to separate examples.

Model the groups
Linear and quadratic discriminant analysis classify observations by modeling how features are distributed within classes. Their assumptions about covariance differ, which changes the form of the decision boundary. Linear discriminant analysis uses a shared covariance structure; quadratic discriminant analysis allows class-specific structures. Those choices trade flexibility against the amount of evidence needed to estimate the distributions reliably.
A fictional fragrance laboratory
Imagine a laboratory classifying sample batches from a set of sensor readings. One family of batches may vary together across two measurements, while another spreads differently. A linear boundary might be adequate if their variation is similar. A more flexible boundary could help when the patterns differ, but only if the archive contains enough representative measurements to support it.
Assumptions can be useful
A model with strong assumptions is not automatically inferior to a flexible model. When data is limited, structure can stabilize learning. The danger is forgetting that the structure is a choice. Outliers, unusual distributions and unstable covariance estimates can affect performance. A tidy boundary should therefore be judged against held-out samples and the actual conditions of measurement.
Inspect the laboratory workflow
Separate samples from the same production batch when designing evaluation so that near-duplicates do not make the test too easy. Check whether instrument calibration changed during collection. Compare linear and quadratic versions with a straightforward baseline, and inspect misclassified batches with domain specialists. The value of the geometry is practical: it can reveal whether the observed groups are distinguishable under realistic conditions, without implying that their boundaries are fixed laws of chemistry. If a new instrument is introduced, collect comparison measurements before assuming that the old boundary still describes the same physical characteristics in the new readings.
Sources & further reading
scikit-learn documentation: lda qda ↗
AI-assisted editorial explainer. Sources are provided for verification.
Continue reading
The quiet power of a straight line ↗
Probability is not a verdict ↗