← all posts
statistics·Lukas Babaliauskas·Aug 13, 2026·updated Nov 17, 2026·14 min read

How many eval cases do you need?

Suite size is the wrong question: n is counted per prompt, evaluator and slice. What the analysis drops, and how many pairs a verdict needs.

Size an eval suite from the comparisons it has to decide, not from a round total. Give every (prompt, evaluator, slice) group you would act on at least 20 paired cases after the rows that cannot be scored drop out, and know that 20 pairs only catch big effects: a paired test needs about 200 to catch a small one. The suite size is whatever falls out of that arithmetic, plus a cushion.

Everyone asks the question the same way: how many examples does a golden suite need? Fifty? Two hundred? The number that actually decides whether your run can say anything is n inside one comparison, and the suite is chopped into comparisons before a single statistic is computed.

This is where most first suites disappoint. Two hundred examples feel serious, come back inconclusive, and nobody can explain why. Here is how n is counted, what is dropped before counting, and how many pairs it takes to see a difference of a given size.

A disclosure: I build EvalShift, a tool for testing model changes on agents, and the thresholds in this post are the ones it uses. It has a short section at the end. The method before it works with any eval stack.

Why is suite size the wrong number?

Because nothing is tested at the suite level. A paired comparison groups the per-example deltas, target_score - source_score, by prompt, evaluator and slice, and tests each group on its own, with its own n.

So a 200-example suite run across 3 prompts, scored by 4 evaluators, sliced 3 ways is not one comparison with n=200. It is up to 36 comparisons, each drawing on the rows that match its slice. Give the smallest slice 15 examples and that column of the matrix is stuck at n=15 no matter how impressive the suite total looks.

Small sets are normal, even among well-known benchmarks. HumanEval is 164 hand-written programming problems ↗, MT-Bench is 80 multi-turn questions ↗, GPQA Diamond is 198 questions ↗, and τ-bench has 115 retail tasks and 50 airline tasks ↗. Each of those is one comparison per pair of models; your suite gets sliced before it is tested.

Work backwards from the groups you care about, not forwards from a round suite size. Twenty pairs per group is where I stop putting an asterisk on a result, and below five there is nothing worth testing.

How many pairs does one comparison need?

As many as the smallest difference you need to see demands. For a paired test at the usual 5% significance level and 80% power, that is about 7.85 divided by the squared effect size: 13 pairs for a large effect, 32 for a medium one and 197 for a small one.

The formula is Equation 9 in Evan Miller's Adding Error Bars to Evals ↗: n = (z_α/2 + z_β)² × σ² / δ², where δ is the difference you want to detect and σ² is the variance of the per-example deltas. Dividing δ by σ gives the paired effect size d (Cohen's d on the deltas), and (1.96 + 0.84)² ≈ 7.85, so n ≈ 7.85 / d². The exact t-distribution, which matters at small n, adds two pairs: 15, 34 and 199 for d = 0.8, 0.5 and 0.2.

Run it the other way and you get the smallest effect a fixed suite can see. Miller's worked example assumes a delta variance of 1/9 on a 0–1 score and finds that a 3-point difference needs about 969 questions, which is why he suggests new evals "should contain at least 1,000 questions".

Pairs in the comparisonA public set this sizeSmallest d found 80% of the timeSame, in points of a 0–1 score
10—0.8929.5
20—0.6320.9
50τ-bench airline0.4013.2
80MT-Bench0.3110.4
164HumanEval0.227.3
198GPQA Diamond0.206.6
1,000Miller's suggested minimum0.093.0

Computed with Miller's Equation 9 at α = 0.05 and 80% power (normal approximation). The points column uses his example variance of 1/9, so read it as an illustration, not as a property of those benchmarks.

So 20 pairs is a floor, not a target. It finds a d of about 0.63, a regression big enough that you would probably notice it reading a handful of outputs. A paired t-test on 20 pairs misses a medium regression (d = 0.5) about 44% of the time. Size each comparison for the smallest effect that would change your decision.

Pairing is what keeps those numbers affordable. Anthropic reports that question scores of frontier models on popular evals correlate "between 0.3 and 0.7" ↗, and in Miller's example a correlation of 0.5 cuts the variance of the difference by a third against an unpaired comparison. Always run both models on the same examples and test the deltas.

The research record is a warning about how often this goes unchecked. In With Little Power Comes Great Responsibility ↗, Card et al. found that 69% of the EMNLP 2019 human evaluations they surveyed used 100 items or fewer, and that only 46% of the published GLUE comparisons they re-analyzed would have predicted adequate power. Even a 2,000-sentence translation test set has about 75% power to detect a 1 BLEU difference.

Why does effect size matter as much as the p-value?

Because a significant result can be too small to act on, and a large one can miss significance on a thin suite. Report a paired effect size next to every p-value, and let both decide how loudly a comparison speaks.

Cohen's d on the deltas, mean(deltas) / std(deltas), is the natural one, with Cohen's conventional 0.2, 0.5 and 0.8 for small, medium and large. A tiered rule (block on a large significant regression, warn on a medium one, note a small one) turns it into a gate.

