KatInterview

Card Transaction Triage and Fraud Rule Design

Machine LearningModel answer
HardModel answerMachine Learningfraud detectionrisk strategyexperiment design

Last updated

Approve or decline two flagged transactions, then design a rule-based fraud strategy from scratch, covering metrics, cold-start thresholds, and adversarial adaptation.

Background

You are joining a payments team as a data scientist. The team emphasizes decision-making and rule design over model building, at least in the early stages. Your job is to help the team reduce fraud losses while keeping friction low for legitimate customers.

You are given feature summaries for two card transactions. Each summary includes: merchant category code (MCC), transaction amount, recent authorization velocity, geolocation signals (IP vs. billing address, distance from last transaction), device fingerprint status, account tenure, historical approval and chargeback rates, and AVS/CVV match results.


Part 1 — Transaction decisions

Review the two transaction profiles below and decide whether to approve, decline, or step up (trigger additional authentication). Justify each decision using the features provided. Frame your reasoning as an expected-value problem: which features move the fraud probability estimate, and does that estimate cross the break-even threshold?

Transaction A

  • MCC: grocery (5411), amount: $42
  • Account tenure: 3 years, no prior chargebacks
  • Device: known fingerprint, seen hundreds of times
  • Geo: IP matches billing city
  • Velocity: 1 transaction today
  • AVS/CVV: both match

Transaction B

  • MCC: electronics (5732), amount: $1,850
  • Account tenure: 2 days
  • Device: new fingerprint, emulator signals detected
  • Geo: IP is in a different country from billing address; last transaction was in the billing city 40 minutes ago
  • Velocity: 6 authorization attempts across 4 distinct cards in the past 10 minutes, 3 declined
  • AVS: mismatch; CVV: match

Part 2 — Cold-start rule strategy

There are no fraud labels yet. Design a practical, rule-based risk strategy from scratch. Your answer should include:

  • At least five concrete rules with specific thresholds (velocity limits, geo-velocity checks, MCC-based caps, allow/block lists, step-up triggers)
  • An escalation path: how transactions get routed from auto-approve through manual review to auto-decline
  • A discussion of the loss–friction trade-off: how do you set thresholds, and how do you measure whether a rule is hurting good users?
  • Expected directional impact on approval rate, chargeback rate, and false positive rate

Part 3 — Adversarial adaptation

Assume your rules go live. How will fraudsters respond? Name at least four specific attack patterns, describe their observable signatures, and explain how you would detect that your rules are being gamed. What does your update process look like?

Hints

Hint 1

For Part 1, resist listing red flags in isolation. State a break-even fraud probability — M/(M+L) — and ask whether each feature pushes the estimate above or below that threshold. A signal that shifts p from 0.5% to 2% on a $42 grocery transaction means something different than the same shift on an $1,850 electronics purchase.

Hint 2

For Part 2, start with the cheapest action (allow/block lists, AVS/CVV hard rules) before adding velocity or geo-velocity checks. Before turning any rule on, propose running it in shadow mode to estimate its hit rate and precision. Acknowledge that chargeback labels arrive 30–90 days late and name the leading indicators you would watch instead.

Hint 3

For Part 3, think of fraud as a feedback loop: rules change fraudster behavior, which changes the signal distribution, which degrades rule precision. The key detection question is not 'is this rule firing?' but 'is this rule still firing on actual fraud?'. Rule hit rate falling while loss stays flat is the signal that adaptation has happened.