A 3-class classifier may also reject (refuse to decide). A wrong decision costs 1, a correct decision costs 0, and rejecting costs λr=0.2. For the posteriors (0.55,0.30,0.15) and (0.85,0.10,0.05), what should the classifier do? What is the general rule in terms of λr?

Supervised learning, Bayes decision theory
Level L2 Elementary. Length Short. Nature Mat Mathematical.

What's being asked

Whether you can compare the risk of the best class with the cost of rejecting.

Key idea

Classify as arg⁡max⁡kP(Ck∣x) if max⁡kP(Ck∣x)≥1−λr; otherwise reject.

Steps

  1. If we choose the best class, the expected cost is 1−max⁡kP(Ck∣x) (we are wrong with that probability).
  2. If we reject, the cost is always λr. So reject when 1−max⁡kP(Ck∣x)>λr, that is when max⁡kP(Ck∣x)<1−λr.
  3. Here 1−λr=0.8. First case: max⁡=0.55<0.8, so reject (expected cost of classifying is 0.45>0.2).
  4. Second case: max⁡=0.85≥0.8, so classify as class 1 (expected cost 0.15<0.2).
  5. If λr≥1−1/K (here 2/3), the largest posterior is always at least 1/K, so nothing is rejected. If λr=0, everything with max⁡<1 is rejected.

Common mistakes

How long your answer should be

4–5 lines with numbers.

Last checked on 4 December 2026.

Read this

Previous in Supervised learning: A screening test must decide between "disease" (D) and "healthy" (H). 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 P(D∣x)=0.1. Which decision minimises the expected loss, and above what posterior probability of disease should we declare "disease"?
Next in Supervised learning: The training points are A=(1,1) red, B=(2,1) red, C=(4,5) blue, D=(5,4) blue and E=(4,2) blue. Using Euclidean distance, classify the query q=(3,2) with k=1, k=3 and k=5. What does this tell you about the choice of k?