Skip to content

Calculator

Rule of three calculator: zero failures in n trials

After n clean trials, how high could the failure rate still be? The rule of three, the exact 95% bound, and the trials a target bound needs.

InteractiveWhat zero failures buys you
500
0.100%

Rule of three: 3/n

0.600%

Rough 95% upper bound on the failure rate after zero failures.

Exact bound

0.597%

1 − 0.05^(1/n), one-sided 95%.

Clean trials to bound below 0.100%

2,995

If sampling is your only evidence.

1e-61e-41e-31e-1100%101001k10k100k1000kClean trials n (log scale)Upper boundn = 500target 0.100%

Zero failures is not zero risk. A clean run of 500 tasks only bounds the failure rate at about 0.600%. Claims like 10⁻⁶ need structural guarantees, importance sampling or adversarial search — not more uniform samples.

Zero failures in n trials does not mean a zero failure rate. The rule of three gives a rough 95% upper bound on the rate that is still consistent with a clean run. Enter the number of clean trials to see the bound, or set the failure rate you want to rule out to see how many trials that takes.

What it computes#

After nn independent, representative trials with no failures,

pfail≲3np_{\text{fail}} \lesssim \frac{3}{n}

is a rough 95% upper bound. The exact one-sided bound is 1−0.051/n1 - 0.05^{1/n}, which the calculator shows alongside. Ruling out a failure rate of one in ten thousand this way takes about thirty thousand clean trials.

Cautions#

  • The trials must be independent and drawn from the population the claim is about. Clustered or correlated trials make the bound optimistic.
  • Seeing even one failure at rate pp takes about 1/p1/p trials under naive sampling, so sampling alone is expensive evidence about rare failures.
  • The Bayesian form updates a uniform prior to Beta(1,n+1)\mathrm{Beta}(1, n + 1), with 95% upper bound 1−0.051/(n+1)1 - 0.05^{1/(n+1)}, and extends to ss failures as Beta(1+s,1+n−s)\mathrm{Beta}(1 + s, 1 + n - s).

The chapter Rare-event assurance covers the bound and the methods that need fewer trials.

Terms on this page

The chapter behind it

Handbook · ValidationRare-event assuranceZero failures in n trials is not zero risk. Bound it, then prevent, search, oversample and monitor.

More calculators