DeepLLM Quiz
Machine Learning

Classification decisions: error rate, unequal costs and the reject option

10 questions on minimising misclassification, loss matrices, unequal error costs and letting a classifier refuse uncertain cases.

  • 10 questions
  • Stopwatch
  • Instant feedback

Shown publicly with your score. Don’t use your full real name.

Sample questions

Play now ↑

Answers stay hidden. Start the quiz to play them.

  1. Sample 1

    Missing a fraud costs 100 times as much as wrongly blocking a good payment. A model says a payment has a 5% chance of being fraud. What should be done to minimise expected cost?

    • Approve it, because fraud is unlikely
    • Both choices cost exactly the same
    • Block it: the expected cost of approving is 5 units against under 1 unit for blocking
  2. Sample 2

    A classifier has four classes. Which rejection threshold guarantees that no case is rejected?

    • Exactly zero point nine
    • Any value above one half
    • Any value below one quarter

How it works

  • One question per screen. An answer is final once sent.
  • You see right away whether you were right, with a short explanation.
  • The stopwatch runs: on equal scores, the faster player ranks first.
  • Only your best attempt counts, so replaying is never risky.

About this quiz

A classifier that says a transaction is fraudulent with a probability of five per cent has not yet told anyone what to do. Block the payment and you will be wrong nineteen times out of twenty. Let it through and you will occasionally lose a lot of money. Which is the right call? The answer depends on two things: how likely each class is, and how much each kind of mistake costs. Splitting a classification problem into a first stage that estimates probabilities and a second stage that decides is the central idea of decision theory, and this quiz is about the second stage.

You will start with the simplest goal, making as few mistakes as possible, and see which rule achieves it and where the unavoidable errors come from. Then you will meet the loss matrix, a small table that says how bad every combination of true and predicted class is, and use it to compute which decision has the lowest average cost. The surprising lesson is that the best decision is not always the most probable class. When one kind of error is far worse than the other, it can be rational to act on a case that is quite unlikely to belong to the dangerous class.

The last part covers the reject option: a classifier that is allowed to say «I'm not sure» and pass hard cases to a person or to a more expensive test. A single threshold controls how many cases are rejected, and the quiz asks what happens at the extremes and what the threshold should be for a given number of classes. This is how many practical systems in medicine, finance and content moderation decide what to automate and what to escalate.

Common mistakes in this area are to treat accuracy as the only goal, to assume that a decision threshold of one half is always right, and to forget that the costs of errors belong to the application and not to the model. Another is to think that a classifier must always give an answer, when declining is often the cheapest and safest option. The ideas apply well beyond fraud and medicine: a content-moderation system that must decide whether to remove a post, a manufacturing line that must decide whether to scrap a part and a lender that must decide whether to extend credit all face exactly this combination of probabilities and costs. Seeing decisions as a calculation of expected cost also makes them auditable, because the costs and the probabilities can each be inspected and argued about separately.

The quiz suits students, analysts and product managers who commission classifiers. It needs only simple arithmetic. There are 10 questions, each explained straight after you answer, and the quiz takes about four minutes.

Questions and answers

›How long does the quiz take?

About 3 to 4 minutes for 10 questions, at roughly 20 seconds each. An explanation appears after every answer.

›Do I need to know probability theory?

Only the basics: that probabilities lie between zero and one and that the probabilities of all the classes for a given case add up to one. The costs and probabilities in the questions are chosen so that the arithmetic can be done in your head.

›What is a posterior probability in classification?

It is the probability that a case belongs to a particular class, given everything the model knows about the case. A classifier that outputs posterior probabilities supports many different decisions, because the same numbers can be combined with different costs.

›Which rule gives the fewest mistakes?

Assigning every case to the class with the highest posterior probability. Any other assignment can only raise the chance of a mistake. Even this rule makes errors, and they arise from the regions of the input space where the classes overlap and no class is clearly the most likely.

›What is a loss matrix?

It is a table with a row for each true class and a column for each predicted class, in which each entry is the cost of that combination. Correct decisions usually cost nothing. The entries are set by the application, for example by how much a missed fraud costs compared with a needless investigation.

›How are decisions made with a loss matrix?

For each possible decision, you weigh the costs of being wrong by the probabilities of each true class, and add them up to get the expected loss. You then choose the decision with the lowest expected loss. When costs are equal, this reduces to choosing the most probable class.

›What is the reject option?

It allows a classifier to decline to decide when it is too uncertain, for example when the highest class probability falls below a set threshold. Rejected cases are handled in another way, perhaps by a person. A higher threshold means more cases are rejected, in return for a lower error rate on the cases that are decided.

›How do I choose a rejection threshold?

By balancing the cost of an error against the cost of handling a rejected case by other means. A threshold near one sends nearly everything to a person, and a low one sends nothing. Plotting the error rate against the fraction rejected helps to find a sensible compromise. In real deployments, the costs are rarely known exactly, so it is wise to see how the decisions change over a plausible range of costs, and to keep a person in the loop for cases near the threshold. That combination of costs and rejection is what responsible automation usually looks like.

More quizzes