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"?
Supervised learning, Bayes decision theory
Level L2 Elementary. Length Medium. Nature Mat Mathematical.
What's being asked
Whether you can compute the conditional risk of each action and see how unequal costs change the threshold.
Key idea
The conditional risk is ; choose the action with the smallest risk.
Steps
- Write the loss matrix : , , , .
- Risk of saying "disease": .
- Risk of saying "healthy": .
- , so declare "disease", even though the patient is probably healthy ().
- For the threshold, let . Say "disease" when , that is .
- With equal costs (0–1 loss) the threshold would be . Costs of mistakes are unequal, so the threshold falls to about .
Common mistakes
- Choosing the class with the highest posterior ( at ). That is the right rule only for 0–1 loss.
- Putting the loss entries in the wrong places. Check that the large loss is paired with the true class .
- Forgetting that the risk uses the posterior probabilities of the truth, not the likelihoods.
How long your answer should be
Half a page; 3 minutes.
Last checked on 4 December 2026.
Read this
Previous in Supervised learning: 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?
Next in Supervised learning: A 3-class classifier may also reject (refuse to decide). A wrong decision costs 1, a correct decision costs 0, and rejecting costs . For the posteriors and , what should the classifier do? What is the general rule in terms of ?