Level 2 · Module 12 · 10 minutes
Precision and recall: two ways to be wrong
- Define precision and recall in plain words.
- Explain the trade-off between false alarms and missed cases.
- Explain what the F score adds and what it hides.
When a model flags cases, its mistakes fall into two families: false alarms and missed cases. Precision and recall describe those two failures separately. Together they give a far clearer picture than one overall share, particularly when the important cases are rare.
The two measures
Precision asks: of everything the model flagged, what share was really positive? High precision means few false alarms. Recall asks: of all the real positive cases, what share did the model find? High recall means few missed cases. The same model can be strong on one and weak on the other, because moving the flagging rule trades them against each other.
An example
A support team builds a model that flags messages for urgent handling. A loose rule flags many messages: it finds most urgent ones, but the team drowns in false alarms, so precision is poor. A strict rule flags only clear cases: almost every flag is urgent, but many urgent messages slip through, so recall is poor. Neither number alone tells the manager which rule to run; the cost of a missed urgent message against the cost of a wasted review decides it.
The F score
The two measures are often combined into one figure called the F score, also written F-one. It is a balanced average, formally the harmonic mean, so it is pulled down when either precision or recall is low. A model cannot win by being excellent at one and terrible at the other. The F score is convenient for comparing models, but it hides the trade-off, so report precision and recall beside it.
Choosing what to protect
- Protect recall when a missed case is costly: screening for a serious condition, checking safety defects.
- Protect precision when false alarms are expensive: auto-hiding content, escalating to a costly review team, contacting people with an alert.
- Report the base rate and the counts, then state which error the process can tolerate better.
Practice versus a live model
Tallying flags on a written list of cases is a simplified teaching picture of scoring. Real systems compute these measures on held-out rows and review the counts with the people who act on them, and a commercial report pairs the two measures with the cost of each kind of error. No model is trained in this lesson; the cases are invented for practice.
Common misconception
One model can be excellent at both precision and recall if it is accurate enough. Precision and recall pull against each other when the flagging rule is moved. A stricter rule raises precision and lowers recall; a looser rule does the reverse. The right balance depends on which mistake costs more in the process the model supports, and both measures should be reported.
Guided practice
Write ten hypothetical messages on cards and mark which ones are truly urgent. Decide a flagging rule in one sentence, apply it to the cards, and count flags, correct flags and missed urgent messages. Work out precision and recall by simple counting, then move the rule one step looser and repeat. Explain which rule you would give the support team. No model is trained.
Knowledge check
Independent practice
Write a short example from your own work or daily life and decide whether it is AI, ordinary software or a mixture. Then explain why. Save it in your notes; no account is required.
Last reviewed: · Report a problem