Fraud Detection System 00:00:01 A fast decision can still be a terrible decision A shop must decide whether a payment should proceed, receive additional verification or reach a reviewer. Build an illustrative risk system whose actions reflect the cost of stopping a genuine shopper as well as the cost of a fraudulent payment. A token, an amount of 50, a merchant, a device and a deadline of 100 ms. A repeat would get the stored answer. This one is new. One parallel round: short windows grow by one, and five rows come back. In this worked example the model supplies an estimated probability. Its interpretation depends on calibration and the population being scored. Approve 1.30, challenge 0.62, decline 9.80. Challenge is cheapest. The decision and its features are in the log, then the reply goes out at 45 ms. A model score is an input, not a verdict. Record the feature and policy versions, action and uncertainty for authorized review. Protect this sensitive information and keep decision latency within the payment service's deadline. 00:01:13 Tomorrow's dispute cannot be today's training feature The shop observes payments immediately but learns some dispute outcomes weeks later. Training with information unavailable at decision time would make an offline model look implausibly good. Features as they were at each decision. Nothing is recomputed. Investigators, customer reports and delayed disputes are different label sources with different delays and error rates. Trees on older weeks, recent ones heavier. Features from links and habits come from the same log. The new model saves more money at the same number of stopped honest payers. A day of live payments. Its answers are only recorded. A person agrees. 1%, 10%, 50%, 100%, with the old version one switch away. Reconstruct features as of the original decision, validate on later periods, and compare outcomes at equivalent intervention costs. Shadow evaluation reveals differences before a limited release affects real shoppers. 00:02:15 Ninety-five percent recall can lead to many false alarms Assume one fraudulent payment in a thousand. A detector catches ninety-five percent of those events and flags one percent of legitimate events. Imagine a hundred thousand payments before guessing how many flags are genuine. 288 million payments, 288,000 of them fraud. 95% recall and 1% false positives. Of what is stopped, 8.7% is fraud. Few honest people, but half the fraud passes. The example introduces an intermediate verification action. Price both its prevented losses and the genuine shoppers who abandon it. About ninety-five genuine frauds and about nine hundred ninety-nine false alarms would be flagged. That makes only about eight point seven percent of flags genuine under these assumptions. Recall and positive predictive value answer different questions. 00:03:10 A reviewer must see evidence, not just a score An uncertain decision enters a human review queue. Preserve the evidence that was available at decision time and distinguish a later discovery from a fact the original model could have known. p is 30% and the amount 1,500, so 450 is at risk. To an analyst on shift who knows taken-over accounts and has the fewest cases. The rules that fired, what moved the model, the account's usual habits. In this illustrated reviewed case, the authorized analyst records the finding and the corresponding protective action. The verdict is a label with its source, and may suggest a rule. Record a reasoned verdict under the appropriate access controls. Reviewed cases are a selected population, so feeding them directly back into training can create bias. Check subsequent outcomes and monitor the cost of unnecessary intervention. 00:04:10 Operate under missing evidence The online feature store slows down during a shopping rush. Decide the permitted degraded behavior before the incident. Missing evidence is not evidence that a payment is safe or fraudulent. The device row misses its 15 ms. The model knows missing values. Sustained feature failures activate the configured degraded decision path and alert the responsible team. The payments of that hour are scored afterwards, before anything ships. Use an explicit, bounded fallback appropriate to the action and business risk, observe the degradation, then reconcile affected cases when data returns. Measure both customer friction and prevented loss before declaring recovery.