Skip to content

All 300 samples passed. Can you accept the dataset?

OUR VIEW

A sample is informative because of its selection, size and inspection rules. Zero defects in 300 tasks can constrain one defect rate; it cannot prove a perfect batch or validate every dimension of quality.

On this page

A supplier sends 300 records. You inspect each and find no issue. Can the report say “100% data quality”? No. It can say those 300 records passed those checks. What follows for the batch depends on selection, the defect definition and the risk of missing a problem. A worked example makes those distinctions concrete.

Define the unit and the defect

Suppose a delivery contains 100,000 separate support tasks, each with a question, one or more tool calls and a final reply. We investigate one defect: at least one call in a task has no linkable tool result. A task missing three results still counts as one defective task. Counting all three would count missing results, not defective tasks; that count cannot be used as the numerator of a task-level defect proportion.

That check does not establish answer correctness, label accuracy or training usefulness. Run inexpensive parse, field and ID-linkage checks across the full delivery when feasible; reserve sampling for checks requiring human interpretation. Keep the denominator for each test. Formatting, meaning and supporting permission documents should not be collapsed into one quality score.

Sample a fixed delivery, not a demonstration folder

Preserve the manifest, version, file hashes and complete task-ID list. Draw 300 task IDs at random from that list and record the random seed, script version and selected IDs. A hash is a content fingerprint that helps detect change, not a guarantee of truth. Do not replace inconvenient records with easier ones; define how unassessable records will be handled.

If 300 messages come from only ten conversations, they are not 300 independent tasks. If a few conversations or templates are selected first and multiple records are then taken from them, analyze the actual cluster sampling design; do not treat those records as independent random draws from the whole batch. Datasheets for Datasets proposes documenting composition, collection and intended uses.[1] That context helps establish what a sample represents; it is not a quality certificate.

Zero observed defects can come from an imperfect batch

Use a simplified model: each sampled task has the same defect probability p, tasks are independent, and inspection detects the defined defect correctly. The probability of no defects in n tasks is (1−p)^n. At a true rate of 1%, the chance that all 300 pass is 0.99^300, approximately 4.90%. That is not impossible.

Derivation for the zero-defect case; 95% is a chosen example, not an industry acceptance standard
Observed: n = 300 tasks, x = 0 defective tasks
Exact one-sided 95% binomial upper bound:
(1 − p_upper)^300 = 0.05
p_upper = 1 − 0.05^(1/300) ≈ 0.009936
Approximately 0.994%, not zero.

NIST describes exact binomial interval construction for small defect counts.[2] Allocating the full 5% tail probability to the upper bound gives the one-sided 95% limit used here. Do not substitute the upper endpoint of a two-sided 95% interval. The confidence level describes repeated-sampling coverage of the procedure; it is not a 95% probability statement about this fixed batch’s unknown rate.

Random inspections, all defect-freeApproximate one-sided 95% upper bound
50 tasks5.82%
300 tasks0.994%
1,000 tasks0.299%

The calculation does not cure selection bias. Curated examples, counting the same sampling unit more than once, and missed defects violate this example’s assumptions. For sampling without replacement from a finite batch, a binomial model is often used as an approximation when the sampling fraction is small; a large fraction calls for finite-population treatment. If defects are observed, the zero-defect formula no longer applies.

An estimate and an acceptance decision are different steps

NIST distinguishes acceptance sampling from quality estimation: its central purpose is deciding whether to accept or reject a lot under a sampling plan.[3] A calculated upper bound does not set a commercial acceptance limit. If the agreed maximum for this defect is 1%, 300 defect-free tasks can provide corresponding evidence under the stated model. If the requirement is below 0.1%, that evidence is insufficient. Both thresholds are hypothetical, not universal specifications.

Different risks may require different dispositions. A repairable missing field may lead to rework and new inspection. An absent critical scenario may require more collection. Sensitive-information exposure or missing source evidence needs separate treatment; a high aggregate pass rate does not cancel it. If rework regenerates or rededuplicates the batch, treat it as a new version rather than carrying over an earlier pass.

Leave a record someone else can reproduce

For each inspected task, retain batch and hash, task ID, group, selection method, rule version, verdict, evidence pointer, reviewer and time. A verdict can be pass, fail or unassessable. Agree beforehand how unassessable records affect the decision; do not remove them from the denominator after inspection to improve appearances.

Those extra sentences identify the object, strength and limits of the evidence. If a later problem appears, the team can investigate sampling variation, a detection blind spot or a changed delivery version instead of arguing over what “all passed” meant.

Download templates

CSVSample inspection recordA bilingual CSV template for recording checks and their supporting evidence.

References

  1. Gebru et al. · Datasheets for Datasets
  2. NIST/SEMATECH · 7.2.4.1 Confidence intervals — exact binomial intervals
  3. NIST/SEMATECH · 6.2.1 What is Acceptance Sampling?

Read next

All articles

Sign in to Padda

A code in your inbox. No password to remember.

Connecting to sign-in…