In one dimension, class 1 has density and class 2 has density (variance 4), with equal priors. Where are the Bayes decision boundaries, and which class is chosen in each region? Why is the boundary not a single point?
Supervised learning, Quadratic discriminant analysis
Level L3 Intermediate. Length Medium. Nature Mat Mathematical.
What's being asked
Whether you can equate two Gaussian discriminants with different variances and solve the resulting quadratic.
Key idea
With unequal variances the terms do not cancel, so is a quadratic and can have two roots.
Steps
- Discriminant (dropping the common ). Priors are equal, so they cancel.
- With : (since ) and (since ).
- Class 1 wins when . Rearranging: .
- So , giving .
- Decision: class 1 for and class 2 for . The boundaries are .
- Why two points: the narrow Gaussian is taller near the centre but dies off faster. Far out in either tail the wider class 2 density is larger. So class 1 owns only a middle interval, and the region of class 2 is disconnected.
Common mistakes
- Cancelling the terms as though the variances were equal. They differ here and are what produces the constant .
- Giving only the positive root. By symmetry the negative root is also a boundary.
- Assuming a boundary between Gaussians is always linear. That holds only for a shared covariance.
How long your answer should be
Half a page; 4 minutes.
Last checked on 4 December 2026.
Read this
Previous in Supervised learning: In Gaussian discriminant analysis with (the same for both classes) and , show that , the logistic function of a linear function of . Give and . For , , , in one dimension, what is ?
Next in Supervised learning: A Gaussian naive Bayes classifier has two classes. Class A has prior , feature means and feature variances . Class B has prior , means and variances . Which class is the point assigned to?