learn-anomaly-detection-with-phoebe / Leader session 5 of 6
Learn Anomaly Detection with Phoebe · Leader track · Session 5 of 6

Measuring detection: and why it is a trap for the unwary

Someone shows you a detector that is "99% accurate." Walk away impressed and you have been fooled - on rare events that number rewards a detector for doing nothing. This session gives you the honest scoreboard: precision (the false-alarm question), recall (the miss question), and the trade-off dial between them. Then the failure mode that quietly kills most detection systems: alert fatigue. No math, no code - just the numbers you should ask for and the ones you should never trust.

🟠 Leader track Leaders: PM · biz · product No code · concepts + decisions ~20 min read
0-3 · Why the number lies 3-11 · Precision, recall, F1 11-18 · The trade-off dial 18-20 · Alert fatigue
Part 0

The one number never to trust

Every detector your org buys or builds will come with a score attached, and the person presenting it wants you to be impressed. Your job as a leader is not to read the model code - it is to ask for the right numbers and to smell it when the wrong ones are being waved around. This session is that filter. It is short, it has no math, and it will change what you ask in every detection review from now on. The headline: on rare events, accuracy is a liar, and the honest story is told by two numbers pulling against each other.

Live - discussed in session Self-study - read after class Sources covered (cited)
★ What you walk out with today A gut reflex that rejects "accuracy" on rare events, a plain-language grip on precision and recall (false alarms vs misses) and the F1 that balances them, an understanding that the sensitivity threshold is a business dial you own, and the one failure mode - alert fatigue - that quietly turns a good detector into a muted one.
Part 1 · the rare-event trap

Why accuracy lies 4 min live

Anomalies are rare by definition - fraud, outages, and defects are usually well under 1% of all the events you see. That rarity breaks the metric everyone reaches for first. A detector that flags nothing at all is right about 99%+ of the time, because 99%+ of days really are normal. It scores beautifully on accuracy and catches zero real problems. This is the base-rate trap, and it is why "99% accurate" should make you suspicious, not comfortable.

1000 days of traffic: 995 normal, 5 real anomalies "Flag nothing" detector 99.5% accuracy - and useless It caught 0 of 5 anomalies. Accuracy paid it to ignore the whole problem. Precision of the days you flagged, how many were real? Recall of the real anomalies, how many did you catch? F1 the balance of the two - the number to ask for On rare events, precision and recall are the scoreboard. Accuracy is not invited.
🔍 Click to zoom - the base-rate trap, and the metrics that survive it
LiveThe question to ask in the room2 min▶

When a team presents a detector, the sentence "it is 95% accurate" tells you almost nothing on a rare-event problem. Two questions cut through it:

  • "Of everything it flagged, how much was really a problem?" - that is precision, the false-alarm question.
  • "Of the real problems that happened, how many did it catch?" - that is recall, the miss question.

If they cannot answer both, they do not yet know whether the detector works. Accuracy alone can hide a detector that flags nothing, or one that flags everything.

Real world

Fraud, outages, and disease screening all live here. A rare-disease test that always says "healthy" is over 99% accurate and lethal. A fraud model that says "no fraud" on every transaction is 99.9% accurate and bankrupts you. The rarer the thing you are hunting, the more accuracy flatters a detector for looking the other way.

Part 2 · the honest scoreboard

Precision, recall, and their balance 7 min live

Two numbers replace the lying one, and they answer the two things you actually care about. Precision is about false alarms: of everything the detector flagged, what share was truly anomalous. Recall is about misses: of everything that was truly anomalous, what share the detector caught. F1 is a single number that balances the two, so a detector cannot win by acing one and failing the other.

LivePrecision - the false-alarm rate2 min▶

Precision answers: when this thing cries wolf, how often is there actually a wolf? Low precision means most alerts are noise - the team opens ten tickets and nine are nothing. That is expensive in attention, and, as we will see, it is how a detector gets muted.

Real world

A payments team lives on precision. Every false fraud flag freezes a real customer's card and generates an angry call. If only one flag in five is real fraud, the cost of the four false alarms - support time, churned customers - can dwarf the fraud they caught. Precision is the number their leadership watches.

LiveRecall - the miss rate2 min▶

Recall answers: of the real problems that happened, how many did we catch? Low recall means anomalies slip through silently. You do not get a ticket, you get a post-mortem. Recall is what you care about most when a miss is catastrophic.

Real world

An outage-detection team lives on recall. A missed outage is a customer-facing incident and a headline. They will happily tolerate more false alarms to make sure a real outage is never missed - so they tune for high recall, and accept the precision cost. The right balance depends entirely on which mistake hurts more.

Self-studyWhy F1, and why not accuracy2 min read▶

Precision and recall can be gamed one at a time. Flag everything and recall hits 100% while precision collapses. Flag almost nothing and precision looks high while recall collapses. F1 combines them into one score that only rises when both are healthy, so it is the honest single number to compare two detectors.

You may also hear PR-AUC (the area under the precision-recall curve) - a summary of how the detector performs across every possible sensitivity setting, not just one. For a leader, the takeaway is simpler: ask for precision, recall, and F1 together. If someone offers you accuracy on a rare-event problem, that is the tell.

