Probability a Flagged Payment Is Actually Fraudulent

Last updated: November 29, 2026

Quick Overview

Fraud occurs in 0.2% of payments. A rule flags 95% of fraudulent payments and 2% of legitimate ones. If a payment is flagged, what is the probability it is fraud, and what does that imply for how flagged payments should be handled?

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

0

0

0 solved


Fraud occurs in 0.2% of payments. A rule flags 95% of fraudulent payments and 2% of legitimate ones. If a payment is flagged, what is the probability it is fraud, and what does that imply for how flagged payments should be handled?

A quick Bayes question that PayPal interviewers use to check base-rate intuition before deeper risk discussions. They want the correct calculation, a plain-language interpretation, and an operational conclusion about review queues and step-up authentication.

What the Interviewer Expects
  • Set up Bayes' rule with prior, sensitivity and false positive rate
  • Compute the posterior correctly (about 8.7%)
  • Explain why it is low despite a 'good' rule
  • Translate the result into an action: step-up instead of hard decline
  • Show how a second independent signal changes the posterior
Key Topics to Cover
Bayes' theorem
base rates
false positives
risk decisioning
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
  • What false positive rate would be needed for a flagged payment to be fraud more than half the time?
  • If a second independent check with 80% sensitivity and 5% false positive rate also fires, what is the new probability?
  • How does the answer change for a high-risk merchant segment with 2% fraud?
  • Why might the two checks not be independent in practice?
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

Prior P(F)=0.002P(F) = 0.002. Sensitivity P(flag∣F)=0.95P(\text{flag} \mid F) = 0.95. False positive rate P(flag∣¬F)=0.02P(\text{flag} \mid \neg F) = 0.02. We want P(F∣flag)P(F \mid \text{flag})....

Approach

Apply Bayes' rule, or think in counts out of one million payments, which is easier to explain to non-statisticians....


Submit Your Answer
Markdown supported