0.2% of transactions are fraudulent. A detector flags 95% of fraud and 2% of legitimate transactions. What fraction of flagged transactions are fraud? What does this imply for alert design?
Answer
Model answer, written in a candidate's voice
In short
- Bayes: P(fraud|flag)=0.950.002/(0.950.002+0.02*0.998)≈0.087.
- Low base rate means most flagged transactions are false positives despite 95% fraud recall.
- Report precision at the operating point alongside catch rate; do not equate high recall with high precision.
- Use step-up authentication or review for borderline alerts; reserve hard declines for high-confidence cases.
- Set thresholds by cost of false declines vs missed fraud, and track precision/recall/cost rather than catch rate alone.
- Base rates differ by segment, so compute precision per segment rather than one global figure.
In full
The short answer is about 8.7%:
Even though the detector catches 95% of fraud, the base rate is only 0.2%, so roughly 91% of flagged transactions are false positives. That means a high catch rate can still produce a noisy alert queue, so fraud teams should report precision at the operating point next to recall, not just the percentage of fraud caught. For alert design, borderline flags should trigger step-up authentication or human review rather than automatic declines, while hard declines are reserved for high-confidence cases. Thresholds should be set by the relative cost of a false decline versus a missed fraud, and the operating point should be revisited as base rates and costs change. Base rates also differ by segment — new accounts, card-not-present payments or particular merchant categories — so I would report precision per segment, because the same detector can be usable in one segment and mostly noise in another.
What a strong answer covers
- P(fraud | flag) = 0.95·0.002 / (0.95·0.002 + 0.02·0.998) ≈ 0.087.
- Explains that a low base rate means most alerts are false positives.
- Implications: report precision at the operating point, use step-up authentication instead of declines, and set thresholds by cost.
- Connects to how fraud teams report catch rate vs precision.
Common mistakes
- answering 95%
- ignoring that base rates differ by segment.