Skip to content

Systems and records

Rare costly error dataset sampling: sample by stakes, not by row

By SourceX Editorial · Updated

9 sections

Short answer

Rare costly error dataset sampling needs three review tracks, because one random sample answers the wrong question. Review every record above a stakes threshold, review records that risk signals flag, and draw the rest with probability proportional to stakes such as value or customers affected. Report mistakes found, the share of exposure mistaken records could still hold, and the strata nobody reviewed. A clean draw bounds cost; it never proves absence.

System export

Rare costly error dataset

This page covers rare costly error dataset sampling: sample by stakes, not by row.Illustrative

Key takeaways

  • When a mistake's cost scales with a recorded quantity, per-record error rates and exposure come apart, so sample by stakes.
  • A census above a stakes threshold, targeted review of flagged rows and a stakes-weighted draw each support a different claim.
  • Only the probability draw can bound what was missed: no mistakes in 300 stakes-weighted draws caps mistaken exposure near 1 percent.
  • Records without a stakes value need their own uniform sample, because a stakes-weighted draw cannot reach them.
  • Ship a coverage statement listing mistake types, segments and removed rows that no track examined.

What decision does rare costly error dataset sampling support?

It supports a go or no-go call on whether a dataset's recorded decisions can serve as training targets or evaluation answers when a small share of records hides mistakes with large consequences: a refund approved against policy, a payment released to the wrong vendor, a claim closed as paid that should have been denied. A useful answer has three parts: the costly mistakes found and removed, a bound on how much of the remaining exposure could still be wrong, and a plain list of what nobody reviewed.

A uniform random sample of records answers a different question, which is how often mistakes occur per record. When the cost of a mistake scales with something recorded in the row, such as an amount, a quantity or the number of customers affected, frequency and exposure come apart. Ten mistakes on small orders and one on the largest contract are not comparable, and a plan that treats them alike spends its review budget on the wrong rows.

This is a curation decision as much as a statistical one. A mistake left in training data teaches a model the wrong action with full confidence; a mistake in an evaluation answer key rewards a model for repeating it.

Why counting mistakes per record understates the risk

Because cost is concentrated, a per-record error rate can look reassuring while the expensive mistakes sit in a few rows the sample never touched. Evaluation research shows how lopsided consequence can be. In the GDPval paper (OpenAI, 2025), occupational experts rated the deliverables on which GPT-5 lost to a human professional: the most common rating was acceptable but subpar, about 29 percent were bad or catastrophic, and roughly 3 percent of failures were rated catastrophic.

Aggregate metrics hide that tail. Oakden-Rayner and colleagues named the effect hidden stratification: accuracy, sensitivity or AUC can be dominated by larger subsets, and in medical imaging they found relative performance differences of over 20 percent on clinically important subsets that the headline figure concealed (arXiv 1909.12475).

Curated data is not exempt either. Northcutt, Athalye and Mueller estimated that the test sets of 10 widely used benchmarks average at least 3.3 percent label errors, with at least 6 percent in the ImageNet validation set (arXiv 2103.14749). Business archives are assembled by people working to deadlines rather than by annotators, and their mistakes carry money, customers and obligations with them.

Public payment programs show what an exposure-weighted measure looks like. GAO reported that federal agencies estimated about $162 billion in improper payments for fiscal year 2024, and it defines the improper payment rate as estimated improper payments divided by program outlays: a share of money, not a share of transactions (GAO-25-107753).

Three review tracks and the claim each one can carry

Split the review budget into three tracks plus a declared remainder, because each track answers a different question and only one supports a frequency claim. Blending them into a single error rate is the most common way a sampling plan overstates what it found.

The census track reviews every record above a stakes threshold. Auditors work the same way: PCAOB's audit sampling standard, AS 2315, tells the auditor to examine those items for which accepting some sampling risk is not justified. A census finds every defined mistake above the threshold and says nothing about records below it.

