Skip to content

Diogo TravassosData leadership · Analytics · Decision-making

Real public data, simulated delays

Fraud decisions when the labels arrive late

With simulated label delays on public card data, a fraud model's monitor trusting the labels so far called about 13 needless retrains in 24 hourly checks.

Main limitation Two days of card data, so the delays are simulated in hours where real labels take weeks: 13 is the base case's mean over 5 runs (10 to 16 of each run's 19 to 24 retrain calls came while true precision was not under the retrain floor), and across the delay settings tried it ran from 1.2 to 21.6. In the base case the gradient boosting model itself caught 0% to 19% less fraud value per window than with full labels, but with 21 to 55 frauds a window no interval is clear of zero, and the costs and alert cap are assumptions.

Card fraud is confirmed late: a chargeback or a cardholder's report can come weeks after the payment was approved, so a fraud model learns and is judged on truth that is still arriving. I simulated that delay on a public data set and compared models trained on the labels they would have had with one trained on full labels. At this scale the data cannot show a loss in any single window. What it does show is how the decision rule and the monitor react to missing labels, and those effects are larger than the loss itself.

Key figures
Fraud value missed against full labels, per window
0% to 19%
gradient boosting, cost rule, mean of 5 runs; no window's 95% interval excludes zero
The same with a fixed alert budget
−1% to 7%
against its own full-labels run; in total cost it was dearer than the naive cost rule in 3 of 6 windows
Hourly checks where reading arrived labels as final called a retrain
19 to 24
of 24; true precision was under the floor in 5 to 14, so about 13 calls too many
Checks before precision on matured labels can be read
10
of 24; then it caught about 3 of 10 true drops

How much fraud value the missing labels cost, window by window

Each row is one four-hour decision window on the second day. Before each window, every model was retrained on everything before it, seeing only the labels that would have arrived by then. The dot is how much less fraud value the naive model caught than the same model trained on full labels, under the cost rule; the diamond is the same comparison when both alert a fixed number of transactions. Lines are 95% bootstrap intervals; each point is the mean of 5 runs with different simulated delays.

Fraud value missed against full labels, gradient boosting, base case (median delay 4 hours, 10% never reported)
  • Cost rule, with 95% interval
  • Fixed alert budget, with 95% interval
