Probability a Flagged Transaction Is Actually Fraudulent

Last updated: November 29, 2026

Quick Overview

A fraud rule flags 95% of fraudulent transactions and 2% of legitimate ones, and 0.2% of all transactions are fraudulent. What is the probability that a flagged transaction is actually fraud, and what does that mean for how flags should be handled?

American Express
Statistics & Math
Data Scientist
American Express
November 29, 2026
Data Scientist
Phone Screen
Statistics & Math
Easy

0

0

0 solved


A fraud rule flags 95% of fraudulent transactions and 2% of legitimate ones, and 0.2% of all transactions are fraudulent. What is the probability that a flagged transaction is actually fraud, and what does that mean for how flags should be handled?

A quick base-rate question in the style of an American Express analytics or risk screen. The interviewer wants Bayes' rule done cleanly and a sensible business reading: most flags are false alarms, so a hard decline is the wrong default.

What the Interviewer Expects
  • Sets up Bayes' rule with prior, sensitivity and false positive rate
  • Computes the posterior correctly
  • Explains the base-rate effect in plain words
  • Connects the answer to step-up authentication instead of declines
Key Topics to Cover
Bayes' rule
Base rates
Precision
False positives
How to Approach This
  1. Define your hypotheses (H0 and H1) clearly before performing any test.
  2. Calculate required sample size BEFORE running an experiment, using power analysis.
  3. Remember the Central Limit Theorem: sample means become approximately normal with large n.
  4. Watch for Simpson's paradox. Always segment data by key dimensions.
  5. Distinguish between statistical significance and practical significance.
Possible Follow-up Questions
  • How low would the false positive rate need to be for half of flags to be fraud?
  • How does the answer change for a segment with 2% fraud?
  • If you stack a second independent check, what is the new posterior?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Browse Statistics Questions
Sample Answer
Clarify

Let FF be fraud and AA be a flag. Given P(F)=0.002P(F) = 0.002, P(A∣F)=0.95P(A\mid F) = 0.95, P(A∣¬F)=0.02P(A\mid \neg F) = 0.02. We want P(F∣A)P(F\mid A), which is the rule's precision....

Approach

Apply Bayes: P(F∣A)=P(A∣F)P(F)P(A∣F)P(F)+P(A∣¬F)P(¬F)P(F\mid A) = \frac{P(A\mid F)P(F)}{P(A\mid F)P(F) + P(A\mid \neg F)P(\neg F)}. A frequency table is easier to explain to a business partner: think about 1,000,000 transactions....


Submit Your Answer
Markdown supported

Related Questions