/ THE SHORT ANSWER
A decision tool, before a deployment decision
Zero failures. How much evidence?
Explore one narrow failure criterion. This calculator uses an exact, one-sided binomial confidence bound.
Trials must be independent, identically distributed and representative of the work you want to assess. A clean test set cannot establish that every AI risk is controlled.
01 / Interpret a result
What did your test establish?
Zero failures in 100 trials gives this upper bound for the defined failure probability, under the stated assumptions.
02 / Plan the next evaluation
How many trials would you need?
Independent trials with zero failures would give a 95% one-sided upper bound of at most 1%. A failure means this plan has not met that zero-failure criterion.
More trials, a tighter bound
The evidence narrows gradually.
View the curve data and calculation
| Trials | Upper bound (95%) | Rule of three (approx.) |
|---|---|---|
| 10 | 25.8866% | Use the exact bound |
| 30 | 9.5034% | 10% |
| 100 | 2.9513% | 3% |
| 299 | 0.9969% | 1.0033% |
| 500 | 0.5974% | 0.6% |
Upper bound = 1 − (1 − confidence)1 / trials. Required trials = ceil[ln(1 − confidence) / ln(1 − target)].
See the method. Keep the context.
The visual companion

Credit: Original dotSuper decision diagram
Reuse: Share with attribution and a link to this guide. Keep the assumptions and limitations with the diagram.
Read the diagram: Zero observed failures still leaves uncertainty.
The one-sided exact binomial upper bound is 1 minus 0.05 raised to the power 1 divided by the number of tests. At 95 percent confidence, 30 tests with zero failures gives a 9.50 percent upper bound, 100 gives 2.95 percent, and 299 gives 0.997 percent.
This applies only to a fixed test plan with independent, identically distributed binary outcomes and zero observed failures. It does not establish safety or representativeness, and 299 is not a universal AI pilot sample size.
| Independent tests | Observed failures | Upper failure-rate bound |
|---|---|---|
| 30 | 0 | 9.503% |
| 100 | 0 | 2.951% |
| 299 | 0 | 0.997% |
Thumbnail credit and reuse
Credit: Original dotSuper decision diagram
Reuse: Share with attribution and a link to this guide. Keep the assumptions and limitations with the diagram.
- 01Define one trial and one failure criterion before collecting the evaluation results.
- 02Zero observed failures does not establish a zero failure probability.
- 03At 95% one-sided confidence, 100 clean trials give a 2.95% upper bound; 299 give a bound below 1%.
- 04Correlated cases, sample bias and changes after testing can invalidate the interpretation.
- 05Keep human review, operational monitoring and a separate high-consequence risk assessment.
/ dotSuper point of view
dotSuper analysis: the useful question is which failure you need to detect, in which workflow, before making which business decision. A larger convenience sample cannot repair the wrong test design.
Define a failure before counting the tests
For invoice extraction, one trial could be one previously unseen invoice processed by a frozen system.
Write the pass condition first.
For example, the supplier, invoice number and total must match the verified document, or the system must correctly request review.
That is an illustrative evaluation rule, not a universal business threshold.
Decide which errors are tolerable, which require review and which prohibit expansion.
- Record the model, prompt, tools, retrieval data and review policy being tested.
- Separate the cases used for development from the cases used for evaluation.
- Set the sample size, confidence level and acceptance rule before inspecting results.
A clean sample still leaves uncertainty
This calculator specializes that method to zero failures and a one-sided upper bound.
For n trials and confidence C, the calculation is 1 − (1 − C)^(1/n).
With 100 clean trials at 95% confidence, the bound is 2.9513%.
The confidence level describes repeated-sampling coverage under the model assumptions.
It is not a 95% probability that this fixed unknown failure rate lies below the reported number.
The familiar rule of three, 3/n, approximates the 95% bound.
Use the exact calculation here, especially for small samples.
| Independent trials | Exact upper failure-rate bound | 3/n approximation |
|---|---|---|
| 30 | 9.5034% | 10.0000% |
| 100 | 2.9513% | 3.0000% |
| 299 | 0.9969% | 1.0033% |
| 500 | 0.5974% | 0.6000% |
Work backwards from a decision threshold
The illustrative target reflects its review process and error consequences.
At 95% one-sided confidence, the smallest fixed sample is 299 independent trials.
The acceptance criterion requires zero failures across that sample.
This is a conditional test plan, not a prediction that the system will pass.
One observed failure means this zero-failure acceptance criterion has not been met.
Do not keep adding cases until a preferred result appears.
Pre-agree any sequential design with suitable statistical support.
Make the sample resemble the actual work
Include the document types, languages and operating conditions that the deployment will encounter.
Ten near-identical documents from one supplier may carry less independent information than ten unrelated business cases.
Repeated outputs for one document are not automatically ten independent workflow trials.
A deliberately difficult challenge set is valuable, but its failure frequency need not estimate ordinary production frequency.
Keep its results separate from the representative evaluation sample.
NIST's AI Risk Management Framework treats risk management as a lifecycle activity with context-specific requirements.
Our implication is practical: evaluate the workflow in its intended setting, then monitor changes after release.
- Check important customer, language, supplier and document groups separately.
- Do not apply an aggregate bound to a subgroup with too few observations.
- Keep rare, high-consequence cases in a separate risk and escalation review.
Know when this calculator cannot answer
The tool therefore withholds its observed-result bound when you enter failures above zero.
The calculation also assumes independent, identically distributed Bernoulli trials and a fixed evaluation plan.
Selection bias, correlated cases, tuning on the evaluation set and changing operating conditions can break the interpretation.
Even a valid bound covers only the failure criterion being counted.
It cannot certify privacy, fairness, security, factual accuracy or overall AI safety.
For consequential applications, involve the appropriate statistical and domain expertise before choosing acceptance thresholds.
Leave with a decision your team can review
Exporting a calculation alone does not establish how the sample was collected.
Record the workflow, failure definition, sampling method, fixed sample size, system version, review results and decision owner.
Document exclusions and unresolved edge cases beside the result.
If the criterion is met, decide whether the next step is a monitored rollout, another test or continued human review.
The appropriate action depends on the consequence of being wrong.
- Use the pilot-design framework to define the experiment before running it.
- Evaluate completion, human effort and cost alongside the chosen failure measure.
- Re-evaluate when the workflow, system or input population changes materially.
What this page cannot conclude
- 01This is a planning aid, not statistical advice, safety assurance or certification.
- 02The exact zero-failure formula requires independent, identically distributed Bernoulli trials, a fixed plan and zero observed failures.
- 03The formula does not correct selection bias, poor failure definitions, correlated samples or tuning on evaluation cases.
- 04The bound applies only to the defined failure probability in the sampled population. It does not cover every AI risk or establish subgroup performance.
- 05All examples are calculated illustrations, not measured dotSuper client outcomes.
Sources
- 01Confidence intervals: exact binomial methods and one-sided intervalsNIST/SEMATECH e-Handbook of Statistical Methods · accessed Nov 8, 2026
- 02AI Risk Management FrameworkNIST AI Resource Center · accessed Nov 8, 2026
Our editorial standard · Found an error? Send a correction with its source.
/ CITE OR SHARE THIS GUIDE
Make the evidence easy to verify.
When you reference this guide, link to its canonical URL. That gives readers one stable place for the evidence, limitations and future updates.
dotSuper Research Desk. (November 8, 2026). How Many Tests Does Your AI Pilot Need?. dotSuper. https://dotsuper.net/feeds/applied-systems/ai-pilot-sample-size-calculator
Build the evaluation around one real workflow
Use our pilot framework to define the decision, baseline, case set and review process before a result is counted.
Open the pilot-design framework