Fraud value the naive model missed against full labels, per windowFor each four-hour window, a dot shows the naive model's shortfall under the cost rule and a diamond under the fixed alert budget, each with its 95% bootstrap interval. The table under the chart lists every value.Fraud value the naive model missed, as a share of what full labels caught−40%−20%0%20%40%Hours 24 to 28, 52 frauds: under the cost rule the naive model caught 12% less fraud value than full labels (95% interval 0% to 30%; across runs 0% to 24%); with the fixed budget 4% (interval 0% to 12%)Hours 24 to 2852 frauds12%4%Hours 28 to 32, 23 frauds: under the cost rule the naive model caught 0% less fraud value than full labels (95% interval −3% to 1%; across runs −2% to 1%); with the fixed budget −1% (interval −46% to 0%)Hours 28 to 3223 frauds0%−1%Hours 32 to 36, 21 frauds: under the cost rule the naive model caught 0% less fraud value than full labels (95% interval 0% to 0%; across runs 0% to 0%); with the fixed budget 0% (interval 0% to 0%)Hours 32 to 3621 frauds0%0%Hours 36 to 40, 38 frauds: under the cost rule the naive model caught 7% less fraud value than full labels (95% interval −5% to 27%; across runs 0% to 10%); with the fixed budget 3% (interval −6% to 12%)Hours 36 to 4038 frauds7%3%Hours 40 to 44, 55 frauds: under the cost rule the naive model caught 2% less fraud value than full labels (95% interval 0% to 7%; across runs 0% to 8%); with the fixed budget 1% (interval 0% to 12%)Hours 40 to 4455 frauds2%1%Hours 44 to 48, 22 frauds: under the cost rule the naive model caught 19% less fraud value than full labels (95% interval 0% to 36%; across runs −34% to 39%); with the fixed budget 7% (interval −13% to 21%)Hours 44 to 4822 frauds19%7%
Fraud value the naive model missed against full labels, per windowFor each four-hour window, a dot shows the naive model's shortfall under the cost rule and a diamond under the fixed alert budget, each with its 95% bootstrap interval. The table under the chart lists every value.Missed fraud value against full labels−40%−20%0%20%40%Hours 24 to 28, 52 frauds: under the cost rule the naive model caught 12% less fraud value than full labels (95% interval 0% to 30%; across runs 0% to 24%); with the fixed budget 4% (interval 0% to 12%)Hours 24 to 2852 frauds12%4%Hours 28 to 32, 23 frauds: under the cost rule the naive model caught 0% less fraud value than full labels (95% interval −3% to 1%; across runs −2% to 1%); with the fixed budget −1% (interval −46% to 0%)Hours 28 to 3223 frauds0%−1%Hours 32 to 36, 21 frauds: under the cost rule the naive model caught 0% less fraud value than full labels (95% interval 0% to 0%; across runs 0% to 0%); with the fixed budget 0% (interval 0% to 0%)Hours 32 to 3621 frauds0%0%Hours 36 to 40, 38 frauds: under the cost rule the naive model caught 7% less fraud value than full labels (95% interval −5% to 27%; across runs 0% to 10%); with the fixed budget 3% (interval −6% to 12%)Hours 36 to 4038 frauds7%3%Hours 40 to 44, 55 frauds: under the cost rule the naive model caught 2% less fraud value than full labels (95% interval 0% to 7%; across runs 0% to 8%); with the fixed budget 1% (interval 0% to 12%)Hours 40 to 4455 frauds2%1%Hours 44 to 48, 22 frauds: under the cost rule the naive model caught 19% less fraud value than full labels (95% interval 0% to 36%; across runs −34% to 39%); with the fixed budget 7% (interval −13% to 21%)Hours 44 to 4822 frauds19%7%
Every arm per window, cost rule (gradient boosting, mean of runs)
LabelsAlertsFraud value caughtPrecisionPrecision at the capTotal costLess fraud value than full labels (95% interval; runs)Extra cost against full labels (95% interval)
Hours 24 to 28: 52 frauds worth €4,974
Full labels4586%66%43%€924referencereference
Naive4075%73%44%€1,44812% (0% to 30%; runs 0% to 24%)€524 (−€30 to €1,563)
Drop recent4886%61%42%€952−1% (−10% to 1%; runs −24% to 20%)€28 (€5 to €52)
Weighted4577%66%44%€1,35510% (0% to 22%; runs 0% to 24%)€431 (−€12 to €1,194)
Hours 28 to 32: 23 frauds worth €1,661
Full labels2260%33%14%€773referencereference
Naive1460%50%14%€7330% (−3% to 1%; runs −2% to 1%)−€40 (−€63 to −€21)
Drop recent2461%34%13%€769−1% (−9% to 0%; runs −2% to 0%)−€4 (−€38 to €23)
Weighted1461%54%13%€727−1% (−6% to 0%; runs −2% to 0%)−€46 (−€74 to −€22)
Hours 32 to 36: 21 frauds worth €3,841
Full labels6625%20%14%€3,191referencereference
Naive5725%23%14%€3,1500% (0% to 0%; runs 0% to 0%)−€41 (−€79 to −€10)
Drop recent10025%13%13%€3,3630% (0% to 0%; runs 0% to 0%)€172 (€100 to €203)
Weighted5425%24%14%€3,1340% (0% to 0%; runs 0% to 0%)−€57 (−€91 to −€25)
Hours 36 to 40: 38 frauds worth €8,016
Full labels6887%26%18%€1,392referencereference
Naive4781%37%20%€1,7677% (−5% to 27%; runs 0% to 10%)€376 (−€378 to €1,624)
Drop recent9090%21%18%€1,212−4% (−17% to 0%; runs −12% to 3%)−€179 (−€781 to €137)
Weighted5080%35%19%€1,8778% (0% to 27%; runs 0% to 10%)€486 (−€116 to €1,658)
Hours 40 to 44: 55 frauds worth €5,908
Full labels6172%25%17%€1,952referencereference
Naive4271%35%20%€1,9382% (0% to 7%; runs 0% to 8%)−€14 (−€113 to €144)
Drop recent8971%17%15%€2,1672% (0% to 7%; runs 0% to 8%)€215 (€112 to €371)
Weighted4669%31%19%€2,0574% (0% to 18%; runs 0% to 8%)€105 (−€75 to €357)
Hours 44 to 48: 22 frauds worth €2,489
Full labels5285%19%13%€627referencereference
Naive2967%30%12%€96519% (0% to 36%; runs −34% to 39%)€338 (−€110 to €1,037)
Drop recent7485%14%12%€744−3% (−44% to 1%; runs −37% to 28%)€117 (€74 to €152)
Weighted2870%32%12%€89515% (0% to 25%; runs −34% to 39%)€268 (−€120 to €901)
Every arm with the fixed alert budget
Every arm per window, fixed alert budget of 100 a window (gradient boosting, mean of runs)
LabelsAlertsFraud value caughtPrecisionPrecision at the capTotal costLess fraud value than full labels (95% interval; runs)Extra cost against full labels (95% interval)
Hours 24 to 28: 52 frauds worth €4,974
Full labels10093%43%43%€825referencereference
Naive10090%44%44%€1,0044% (0% to 12%; runs 0% to 9%)€179 (−€4 to €631)
Drop recent10093%42%42%€8350% (−3% to 4%; runs −10% to 9%)€10 (−€81 to €210)
Weighted10092%44%44%€9212% (0% to 9%; runs −10% to 10%)€96 (−€3 to €519)
Hours 28 to 32: 23 frauds worth €1,661
Full labels10061%14%14%€1,146referencereference
Naive10062%14%14%€1,137−1% (−46% to 0%; runs −2% to 0%)−€8 (−€271 to €1)
Drop recent10061%13%13%€1,1420% (−3% to 0%; runs −2% to 0%)−€4 (−€13 to €2)
Weighted10062%13%13%€1,138−1% (−26% to 0%; runs −2% to 0%)−€8 (−€136 to €1)
Hours 32 to 36: 21 frauds worth €3,841
Full labels10026%14%14%€3,358referencereference
Naive10026%14%14%€3,3590% (0% to 0%; runs 0% to 0%)€1 (€0 to €3)
Drop recent10025%13%13%€3,3630% (0% to 2%; runs 0% to 0%)€5 (€0 to €15)
Weighted10026%14%14%€3,3590% (−45% to 0%; runs 0% to 0%)€1 (−€290 to €3)
Hours 36 to 40: 38 frauds worth €8,016
Full labels10087%18%18%€1,551referencereference
Naive10085%20%20%€1,7393% (−6% to 12%; runs 0% to 10%)€188 (−€294 to €863)
Drop recent10090%18%18%€1,262−4% (−20% to 0%; runs −11% to 3%)−€289 (−€1,150 to €3)
Weighted10086%19%19%€1,5951% (−8% to 6%; runs 0% to 3%)€44 (−€394 to €430)
Hours 40 to 44: 55 frauds worth €5,908
Full labels10072%17%17%€2,140referencereference
Naive10071%20%20%€2,2071% (0% to 12%; runs 0% to 8%)€66 (−€9 to €421)
Drop recent10071%15%15%€2,2202% (0% to 13%; runs 0% to 8%)€80 (€2 to €431)
Weighted10071%19%19%€2,2182% (0% to 12%; runs 0% to 8%)€77 (−€3 to €425)
Hours 44 to 48: 22 frauds worth €2,489
Full labels10091%13%13%€713referencereference
Naive10083%12%12%€9317% (−13% to 21%; runs −33% to 28%)€218 (€0 to €649)
Drop recent10090%12%12%€739−1% (−25% to 10%; runs −33% to 28%)€26 (€0 to €270)
Weighted10088%12%12%€7942% (−30% to 11%; runs −33% to 38%)€81 (−€176 to €245)