The targeted track reviews records that risk signals flag: reversals, chargebacks, reopened cases, manual overrides, amounts edited after approval and complaints linked to the record. It finds mistakes efficiently and shows what they look like. Because the records were picked for suspicion, its hit rate is not a prevalence estimate for anything.

The stakes-weighted track draws from everything else with probability proportional to stakes, so each unit of exposure, rather than each record, has an equal chance of selection. Its result is a share of exposure, and it is the only track that can bound what the other two missed. If it finds no mistakes in n draws, the exact 95 percent upper bound on the share of remaining exposure held by mistaken records is 1 minus 0.05 raised to the power 1/n, close to 3 divided by n: 0.99 percent for 300 draws. Hanley and Lippman-Hand's 1983 JAMA paper on interpreting zero numerators deals with exactly this case, a study in which none of the events of concern occurred, and why it cannot be read as zero risk.

Records with no usable stakes value have no chance of selection in a stakes-weighted draw, so they form a fourth stratum with its own uniform sample, reported on its own. The table sets out what each track can and cannot claim:

Three review tracks and the claim each one can carry
TrackRecords reviewedWhat it findsClaim it supportsClaim it cannot support
CensusEvery record above the stakes thresholdAll defined mistakes in the highest-exposure recordsMistakes above the threshold were found and fixed or excludedAnything about records below the threshold
TargetedRecords flagged by risk signalsThe forms costly mistakes take and their causesThese mistake types exist and look like thisHow common they are, by record or by exposure
Stakes-weightedA draw from the remainder, probability proportional to stakesMistakes in proportion to the exposure they carryMistaken records hold less than a stated share of remaining exposureA per-record frequency, or anything about rows without stakes
Missing-stakes stratumA uniform sample of records with no usable stakes valueMistakes in rows the weighted draw cannot reachA per-record rate with an interval for that stratumExposure, because none is recorded
Forty records sorted by stakes, with the five tallest above a census threshold, four flagged records marked for targeted review and dots showing a stakes-weighted draw concentrated on higher-stakes records.
Census, targeted and stakes-weighted review tracks on records sorted by stakes. Illustrative: bar heights and draws are examples, not data.

Choosing the stakes measure and the census threshold

Use the quantity a mistake's cost grows with for the buyer's task, and set the census threshold where a single mistake would disqualify the record for that use. In a refund-decision dataset that is usually the refund value; in a dispatch dataset, the hours of downtime or the number of sites affected; in a credit dataset, the limit granted. When two measures matter, run the weighted draw on the one tied to the acceptance test and report the other by stratum.

The threshold is a budget decision made visible. Sort records by stakes and plot the cumulative share of total exposure. The census covers the top of that curve and the stakes-weighted track covers the rest. A steep curve, where a small share of records holds a large share of exposure, makes a census cheap and powerful; a flat curve means the weighted draw does most of the work.

Three cautions apply. A mistake can corrupt the stakes field itself, for example a refund keyed at a tenth of its true value, and a stakes-weighted draw will then under-select that row, so reviewers should check values against a second source where one exists. A mistake that affects only part of a record's value needs a partial-error rule fixed before review; treating every mistaken record as wholly wrong is conservative and simple. And a plan built on one stakes field inherits that field's gaps, which is why the missing-stakes stratum exists.

Sampling worksheet: one review budget across four strata

A fixed budget of 1,600 reviews on an illustrative archive of 40,000 refund decisions can cover the highest-exposure records in full, spend a quarter of the budget on flagged records and keep enough probability draws to bound the rest. Every value here is illustrative; the structure is what carries over.

Illustrative result: the census finds 6 costly mistakes and the targeted track finds 19, all fixed or excluded. The stakes-weighted track finds none in 300 draws, which bounds mistaken records at about 1 percent of the remainder's exposure, or about 0.7 percent of total exposure, at 95 percent confidence. The missing-stakes sample finds 1 mistake in 100 records: a 1 percent rate with an exact 95 percent interval of about 0.03 to 5.4 percent, too wide to call that stratum clean.

