Skip to content

Check what zero critical errors in a pilot can tell you

Set a critical error rate you need the pilot to rule out. If all independent, representative cases pass, calculate the chance of seeing zero failures at that rate. Extend the test if zero failures would still be fairly likely.

What you need

For a buyer selecting an acceptance sample for one AI workflow.

  • A written definition of critical failure and the population being tested.
  • A chosen error rate and an acceptance confidence level.
  • An independent sample and a named human reviewer.

Calculate the evidence from a zero-error sample

  1. Agree the highest critical failure rate you consider acceptable for the defined set of cases.
  2. Choose a sample design that represents that set. Count independent cases rather than repeated copies of the same input.
  3. With zero observed failures, calculate (1 − target failure rate) raised to the number of cases.
  4. Approve the statistical gate only when that probability is at or below the chosen cutoff. Route any observed critical failure for separate review.

Forty clean tests leave a wide range of possible errors

Synthetic data. The buyer wants to rule out a 2% error rate at a one-sided 95% confidence level.

Scroll the table to see all columns.

Forty clean tests leave a wide range of possible errors
CasesObserved failuresChance of 0 at 2%Gate
40044.57%More cases needed
14805.03%Still above 5%
14904.93%Meets sample gate

The minimum is 149 independent cases under this rule. Compute 0.98 raised to the sample size and compare with 0.05.

What to hand over

Give the release owner the sampled population, calculations, reviewed failures and the decision on additional testing.

Limitation. Results apply to the sampled population and assume independent cases. Repeated runs from one easy case cannot establish safety across the whole queue.

Next step

Bring one critical error definition and a list of case types that the production workflow will actually see.

Discuss this workflow with Shadyy

Sources