Fraud value caught is the share of the window's fraud value that was alerted. Precision at the cap is the share of fraud among the 100 highest-scored transactions. Total cost is the missed fraud value plus €5 per alert. A negative gap means the arm caught more than full labels in that window. Intervals resample the window's transactions; "runs" is the lowest to highest of the 5 simulated delays.

What it means

This data cannot show a loss at this scale. In the base case the naive gradient boosting model caught less fraud value than full labels in 4 of 6 windows, up to 19% in the last one. No window's interval excludes zero, and in 3 windows its lower end is exactly zero: in at least one resample in forty, both models caught the same value. The intervals resample transactions with the 5 delay draws held fixed, so they leave out the noise of the draws themselves: single runs fall outside the interval in 4 of 6 windows, and in the last window one run alone ranged from −34% to 39%. On the gap in euros, a measure with a steadier denominator added after the test, full labels caught more with an interval clear of zero in 1 window, the last (€9 to €1,142). Some share intervals look odd, such as −46% to 0% for the fixed budget in hours 28 to 32 while the runs range from −2% to 0%: when a resample leaves out a window's largest frauds, the value full labels catch gets small and the ratio swings.

The calibration story is only partly supported. Unarrived fraud is learned as legitimate, so the naive model predicted fewer frauds per window than the full-labels model (78% to 101% of its count) and raised fewer alerts in every window, which is consistent with probabilities pushed down. But against the frauds that actually happened, the full-labels model over-predicted in all 6 windows (105% to 176% of the realised count), and the naive model was closer in 3. So "too low" is relative to the full-labels model, not to the truth, and full labels are not the cost optimum: the naive model's total cost was below the full-labels model's in 3 windows, with intervals excluding zero in 2. Nor does the count ratio line up with the shortfall: in hours 24 to 28 the ratio is 101% and the shortfall 12%, so something besides the predicted count, such as the ranking, moved there too.

Predicted against realised fraud counts per window, gradient boosting (sum of predicted probabilities, mean of runs; a check added after the test)
WindowFrauds that happenedPredicted, full labelsPredicted, naiveNaive as a share of fullNaive shortfall, cost rule
Hours 24 to 285257.758.3101%12%
Hours 28 to 322328.622.679%0%
Hours 32 to 362136.935.797%0%
Hours 36 to 403840.734.585%7%
Hours 40 to 445557.847.582%2%
Hours 44 to 482232.225.178%19%

The fixed budget shrinks the gap only against its own ceiling. Alerting the top 100 by rank made the naive model's shortfall against its own full-labels run smaller in 5 of 6 windows, but on paired resamples the difference is clear of zero in only 1. In total cost, the naive model with the fixed budget was dearer than the naive model with the cost rule in 3 windows (intervals excluding zero in 3) and cheaper in 3 (intervals excluding zero in 0). A fixed budget spends the whole review budget in every window.

Naive model, fixed budget against cost rule: total cost and the change in shortfall, with paired 95% intervals (gradient boosting, mean of runs; added after the test)
WindowTotal cost, cost ruleTotal cost, fixed budgetFixed budget minus cost ruleChange in shortfall
Hours 24 to 28€1,448€1,004−€444 (−€1,820 to €297)−9% (−27% to 10%)
Hours 28 to 32€733€1,137€404 (€144 to €442)−1% (−48% to 0%)
Hours 32 to 36€3,150€3,359€209 (€143 to €270)0% (0% to 0%)
Hours 36 to 40€1,767€1,739−€29 (−€636 to €304)−4% (−13% to 0%)
Hours 40 to 44€1,938€2,207€269 (€213 to €321)0% (−1% to 4%)
Hours 44 to 48€965€931−€34 (−€703 to €365)−11% (−26% to 5%)