That ladder is the sizing question restated: a suite sized to catch only d > 0.8 will sail past the medium drift that annoys users every day. Small effects need more pairs, and no amount of confidence in the config substitutes for them.

Pick the test from the shape of the deltas. Judge deltas confined to +1/0/−1 are rarely normal, so a Wilcoxon signed-rank test or a bootstrap interval is safer there than a t-test; continuous scores usually suit the t-test.

Which rows drop out before you count?

More than you expect. Rows that cannot be scored, truncated calls and failed evaluator calls all leave the sample before n is computed, and rows that share a source count for less than one each.

The n a comparison is tested at is smaller than the number of examples you wrote, and the gap is deliberate:

  • +Rows an evaluator measured nothing on (a tool-only turn handed to a text evaluator, say) should write no score at all. They leave the test, the slice aggregates and any rate budget, and the report should say how many left.
  • +Truncated calls, the ones that hit max_tokens, belong out of the statistics, because a cut-off answer scores badly for a reason that has nothing to do with the model's quality.
  • +Evaluator-side failures (a judge call that broke, an embedding request that errored) should be recorded as errors and excluded. A flaky judge then shrinks n and drifts a comparison toward "not enough data", which is visible, instead of poisoning the mean, which is not.
+

When nothing survives, the comparison is unmeasured, and it must never read as "no change". Unmeasured is not equivalent: a blocking evaluator that measured nothing never enforced its gate, so a run that leans on it should not pass cleanly.

Correlated rows are the quieter loss. Ten cases cut from one long conversation, or five questions about one document, carry less information than ten or five independent ones. On DROP, Miller measured clustered standard errors at 3.05 times the naive ones, and Anthropic's summary puts it as "over three times as large". If cases share a source, count the sources, or use clustered standard errors.

Do more slices make a run more sensitive?

No. Each slice splits the same rows into smaller groups, and every extra comparison raises the bar each one has to clear.

Slicing is how you find the regression that only hits Spanish, or only hits tool-heavy turns. It costs twice. First, it splits the same rows into more, smaller groups, the fastest way to convert a healthy comparison into three uncertain ones.

Second, testing many comparisons at once needs a multiple-comparison correction. I use Benjamini-Hochberg ↗ at a false discovery rate of 0.05 across all comparisons in the run. More comparisons means each one clears a stricter bar to stay significant. Slice because a subgroup can move independently and you would act on it, not because the tag existed in your data.

Should you run each case more than once?

If the model's answers vary between runs, yes: repeats shrink the noise inside each case. They do not add pairs, so they cannot rescue a comparison that has too few cases.

Miller's resampling section ↗ works the numbers for binary scores. In his example, two samples per question cut the variance of the mean by a third, four cut it by half, and the limit is two thirds. In his power example with 198 questions, going from 1 to 10 samples per question lowers the minimum detectable effect from 13.2% to 7.5%.

Agents need this more than chat prompts do. τ-bench found that even gpt-4o agents are inconsistent across trials, with pass^8 (all eight trials of a task succeed) below 25% in the retail domain.

Average the repeats into one score per case before you test. Pooling every sample as if it were its own example overstates n, because several answers to the same question are not independent draws.

How many cases does a rate budget need?

More than a mean comparison does, because a rate over a few cases has a wide interval. With a 95% Wilson interval, a 3% budget needs 3 failures out of 30 before a breach is confirmed, and about 125 clean cases before you can show the rate is under 3%.

A rate budget, such as "no more than 3% of cases may regress", should be judged with an interval, not a point. The Wilson score interval is the standard choice for small samples, and NIST's handbook ↗ gives its formula and notes that its lower limit cannot be negative, unlike the textbook p ± z√(p(1−p)/n).

A breach is confirmed when the interval's lower bound clears the budget. While the interval still spans the budget, the honest answer is inconclusive, and the reason is the suite, not the model. One bad example in 30 is 3.3%, over a 3% budget, but its interval runs from 0.6% to 16.7%.

Suite sizeObserved rate near 3% and its 95% intervalFailures that confirm a breach of 3%Upper bound with zero failures
301 (3.3%): 0.6%–16.7%3 (10.0%)11.4%
1003 (3.0%): 1.0%–8.5%7 (7.0%)3.7%
3009 (3.0%): 1.6%–5.6%15 (5.0%)1.3%
1,00030 (3.0%): 2.1%–4.3%41 (4.1%)0.4%

Computed with the Wilson formula in the NIST handbook, z = 1.96. The third column is the fewest failures whose lower bound exceeds 3%; the last is the upper bound when no case fails, z² / (n + z²).

Cost and latency budgets are different. They are ratios over the calls the run actually made, not rates over sampled outcomes, so they are exact and always conclusive.

A sizing rule that survives contact

