Probability a Flagged Card Transaction Is Truly Fraudulent
Last updated: November 29, 2026
Quick Overview
A fraud model flags card transactions. Fraud occurs in 0.1% of transactions, the model catches 99% of fraud, and it wrongly flags 2% of legitimate transactions. What is the probability that a flagged transaction is actually fraud?
Capital One
November 29, 20260
0
0 solved
A fraud model flags card transactions. Fraud occurs in 0.1% of transactions, the model catches 99% of fraud, and it wrongly flags 2% of legitimate transactions. What is the probability that a flagged transaction is actually fraud?
A warm-up in the style of Capital One's Data Science technical screen, framed around card fraud alerts that trigger texts and declines for cardholders. The interviewer checks that you apply Bayes' rule instead of quoting the 99% figure, and that you connect the base rate to customer friction.
What the Interviewer Expects
- Write Bayes' rule with a clear definition of events
- Compute the posterior correctly (about 4.7%)
- Explain why a low base rate drives the result
- Connect false positives to declined good customers and alert fatigue
- Suggest how a second signal or threshold change would help
Key Topics to Cover
How to Approach This
- Define your hypotheses (H0 and H1) clearly before performing any test.
- Calculate required sample size BEFORE running an experiment, using power analysis.
- Remember the Central Limit Theorem: sample means become approximately normal with large n.
- Watch for Simpson's paradox. Always segment data by key dimensions.
- Distinguish between statistical significance and practical significance.
Possible Follow-up Questions
- How many legitimate transactions are flagged for every true fraud caught?
- If the false positive rate fell to 0.5%, what would the posterior be?
- How would you pick a threshold if a false decline costs $5 and a missed fraud costs $300?
- Why might the base rate differ between card-present and card-not-present transactions?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Browse Statistics QuestionsSample Answer
Clarify
Define = transaction is fraud, = model raises an alert. Given , sensitivity , and false positive rate . We want , which is the mo...
Approach
Use Bayes' rule, or equivalently count outcomes in a population of 1,000,000 transactions, which is easier to explain to a business partner....