The two fixes, as implemented here, did not help. This implementation of weighting only counts each confirmed fraud more the less likely it was to be confirmed by then; it leaves recent rows counted as legitimate untouched. It beat the naive model by half a point or more in 3 of 6 windows and did worse in 2; with no fraud left unreported, it beat it in 1. Dropping recent unlabelled rows raises the training data's fraud share by construction, since it keeps every confirmed fraud and drops recent legitimate rows. Its predicted fraud count ran at 107% to 202% of the full-labels count, it alerted more in every window, and its total cost was above the full-labels model's in 4 of them. It looks good on fraud caught for that reason, not because it ranks better.

The logistic baseline shows the loss more clearly. Under the cost rule its naive model's interval excludes zero in 4 windows (hours 32 to 48), and with the fixed budget in 4 (hours 28 to 44); in hours 24 to 28 its naive model caught −17% against its full-labels run, more rather than less. The design made gradient boosting the primary model only for the sweep's flips and the monitor. This page leads with it because it is the stronger model, not because a declared rule says so; the logistic tables are under Method.

What I would try. Nothing here beats the plain model by a margin this data can show. Two habits still follow. Watch a probability threshold's calibration while labels are incomplete, since that is where the missing labels act. Judge model quality on matured alerts, knowing that the reading lags. A rank-based budget sized from review capacity is a reasonable default when costs are uncertain, but this study does not show it is cheaper. Recalibrating the scores on a matured slice before applying a cost threshold is the obvious next test; it was not tested here.

Terms used on this page

Label delay
The time between a transaction and the moment it is confirmed as fraud, by a chargeback or a report. Until then the transaction looks legitimate in the data.
Never reported
Fraud that is never confirmed, for example when a cardholder does not notice. It stays labelled legitimate forever.
Full labels
The model trained on the true outcome of every past transaction. No team has this at decision time; it is the yardstick for fraud caught, though not for cost.
Naive
Trained on the labels that have arrived, with every unconfirmed transaction counted as legitimate.
Drop recent
Trained only on transactions old enough for their labels to be final, plus every fraud already confirmed.
Weighted
The naive data, with each confirmed fraud counted more the less likely it was to be confirmed by then, using the delay curve a team can estimate from its own history.
Cost rule
Alert when the predicted fraud probability times the amount is at least the €5 cost of a review, up to 100 alerts a window.
Fixed alert budget
Alert the 100 transactions with the highest expected loss in each window, whatever their probability.
Precision
The share of alerts that were fraud.
95% interval
The range the window's own data supports, from resampling its transactions 1,000 times with the delay draws held fixed.

Monitoring: reading the labels as final calls a retrain almost every hour

A model trained at hour 24 was left in place for the second day, and its alerts were checked every hour against a declared rule: retrain when precision over the last 8 hours falls below half the precision of a development model on hours 16 to 24 (77%, so a floor of 39%). Precision was estimated three ways: against full labels (the truth no team has), against the labels arrived so far, and only on alerts older than 10.7 hours, by when 95% of reports have arrived.

Precision of the monitored model's alerts, mean of 5 runs, base case
  • True precision
  • Naive: labels so far read as final
  • Matured: only alerts old enough
  • Retrain floor