Count the comparisons you would act on, give each enough pairs for the smallest effect that would change your decision, add a cushion for attrition, and slice sparingly.

  1. +List the comparisons you would actually act on: the (prompt, evaluator, slice) triples where a regression would change your decision. That count, not the example count, is the shape of the run.
  2. +Pick the smallest effect that matters and read its pair count off the first table. Twenty pairs is the floor for a result without an asterisk, about 32 catch a medium effect and about 200 a small one; below five you get no answer at all.
  3. +Add headroom for what gets dropped: non-applicable rows, truncations, evaluator errors. A 25% cushion is not paranoid on agent suites, and where cases share a source, count the sources.
  4. +Start with fewer slices than you think you want. You can always split a slice later; you cannot un-spend the correction budget on slices nobody read.
  5. +Check the bill before the run. A paired run costs prompts × examples × samples per case × 2 models, so settle the suite's structure before paying for model calls, and cache responses so reruns that changed nothing are free.

The honest version of "how many cases do I need" is: enough that the comparisons you would act on each hold twenty pairs after attrition, and more where the effect you fear is small. For most teams that is a smaller, sharper suite than the one they were planning, and one that comes back with a verdict instead of a shrug.

Doing this with EvalShift

Disclosure again: I'm the founder. Everything above is how the analysis in EvalShift works, and these are the names and numbers it uses.

  • +Groups. Deltas are grouped by (prompt_id, evaluator_name, slice_name), and every group is tested on its own.
  • +Thresholds. MIN_N_FOR_TEST = 5: below five pairs the comparison is skipped with severity insufficient, scored as "not measured", not as "no change". MIN_N_RELIABLE = 20: between 5 and 20 it is tested but flagged uncertain. Zero variance (std < 1e-9) is skipped with severity none, because every delta was identical.
  • +Attrition. Non-applicable rows are noted as "K of N rows not applicable", max_tokens truncations are excluded, and evaluator failures are stored as errored and excluded. When nothing survives, the comparison reports n=0 with a note prefixed nothing measured:, never severity none, and the policy downgrades an otherwise-passing verdict to conditional_pass when a gating comparison carries that note.
  • +Tests. Shapiro-Wilk on the deltas at α=0.05 picks a paired t-test or a Wilcoxon signed-rank test, and is skipped above n=5000, where the CLT justifies a t-test outright. The 95% CI on d is analytical after a t-test and a seeded percentile bootstrap after Wilcoxon.
  • +Correction. Benjamini-Hochberg runs at α=0.05 across every tested comparison in the run. Slices holding identical (prompt, evaluator, example) triples collapse to one first, so duplicating a slice under two names buys nothing.
  • +Repeats. defaults.samples_per_example (1 to 20) sends each case that many times to each model and scores the mean. The paired tests still run over examples, so n is unchanged.
  • +Rate budgets. The migration_policy rate budgets (max_overall_regression_rate, min_equivalence_rate, max_tool_argument_drift) carry a 95% Wilson interval, and a breach the interval cannot confirm returns inconclusive. Cost and latency budgets are exact.

Severity comes from the FDR-corrected p-value together with paired Cohen's d:

SeverityRule
criticalregression, p < .01 and d below −0.8
highsignificant regression, d below −0.5
mediumsignificant regression, d below −0.2
lowsignificant regression, small effect
improvedsignificant and positive

A paired run is prompts × examples × 2 models, and the CLI asks for confirmation above a $10 estimate (--yes or EVALSHIFT_NONINTERACTIVE skips it). Iterate on suite structure without a single model call: evalshift doctor checks the config and the environment, and evalshift validate, now a hidden debug command, cross-checks config, suite, and prompts and prints each problem. The 7-day response cache absorbs the reruns where structure did not change.

FAQ

How many examples does an LLM eval suite need? Enough that every comparison you would act on holds about 20 paired observations after attrition, and more if the effect you need to catch is small. Because deltas are grouped per prompt, evaluator and slice, the suite total matters far less than the size of the smallest group. A paired test at 80% power needs about 13 pairs for a large effect, 32 for a medium one and 197 for a small one.

Why did my eval run come back inconclusive? Either every comparison was insufficient, or a rate budget was breached without the 95% Wilson confidence interval confirming it. Both are suite-size answers: the run is saying it cannot distinguish the result from noise, not that the models are equivalent.

Do more slices make an eval run more sensitive? No — they make it less sensitive per comparison. Slices split the same rows into smaller groups, and every testable comparison goes through a Benjamini-Hochberg FDR correction at alpha=0.05 across the whole run, so adding comparisons raises the bar each one has to clear.

Which rows are excluded from eval statistics? Rows an evaluator marked non-applicable are dropped before n is computed and noted in the report; calls truncated at max_tokens are excluded; and records where the evaluator itself errored are stored as errored and excluded. When nothing survives, the comparison reports a nothing-measured note rather than severity none.

Does running each example several times increase n? No. Repeats average into one score per example, so they reduce the noise inside each case without adding pairs. In Miller's example, 10 samples per question instead of 1 lowered the minimum detectable effect on 198 questions from 13.2% to 7.5%, but a comparison with too few examples still needs more examples.

Keep reading