Part 3 · the dial you own

The precision/recall trade-off 6 min live

Here is the part most people miss: precision and recall are not fixed properties of a detector. They sit on a dial - the sensitivity threshold. Crank the detector to fire more easily and you catch more real anomalies (recall up) but drown in false alarms (precision down). Turn it down and the alerts get cleaner (precision up) but real anomalies slip through (recall down). Where you set that dial is a business decision, not a model detail - and it is yours.

One dial sets both numbers: the sensitivity threshold ◄ High sensitivity - flag more easily Low sensitivity - flag rarely ► Crank it up Recall ↑ you catch more real anomalies Precision ↓ more of the alerts are noise ⚠ Alert fatigue lives at this end Turn it down Precision ↑ alerts get cleaner, less noise Recall ↓ real anomalies slip through Silent misses live at this end Where you set the dial is a cost decision: cost of a miss vs cost of a false alarm. That is a leader's call.
🔍 Click to zoom - the sensitivity dial, and what moves when you turn it
LiveSetting the dial is your decision, not the model's3 min▶

The model produces a score for how odd each event is. Turning that score into a yes/no alert needs a threshold - and that threshold trades precision against recall. There is no "correct" setting a model can find for you, because the right setting depends on which mistake costs your business more:

  • When a miss is catastrophic (an outage, a safety defect), set the dial sensitive - accept more false alarms to protect recall.
  • When false alarms are expensive (freezing real customers, waking an on-call engineer), set it conservative - protect precision, accept some misses.

Ask your team to show you precision and recall at a few different threshold settings, then you pick the operating point. That is the leader's lever, and it is the subject of the next session.

Part 4 · the real failure mode

Alert fatigue kills detectors 3 min live

Here is the failure mode that no model metric shows you. A detector with low precision cries wolf constantly. The humans on the other end learn that most alerts are nothing, so they start ignoring them - muting the channel, auto-closing the tickets, skimming past the red. And then the one real anomaly arrives, fires exactly like all the false ones, and gets ignored with the rest. Low precision does not just waste time. It destroys trust in the whole system, and a muted detector catches nothing.

Low precision kills detection systems, not low recall In practice the thing that ends a detection program is rarely a missed anomaly on paper - it is a team that stopped trusting the alerts. If your people are muting, filtering, or eye-rolling at the detector, its real-world recall has already collapsed to near zero, no matter what the offline score says. Precision is a trust budget, and once it is spent the detector is dead.
Self-studySymptoms of a detector nobody trusts anymore2 min read▶

Alert fatigue rarely announces itself. It shows up as small, rational human behaviours:

  • A Slack channel or inbox rule that quietly filters the detector's alerts out of sight.
  • Tickets auto-closed or bulk-dismissed without investigation.
  • "Oh, that one always fires, ignore it" said out loud in a standup.
  • Nobody can remember the last time an alert led to a real fix.

Any of these means the detector's effective recall is already near zero, whatever the dashboard claims. The fix is not a better model - it is raising precision (turn the dial down) until each alert is worth a human's attention again.

Homework

Try it yourself - this week ◐ 20-30 min total

Source material

Sources covered (cited)

Taught from the anomaly-detection canon, framed for decision-makers. This session covers:

✓Chandola, Banerjee & Kumar (2009), "Anomaly Detection: A Survey," ACM Computing SurveysEvaluation · why accuracy fails on rare events, precision/recall framing
◐Numenta Anomaly Benchmark (NAB), Lavin & Ahmad (2015)Streaming detection · evaluation beyond accuracy, false-alarm cost
Check yourself

Three questions before you go 🎯 ◐ 90 seconds

1 · A vendor says their detector is "99% accurate" on a problem where anomalies are 1% of events. Why is that unimpressive?

The base-rate trap. When anomalies are rare, doing nothing scores near-perfect accuracy. Ask for precision and recall instead.

2 · Your team cranks the detector's sensitivity up to catch more real anomalies. What predictably happens?

Sensitivity is a dial. More recall costs precision. Where you set it is a business decision about which mistake hurts more.

3 · In practice, what most often kills a detection system that looks fine on paper?

Low precision spends the team's trust. Once alerts are muted, the detector's real recall collapses no matter what the offline score says.

Leader session 5 cheat sheet · pin this

Accuracy lieson rare events, "flag nothing" scores 99%+ and catches zero. Never judge a detector by accuracy alone.
Precisionof what it flagged, how much was real. The false-alarm question.
Recallof the real anomalies, how many it caught. The miss question.
F1the single number that balances precision and recall. Ask for it, not accuracy.
The dialsensitivity trades recall for precision. More catches = more false alarms.
Your callwhere the dial sits is a cost decision: cost of a miss vs cost of a false alarm.
Alert fatiguelow precision floods people, they mute it, and it misses the real one. The true killer.
Next sessiona6 - strategy & pitfalls: thresholds, drift, human-in-the-loop, and when NOT to auto-flag.