A feature has class-conditional densities for class and for class , with priors and . For equal-variance 1-D Gaussians, the Bayes decision boundary is . What is , which class is predicted for , and how does the unequal prior shift the boundary?
Supervised learning, Bayes decision theory
Level L2 Elementary. Length Medium. Nature Mat Mathematical.
What's being asked
Whether you can apply the 1-D equal-variance Gaussian Bayes boundary formula and see how a higher prior widens that class's decision region.
Key idea
The boundary equals the midpoint between the class means plus a shift from the class priors. When , the boundary shifts towards so more inputs fall in the region.
Steps
- Compute the equal-prior midpoint: . If both classes had prior , we would simply predict the closer mean.
- Compute the prior shift: . Note that is the variance, not the standard deviation .
- Add them to get the Bayes boundary: . Since , we predict for and for .
- Classify and interpret the shift: because , we predict . With equal priors the boundary was and would be assigned to , so the large prior on pushes the boundary towards (deriving this formula from the Gaussian log-densities comes next).
Common mistakes
- Using the midpoint and ignoring the priors.
- Moving the boundary in the wrong direction. A higher prior for makes the region bigger, so the boundary moves towards the mean of .
- Using the standard deviation instead of the variance in the shift term. Here and , so the shift would be wrong.
How long your answer should be
A few lines of arithmetic and a short comparison; 2–3 minutes.
Read this
Previous in Supervised learning: Write the hinge loss and the logistic loss as functions of the margin , where is the label and the classifier's score, and evaluate both at . What does the difference in their shapes mean for the classifiers they produce?
Next in Supervised learning: A screening test must decide between "disease" () and "healthy" (). The loss is 0 for a correct decision, 20 for declaring "healthy" when the person has the disease, and 1 for declaring "disease" when the person is healthy. For one patient the posterior is . Which decision minimises the expected loss, and above what posterior probability of disease should we declare "disease"?