Precision of the monitored model's alerts, three ways, at each hourly checkTrue precision against full labels, naive precision against the labels arrived so far, and matured precision on alerts old enough to have their labels, mean of the runs, with the retrain floor. The table in Method and checks lists the counts.Precision of the alerts over the last 8 hours, at each hourly check0%25%50%75%100%hour 253035404548retrain floor 39%Check at hour 25: true precision 3%, naive 0%, matured not readable yet; mean of 5 runsCheck at hour 26: true precision 44%, naive 0%, matured not readable yet; mean of 5 runsCheck at hour 27: true precision 78%, naive 1%, matured not readable yet; mean of 5 runsCheck at hour 28: true precision 73%, naive 9%, matured not readable yet; mean of 5 runsCheck at hour 29: true precision 73%, naive 17%, matured not readable yet; mean of 5 runsCheck at hour 30: true precision 72%, naive 29%, matured not readable yet; mean of 5 runsCheck at hour 31: true precision 70%, naive 36%, matured not readable yet; mean of 5 runsCheck at hour 32: true precision 62%, naive 38%, matured not readable yet; mean of 5 runsCheck at hour 33: true precision 63%, naive 40%, matured not readable yet; mean of 5 runsCheck at hour 34: true precision 55%, naive 38%, matured not readable yet; mean of 5 runsCheck at hour 35: true precision 32%, naive 15%, matured 0%; mean of 5 runsCheck at hour 36: true precision 35%, naive 15%, matured 1%; mean of 5 runsCheck at hour 37: true precision 27%, naive 8%, matured 70%; mean of 5 runsCheck at hour 38: true precision 30%, naive 11%, matured 71%; mean of 5 runsCheck at hour 39: true precision 32%, naive 9%, matured 67%; mean of 5 runsCheck at hour 40: true precision 36%, naive 12%, matured 66%; mean of 5 runsCheck at hour 41: true precision 36%, naive 10%, matured 66%; mean of 5 runsCheck at hour 42: true precision 40%, naive 14%, matured 60%; mean of 5 runsCheck at hour 43: true precision 44%, naive 15%, matured 60%; mean of 5 runsCheck at hour 44: true precision 41%, naive 13%, matured 58%; mean of 5 runsCheck at hour 45: true precision 45%, naive 17%, matured 34%; mean of 5 runsCheck at hour 46: true precision 42%, naive 19%, matured 28%; mean of 5 runsCheck at hour 47: true precision 41%, naive 18%, matured 31%; mean of 5 runsCheck at hour 48: true precision 40%, naive 18%, matured 24%; mean of 5 runs
Precision of the monitored model's alerts, three ways, at each hourly checkTrue precision against full labels, naive precision against the labels arrived so far, and matured precision on alerts old enough to have their labels, mean of the runs, with the retrain floor. The table in Method and checks lists the counts.Precision of the alerts, by hour0%25%50%75%100%hour 253035404548retrain floor 39%Check at hour 25: true precision 3%, naive 0%, matured not readable yet; mean of 5 runsCheck at hour 26: true precision 44%, naive 0%, matured not readable yet; mean of 5 runsCheck at hour 27: true precision 78%, naive 1%, matured not readable yet; mean of 5 runsCheck at hour 28: true precision 73%, naive 9%, matured not readable yet; mean of 5 runsCheck at hour 29: true precision 73%, naive 17%, matured not readable yet; mean of 5 runsCheck at hour 30: true precision 72%, naive 29%, matured not readable yet; mean of 5 runsCheck at hour 31: true precision 70%, naive 36%, matured not readable yet; mean of 5 runsCheck at hour 32: true precision 62%, naive 38%, matured not readable yet; mean of 5 runsCheck at hour 33: true precision 63%, naive 40%, matured not readable yet; mean of 5 runsCheck at hour 34: true precision 55%, naive 38%, matured not readable yet; mean of 5 runsCheck at hour 35: true precision 32%, naive 15%, matured 0%; mean of 5 runsCheck at hour 36: true precision 35%, naive 15%, matured 1%; mean of 5 runsCheck at hour 37: true precision 27%, naive 8%, matured 70%; mean of 5 runsCheck at hour 38: true precision 30%, naive 11%, matured 71%; mean of 5 runsCheck at hour 39: true precision 32%, naive 9%, matured 67%; mean of 5 runsCheck at hour 40: true precision 36%, naive 12%, matured 66%; mean of 5 runsCheck at hour 41: true precision 36%, naive 10%, matured 66%; mean of 5 runsCheck at hour 42: true precision 40%, naive 14%, matured 60%; mean of 5 runsCheck at hour 43: true precision 44%, naive 15%, matured 60%; mean of 5 runsCheck at hour 44: true precision 41%, naive 13%, matured 58%; mean of 5 runsCheck at hour 45: true precision 45%, naive 17%, matured 34%; mean of 5 runsCheck at hour 46: true precision 42%, naive 19%, matured 28%; mean of 5 runsCheck at hour 47: true precision 41%, naive 18%, matured 31%; mean of 5 runsCheck at hour 48: true precision 40%, naive 18%, matured 24%; mean of 5 runs
Retrain rule over 24 hourly checks, base case, lowest to highest of 5 runs
MonitorCalls a retrainFalse alarmsMissed dropsChecks it waitsMean gap to true precision
Naive (labels so far read as final)19 to 2410 to 160 to 0026% to 33%
Matured (only alerts old enough)4 to 61 to 54 to 101016% to 32%
True precision (the yardstick)5 to 14nonenonenonenone

The naive reading sits far below the truth because the frauds among the newest alerts have not been confirmed yet. It called a retrain in 19 to 24 of 24 checks. On the same checks the true-precision rule fired in 5 to 14, so the naive monitor made about 13 calls too many (10 to 16 false alarms per run): it cannot tell a broken model from slow paperwork. The matured reading raised 1 to 5 false alarms but could read nothing for the first 10 checks, then reported on alerts from about half a day earlier, and caught about 3 of the 10 checks where true precision was under the floor. It is the better of the two here, not a good trigger.

The earliest readings rest on few alerts: the check at hour 25 reads 4 alerts, and the first matured reading, at hour 35, reads 2. Treat them as noise.

Why the true precision itself fell under the floor in 5 to 14 checks, with no label problem at all, is not something this data can settle. The floor came from hours 16 to 24, and the later, busier hours have a lower share of fraud among the alerts. The data carries no clock time, so this may be a daily pattern or the model drifting after hour 24. I kept the floor because it was declared before the test.

Longer delays and more fraud never reported

The same comparison over 20 delay settings, 5 runs each: a median report delay of 1 to 8 hours and 0% to 50% of fraud never reported. The naive model's worst window was at its worst with 50% never reported for 4 of 5 delays, up to 25%, but the loss does not rise steadily with that share: it rises at every step for 3 of 5 delays. The best arm other than full labels changed against the base case in 15 of the 19 other settings, mostly where delays are short (17 flips at a median of 1 or 2 hours against 10 at 4 hours or more): when labels arrive fast, the arms are close and the ranking is noise. Some picks are arbitrary: in 14 window and setting pairs two arms tie on fraud value caught. Drop recent was best by fraud value caught in 94 of 120 pairs because it alerts more. Ranked by total cost instead, a ranking added after the test, naive is best in 53, drop recent in 46 and weighted in 21, and the ranking flips even more often (49 flips in 18 settings).

