Precision and Recall
Definition
Precision and Recall
Precision and recall are the two key metrics used to test how well a classification model performs. Precision asks how many of the model’s positive predictions were right; recall asks how many actual positives it caught. Both reveal what accuracy alone hides.
The two metrics move in opposite directions. Lower the classification threshold and recall rises while precision falls; raise it and precision climbs while recall sinks. The F1 score blends both into a single number when you cannot pick one to favour.
Which metric matters more depends on the cost of errors. In cancer screening, missing a real case is deadly, so recall dominates. In spam filters, marking a real email as junk annoys users, so precision leads.
Both metrics were formalised in the 1950s for information retrieval, where a search engine must return relevant documents without burying users.
The same math now scores modern classifiers of every kind: spam filters, credit-fraud models, and generative AI retrieval layers.
Key takeaways
- Precision = TP / (TP + FP). It measures the share of positive predictions that are actually correct.
- Recall = TP / (TP + FN). It measures the share of real positives the model manages to detect.
- The two metrics trade off: raising one usually lowers the other. The F1 score blends them into one number when you need a single measure.
- Which metric to favour depends on which error costs more: false positives or false negatives.
- Accuracy alone is misleading on imbalanced data; precision and recall expose what accuracy hides.
How it works
Precision and recall both start from the confusion matrix — the four possible outcomes when a classifier meets a labelled test set. From those counts, you derive both metrics. The formulas are simple; the interpretation is where teams stumble.
| Outcome | Meaning | Feeds |
|---|---|---|
| True positive (TP) | Model said “yes”; truth was “yes” | Precision + Recall |
| False positive (FP) | Model said “yes”; truth was “no” | Precision |
| True negative (TN) | Model said “no”; truth was “no” | Neither |
| False negative (FN) | Model said “no”; truth was “yes” | Recall |
From those four counts, Google’s ML Crash Course gives the two formulas: precision equals TP over (TP + FP), and recall equals TP over (TP + FN). The scikit-learn documentation extends the same math to multiclass problems with macro, micro, and weighted averaging.

The trade-off is mechanical. Lower the classifier’s decision threshold, and recall climbs because you catch more true positives, but precision drops because you let in more false positives. Raising the threshold does the reverse.
In practice, threshold selection is guided by a precision-recall curve.
Plot precision against recall across every threshold, then pick the point matching your operating cost: the ratio at which one false negative equals N false positives. The area under the curve summarises overall model quality.
Two other numbers often show up alongside these metrics. Accuracy is the overall share the model gets right; specificity, the true-negative rate, mirrors recall on the negative class. Reporting all four gives a fuller picture than any single score.
Teams also rebalance training data, adjust class weights, and use ensemble models to shift both metrics upward at once. Precision-recall tuning is rarely a one-shot exercise; it iterates alongside data collection and evaluation over the whole product lifecycle.
Examples
Precision and recall reshape system design across industries. A search engine, a medical model, a fraud detector, and a chatbot each tune the trade-off differently — driven by which mistake costs more. Below are four concrete cases from 2023–2025.
Google’s spam filter (Gmail, 2024). Google reported blocking 99.9% of spam, phishing and malware sent to Gmail. False positives, like real mail landing in the junk folder, annoy users more than slipped adverts, so the model runs precision-heavy even at recall’s expense.
FDA-cleared radiology AI (2023). The FDA has cleared more than 700 AI-enabled devices, most in radiology.
Diagnostic screeners are tuned recall-first because missing a real tumour costs a life; a false positive costs only a follow-up scan and a radiologist’s second read.
Stripe Radar (2024). Stripe’s Radar fraud engine, retrained on billions of transactions, faces the same tension in reverse.
Under-blocking lets fraud slip through (recall gap); over-blocking rejects legitimate cards (precision gap). Tuning the threshold industry by industry is the whole product job.
Enterprise chatbot triage (2025). BPOs deploying chatbots for tier-1 support tune precision high on intent classification. Misrouting a billing question to technical support wastes a handler’s shift, so the bot escalates to a human whenever confidence dips.

Related terms
These metrics sit inside a wider vocabulary of model-evaluation ideas. The terms below touch the same math — accuracy variants, upstream steps like feature engineering, and adjacent AI concepts you will meet the moment precision or recall gets discussed.
- Machine Learning: the broader field where classification models are trained on labelled data, with precision-recall scores deciding which model ships.
- Artificial Intelligence: the umbrella label covering classifiers, chatbots, screeners, and every system graded on precision and recall.
- Data Science: the discipline that builds the labelled test sets, cross-validation splits, and reporting these metrics depend on.
- Natural Language Processing: the sub-field where precision and recall score intent classification, entity extraction, and search relevance.
- Chatbot: a common deployment target whose intent-router is tuned on precision-recall thresholds, especially in BPO tier-1 support.
- Generative AI: a related field where retrieval components inside RAG systems are graded with precision and recall on cited passages.
FAQ
What is a good precision and recall score?
There is no universal target; the “good” score depends on class balance and the cost of each error type. A fraud detector at 95% precision may be excellent; a cancer screener at 95% recall may still be dangerous. Always report both, not one.
What is the F1 score?
The F1 score is the harmonic mean of precision and recall, folded into one number. Use it when you want a single metric and cannot pre-commit to prioritising one over the other. F0.5 and F2 shift the weighting toward precision or recall respectively.
When should I prioritise recall over precision?
Prioritise recall when a false negative costs more than a false positive. Medical screening, fraud detection, safety-critical anomaly alerts, and search-and-rescue models are the canonical cases. Missing a real positive is far costlier than checking a few false alarms.
Do precision and recall apply to multiclass problems?
Yes. Scikit-learn extends the same formulas to multiclass and multilabel tasks using macro, micro, and weighted averaging, and each choice weights class prevalence differently. Balanced-accuracy metrics further help when a majority class dominates the data.
Is accuracy the same as precision?
No — accuracy tracks overall correct predictions across all classes, while precision covers only positive predictions.
For teams outsourcing AI-driven services where precision and recall shape quality, Outsource Accelerator connects buyers with vetted BPO partners.







Independent