The worksheet below records each line of the plan, how it is set and what the report must show for it:

Sampling worksheet: one review budget across four strata
LineIllustrative valueHow it is setWhat to report
Frame40,000 refund decisions over 24 months; 39,200 with a usable valueExport from the system of record, reconciled to its totalsFrame count, date range, rows dropped and why
CensusTop 800 records by value, holding 31 percent of total valueThreshold where one mistake disqualifies the recordThreshold, records, share of value, mistakes found
Targeted400 of the riskiest flagged records outside the censusReversals, chargebacks, overrides and edits after approvalFlags used, records flagged, records reviewed, mistakes found
Stakes-weighted300 draws from the other 38,400 records, 69 percent of valueProbability proportional to value, drawn with replacementDraws, records hit, mistakes found, upper bound on exposure share
Missing-stakes100 of 800 records without a usable valueSimple random sampleRecords, mistakes, per-record rate with an exact interval
Budget check1,600 reviews in total800 census plus 400 targeted plus 300 draws plus 100 uniformReviews completed against plan, and any shortfall

What counts as a mistake, and who decides?

A mistake is a recorded decision that contradicts the policy, contract or facts in force when it was made, and two qualified reviewers should agree that it is one. Write the definition before review, with examples on both sides of the line, and judge each record against the rules of its own date rather than today's.

Reviewer agreement is the test of the definition. Anthropic's guidance on agent evaluations makes the same point about tasks: a task is good when two domain experts, each judging alone, would give it the same verdict, pass or fail. Double-review a subset in every track, resolve disagreements by sharpening the rubric rather than by vote, and record the rubric version used for each record.

Decide in advance what to do with a record nobody can judge. GAO notes that agency estimates count a payment as improper when its documentation is lacking, a choice that raises the estimate and has to be stated. In a dataset, give undecidable records their own category so they neither inflate the mistake count nor vanish into the clean pile. Severity tiers belong to the evaluation that later uses the data; this plan needs only a yes or no on costly mistakes and the stakes value.

Strongest alternative: would a large uniform sample do the same job?

No. A uniform sample estimates mistakes per record, and when costly mistakes are rare and concentrated it will usually hold too few of them to say anything about exposure. Illustrative: if 40 of 40,000 records carry costly mistakes, a uniform sample of 1,600 is expected to contain about 1.6 of them, too few to tell a real rate from luck.

Large record counts also hide three problems that a bigger sample does not fix. Repeated cases: one customer, vendor or agent can account for hundreds of rows, so the effective sample is smaller than the row count and mistakes cluster by person and process; review clustered rows together and report the cluster count. Selection in the extract: an export of final states can drop reversed or corrected transactions, removing exactly the rows where mistakes were caught. Unobserved failures: a mistake nobody noticed leaves no flag, so only a probability draw checked against an outside record can bound it, and only for mistake types the rubric names.

A uniform sample still has a place as a cross-check when a buyer needs per-record rates for a training mix. Keep it separate from the exposure bound and never add the two together.

Coverage limitations: what the plan still cannot see

Every statement in a dataset's quality report should trace to the track that supports it, and the gaps belong beside the results rather than in a footnote. Some gaps can be closed with more work; others need evidence the dataset does not contain.

Ship this coverage statement with the dataset and update it whenever the rubric or the extract changes:

Coverage limitations: what the plan still cannot see
Claim a reader might wantSupported?Why, or why notWhat would extend coverage
No costly mistakes above the thresholdYes, for defined mistake typesThe census reviewed every record above itRepeat when the extract or rubric changes
Costly mistakes are rare in the restPartly: a bound on exposure shareThe stakes-weighted draw found none in 300More draws tighten it; 600 draws roughly halve the bound
Mistakes are rare in every customer segmentNoThe weighted draw was not stratified by segmentStratify the draw by segment and report each bound
No mistake types beyond the rubricNoReviewers find what the rubric namesOpen-ended review notes on a subsample, then a second rubric pass
Mistakes that left no trace in the recordNoThe row looks right when the error landed elsewhereMatch rows to an outside witness such as complaints or the ledger
Records removed before exportNoReversed or corrected rows may be missing from the frameReconcile frame totals to the source system

