Stop tuning on F2: let the merchant’s costs set the block threshold
How to set a fraud model’s block threshold using merchant-specific costs instead of F2, with worked examples from a gift-card merchant.
Bo HuangEngineering, Corgi Labs
15 min read
A fraud model ranks payments by risk. It doesn’t say where to stop blocking. A common answer is to pick the cut that maximizes F2, an F-score that counts recall more heavily than precision.
F2 knows nothing about money. At one gift-card merchant, our cost model puts a wrong block of a good customer at $22.39 on average and a missed disputed payment at $171.01. On those figures, blocking pays as long as at least 11.6% of the payments we block are fraud. The number comes from the merchant’s own margin, order sizes, and dispute history plus two stated assumptions, and it’s the bar the threshold has to clear.
On an earlier model for the same merchant, the F2 cut blocked 845 payments to catch 38 labelled fraud. At this merchant’s costs that cut has a modelled value of about −$11,600. The cost-based rule looked at the same ranking and blocked nothing.
Key takeaways
Block a payment when the expected cost of letting it through is higher than the expected cost of stopping it. That gives a break-even precision of C_FP / (C_FP + C_FN). At this gift-card merchant, under the assumptions stated below, it’s 11.6%.
F2 emphasizes recall, but it doesn’t encode a fixed monetary cost ratio. The cut it prefers depends on the evaluated predictions and labels, so on a weak model it can block deep into payments that cost more than they save.
We choose the cut worth the most across everything it blocks, scoring each cut at the lower end of a 95% interval on its precision. That score is a conservative selection rule, not a guarantee. When no cut is positive on it, the policy abstains. F2 alone has no such profitability gate.
Most positives at this merchant are orders its own review team cancelled, and the pipeline prices each as a prevented dispute. Counted at half a dispute each, the best cut moves from 4.85% to 3.45%. Set aside, it moves to 1.5%.
Across the six merchants we price, break-even runs from 3.6% to 67.2%, so no single fixed bar fits them all.
On the shipped model for this merchant, both rules happened to pick the same cut. That came from the shape of this one ranking. Nothing in F2 guarantees it.
Price both mistakes
A block threshold trades two errors. A false positive stops a good customer. The goods were never shipped, so the merchant loses the margin on that order rather than the full price, and some customers never come back. A false negative lets fraud through. If the dispute is lost, the merchant loses the goods and pays the dispute fee. If it’s won, the margin is kept. Either way someone has to handle the dispute.
Our pipeline writes both costs as formulas and fills them with this merchant’s numbers:
C_FP = loss multiplier × margin × good order
= 1.719 × 16% × $81.39 = $22.39
C_FN = P(lost) × [(1 − margin) × disputed order + fee]
− P(won) × margin × disputed order
+ handling
= 0.9356 × (0.84 × $96.67 + $15)
− 0.0644 × 0.16 × $96.67 + $82 = $171.01
A payment with fraud probability p is worth blocking when p × C_FN exceeds (1 − p) × C_FP. Solving for p gives the break-even precision, the classic cost-sensitive threshold (Elkan, 2001):
p* = C_FP / (C_FP + C_FN) = 22.39 / (22.39 + 171.01) = 11.6%
The inputs come from four places, and only two of them are typed by a person:
| Input | This merchant | Where it comes from |
|---|---|---|
| Gross margin | 16% | The merchant. It is required: the pipeline stops with an error rather than assume a default. |
| Handling cost per dispute | $82 | An external scenario assumption: the average internal cost per chargeback reported by 200 large U.S. subscription and ecommerce merchants (Javelin, 2026). Added per dispute, because triaging a $50 dispute takes as long as a $5,000 one. |
| Order sizes, dispute fee, loss rate, loss multiplier | $81.39 · $96.67 · $15 · 93.6% · 1.719 | Measured from the merchant’s payments and 607 disputes on every training run, never stored and reused. |
| Precision at each cut | The ladder below | Measured on the model being trained. |
The handling cost is the input we trust least. An average accounting cost isn’t the same as the avoidable cost of one more dispute: staff, software, and overhead don’t shrink in proportion when disputes fall. We use $82 until this merchant’s own handling cost is available, and the threshold is sensitive to how much of it is avoidable. Without it, break-even moves from 11.6% to 20.1%.
The estimated customer-loss multiplier prices the future orders a wrongly blocked customer takes away. The pipeline finds cards that were blocked after at least three clean approvals and treats them as probable good customers. It compares them with cards that reached the same three approvals and were never blocked, and counts approved payments in the 60 days after each card’s index event. The 623 blocked cards made 2.06 approved payments in that window. The 11,166 comparison cards made 2.78. The gap of 0.72 orders is added to the one lost order, giving 1.719. Only 35% of the blocked cards came back at all, against 80% of the comparison cards. This is an association. Some blocked cards were probably fraud, and a card isn’t a customer, so the multiplier is an estimate, not a measured cost.
The measured inputs are recomputed on every run because they move. A month after the run in this post, the same measurement put this merchant’s break-even at 9.4%. A threshold tuned once and left in place wouldn’t have noticed.
Two simplifications are worth naming. First, one cost is set to zero. A payment platform can hold reserves or close an account that runs too many disputes, before any card network acts, and nobody has sized that risk for this merchant. Leaving it out omits one component of C_FN. That doesn’t make $171.01 a guaranteed lower bound, because other inputs could be overstated. Second, both costs use merchant-wide average order values. Orders near the threshold can differ from the average, and a cost-sensitive decision can depend on the individual payment as well as its probability (Elkan, 2001). This implementation picks one score threshold from average costs. Transaction-level amounts and margins could support a finer policy.
One more assumption sits in the labels rather than the formulas. At this merchant most positives aren’t disputes. Of the 525 positives in the evaluation months, 67 are disputes and 458 are orders the merchant’s review team cancelled before shipping. The pipeline prices every caught positive as a prevented dispute at $171.01. A cancellation is worth that only if the order would otherwise have been disputed, so much of the dollar value in this post rests on that choice. "What moves the answer" shows how far it moves the cut. The dispute labels were also still maturing: the evaluation months closed 45 to 86 days before the run, and this merchant’s 95th-percentile dispute arrives at 87 days.
What F2 actually asks for
F-beta combines precision and recall into one score. Written in counts, with P the number of fraud payments and B the number blocked:
F_β = (1 + β²) × caught / (β² × P + B)
A missed fraud weighs β² = 4 times as much as a wrong block in that formula. So teams often read F2 as "a miss costs four times a wrong block," which would be a 20% break-even for every merchant. That reading doesn’t hold. Maximizing F2 isn’t the same as minimizing a loss in which a miss costs four times a wrong block. No choice of β turns F-beta into a merchant’s cost model.
The counts show why. On the evaluation data, add a slice of ΔB payments containing Δcaught positives to the block. F_β goes up exactly when the slice’s precision is above F_β / (1 + β²), and for F2 that’s the current score divided by five. So the bar F2 applies depends on the score the model has already reached. This is plain algebra on counts from a ranked evaluation set, and it needs no calibrated probabilities. Lipton, Elkan and Narayanaswamy prove the probability version for β = 1: when the outputs are calibrated conditional probabilities, the F1-optimal threshold is half the best achievable F1.
F2 emphasizes recall, but it doesn’t encode a fixed monetary cost ratio. Its preferred cut depends on the evaluated predictions and labels. Our cost rule instead prices what blocking and approving cost.
Choose the cut on the whole block
Break-even tells us the bar. The ladder tells us where the model clears it. We score the evaluation months, sort payments by score, and step down from the riskiest in slices of 0.05% of traffic, to 5%. Each rung records how many payments sit above it and how many of them were fraud.
The textbook rule is marginal: keep blocking while the next payment is more than 11.6% likely to be fraud. On this ladder a 0.05% slice holds about nine payments. Near the chosen cut, slice precision jumps between 0% and 33% from one rung to the next. Toggle the slices on in Figure 3 to see them. A decision made on slices is a decision made on noise.
So the pipeline sums instead. Blocking everything above a cut earns caught × C_FN and loses wrongly blocked × C_FP, which rearranges to:
value(cut) = (C_FP + C_FN) × blocked × (precision − p*)
The cut with the most value is where the marginal rule would stop. The difference is that every rung’s value rests on everything above it, hundreds of payments instead of nine.
Two more choices make the rule conservative. First, each cut is scored at the lower end of the Wilson 95% interval on its precision, not at the point estimate. The largest of a hundred noisy point estimates tends to land on whichever cut was luckiest. A rung too thin to trust scores itself down through the width of its own interval. Second, when two cuts are worth the same, the shallower one wins, because the merchant didn’t ask to block more.
The lower endpoint is a selection score, not a guarantee. It’s computed separately at each of 100 cuts, so the cut we pick after searching them doesn’t inherit 95% coverage. Choosing the best of many candidates can still overfit. The interval also leaves out two other sources of uncertainty. Payments from the same customer, card, or attack are correlated, and the costs that turn precision into dollars are themselves estimates. We use the lower endpoint to discourage thin, noisy cuts, and then check the chosen policy once more on the shipped model’s own holdout.
On the shipped model the best cut is the riskiest 4.85% of scores: 893 payments blocked, 427 of them labelled positive, a precision of 47.8% (95% CI 44.6–51.1%). Over the evaluation months its modelled value is $62,600 at the point estimate and $57,000 at the lower bound. The value curve is nearly flat past 4.6%: every cut from there to 5% is within about 1% of the best.
The ladder comes from refitted models, each fitted only on months before the month it’s scored on. The model that actually ships gets one more check, on a holdout from 11 August to 10 September that it wasn’t fitted on. The cut and the costs were fixed before this check, and the check can only stop a release, never move the cut. On the holdout the shipped model blocked 673 payments at 47.0% precision (95% CI 43.2–50.7%). The lower bound clears 11.6%, so it shipped. The check has limits. It covers the same calendar weeks the ladder evaluated, scored by a different model, so it isn’t independent of the data the cut was chosen on. Its dispute labels were also still maturing.
Sometimes the right cut is zero
Switch Figure 3 to the earlier model. It ranked badly. Its riskiest rung blocked 20 payments, 4 of them labelled positive. On the point estimate that rung is worth 4 × $171.01 − 16 × $22.39, about +$326. But the 95% interval on 4 of 20 runs from 8.1% to 41.6%, so its value at the lower bound is negative, and so is every deeper rung’s. The pipeline returned a cut of zero, with a reason naming the best rung and how far short it fell.
That isn’t evidence that the first rung loses money. No candidate cut had positive value under our lower-bound criterion, so the policy abstained. The system declined to deploy a policy whose apparent benefit rested on 20 payments.
F2 named a cut anyway, at 2.45%: 845 payments blocked, 38 of them labelled positive, a precision of 4.5%. Each catch is priced at $171.01 and each wrong block at $22.39, so the cut’s modelled value is 38 × $171.01 − 807 × $22.39, about −$11,600. This matches Figure 2. With a best F2 of 0.136, adding a slice keeps raising F2 as long as the slice’s precision is above 2.7%.
F2 alone provides no profitability gate. When a non-empty cut catches positives, F2 can prefer it even when its estimated financial value is negative. A zero cut doesn’t switch off fraud screening. It means this model adds nothing worth its false positives on top of what the merchant already runs, and the next model has to earn its place.
One rule, different merchants
A fixed classification objective treats every merchant the same way. Their costs are far apart. Across the six merchants we currently price, break-even runs from 3.6% to 67.2%.
Margin moves break-even the most, but it doesn’t decide it alone. The 70%-margin merchant breaks even at 14.2%, close to the 16%-margin gift-card merchant, because its other measured costs differ. That’s why the inputs are measured per merchant rather than looked up from a margin table.
On the shipped gift-card model, F2 and the cost rule picked the same cut. That says something about one ladder, not about F2. Whether F2 would block too deep or too shallow at another merchant depends on that merchant’s ranking and the F2 its model reaches, which cost measurements alone don’t show. What the costs do show is that no single fixed bar fits all six. We still compute the F2 cut on every run and record it beside the cost cut, as a cross-check. The cost cut is the one that ships.
What moves the answer
Three cost inputs come from people or from a single estimate, and one labelling choice decides what a catch is worth. We check how far each one moves the answer, and whether the move changes the cut or the decision to deploy. The sliders in Figure 1 recompute the same formulas. The cuts below rerun the selection rule on the two recorded ladders.
| Scenario | C_FP · C_FN | Break-even | Shipped model: cut, value at lower bound | Earlier model |
|---|---|---|---|---|
| As measured | $22.39 · $171.01 | 11.6% | 4.85%, $56,967 | Abstain |
| Handling cost halved, $41 | $22.39 · $130.01 | 14.7% | 4.70%, $40,722 | Abstain |
| No handling cost | $22.39 · $89.01 | 20.1% | 3.45%, $25,724 | Abstain |
| Margin 30% | $41.97 · $157.48 | 21.0% | 3.45%, $44,855 | Abstain |
| Margin 50% | $69.96 · $138.14 | 33.6% | 2.90%, $31,108 | Abstain |
| Multiplier 1.0 (no future orders lost) | $13.02 · $171.01 | 7.1% | 4.95%, $61,688 | 0.05%, $37 |
| Each review cancellation counted as half a dispute | $22.39 · $171.01 | 11.6% | 3.45%, $21,762 | Abstain |
The handling cost matters most. Without it, break-even is 20.1%, almost exactly the 20% that F2 is often assumed to set, and the cut moves from 4.85% to 3.45%. The numerical threshold depends materially on the cost assumptions. What a cancellation is worth moves it about as far: at half a dispute the cut is 3.45%, and with cancellations set aside the same rule picks 1.5% at $1,756. That’s why those assumptions should be explicit and tested, not replaced by a fixed classification objective. Each of them is written into the run’s record, so a reviewer can see which number a threshold rests on.
Scope and limits
The threshold results come from one gift-card merchant and two of its training runs. The six-merchant comparison uses cost measurements only, not threshold outcomes.
Dollar figures are modelled policy value. They price each caught positive, including orders the merchant’s reviewers cancelled, as a prevented dispute at $171.01. At half a dispute per cancellation the cut moves to 3.45% and the value to $21,762. With cancellations set aside, they move to 1.5% and $1,756. Savings beyond the merchant’s existing controls need a policy test, not this calculation.
Dispute labels in the evaluation months were provisional when the run was made, so dispute counts are low.
A cut is a percentile of the evaluated score distribution, not a live block rate. Live scoring sees attempts the evaluation set doesn’t, so the same cut blocks a different share of live traffic.
The ladder stops at 5%. The shipped value curve was nearly flat at its end, so a deeper ladder could have moved the cut a little.
Wilson intervals are pointwise. They aren’t adjusted for searching 100 cuts, and they treat payments as independent, while repeat purchases by one fraudster are correlated. The holdout check overlaps the evaluated weeks.
Costs are merchant averages. The handling cost is an external scenario assumption, the customer-loss multiplier is an estimate from an observational comparison, and the cost of platform reserves or termination is set to zero.
Price your own threshold
Before tuning a fraud threshold, write down what a wrong block and a missed dispute cost your business, and check the cut against that number. Corgi Labs helps teams price these errors from their own payments data and evaluate changes to their fraud policy.
References
Elkan, C. (2001). The foundations of cost-sensitive learning. Proceedings of IJCAI 2001.
Lipton, Z. C., Elkan, C. and Narayanaswamy, B. (2014). Optimal thresholding of classifiers to maximize F1 measure. ECML PKDD 2014.
Wilson, E. B. (1927). Probable inference, the law of succession, and statistical inference. Journal of the American Statistical Association, 22(158), 209–212.
Javelin Strategy & Research (2026). Chargebacks: The case for coordination. White paper sponsored by Mastercard.