Fraud value the naive model missed against full labels, lowest to highest window (cost rule, mean of runs)
Report delay0% never reported10% never reported25% never reported50% never reported
median 1 h (95% by 2.7 h)−4% to 4%−1% to 9%−5% to 9%−1% to 25%
median 2 h (95% by 5.4 h)−2% to 8%−2% to 10%−1% to 10%0% to 18%
median 4 h (95% by 10.7 h)−1% to 14%0% to 19%−4% to 11%−1% to 18%
median 6 h (95% by 16.1 h)0% to 11%−1% to 11%0% to 10%5% to 22%
median 8 h (95% by 21.5 h)−1% to 10%2% to 10%−1% to 22%1% to 22%
Best arm other than full labels by fraud value caught, window by window (N naive, D drop recent, W weighted; bold where it differs from the base case; flips in brackets)
Report delay0% never reported10% never reported25% never reported50% never reported
median 1 h (95% by 2.7 h)W N D N D W (4)D D W D W D (2)N D D D D N (3)D D D D D D (1)
median 2 h (95% by 5.4 h)D N D D N D (2)D N W D W D (2)W N D D D D (2)D D D D D D (1)
median 4 h (95% by 10.7 h)D D N D D D (0)D D N D D D (0)N D D D N D (2)D D D N W D (3)
median 6 h (95% by 16.1 h)D D N D D D (0)D D D D D D (1)D D N D D D (0)D D D D D D (1)
median 8 h (95% by 21.5 h)D D N D D D (0)D D N D D W (1)D D D D D D (1)D D D D D D (1)
Monitor, per setting: naive false alarms / matured false alarms / checks the matured monitor waits (of 24, mean of runs)
Report delay0% never reported10% never reported25% never reported50% never reported
median 1 h (95% by 2.7 h)1.2 / 1.8 / 2.21.4 / 2.0 / 2.05.2 / 4.2 / 2.018.0 / 13.6 / 2.8
median 2 h (95% by 5.4 h)4.0 / 2.0 / 5.04.4 / 2.6 / 5.06.4 / 3.4 / 5.018.4 / 10.4 / 5.2
median 4 h (95% by 10.7 h)6.2 / 0.0 / 10.012.8 / 2.8 / 10.09.6 / 1.0 / 10.018.0 / 5.6 / 10.0
median 6 h (95% by 16.1 h)10.6 / 0.0 / 16.214.8 / 0.4 / 16.214.4 / 0.2 / 16.220.0 / 3.8 / 16.4
median 8 h (95% by 21.5 h)15.2 / 0.6 / 21.215.0 / 0.6 / 21.218.0 / 0.8 / 21.421.6 / 1.2 / 21.4

Delays are on the data's own clock, in hours: a median of 4 hours plays the part of a chargeback that takes about one decision cycle. Settings where the matured monitor waits longer than the day are those whose 95% delay passes 24 hours.

What I predicted before the test, and what held

  1. Under the cost rule, naive catches less fraud value than full labels in every window. Not held: the naive model caught less in 4 of 6 windows; in the other two the gap was under half a point.
  2. Under fill the cap, naive's shortfall is smaller than under the cost rule in most windows. Held: smaller in 5 of 6 windows, against its own full-labels run; on paired resamples the difference is clear of zero in 1.
  3. The naive monitor reads precision far below the truth and fires more false alarms than the matured monitor. Held: 10 to 16 false alarms against 1 to 5.
  4. Weighted closes part of naive's gap when q is small, and less as q grows. Not held: weighted beat naive by half a point or more in 1 of 6 windows with no fraud left unreported, 3 at 10%, 0 at 25% and 1 at 50%.
  5. Drop recent is the worst arm when m is long. Not held: it was the best arm by fraud value caught in most settings, because it alerts more.

Some scoring rules were settled after the results were read; they are listed under Method, "Added later, and why".

How I would run this with a team

What it is worth, on these assumptions: in the base case the naive model's extra cost against full labels under the cost rule ran from −€41 to €524 a window, on a second day with 211 frauds. The money follows from the assumed costs; it is not a measured saving, and in 3 windows the naive model was the cheaper one.

Limits

How I built it

On this study, repeating each setting with 5 simulated delays caught how much a single run can mislead: in the last window, one run alone would have reported the naive model's loss anywhere from −34% to 39%. The page reports the mean of the runs, their range and a bootstrap interval for every window.

Use this at your company

To check what late labels cost your own fraud or risk model, paste this into an AI assistant along with a description of your decision process.

This method comes from Diogo Travassos's study "Fraud decisions when the labels arrive late" (https://diogotravassos.dev/fraud-delayed-labels/). If you can open links, read it first: it works the method through end to end, with its checks. The steps below stand on their own if you can't.

Help me measure what late labels cost our fraud or risk model, and which decision rule and monitoring rule hold up while the truth is still arriving.

Delay:
1. From our history, measure how long confirmed fraud (chargebacks, reports, write-offs) takes to arrive after the decision, by product and channel, and estimate what share is never confirmed.
2. Pick the age after which a label counts as final, for example when 95% of eventual reports have arrived.

