Skip to content
Log in

Free resources · For developers

How many test cases do you need to tell two setups apart?

A simulation on 240 real graded replies shows how many cases it took to tell two setups apart. 20 to 50 tasks is the usual advice.

How many cases do you need to start?

The usual start is "20-50 simple tasks drawn from real failures". In early agent development, a "large effect size means small sample sizes suffice". More mature agents "may need larger, more difficult evals to detect smaller effects".

What was simulated?

We used 240 real graded replies from Claude Haiku. Each had either followed three reply rules or not. We took two pairs of setups and drew their true pass rates from what we observed. Then we drew 5, 10, 20, 30 or 50 cases and counted how often the better setup scored strictly higher. A big gap: rules in CLAUDE.md, 43 of 60 followed, against rules plus a Stop hook, 58 of 60. A small gap: a 201-line CLAUDE.md, 40 of 60, against a 5-line one, 51 of 60.

What happened?

The better setup scored strictly higher in this share of trials:

Ties are not wins, and not wrong answers either. With 5 cases the big pair tied 22 percent of the time and the small pair 24 percent.

What does it mean?

At a bar of 90 percent, the big gap needed 12 cases and the small gap needed 37. The bar is a judgment, not a rule. Anthropic's 20 to 50 is enough for both, though the small gap needs the upper half of it. The small gap needed more cases than the big gap.

How far can this be trusted?

What we would do

  1. Start with 20 to 50 cases from your own real failures.
  2. Run the calculator in the kit with your two scores. It prints the smallest number of cases that clears the bar.
  3. If you cannot afford that many, make the two setups differ more, or accept that a small score difference is not reliable.

Check

Learn it step by step: Write the evals first

Sources

Sign up for membership to see the sources.