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.
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.
- Cost rule, with 95% interval
- Fixed alert budget, with 95% interval
| Labels | Alerts | Fraud value caught | Precision | Precision at the cap | Total cost | Less 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 labels | 45 | 86% | 66% | 43% | €924 | reference | reference |
| Naive | 40 | 75% | 73% | 44% | €1,448 | 12% (0% to 30%; runs 0% to 24%) | €524 (−€30 to €1,563) |
| Drop recent | 48 | 86% | 61% | 42% | €952 | −1% (−10% to 1%; runs −24% to 20%) | €28 (€5 to €52) |
| Weighted | 45 | 77% | 66% | 44% | €1,355 | 10% (0% to 22%; runs 0% to 24%) | €431 (−€12 to €1,194) |
| Hours 28 to 32: 23 frauds worth €1,661 | |||||||
| Full labels | 22 | 60% | 33% | 14% | €773 | reference | reference |
| Naive | 14 | 60% | 50% | 14% | €733 | 0% (−3% to 1%; runs −2% to 1%) | −€40 (−€63 to −€21) |
| Drop recent | 24 | 61% | 34% | 13% | €769 | −1% (−9% to 0%; runs −2% to 0%) | −€4 (−€38 to €23) |
| Weighted | 14 | 61% | 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 labels | 66 | 25% | 20% | 14% | €3,191 | reference | reference |
| Naive | 57 | 25% | 23% | 14% | €3,150 | 0% (0% to 0%; runs 0% to 0%) | −€41 (−€79 to −€10) |
| Drop recent | 100 | 25% | 13% | 13% | €3,363 | 0% (0% to 0%; runs 0% to 0%) | €172 (€100 to €203) |
| Weighted | 54 | 25% | 24% | 14% | €3,134 | 0% (0% to 0%; runs 0% to 0%) | −€57 (−€91 to −€25) |
| Hours 36 to 40: 38 frauds worth €8,016 | |||||||
| Full labels | 68 | 87% | 26% | 18% | €1,392 | reference | reference |
| Naive | 47 | 81% | 37% | 20% | €1,767 | 7% (−5% to 27%; runs 0% to 10%) | €376 (−€378 to €1,624) |
| Drop recent | 90 | 90% | 21% | 18% | €1,212 | −4% (−17% to 0%; runs −12% to 3%) | −€179 (−€781 to €137) |
| Weighted | 50 | 80% | 35% | 19% | €1,877 | 8% (0% to 27%; runs 0% to 10%) | €486 (−€116 to €1,658) |
| Hours 40 to 44: 55 frauds worth €5,908 | |||||||
| Full labels | 61 | 72% | 25% | 17% | €1,952 | reference | reference |
| Naive | 42 | 71% | 35% | 20% | €1,938 | 2% (0% to 7%; runs 0% to 8%) | −€14 (−€113 to €144) |
| Drop recent | 89 | 71% | 17% | 15% | €2,167 | 2% (0% to 7%; runs 0% to 8%) | €215 (€112 to €371) |
| Weighted | 46 | 69% | 31% | 19% | €2,057 | 4% (0% to 18%; runs 0% to 8%) | €105 (−€75 to €357) |
| Hours 44 to 48: 22 frauds worth €2,489 | |||||||
| Full labels | 52 | 85% | 19% | 13% | €627 | reference | reference |
| Naive | 29 | 67% | 30% | 12% | €965 | 19% (0% to 36%; runs −34% to 39%) | €338 (−€110 to €1,037) |
| Drop recent | 74 | 85% | 14% | 12% | €744 | −3% (−44% to 1%; runs −37% to 28%) | €117 (€74 to €152) |
| Weighted | 28 | 70% | 32% | 12% | €895 | 15% (0% to 25%; runs −34% to 39%) | €268 (−€120 to €901) |
Every arm with the fixed alert budget
| Labels | Alerts | Fraud value caught | Precision | Precision at the cap | Total cost | Less 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 labels | 100 | 93% | 43% | 43% | €825 | reference | reference |
| Naive | 100 | 90% | 44% | 44% | €1,004 | 4% (0% to 12%; runs 0% to 9%) | €179 (−€4 to €631) |
| Drop recent | 100 | 93% | 42% | 42% | €835 | 0% (−3% to 4%; runs −10% to 9%) | €10 (−€81 to €210) |
| Weighted | 100 | 92% | 44% | 44% | €921 | 2% (0% to 9%; runs −10% to 10%) | €96 (−€3 to €519) |
| Hours 28 to 32: 23 frauds worth €1,661 | |||||||
| Full labels | 100 | 61% | 14% | 14% | €1,146 | reference | reference |
| Naive | 100 | 62% | 14% | 14% | €1,137 | −1% (−46% to 0%; runs −2% to 0%) | −€8 (−€271 to €1) |
| Drop recent | 100 | 61% | 13% | 13% | €1,142 | 0% (−3% to 0%; runs −2% to 0%) | −€4 (−€13 to €2) |
| Weighted | 100 | 62% | 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 labels | 100 | 26% | 14% | 14% | €3,358 | reference | reference |
| Naive | 100 | 26% | 14% | 14% | €3,359 | 0% (0% to 0%; runs 0% to 0%) | €1 (€0 to €3) |
| Drop recent | 100 | 25% | 13% | 13% | €3,363 | 0% (0% to 2%; runs 0% to 0%) | €5 (€0 to €15) |
| Weighted | 100 | 26% | 14% | 14% | €3,359 | 0% (−45% to 0%; runs 0% to 0%) | €1 (−€290 to €3) |
| Hours 36 to 40: 38 frauds worth €8,016 | |||||||
| Full labels | 100 | 87% | 18% | 18% | €1,551 | reference | reference |
| Naive | 100 | 85% | 20% | 20% | €1,739 | 3% (−6% to 12%; runs 0% to 10%) | €188 (−€294 to €863) |
| Drop recent | 100 | 90% | 18% | 18% | €1,262 | −4% (−20% to 0%; runs −11% to 3%) | −€289 (−€1,150 to €3) |
| Weighted | 100 | 86% | 19% | 19% | €1,595 | 1% (−8% to 6%; runs 0% to 3%) | €44 (−€394 to €430) |
| Hours 40 to 44: 55 frauds worth €5,908 | |||||||
| Full labels | 100 | 72% | 17% | 17% | €2,140 | reference | reference |
| Naive | 100 | 71% | 20% | 20% | €2,207 | 1% (0% to 12%; runs 0% to 8%) | €66 (−€9 to €421) |
| Drop recent | 100 | 71% | 15% | 15% | €2,220 | 2% (0% to 13%; runs 0% to 8%) | €80 (€2 to €431) |
| Weighted | 100 | 71% | 19% | 19% | €2,218 | 2% (0% to 12%; runs 0% to 8%) | €77 (−€3 to €425) |
| Hours 44 to 48: 22 frauds worth €2,489 | |||||||
| Full labels | 100 | 91% | 13% | 13% | €713 | reference | reference |
| Naive | 100 | 83% | 12% | 12% | €931 | 7% (−13% to 21%; runs −33% to 28%) | €218 (€0 to €649) |
| Drop recent | 100 | 90% | 12% | 12% | €739 | −1% (−25% to 10%; runs −33% to 28%) | €26 (€0 to €270) |
| Weighted | 100 | 88% | 12% | 12% | €794 | 2% (−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.
| Window | Frauds that happened | Predicted, full labels | Predicted, naive | Naive as a share of full | Naive shortfall, cost rule |
|---|---|---|---|---|---|
| Hours 24 to 28 | 52 | 57.7 | 58.3 | 101% | 12% |
| Hours 28 to 32 | 23 | 28.6 | 22.6 | 79% | 0% |
| Hours 32 to 36 | 21 | 36.9 | 35.7 | 97% | 0% |
| Hours 36 to 40 | 38 | 40.7 | 34.5 | 85% | 7% |
| Hours 40 to 44 | 55 | 57.8 | 47.5 | 82% | 2% |
| Hours 44 to 48 | 22 | 32.2 | 25.1 | 78% | 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.
| Window | Total cost, cost rule | Total cost, fixed budget | Fixed budget minus cost rule | Change 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.
- True precision
- Naive: labels so far read as final
- Matured: only alerts old enough
- Retrain floor
| Monitor | Calls a retrain | False alarms | Missed drops | Checks it waits | Mean gap to true precision |
|---|---|---|---|---|---|
| Naive (labels so far read as final) | 19 to 24 | 10 to 16 | 0 to 0 | 0 | 26% to 33% |
| Matured (only alerts old enough) | 4 to 6 | 1 to 5 | 4 to 10 | 10 | 16% to 32% |
| True precision (the yardstick) | 5 to 14 | none | none | none | none |
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).
| Report delay | 0% never reported | 10% never reported | 25% never reported | 50% 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% |
| Report delay | 0% never reported | 10% never reported | 25% never reported | 50% 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) |
| Report delay | 0% never reported | 10% never reported | 25% never reported | 50% never reported |
|---|---|---|---|---|
| median 1 h (95% by 2.7 h) | 1.2 / 1.8 / 2.2 | 1.4 / 2.0 / 2.0 | 5.2 / 4.2 / 2.0 | 18.0 / 13.6 / 2.8 |
| median 2 h (95% by 5.4 h) | 4.0 / 2.0 / 5.0 | 4.4 / 2.6 / 5.0 | 6.4 / 3.4 / 5.0 | 18.4 / 10.4 / 5.2 |
| median 4 h (95% by 10.7 h) | 6.2 / 0.0 / 10.0 | 12.8 / 2.8 / 10.0 | 9.6 / 1.0 / 10.0 | 18.0 / 5.6 / 10.0 |
| median 6 h (95% by 16.1 h) | 10.6 / 0.0 / 16.2 | 14.8 / 0.4 / 16.2 | 14.4 / 0.2 / 16.2 | 20.0 / 3.8 / 16.4 |
| median 8 h (95% by 21.5 h) | 15.2 / 0.6 / 21.2 | 15.0 / 0.6 / 21.2 | 18.0 / 0.8 / 21.4 | 21.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
- 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.
- 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.
- 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.
- 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%.
- 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
- Measure the delay first. Finance or payments owns the chargeback feed; analytics turns it into a delay curve by product and channel, refreshed monthly. Everything else depends on it.
- Size the review list from capacity. The fraud operations lead sets the daily review capacity. If a cost threshold is used as well, data science checks its calibration on matured labels each month; recalibrating on matured labels is the next thing to test, not something this study tested.
- Two dashboards, neither trusted alone. Matured precision is the better trigger of the two, though here it caught only about 3 of 10 real drops and lagged by half a day. Arrived-so-far precision sits beside it, labelled as provisional and never alarmed on. Set the retrain floor on a full week, not on a few hours.
- Bad news travels with its maturity. A drop is reported to the risk owner with how old the alerts behind it are, so nobody escalates a number that is only waiting for paperwork.
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
- Two days, compressed delays. Real chargebacks arrive over weeks; here delays are hours on a two-day clock, so a decision window stands in for a decision cycle. The mechanism carries over; the sizes do not.
- Small counts. 21 to 55 frauds per window, so per-window gaps are noisy; the page reports each window, never a pooled figure.
- Assumed costs. A missed fraud costs its full amount, a review €5, at most 100 alerts a window. The costs table under Method shows the gap at other review costs and caps. The amount's currency is not documented; I read it as euros.
- Anonymised features. The PCA features hide what a team would know about each card and merchant, and there is no time-of-day feature, so a model cannot learn "recent transactions are clean".
- One data set. This is a method study on public data, not a report from a fraud team's own book.
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.
| Labels | Alerts | Fraud value caught | Precision | Precision at the cap | Total cost | Less 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 labels | 36 | 54% | 71% | 42% | €2,492 | reference | reference |
| Naive | 34 | 62% | 74% | 41% | €2,079 | −17% (−53% to 2%; runs −41% to 9%) | −€413 (−€1,003 to €29) |
| Drop recent | 44 | 72% | 60% | 36% | €1,596 | −39% (−112% to 0%; runs −80% to −11%) | −€896 (−€2,323 to €29) |
| Weighted | 34 | 62% | 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 labels | 21 | 55% | 31% | 13% | €858 | reference | reference |
| Naive | 15 | 52% | 33% | 9% | €874 | 5% (0% to 23%; runs 1% to 11%) | €16 (−€32 to €92) |
| Drop recent | 24 | 54% | 26% | 12% | €879 | 1% (0% to 7%; runs 0% to 2%) | €20 (€6 to €36) |
| Weighted | 19 | 52% | 28% | 9% | €890 | 5% (0% to 23%; runs 1% to 11%) | €31 (−€13 to €109) |
| Hours 32 to 36: 21 frauds worth €3,841 | |||||||
| Full labels | 76 | 24% | 15% | 12% | €3,297 | reference | reference |
| Naive | 80 | 23% | 12% | 10% | €3,350 | 4% (1% to 10%; runs 0% to 10%) | €52 (€15 to €86) |
| Drop recent | 92 | 24% | 11% | 11% | €3,385 | 1% (0% to 5%; runs 0% to 3%) | €88 (€56 to €119) |
| Weighted | 84 | 23% | 11% | 10% | €3,367 | 4% (1% to 10%; runs 0% to 10%) | €69 (€33 to €107) |
| Hours 36 to 40: 38 frauds worth €8,016 | |||||||
| Full labels | 63 | 85% | 28% | 18% | €1,518 | reference | reference |
| Naive | 65 | 80% | 24% | 16% | €1,903 | 5% (0% to 15%; runs 0% to 13%) | €385 (€20 to €996) |
| Drop recent | 95 | 86% | 16% | 16% | €1,602 | −1% (−9% to 3%; runs −11% to 4%) | €84 (−€233 to €298) |
| Weighted | 70 | 83% | 23% | 16% | €1,749 | 3% (0% to 8%; runs 0% to 13%) | €231 (€44 to €539) |
| Hours 40 to 44: 55 frauds worth €5,908 | |||||||
| Full labels | 54 | 69% | 27% | 17% | €2,094 | reference | reference |
| Naive | 43 | 63% | 24% | 14% | €2,407 | 9% (1% to 35%; runs 6% to 12%) | €313 (−€3 to €790) |
| Drop recent | 90 | 66% | 13% | 12% | €2,455 | 4% (0% to 17%; runs 0% to 8%) | €360 (€199 to €603) |
| Weighted | 48 | 63% | 23% | 14% | €2,401 | 8% (1% to 33%; runs 6% to 12%) | €307 (−€2 to €790) |
| Hours 44 to 48: 22 frauds worth €2,489 | |||||||
| Full labels | 32 | 69% | 30% | 11% | €937 | reference | reference |
| Naive | 24 | 63% | 28% | 10% | €1,045 | 8% (2% to 26%; runs 2% to 15%) | €107 (−€2 to €246) |
| Drop recent | 85 | 67% | 10% | 9% | €1,243 | 2% (0% to 8%; runs 0% to 7%) | €306 (€258 to €359) |
| Weighted | 28 | 64% | 26% | 10% | €1,036 | 7% (1% to 23%; runs 0% to 15%) | €99 (€5 to €227) |
| Labels | Alerts | Fraud value caught | Precision | Precision at the cap | Total cost | Less 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 labels | 100 | 91% | 42% | 42% | €955 | reference | reference |
| Naive | 100 | 90% | 41% | 41% | €980 | 0% (−12% to 8%; runs −13% to 13%) | €26 (−€362 to €494) |
| Drop recent | 100 | 93% | 36% | 36% | €865 | −2% (−13% to 1%; runs −13% to 10%) | −€90 (−€475 to €42) |
| Weighted | 100 | 88% | 39% | 39% | €1,095 | 2% (−12% to 9%; runs −13% to 30%) | €140 (−€341 to €594) |
| Hours 28 to 32: 23 frauds worth €1,661 | |||||||
| Full labels | 100 | 84% | 13% | 13% | €766 | reference | reference |
| Naive | 100 | 63% | 9% | 9% | €1,121 | 25% (1% to 52%; runs 2% to 38%) | €355 (€8 to €898) |
| Drop recent | 100 | 66% | 12% | 12% | €1,066 | 20% (0% to 41%; runs 0% to 38%) | €300 (€0 to €853) |
| Weighted | 100 | 63% | 9% | 9% | €1,122 | 25% (1% to 52%; runs 2% to 38%) | €356 (€10 to €911) |
| Hours 32 to 36: 21 frauds worth €3,841 | |||||||
| Full labels | 100 | 25% | 12% | 12% | €3,398 | reference | reference |
| Naive | 100 | 24% | 10% | 10% | €3,437 | 4% (0% to 11%; runs 0% to 9%) | €38 (€4 to €87) |
| Drop recent | 100 | 24% | 11% | 11% | €3,419 | 2% (0% to 6%; runs 0% to 7%) | €21 (€2 to €61) |
| Weighted | 100 | 24% | 10% | 10% | €3,437 | 4% (0% to 12%; runs 0% to 9%) | €38 (€0 to €95) |
| Hours 36 to 40: 38 frauds worth €8,016 | |||||||
| Full labels | 100 | 91% | 18% | 18% | €1,219 | reference | reference |
| Naive | 100 | 84% | 16% | 16% | €1,752 | 7% (0% to 17%; runs 0% to 16%) | €533 (€20 to €1,178) |
| Drop recent | 100 | 87% | 16% | 16% | €1,529 | 4% (0% to 12%; runs 0% to 10%) | €309 (€8 to €818) |
| Weighted | 100 | 84% | 16% | 16% | €1,752 | 7% (0% to 17%; runs 0% to 16%) | €533 (€22 to €1,178) |
| Hours 40 to 44: 55 frauds worth €5,908 | |||||||
| Full labels | 100 | 71% | 17% | 17% | €2,215 | reference | reference |
| Naive | 100 | 66% | 14% | 14% | €2,484 | 6% (0% to 28%; runs 0% to 12%) | €269 (€11 to €754) |
| Drop recent | 100 | 66% | 12% | 12% | €2,494 | 7% (1% to 28%; runs 0% to 12%) | €279 (€22 to €763) |
| Weighted | 100 | 67% | 14% | 14% | €2,475 | 6% (0% to 27%; runs 0% to 12%) | €260 (€11 to €720) |
| Hours 44 to 48: 22 frauds worth €2,489 | |||||||
| Full labels | 100 | 70% | 11% | 11% | €1,240 | reference | reference |
| Naive | 100 | 69% | 10% | 10% | €1,281 | 2% (0% to 11%; runs 0% to 4%) | €41 (€0 to €139) |
| Drop recent | 100 | 69% | 9% | 9% | €1,284 | 3% (0% to 11%; runs 0% to 7%) | €44 (€3 to €129) |
| Weighted | 100 | 69% | 10% | 10% | €1,281 | 2% (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
| Review cost and cap per window | Hours 24 to 28 | Hours 28 to 32 | Hours 32 to 36 | Hours 36 to 40 | Hours 40 to 44 | Hours 44 to 48 |
|---|---|---|---|---|---|---|
| €2 a review, cap 50 | 7% | 0% | −6% | 3% | 0% | 4% |
| €2 a review, cap 100 | 6% | 0% | 0% | 3% | 2% | 15% |
| €2 a review, cap 200 | 6% | 0% | 0% | 3% | 3% | 15% |
| €5 a review, cap 50 | 12% | 0% | −6% | 3% | 0% | 14% |
| €5 a review, cap 100 | 12% | 0% | 0% | 7% | 2% | 19% |
| €5 a review, cap 200 | 12% | 0% | 0% | 7% | 2% | 19% |
| €10 a review, cap 50 | 11% | 0% | −7% | 4% | 1% | 10% |
| €10 a review, cap 100 | 11% | 0% | −7% | 4% | 1% | 10% |
| €10 a review, cap 200 | 11% | 0% | −7% | 4% | 1% | 10% |
README with the reproduction stepsComplete resultsThe label delay and views (Python)Design