Writing the plan into a data request

Put the plan in the request so a supplier can say early whether the fields it needs exist. Datasets at SourceX are sourced from U.S. businesses when a buyer asks, not kept on a shelf; the request-data form is where a buyer writes down the scope, the volume, the language and format, the timing and the licensing it needs.

A request that supports this plan names the stakes field and its unit, the risk flags the source system records (reversals, overrides, edit history), whether corrected and reversed rows are included, the policy versions in force across the window, and an acceptance test, for example a census of the top 2 percent of records by value plus a stakes-weighted draw large enough to bound mistaken exposure below 1 percent. Whether a particular business holds those fields is settled dataset by dataset; nothing here implies a dataset is available or will pass.

Volume matters for this design. Buyer appetite, as a general rule of thumb, runs to years of consistent history (two or more is typical) and tens of thousands of records or more within one system, but a smaller set can still qualify when the work it captures is rare, and each case is judged individually. A thin archive has a flatter stakes curve and fewer rows to bound, so say in the request which outcome you would accept if the bound cannot be reached.

Frequently asked questions

How many records do I need to review to bound rare costly mistakes?

For a probability draw that finds nothing, the 95 percent upper bound is about 3 divided by the number of draws, so 300 draws cap mistaken records at about 1 percent of the exposure they cover and 600 at about 0.5 percent. No sample size proves a mistake type is absent, which is why the highest-exposure records get a full census instead.

What is probability-proportional-to-stakes sampling?

It selects records with chances in proportion to a recorded quantity such as value or customers affected, so a record worth ten times another is ten times as likely to be drawn. The result estimates the share of exposure held by mistaken records, not the share of records with mistakes. Rows without a usable value need a separate sample.

Can a sampling report say a dataset has zero costly errors?

Only for records reviewed in full, such as the census above a threshold. For sampled strata the honest statement is an upper bound, for example less than 1 percent of remaining exposure at 95 percent confidence, together with a list of the strata and mistake types nobody reviewed.

How is this different from oversampling exceptions for training?

Oversampling changes how often rare cases appear in a training mix and needs weights to recover real-world frequency. This plan finds and removes costly mistakes and bounds what remains. The two can share a frame, but their numbers answer different questions and should be reported separately.

What should a data supplier provide to support this plan?

A usable stakes field with its unit, the risk flags the source system keeps, edit and reversal history, the policy versions in force over the window and frame totals to reconcile against. Without a stakes field the plan falls back to a per-record sample, which supports only a frequency claim with a wider interval.

Sources

  • In GDPval's failure analysis, experts rated GPT-5's losing deliverables: acceptable but subpar was most common, about 29 percent were bad or catastrophic and roughly 3 percent of failures were catastrophic. Source
  • Hidden stratification: aggregate metrics can be dominated by larger subsets, with relative performance differences of over 20 percent on clinically important subsets. Source
  • Test sets of 10 widely used benchmarks average at least 3.3 percent label errors, with at least 6 percent in the ImageNet validation set. Source
  • GAO reported about $162 billion in estimated federal improper payments for fiscal year 2024, defines the rate as improper payments divided by outlays, and notes payments lacking documentation are counted as improper. Source
  • PCAOB AS 2315 directs auditors to examine items for which accepting some sampling risk is not justified. Source
  • Hanley and Lippman-Hand (JAMA, 1983) address how to interpret studies in which none of the events of concern occurred. Source
  • Anthropic's agent evaluation guidance: a good task is one where two domain experts would independently reach the same pass or fail verdict. Source

Tell us what data you need

Share scope, volume, format, timing and licensing needs. Datasets are sourced on request.

See if your company qualifies