Statistical Foundations

Zero Failures in 30 Trials Does Not Mean a Zero Failure Rate

What a clean pilot actually proves, the “rule of three”, and how many trials you need before a one-sided bound is worth reporting.

Statistical Foundations · 4 min read

A pilot reviews 30 responses and finds no policy violations. The report says “0% violations.” That sentence describes the pilot, not production.

Why zero is weak evidence

Suppose the true violation rate is 5%. The chance of seeing no violations in 30 independent trials is 0.95 to the 30th power, about 21.5%. More than one time in five, a system with a 5% failure rate passes a 30-response pilot cleanly.

So a clean pilot supplies some evidence, but it cannot establish a near-zero rate.

The exact upper bound

With no failures observed, the exact one-sided upper limit U solves (1 − U) to the n equals α. That gives U = 1 − α^(1/n). For n = 30 and α = 0.05, the 95% upper bound is about 9.5%.

A handy approximation is the “rule of three”: for a 95% one-sided bound, the upper limit is roughly 3 divided by n. For 30 trials that gives 10%, close to the exact value.

Plan the sample before the pilot

If the release gate says “the 95% upper bound must be below 1%,” you can solve for the sample size. You need n greater than log(0.05) / log(0.99), which is at least 299 independent trials, and that is with zero failures allowed.

Notice what this does not tell you: the probability that the study will actually see zero failures. If the true rate is 0.5%, the chance of zero failures in 299 trials is only about 22%. Design for a reasonable chance of passing the gate, not just for what zero events would prove.

Habits that keep the claim honest

  • Decide one-sided or two-sided before looking. The two-sided 95% bound for 30 trials is about 11.6%, not 9.5%.
  • State the sampling frame. “Independent trials” means independently sampled prompts, not 30 rephrasings of one prompt.
  • Do not pool across systems to inflate n. A candidate-specific claim needs candidate-specific trials.
  • If you do see failures, switch to the binomial upper bound for that count rather than the zero-event shortcut.

More guides from this book