Five Caught Cases Don’t Make a Good Fraud Detector
From the publisher’s feed, collected in the ZeroLabs newsroom.
A US Department of Labor notice asks vendors to “show us an employer trying to game the system.” I ran some numbers on what a demo like that can really tell a buyer.Chance that a five-case demo "passes" for a weak and a strong detector. Chart by the author, from a simulation.I wrote the analysis and code myself and used an AI assistant to help edit the text. I checked all numbers and references by hand.I read a lot of public tenders. Most of the questions in them are long and careful. This one was short, and it stayed in my head.In September 2026 the US Department of Labor (DOL) published a request for information about platforms that link a worker’s verified identity to credentials and to records like wage payments, safety training, housing and transportation inspections, and worksite assignments. The platform should look for strange patterns across those records and send alerts to a human for review. In the list of questions for vendors at the industry day, number 15 was simply: “Show us an employer trying to game the system.”My first reaction was: fair. If you buy a fraud detector, you want to see it catch fraud. My second reaction was less happy. A demo like this can tell the buyer a lot less than it looks like. I wrote a few lines of Python to check how much less.Before I start, two things. The notice is market research. It is not a contract, so I’m not saying DOL did anything wrong. And every number below comes from my own small simulations with made-up assumptions. None of it is DOL data.The noticeThe notice is called “Labor Market Transparency & Fraud Detection Tools - RFI/Industry Day” (Notice ID OAA-26-11111). It came from DOL’s Office of the Assistant Secretary for Administration and Management on September 9, 2026. It is a sources-sought notice, and answers were due on September 17. The tender is listed here as an example. You can also read the full notice on SAM.gov [1].DOL planned a virtual industry day for September 24 and 25. One of the things vendors might have to show is how the platform finds an inconsistency across several records and raises an alert for a person to check. DOL also gave a long list of questions. These are the ones I care about here:“What steps are taken to minimize false positives?”“What performance metrics should DOL consider when evaluating such a solution?”Take one alert and walk back to every piece of data behind it, saying which data is verified and which is self-reported.“Show us an employer trying to game the system.”So DOL already worries about false alarms, and it asks the vendors which metrics to use. I think that is the right worry. The “show us” demo is the part that can’t answer it.Problem one: five cases is a very small numberImagine a vendor shows five fraud cases and the detector catches all five. What do we know about recall, the share of all real fraud it catches?The usual tool here is the exact binomial interval from Clopper and Pearson’s 1934 paper [2]. For “k caught out of n shown”, the one-sided 95% lower bound on recall comes from a beta distribution:import numpy as npfrom scipy.stats import betadef recall_lower_bound(caught, shown, conf=0.95): """One-sided Clopper-Pearson lower bound for recall.""" if caught == 0: return 0.0 return beta.ppf(1 - conf, caught, shown - caught + 1)for n in [1, 3, 5, 10, 29, 59]: print(n, round(recall_lower_bound(n, n), 3)) # detector caught all nOne-sided 95% Clopper-Pearson lower bound on recall when every demo case is caught. Table by the author.Five perfect catches only support “recall is at least about 55%”. One caught case supports “at least 5%”. That’s it.When nothing is missed, the bound is just 0.05^(1/n). So if you want to claim 90% recall at 95% confidence, you need 29 cases with zero misses. For 95% recall you need 59. The general rule is n ≥ ln(0.05) / ln(r), where r is the recall you want to claim. Medical statistics has a similar shortcut, the “rule of three”: with zero failures in n trials, the 95% upper limit on the failure rate is about 3/n (see the JAMA paper by Hanley and Lippman-Hand [3]).Problem two: the demo never shows the false alarmsA demo shows you fraud that got flagged. It does not show you how many honest employers got flagged too. And that second number depends a lot on how common fraud is. This is just Bayes’ rule:def alert_precision(prevalence, sensitivity=0.90, specificity=0.95): true_alerts = sensitivity * prevalence false_alerts = (1 - specificity) * (1 - prevalence) return true_alerts / (true_alerts + false_alerts)I assume the detector catches 90% of fraud and wrongly flags 5% of honest records. I made these numbers up, but for a real detector they would be quite good.Alerts per 10,000 records for a detector that catches 90% of fraud and flags 5% of honest records. Table by the author.At a 1% fraud rate, about 85% of alerts are false. An investigator opens around 6 or 7 alerts to find one real case. At 0.1% it’s more like 56 alerts per real case. A demo with one planted case can’t show any of this, and this is exactly the number behind DOL’s question about false positives.Problem three: who chooses the cases?This is the part that surprised me the most when I ran it.Say the vendor has a pool of real fraud cases and picks the five its detector scores highest. The demo “passes” if all five get flagged.My model is simple. Honest records get a score from a normal distribution with mean 0 and standard deviation 1. Fraud records get the same curve moved to the right by μ. I choose μ from the detector’s AUC, because for two curves like these AUC = Φ(μ/√2). The alert line is set so that 5% of honest records get flagged. With this setup, a detector with AUC 0.80 catches 32.5% of fraud, and a detector with AUC 0.95 catches 75.2%.from scipy.stats import norm, binomthreshold = norm.ppf(0.95) # flags 5% of honest recordsdef auc_to_mu(auc): return np.sqrt(2) * norm.ppf(auc)def p_flag(auc): """Chance that one real fraud case scores above the threshold.""" return 1 - norm.cdf(threshold - auc_to_mu(auc))def demo_pass_prob(auc, shown=5, pool=5): """Vendor shows the best `shown` of `pool` cases. All shown cases are flagged if >= `shown` of the pool are.""" return binom.sf(shown - 1, pool, p_flag(auc))Chance that all five demo cases get flagged, by how the cases are chosen. Table by the author, from a simulation.I also checked these with a Monte Carlo run and got the same numbers.Look at the right column first. If the vendor can pick from 20 real cases, the weak detector passes 83% of the time and the strong one almost always passes. From the outside they look the same.Then look at the left column. Random cases are hard on everyone. Even the strong detector only passes 24% of the time, because it misses about one case in four. So a pass-or-fail demo mostly tells you how the cases were picked. It tells you very little about the detector.So what can a buyer ask for?DOL asked vendors which metrics it should use. If I were answering, I would say three things.First, a blind test set and a rate with an interval. The buyer holds the cases, and the vendor doesn’t see the labels. Report recall with a confidence interval, not “it passed”. And plan enough fraud cases: 29 is the floor for a 90% claim, and only if nothing is missed.Second, precision at the team’s real capacity. Investigators can only read so many alerts. Here I simulate 200,000 records and a team that can review 1,000 alerts, with the AUC 0.95 detector:def precision_recall_at_k(auc, prevalence, n=200_000, k=1000, seed=7): rng = np.random.default_rng(seed) y = rng.random(n) s = np.where(y, rng.normal(auc_to_mu(auc), 1, n), rng.normal(0, 1, n)) top = np.argsort(-s)[:k] return y[top].mean(), y[top].sum() / y.sum(), int(y.sum())Precision and recall of the top 1,000 alerts out of 200,000 records, AUC 0.95 detector. Table by the author, from a simulation.Same detector, same AUC, and the queue looks totally different. When fraud is rare, false alerts are the problem. When fraud is common, the team’s time is the problem, not the model.Third, the trace-back test, which DOL already asks for: take one alert and follow it back to every piece of data, and say what is verified and what is self-reported. A live demo is actually good at this. It’s an engineering check, so one case can show a lot.Where I might be wrongMy model is very simple. Real scores don’t look like two neat bell curves with the same width, so the exact numbers would change. I still think the direction holds: small samples and hand-picked cases make any detector look better than it is.Also, buyers rarely have clean labels. Past investigations only label the cases someone already looked at, so a test set built from them leans toward fraud that was already easy to catch. You can add fake planted cases, but then the test is only as good as the person who invented them. That is not far from the demo problem again.And to be fair, an RFI demo is for exploring, not for proving. My point is about how much weight to give it, and about what should change when the real acceptance tests come later.One thing I couldn’t find: whether DOL has a labeled set of past fraud cases to test against. The notice doesn’t say. For me, that is the most important question for the next step.ReferencesU.S. Department of Labor, OASAM, Labor Market Transparency & Fraud Detection Tools - RFI/Industry Day, Notice ID OAA-26-11111 (2026), SAM.gov: https://sam.gov/opp/820d24e1333949fd870d1d1d054db3f5/viewC. J. Clopper and E. S. Pearson, The use of confidence or fiducial limits illustrated in the case of the binomial, Biometrika 26(4), 404–413 (1934): https://doi.org/10.2307/2331986J. A. Hanley and A. Lippman-Hand, If nothing goes wrong, is everything all right? Interpreting zero numerators, JAMA 249(13), 1743–1745 (1983): https://doi.org/10.1001/jama.1983.03330370053031Five Caught Cases Don’t Make a Good Fraud Detector was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.