Replay:
3. Replay past decision dates. At each one, retrain the model on the labels that had arrived by that date only, and once more on the labels we know today, and score the next period with both.
4. Try at least two fixes beside the naive model: training only on rows old enough to be final, and weighting confirmed fraud by how likely it was to be confirmed by then.
5. Compare two decision rules on each model: a cost threshold on the predicted probability, and a fixed daily alert budget filled by rank. Report fraud value caught, alerts, precision and total cost, per period, with bootstrap intervals and several replays, never pooled across periods.

Monitoring:
6. Compute precision of the alerts on all labels so far and only on alerts old enough to be final. Set a retrain floor on a full week, not one shift, and count false alarms and missed drops for each.

Report back: the gap against the model with today's labels per period, which rule held up, how far the provisional precision misleads, and the limits. The model with today's labels is a yardstick no one has at decision time.

In your report, say which study you followed and link it: https://diogotravassos.dev/fraud-delayed-labels/

Method and checks

Data and licence

The Credit Card Fraud Detection data of the Machine Learning Group of the Université Libre de Bruxelles (ULB), collected with Worldline: 284,807 transactions by European cardholders over two days, 492 of them fraud. Features V1 to V28 are PCA components; the others are the seconds since the first transaction, the amount and the label. The code fetches OpenML's parquet copy and refuses any file whose sha256 differs from the one this study ran on.

Contains information from the Credit Card Fraud Detection database, which is made available here under the Open Database License (ODbL). This page and its results files are aggregates; no transaction is published. Please cite Dal Pozzolo, Caelen, Johnson and Bontempi, Calibrating Probability with Undersampling for Unbalanced Classification, CIDM, IEEE. Notice.

Design, set before the test
  • Hours 0 to 24 are the development period; hours 24 to 48 are 6 decision windows of 4 hours. Before each window every model is retrained on all earlier transactions.
  • Delay: each fraud is never reported with probability q, otherwise reported after a log-normal delay with median m hours and log-scale spread 0.6. Base case m = 4, q = 10%; labels are final after 10.7 hours, the delay's 95th percentile.
  • Models: gradient boosting and a logistic baseline, the same in every arm, on V1 to V28 and the log of the amount. Training keeps every row labelled fraud and a 10% sample of the rest, weighted 10. The weighted arm's weights are capped at 10.
  • Every result is per window and per arm, the mean of 5 runs; intervals come from 1,000 resamples of each window's transactions, averaged over the runs.
  • The design file with every setting and the predictions: DESIGN.md.
Logistic baseline

The logistic baseline is the second model family the design asked for. Its naive model lost fraud value in most windows, with intervals clear of zero in 4 windows under the cost rule and 4 under the fixed budget; in hours 24 to 28 it caught more than its full-labels run under the cost rule. Gradient boosting leads the page because it is the stronger model; the design declared it primary only for the sweep's flips and the monitor.

