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.
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.
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 independent, representative trials with no failures,
is a rough 95% upper bound. The exact one-sided bound is , 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 takes about trials under naive sampling, so sampling alone is expensive evidence about rare failures.
- The Bayesian form updates a uniform prior to , with 95% upper bound , and extends to failures as .
The chapter Rare-event assurance covers the bound and the methods that need fewer trials.