Summary
- Precision and recall measure two different kinds of mistake: precision is about false alarms, recall is about what a model misses entirely.
- A model can post a high accuracy score and still be close to useless if the thing it's meant to catch is rare, which is exactly when precision and recall start to matter more.
- A worked example scores a real support-ticket urgency classifier, so the two formulas aren't just abstract.
- Which one to prioritise is a product decision, not a statistics one: a missed medical case and a missed spam email cost completely different amounts.
- Both numbers are only as trustworthy as the human-reviewed ground truth they're scored against, which is the part most explainers skip.
Precision vs recall is the comparison that separates two models that both report 95% accuracy but mean completely different things in practice. One catches almost every real case and buries a team in false alarms. The other almost never cries wolf, and quietly misses most of what it was built to catch.
Precision and recall aren’t rival metrics competing for the same job. They measure two genuinely different kinds of mistake, and most real decisions involve trading one off against the other on purpose. Picking which one to prioritise is less a statistics question than a product one: what a missed case actually costs you, versus what a false alarm costs. That same judgement call runs through most of model evaluation, not just this one pair of metrics.
What precision and recall actually measure
Both numbers come from the same source: a confusion matrix, which simply counts how a model’s predictions compare against what actually happened. Every prediction falls into one of four boxes. A true positive means the model said yes, and it was right. A false positive means the model said yes, and it was wrong. A false negative means the model said no, and it was wrong. A true negative means the model said no, and it was right. Precision and recall each use a different pair of those four boxes.
Precision: of what the model flagged, how much was right?
Precision asks a narrow question: out of everything the model called positive, how much of it actually was? The formula is true positives divided by everything the model flagged as positive, true positives plus false positives. Google’s Machine Learning Crash Course defines it the same way: precision is “the proportion of all the model’s positive classifications that are actually positive” (Google ML Crash Course). Low precision means a lot of false alarms. A spam filter with low precision keeps sending real emails to the junk folder.
Recall: of what actually happened, how much did the model catch?
Recall flips the question around: out of everything that was actually positive, how much did the model actually find? The formula is true positives divided by everything that was actually positive, true positives plus false negatives. Low recall means the model is quietly missing real cases, not throwing false alarms. A fraud detector with low recall is letting real fraud through without ever flagging it.
A worked example: scoring a support-ticket classifier
Say a support team is testing a model that flags incoming tickets as urgent, meaning they need a response inside the hour. Out of 500 tickets reviewed in a week, 60 were genuinely urgent once a human checked them afterward. The model flagged 80 tickets as urgent in total.
Of those 80 flagged tickets, 54 really were urgent, and 26 weren’t. That gives 54 true positives and 26 false positives. Of the 60 tickets that were genuinely urgent, the model caught 54 of them and missed 6, giving 6 false negatives.
Precision comes out to 54 divided by 80, or about 68%. When this model calls a ticket urgent, it’s right roughly two times out of three. Recall comes out to 54 divided by 60, or 90%. The model is finding 9 out of every 10 genuinely urgent tickets. Put together, this model leans towards catching urgent tickets, even at the cost of some false alarms. That’s usually the right trade for a support queue. A few agents double-checking a non-urgent ticket costs far less than a genuinely urgent one sitting unanswered.
Run the same 80 flagged tickets through a stricter model, one that only flags a ticket urgent when it’s very confident, and the numbers move in opposite directions. Say the stricter model only flags 40 tickets, but 38 of them really are urgent. Precision jumps to 38 divided by 40, or 95%. Recall drops to 38 divided by 60, or about 63%, because 22 genuinely urgent tickets never got flagged at all. Neither model is simply better. They’re tuned differently, and which one a team should actually run depends entirely on what an unanswered urgent ticket costs versus what an unnecessary double-check costs.
Why precision and recall trade off against each other
Most classifiers don’t just output yes or no. They output a confidence score, and a threshold decides where yes turns into no. The stricter model in the example above and the original one are really the same model, just with that threshold set differently. Move the threshold and both numbers move with it, in opposite directions. Google’s Machine Learning Crash Course states this plainly: precision and recall “often show an inverse relationship, where improving one of them worsens the other” (Google ML Crash Course). Raise the bar for what counts as a positive prediction, and the model makes fewer false alarms, which helps precision. It also starts missing borderline real cases, which hurts recall. Lower the bar, and the opposite happens.
Plotting precision against recall across every possible threshold produces what’s usually called a precision-recall curve. A model that holds both numbers high across most thresholds is genuinely strong. A model that can only post a good precision score by letting recall collapse, or vice versa, is weaker than a single cherry-picked number from it would suggest. The F1 score tries to compress this same idea into one figure, combining precision and recall rather than reporting them side by side. That’s a big enough topic on its own to deserve separate treatment.
This is also why reporting only one of the two numbers is usually misleading. A model can be tuned to post a flattering precision score. It does this by being extremely cautious about what it flags, while quietly missing most real cases and posting an unremarkable recall score nobody mentioned.
Precision vs. recall vs. accuracy
Accuracy, the share of all predictions a model got right, is the number most people reach for first. It’s also the one most likely to mislead on a rare event. Say genuinely urgent tickets are only 12% of the queue. A model that marks every single ticket as not urgent would still score 88% accuracy, while catching precisely zero of the tickets that mattered. Accuracy treats every correct prediction the same, whether it’s a true positive or a true negative. That’s exactly the failure precision and recall are built to expose.
This is also why a working definition of “accuracy vs precision vs recall” matters in practice, not just as a glossary exercise. A dashboard that only surfaces accuracy can make a genuinely weak model look fine for months. That holds right up until someone asks how many real cases it’s actually catching, and nobody has that number ready.
Where the trade-off matters: picking the right metric for the job
Google’s Machine Learning Crash Course makes the stakes concrete in a medical context: “a false negative typically has more serious consequences than a false positive” when a model is predicting disease (Google ML Crash Course). Missing a real case costs far more than a false alarm that a second test can rule out. Recall usually gets prioritised in that situation, even if it means sending more people for a follow-up test they didn’t strictly need.
A spam filter usually sits at the opposite end. Missing a spam email that lands in the inbox is a minor annoyance. Wrongly filing a real email as spam can mean a missed job offer or a missed invoice. Most spam filters are tuned to favour precision for exactly that reason, even if a little more spam slips through as a result.
Fraud detection usually lands closer to the medical end of the scale, but with its own twist. Missing real fraud is expensive and sometimes irreversible, which pushes teams towards recall. But flag too many legitimate purchases as fraud and a bank starts blocking real customers’ cards at checkout. That carries its own real cost in lost trust and abandoned transactions. Most fraud teams end up running two thresholds rather than one: a low-confidence tier that gets a quiet manual review, and a high-confidence tier that blocks the transaction outright. That’s really just a way of buying back some of the precision a single aggressive threshold would have given up.
Search and content-relevance systems sit somewhere in between, and the same precision and recall framing applies just as directly there as it does to classification. I’ve written separately about how search relevance grading actually works, where a human grader is deciding, result by result, whether what came back was actually relevant. That’s precision and recall by another name, applied to ranked results instead of a single yes-or-no label.
The dependency the formula doesn’t show: your ground truth
Every precision and recall number assumes the labels it’s being scored against are correct. In practice, that test set was built by people, and its own quality is rarely questioned once the formula starts running. CVAT, which builds annotation tooling, frames the two metrics this way for exactly that reason. Precision “serves as a measure of label trustworthiness,” and recall “reflects how complete your annotations are” (CVAT). Both of those are statements about the labels being checked against, not just about the model’s predictions.
If the ground truth itself has missing labels, every real case the test set failed to mark gets counted as a correct true negative instead of the false negative it actually is. That quietly inflates recall without the model getting any better. If the ground truth has wrong labels going the other way, precision gets penalised for calls the model actually got right. Either direction, the number moves and nobody notices, because the formula has no way to flag that its own inputs were wrong.
This is why a serious evaluation set doesn’t get built once and left alone. It goes through the same kind of check a strong annotation project applies everywhere else. A second reviewer checks a sample of the labels, disagreements get routed to someone senior enough to resolve them, and the final call on anything borderline comes with a written reason. A precision or recall figure is never better than the test set it was measured against, the same discipline a golden dataset’s own review step exists to protect.
How Chegg approaches this
Chegg’s evaluation work treats the test set a model gets scored against with the same scrutiny as the model itself. A precision or recall number is only as trustworthy as the ground truth behind it. That’s why what good QA actually looks like in an annotation project isn’t a side note to this kind of work. It’s the part the rest of the measurement depends on.
This sits alongside the broader argument that LLM evaluation still needs a human in the loop. A metric can be calculated automatically, but deciding whether the labels it’s measured against are actually right is still a human judgement call. That’s the review Chegg’s AI Data Services work is built around, not a one-off audit bolted on afterward.
Key takeaways
- Precision measures how much of what a model flagged was actually right. Recall measures how much of what was actually true the model actually caught. They measure different kinds of mistake.
- A worked example (54 true positives, 26 false positives, 6 false negatives out of 80 flagged tickets) gives 68% precision and 90% recall for the same model.
- Accuracy can look strong while hiding a model that misses almost everything it was built to catch, especially when the event being predicted is rare.
- Which metric to prioritise is a product decision: a missed medical case and a missed spam email don’t cost anywhere near the same amount.
- Both numbers are only as reliable as the human-reviewed ground truth they’re scored against. A flawed test set quietly inflates or deflates both.
FAQs
What is the difference between precision and recall?
Precision measures how much of what a model flagged as positive was actually correct. Recall measures how much of everything that was actually positive the model managed to find. A model can score well on one while scoring poorly on the other.
What is the formula for precision and recall?
Precision is true positives divided by true positives plus false positives, everything the model flagged as positive. Recall is true positives divided by true positives plus false negatives, everything that was actually positive.
When should precision be prioritised over recall?
When a false positive is more costly than a false negative. A spam filter is a common example: wrongly filing a real email as spam is usually worse than letting an occasional spam message through, so precision gets the priority.
How are precision and recall used in healthcare?
Disease-screening models are usually tuned to favour recall, because missing a real case tends to cost far more than a false alarm a follow-up test can rule out. A model that catches every real case while over-flagging some healthy patients is often preferred to one that’s more cautious about flagging.
What are the limitations of using precision and recall?
Both numbers are only as reliable as the ground truth they’re measured against. Missing or wrong labels in the test set can quietly inflate or deflate either score. Neither metric on its own tells you whether a model is actually usable. That still depends on what a false positive or false negative actually costs in the specific product it’s used in.
Is a higher precision or recall always better?
No. Pushing either one higher without checking the other usually means the trade-off moved somewhere you can’t see. A model can hit near-perfect recall by flagging almost everything, which also collapses precision. The right balance depends on what each kind of mistake actually costs, not on maximising either number in isolation.