Every arm per window, cost rule (logistic baseline, mean of runs)
LabelsAlertsFraud value caughtPrecisionPrecision at the capTotal costLess fraud value than full labels (95% interval; runs)Extra cost against full labels (95% interval)
Hours 24 to 28: 52 frauds worth €4,974
Full labels3654%71%42%€2,492referencereference
Naive3462%74%41%€2,079−17% (−53% to 2%; runs −41% to 9%)−€413 (−€1,003 to €29)
Drop recent4472%60%36%€1,596−39% (−112% to 0%; runs −80% to −11%)−€896 (−€2,323 to €29)
Weighted3462%75%39%€2,081−17% (−53% to 2%; runs −41% to 9%)−€411 (−€997 to €30)
Hours 28 to 32: 23 frauds worth €1,661
Full labels2155%31%13%€858referencereference
Naive1552%33%9%€8745% (0% to 23%; runs 1% to 11%)€16 (−€32 to €92)
Drop recent2454%26%12%€8791% (0% to 7%; runs 0% to 2%)€20 (€6 to €36)
Weighted1952%28%9%€8905% (0% to 23%; runs 1% to 11%)€31 (−€13 to €109)
Hours 32 to 36: 21 frauds worth €3,841
Full labels7624%15%12%€3,297referencereference
Naive8023%12%10%€3,3504% (1% to 10%; runs 0% to 10%)€52 (€15 to €86)
Drop recent9224%11%11%€3,3851% (0% to 5%; runs 0% to 3%)€88 (€56 to €119)
Weighted8423%11%10%€3,3674% (1% to 10%; runs 0% to 10%)€69 (€33 to €107)
Hours 36 to 40: 38 frauds worth €8,016
Full labels6385%28%18%€1,518referencereference
Naive6580%24%16%€1,9035% (0% to 15%; runs 0% to 13%)€385 (€20 to €996)
Drop recent9586%16%16%€1,602−1% (−9% to 3%; runs −11% to 4%)€84 (−€233 to €298)
Weighted7083%23%16%€1,7493% (0% to 8%; runs 0% to 13%)€231 (€44 to €539)
Hours 40 to 44: 55 frauds worth €5,908
Full labels5469%27%17%€2,094referencereference
Naive4363%24%14%€2,4079% (1% to 35%; runs 6% to 12%)€313 (−€3 to €790)
Drop recent9066%13%12%€2,4554% (0% to 17%; runs 0% to 8%)€360 (€199 to €603)
Weighted4863%23%14%€2,4018% (1% to 33%; runs 6% to 12%)€307 (−€2 to €790)
Hours 44 to 48: 22 frauds worth €2,489
Full labels3269%30%11%€937referencereference
Naive2463%28%10%€1,0458% (2% to 26%; runs 2% to 15%)€107 (−€2 to €246)
Drop recent8567%10%9%€1,2432% (0% to 8%; runs 0% to 7%)€306 (€258 to €359)
Weighted2864%26%10%€1,0367% (1% to 23%; runs 0% to 15%)€99 (€5 to €227)
Every arm per window, fixed alert budget (logistic baseline, mean of runs)
LabelsAlertsFraud value caughtPrecisionPrecision at the capTotal costLess fraud value than full labels (95% interval; runs)Extra cost against full labels (95% interval)
Hours 24 to 28: 52 frauds worth €4,974
Full labels10091%42%42%€955referencereference
Naive10090%41%41%€9800% (−12% to 8%; runs −13% to 13%)€26 (−€362 to €494)
Drop recent10093%36%36%€865−2% (−13% to 1%; runs −13% to 10%)−€90 (−€475 to €42)
Weighted10088%39%39%€1,0952% (−12% to 9%; runs −13% to 30%)€140 (−€341 to €594)
Hours 28 to 32: 23 frauds worth €1,661
Full labels10084%13%13%€766referencereference
Naive10063%9%9%€1,12125% (1% to 52%; runs 2% to 38%)€355 (€8 to €898)
Drop recent10066%12%12%€1,06620% (0% to 41%; runs 0% to 38%)€300 (€0 to €853)
Weighted10063%9%9%€1,12225% (1% to 52%; runs 2% to 38%)€356 (€10 to €911)
Hours 32 to 36: 21 frauds worth €3,841
Full labels10025%12%12%€3,398referencereference
Naive10024%10%10%€3,4374% (0% to 11%; runs 0% to 9%)€38 (€4 to €87)
Drop recent10024%11%11%€3,4192% (0% to 6%; runs 0% to 7%)€21 (€2 to €61)
Weighted10024%10%10%€3,4374% (0% to 12%; runs 0% to 9%)€38 (€0 to €95)
Hours 36 to 40: 38 frauds worth €8,016
Full labels10091%18%18%€1,219referencereference
Naive10084%16%16%€1,7527% (0% to 17%; runs 0% to 16%)€533 (€20 to €1,178)
Drop recent10087%16%16%€1,5294% (0% to 12%; runs 0% to 10%)€309 (€8 to €818)
Weighted10084%16%16%€1,7527% (0% to 17%; runs 0% to 16%)€533 (€22 to €1,178)
Hours 40 to 44: 55 frauds worth €5,908
Full labels10071%17%17%€2,215referencereference
Naive10066%14%14%€2,4846% (0% to 28%; runs 0% to 12%)€269 (€11 to €754)
Drop recent10066%12%12%€2,4947% (1% to 28%; runs 0% to 12%)€279 (€22 to €763)
Weighted10067%14%14%€2,4756% (0% to 27%; runs 0% to 12%)€260 (€11 to €720)
Hours 44 to 48: 22 frauds worth €2,489
Full labels10070%11%11%€1,240referencereference
Naive10069%10%10%€1,2812% (0% to 11%; runs 0% to 4%)€41 (€0 to €139)
Drop recent10069%9%9%€1,2843% (0% to 11%; runs 0% to 7%)€44 (€3 to €129)
Weighted10069%10%10%€1,2812% (0% to 12%; runs 0% to 4%)€41 (€0 to €129)
Added later, and why

The design was written before the test. These rules and checks were added after results were read, and none of them changes a declared number.

  • The flip rule ignores a window where the base case's pick ties with another arm on fraud value caught; without that exemption there are 32 flips instead of 27. Ties make some "best" picks arbitrary.
  • The half-point threshold behind "caught less in N windows" and the weighted-against-naive counts, so that rounding noise does not count as a loss or a gain.
  • The prediction that naive catches less in every window is scored strictly: a window counts as a loss only when the shortfall is above zero.
  • The prediction that weighted closes part of naive's gap is scored window by window, a rule set after the delay results were read; an average over windows would have read as held by about a point, which pools windows.
  • "Best" ranks arms by fraud value caught, as declared. That rewards arms that alert more, so a ranking by total cost was added beside it.
  • The paired intervals on the fixed budget against the cost rule and on the gap in euros, the predicted-against-realised fraud counts, and the counts of logistic intervals clear of zero, all added after the results.
Other review costs and caps
Fraud value the naive model missed against full labels under the cost rule, by review cost and alert cap (mean of runs)
Review cost and cap per windowHours 24 to 28Hours 28 to 32Hours 32 to 36Hours 36 to 40Hours 40 to 44Hours 44 to 48
€2 a review, cap 507%0%−6%3%0%4%
€2 a review, cap 1006%0%0%3%2%15%
€2 a review, cap 2006%0%0%3%3%15%
€5 a review, cap 5012%0%−6%3%0%14%
€5 a review, cap 10012%0%0%7%2%19%
€5 a review, cap 20012%0%0%7%2%19%
€10 a review, cap 5011%0%−7%4%1%10%
€10 a review, cap 10011%0%−7%4%1%10%
€10 a review, cap 20011%0%−7%4%1%10%