Two classes have one-dimensional Gaussian class-conditional densities with the same variance , means and priors , . What is the Bayes decision boundary (derive it), and what is it for , , , , , and which class is predicted at ?
Supervised learning, Bayes decision theory
Level L3 Intermediate. Length Medium. Nature Th+Mat Both.
What's being asked
Whether you can derive the boundary from the Bayes rule instead of quoting it, and see why unequal priors shift it.
Key idea
Predict the class with the larger . With equal variances the terms cancel, so the boundary is a single point: , the midpoint pushed towards the less likely class.
Steps
- This is the harder follow-up to `bayes-threshold-one-dimensional-gaussians`, which comes first. Bayes rule for minimum error: predict when . The common factor cancels, so compare .
- Insert the Gaussians: . The first term is the same for both classes and cancels.
- Set and multiply by : . Expand: the terms cancel, leaving .
- Divide by : . With equal priors the log is and the boundary is the midpoint.
- Numbers: and . So .
- Since , we predict for . The point is below , so the prediction is . With equal priors the boundary would be and would go to : the large prior for moves the boundary towards .
- If the variances differed, the terms would not cancel and the boundary would be quadratic, with up to two points.
Common mistakes
- Pushing the boundary the wrong way. A larger prior for enlarges the region where is predicted, so the boundary moves towards .
- Dropping the priors and using the midpoint. That is right only for equal priors.
- Forgetting that the cancellation of needs equal variances.
How long your answer should be
Half a page, about 4 minutes.
Read this
Previous in Supervised learning: In Poisson regression the count has mean (one weight, no intercept). The data are and . What are the log-likelihood, its gradient and Hessian, and the result of two Newton steps from ?
Next in Supervised learning: The Huber loss with threshold is for and otherwise, where is the residual. How do you derive , show that is convex, and use this to show that the optimal constant for the data with is ?