An agent that calls a model can pass a test on one trial and fail it on the next. A pass count is a sample, and a small sample says less than it seems to. The calculator gives two numbers: the range the agent’s true pass rate likely sits in, and how many trials it takes to see a failure that happens some fraction of the time.

The range for a pass rate

With k passes in n trials, the observed rate is p = k / n. The Wilson score interval puts the true rate between

(p + z²/2n ± z·√(p(1 − p)/n + z²/4n²)) / (1 + z²/n)

where z is 1.645, 1.960 or 2.576 for 90, 95 or 99 percent confidence. The simpler p ± z·√(p(1 − p)/n) breaks down at the ends: when every trial passes, its range has zero width. Wilson’s stays between 0 and 1 and still gives a range.

Trials to see a failure

If the agent fails a fraction r of trials, independently, n trials all pass with probability (1 − r)ⁿ. To see at least one failure with probability c, run

n = ⌈ln(1 − c) / ln(1 − r)⌉

trials. Three trials catch a failure that happens 1 in 10 runs only about a quarter of the time.

What it assumes

  • Trials are independent, and nothing changes between them: the same agent, model, prompt, settings and test.
  • The agent can fail at random. A deterministic agent passes or fails every trial the same way. The examples on our tool pages are deterministic on purpose, so one trial says as much as a hundred.
  • The range is for this test. A pass rate on one test says little about another.