Minimum Sample Size for a Domain-Specific Eval: A Power Analysis Guide

Minimum Sample Size for a Domain-Specific Eval: A Power Analysis Guide

Most domain-specific evals are under-powered. Not because researchers don't care about statistical rigor, but because the question of minimum sample size for a domain-specific eval rarely gets a concrete, operational answer. You pick 100 tasks because it feels reasonable. You report accuracy to two decimal places. And then a model update shifts your numbers by three points and you don't know whether that's signal or noise.

This guide gives you the framework to answer the sample size question before you author a single task. It covers the power analysis inputs specific to LLM evals, the formulas you can apply today, and the failure modes that make domain-specific evals statistically weaker than they look.

Answer Capsule: The minimum sample size for a domain-specific LLM eval depends on four inputs: the smallest effect size you want to detect, your target statistical power (typically 0.80), your significance threshold (typically 0.05), and the baseline accuracy of the models you're comparing. For a two-proportion z-test comparing two models at 70% vs. 80% accuracy, with power 0.80 and alpha 0.05, you need roughly 290 tasks per condition. Smaller domains or harder tasks require adjustments for inter-rater reliability and task clustering.

Why Standard Power Analysis Doesn't Transfer Directly to LLM Evals

Standard power analysis assumes independent, identically distributed observations. LLM eval tasks violate this in at least three ways.

Task clustering. Tasks authored by the same expert, drawn from the same textbook chapter, or testing the same sub-skill are not independent. If you have 200 tasks but 40 of them probe the same failure mode, your effective sample size is smaller than 200. This is the design effect problem familiar from survey sampling, and it applies directly to evals.

Non-binary outcomes. Many domain evals use partial-credit rubrics or LLM-as-judge scores rather than binary pass/fail. The variance of a proportion-based test statistic is maximized at 0.5 and shrinks toward the extremes. If your rubric produces scores clustered near 0 or 1, the effective variance is lower, which sounds helpful but often masks ceiling or floor effects rather than reflecting true model capability.

Model variance across samples. A single model run on the same task produces different outputs. Pass@k accounts for this by estimating the probability that at least one of k samples is correct, but most eval pipelines report pass@1 and treat it as deterministic. The sampling variance of the model itself adds noise that is invisible in a single-pass eval.

The Core Formula: Two-Proportion Z-Test

For the most common eval comparison, two models or two conditions on binary-scored tasks, the two-proportion z-test gives a tractable closed-form estimate.

Let p1 be the expected accuracy of the weaker model and p2 be the expected accuracy of the stronger model. The pooled proportion is:

p_bar = (p1 + p2) / 2

Where z_alpha/2 = 1.96 for alpha = 0.05 (two-tailed) and z_beta = 0.84 for power = 0.80.

This gives n per condition. For a one-condition eval (measuring absolute accuracy against a threshold), use a one-proportion z-test instead, with the null hypothesis accuracy as p0.

The formula tells you something important: the denominator is the square of the effect size. Halving the effect size you want to detect quadruples your required sample. This is why evals designed to detect 2-3 point differences between frontier models require thousands of tasks, not hundreds.

Power Analysis Inputs Specific to Domain Evals

Before you run the formula, you need to specify four inputs. Each one has domain-specific considerations.

1. Baseline accuracy (p1)

Pilot on 20-30 tasks before committing to full authoring. Frontier model accuracy on genuinely hard domain tasks often falls in the 30-60% range on first attempt, which is a very different variance regime than the 85-95% range you see on saturated benchmarks. Your power calculation should use the pilot estimate, not an assumption carried over from general benchmarks.

2. Minimum detectable effect (MDE)

Define the smallest difference that would change a decision. For post-training teams, this is usually a business or research threshold: "we want to detect improvements of 5 percentage points or more." For eval-only work, it might be "we want to distinguish two model families with confidence." Smaller MDEs require larger samples. There is no statistically correct MDE; it is a decision, not a discovery.

3. Power (1 - beta)

0.80 is the conventional floor. For high-stakes eval decisions (selecting a model for deployment, deciding whether to continue a training run), 0.90 is more defensible. Moving from 0.80 to 0.90 power increases required sample size by roughly 25%.

4. Design effect for task clustering (DEFF)

If tasks cluster by sub-domain, author or difficulty stratum, multiply your raw n by the design effect: DEFF = 1 + (m - 1) * ICC, where m is the average cluster size and ICC is the intraclass correlation of task scores within clusters. In practice, ICC for tasks from the same sub-domain is often 0.1-0.3. For clusters of 10 tasks, this inflates required sample size by 10-30%.

Worked Example: CNC/CAM G-Code Verification Eval

Illustrative example: numbers are plausible but constructed for demonstration.

Suppose you're building an eval for G-code generation, specifically whether a model can produce collision-free toolpaths for 3-axis milling given a part drawing and material spec. You pilot on 25 tasks and find that a frontier model achieves 55% pass rate on a binary verifier (simulated toolpath runs without collision or exceeding feed-rate limits).

You want to detect a 10-point improvement (p1 = 0.55, p2 = 0.65) with power 0.80 and alpha 0.05.

p_bar = (0.55 + 0.65) / 2 = 0.60<p></p>
<p>Numerator term 1: 1.96 * sqrt(2 * 0.60 * 0.40) = 1.96 * 0.693 = 1.358<br>Numerator term 2: 0.84 * sqrt(0.55<em>0.45 + 0.65</em>0.35)<br>= 0.84 * sqrt(0.2475 + 0.2275)<br>= 0.84 * sqrt(0.475)<br>= 0.84 * 0.689 = 0.579</p>

Tasks are authored by three CNC instructors, averaging 125 tasks each (cluster size m = 125). If ICC within-instructor is 0.15, DEFF = 1 + (125-1) * 0.15 = 19.6. That would inflate n to over 7,000, which is clearly impractical.

The correct response is not to ignore clustering but to stratify: ensure each instructor authors tasks across all sub-domains (roughing, finishing, threading, pocketing), reducing within-cluster homogeneity and bringing ICC closer to 0.05. At ICC = 0.05 and cluster size 30 per sub-domain per instructor, DEFF = 1 + 29 * 0.05 = 2.45. Required n becomes 375 * 2.45 = 919 tasks per condition. That's a real authoring target.

Common Failure Modes in Domain Eval Sample Sizing

1. Using benchmark n as a prior without checking difficulty

Detection: Your pilot accuracy is below 65% or above 85%, but you're using a sample size calculated for a 70% baseline.

Fix: Always run a 20-30 task pilot and recalculate n from your observed p1 before commissioning full authoring.

2. Ignoring task clustering

Detection: Tasks are authored by a small number of experts or drawn from a small number of source materials, and you haven't computed a design effect.

Fix: Estimate ICC from pilot data by fitting a one-way ANOVA on task scores grouped by author or source; use the resulting ICC to compute DEFF.

3. Treating rubric scores as continuous when they're ordinal

Detection: You're using a 1-5 rubric and running a t-test.

Fix: Either collapse to binary (pass/fail at a threshold) and use a proportion test, or use a non-parametric test (Mann-Whitney U) and adjust your power calculation accordingly. Non-parametric tests require roughly 15% more observations than their parametric equivalents at the same power level.

4. Confusing pass@k with pass@1 in the power calculation

Detection: Your eval reports pass@k but your sample size was calculated for a single-pass binary outcome.

Fix: The Chen et al. (2021) HumanEval paper defines pass@k with an unbiased estimator. Use that estimator and note that variance of pass@k depends on k and n jointly. For k greater than 1, you need to specify both the number of tasks and the number of samples per task in your power calculation.

5. Not accounting for difficulty drift

Detection: Your eval was calibrated six months ago and model accuracy has risen significantly since.

Fix: Schedule re-calibration passes against current frontier models at fixed intervals. Difficulty is a property of the task-model pair, not of the task alone. An eval that was well-powered at p1 = 0.55 may be under-powered at p1 = 0.80 because the variance regime has shifted and the effective MDE has changed.

6. Single-model calibration

Detection: You calibrated difficulty against one model family.

Fix: Run your pilot against at least two distinct model families. Task difficulty is not model-agnostic; a task that's hard for one architecture may be trivially easy for another. Power calculations should use the worst-case (highest) p1 across your target model set.

Where This Breaks Down

Power analysis gives you a minimum task count for a specific statistical test under specific assumptions. It does not guarantee that your eval is valid, only that it is adequately powered given your assumptions. Three limits are worth naming explicitly.

First, if your verifier or rubric has low inter-rater reliability, increasing n doesn't help. Measurement error attenuates the signal. Fix the rubric before scaling the task count.

Second, power analysis assumes you know p1. In a genuinely novel domain, you don't. Your pilot estimate has its own uncertainty. A 95% confidence interval on p1 from 25 tasks is wide enough to shift your required n by a factor of two or more. Treat the power calculation as a planning tool, not a guarantee.

Third, these methods assume you're testing a fixed hypothesis. Exploratory evals, where you're looking for failure modes rather than testing a specific accuracy claim, don't map cleanly onto hypothesis-testing power analysis. For exploratory work, focus on coverage of the task space rather than statistical power.

For more on how task authoring decisions interact with eval validity, see our writing on expert-authored evals and evaluation design.

FAQ

What is the minimum number of tasks for a valid LLM eval?

There is no universal minimum. The required number depends on your baseline accuracy, the effect size you want to detect, your power target, and your task clustering structure. For a two-model comparison detecting a 10-point difference at 70% baseline with power 0.80, the two-proportion z-test gives roughly 290 tasks per condition before adjusting for clustering. Smaller effects or higher power targets require more.

How do I estimate baseline accuracy before authoring tasks?

Run a pilot of 20-30 tasks against your target model or models. Use tasks that represent the full difficulty range you intend to cover. Record pass rates per model and per task sub-type. Use the observed pass rate as p1 in your power calculation. Do not borrow baseline estimates from unrelated benchmarks; domain-specific accuracy varies widely from general-purpose benchmark performance.

Does pass@k change the sample size calculation?

Yes. Pass@k is an unbiased estimator of the probability that at least one of k samples is correct, as defined in the HumanEval paper by Chen et al. (2021). When k is greater than 1, each task contributes k model samples, and the variance of the estimator depends on both n (number of tasks) and k (samples per task). You need to specify both in your power calculation, not just n.

How do I handle inter-rater disagreement in the power calculation?

Disagreement between raters inflates measurement error and reduces effective signal. Compute Cohen's kappa or percent agreement on a calibration set before scaling. If kappa is below 0.70, refine the rubric before running power analysis. Low reliability means your observed accuracy is a noisy estimate of true accuracy, and no sample size calculation can compensate for that noise at the source.

When should I use a one-proportion test instead of a two-proportion test?

Use a one-proportion z-test when you're measuring a single model against a fixed threshold, for example "does this model exceed 70% on our eval." Use a two-proportion z-test when comparing two models or two training conditions. The one-proportion test requires fewer tasks for the same power because you're not estimating variance for a second condition.

How often should I recalibrate task difficulty?

Difficulty should be recalibrated whenever frontier model performance on your domain shifts materially, typically every three to six months for fast-moving domains. A task that required 400 items to power adequately at p1 = 0.55 may need a different task set entirely if models now solve it at p1 = 0.85. Difficulty is not a fixed property of a task; it's a property of the task-model pair at a point in time.

What This Means in Practice

Getting the sample size right is upstream of everything else in eval design. An under-powered eval doesn't just produce noisy results; it produces results that look precise while hiding real uncertainty. The two-proportion z-test, adjusted for task clustering and rubric reliability, gives you a defensible authoring target before you spend expert time on task creation. Run the pilot. Estimate your ICC. Compute your DEFF. Then commission tasks.

The operational detail here, clustering effects, difficulty drift, rubric reliability as a prerequisite, is what separates a well-designed domain eval from a headcount exercise. Chiron Data Labs builds evals from this foundation, with empirical difficulty calibration and expert authoring designed to maintain headroom as frontier models improve.

If you're designing evals or RL environments in a specialist domain, get in touch with Chiron Data Labs to talk through your task requirements.

Most domain-specific evals are under-powered. Not because researchers don't care about statistical rigor, but because the question of minimum sample size for a domain-specific eval rarely gets a concrete, operational answer. You pick 100 tasks because it feels reasonable. You report accuracy to two decimal places. And then a model update shifts your numbers by three points and you don't know whether that's signal or noise.

This guide gives you the framework to answer the sample size question before you author a single task. It covers the power analysis inputs specific to LLM evals, the formulas you can apply today, and the failure modes that make domain-specific evals statistically weaker than they look.

Answer Capsule: The minimum sample size for a domain-specific LLM eval depends on four inputs: the smallest effect size you want to detect, your target statistical power (typically 0.80), your significance threshold (typically 0.05), and the baseline accuracy of the models you're comparing. For a two-proportion z-test comparing two models at 70% vs. 80% accuracy, with power 0.80 and alpha 0.05, you need roughly 290 tasks per condition. Smaller domains or harder tasks require adjustments for inter-rater reliability and task clustering.

Why Standard Power Analysis Doesn't Transfer Directly to LLM Evals

Standard power analysis assumes independent, identically distributed observations. LLM eval tasks violate this in at least three ways.

Task clustering. Tasks authored by the same expert, drawn from the same textbook chapter, or testing the same sub-skill are not independent. If you have 200 tasks but 40 of them probe the same failure mode, your effective sample size is smaller than 200. This is the design effect problem familiar from survey sampling, and it applies directly to evals.

Non-binary outcomes. Many domain evals use partial-credit rubrics or LLM-as-judge scores rather than binary pass/fail. The variance of a proportion-based test statistic is maximized at 0.5 and shrinks toward the extremes. If your rubric produces scores clustered near 0 or 1, the effective variance is lower, which sounds helpful but often masks ceiling or floor effects rather than reflecting true model capability.

Model variance across samples. A single model run on the same task produces different outputs. Pass@k accounts for this by estimating the probability that at least one of k samples is correct, but most eval pipelines report pass@1 and treat it as deterministic. The sampling variance of the model itself adds noise that is invisible in a single-pass eval.

The Core Formula: Two-Proportion Z-Test

For the most common eval comparison, two models or two conditions on binary-scored tasks, the two-proportion z-test gives a tractable closed-form estimate.

Let p1 be the expected accuracy of the weaker model and p2 be the expected accuracy of the stronger model. The pooled proportion is:

p_bar = (p1 + p2) / 2

Where z_alpha/2 = 1.96 for alpha = 0.05 (two-tailed) and z_beta = 0.84 for power = 0.80.

This gives n per condition. For a one-condition eval (measuring absolute accuracy against a threshold), use a one-proportion z-test instead, with the null hypothesis accuracy as p0.

The formula tells you something important: the denominator is the square of the effect size. Halving the effect size you want to detect quadruples your required sample. This is why evals designed to detect 2-3 point differences between frontier models require thousands of tasks, not hundreds.

Power Analysis Inputs Specific to Domain Evals

Before you run the formula, you need to specify four inputs. Each one has domain-specific considerations.

1. Baseline accuracy (p1)

Pilot on 20-30 tasks before committing to full authoring. Frontier model accuracy on genuinely hard domain tasks often falls in the 30-60% range on first attempt, which is a very different variance regime than the 85-95% range you see on saturated benchmarks. Your power calculation should use the pilot estimate, not an assumption carried over from general benchmarks.

2. Minimum detectable effect (MDE)

Define the smallest difference that would change a decision. For post-training teams, this is usually a business or research threshold: "we want to detect improvements of 5 percentage points or more." For eval-only work, it might be "we want to distinguish two model families with confidence." Smaller MDEs require larger samples. There is no statistically correct MDE; it is a decision, not a discovery.

3. Power (1 - beta)

0.80 is the conventional floor. For high-stakes eval decisions (selecting a model for deployment, deciding whether to continue a training run), 0.90 is more defensible. Moving from 0.80 to 0.90 power increases required sample size by roughly 25%.

4. Design effect for task clustering (DEFF)

If tasks cluster by sub-domain, author or difficulty stratum, multiply your raw n by the design effect: DEFF = 1 + (m - 1) * ICC, where m is the average cluster size and ICC is the intraclass correlation of task scores within clusters. In practice, ICC for tasks from the same sub-domain is often 0.1-0.3. For clusters of 10 tasks, this inflates required sample size by 10-30%.

Worked Example: CNC/CAM G-Code Verification Eval

Illustrative example: numbers are plausible but constructed for demonstration.

Suppose you're building an eval for G-code generation, specifically whether a model can produce collision-free toolpaths for 3-axis milling given a part drawing and material spec. You pilot on 25 tasks and find that a frontier model achieves 55% pass rate on a binary verifier (simulated toolpath runs without collision or exceeding feed-rate limits).

You want to detect a 10-point improvement (p1 = 0.55, p2 = 0.65) with power 0.80 and alpha 0.05.

p_bar = (0.55 + 0.65) / 2 = 0.60<p></p>
<p>Numerator term 1: 1.96 * sqrt(2 * 0.60 * 0.40) = 1.96 * 0.693 = 1.358<br>Numerator term 2: 0.84 * sqrt(0.55<em>0.45 + 0.65</em>0.35)<br>= 0.84 * sqrt(0.2475 + 0.2275)<br>= 0.84 * sqrt(0.475)<br>= 0.84 * 0.689 = 0.579</p>

Tasks are authored by three CNC instructors, averaging 125 tasks each (cluster size m = 125). If ICC within-instructor is 0.15, DEFF = 1 + (125-1) * 0.15 = 19.6. That would inflate n to over 7,000, which is clearly impractical.

The correct response is not to ignore clustering but to stratify: ensure each instructor authors tasks across all sub-domains (roughing, finishing, threading, pocketing), reducing within-cluster homogeneity and bringing ICC closer to 0.05. At ICC = 0.05 and cluster size 30 per sub-domain per instructor, DEFF = 1 + 29 * 0.05 = 2.45. Required n becomes 375 * 2.45 = 919 tasks per condition. That's a real authoring target.

Common Failure Modes in Domain Eval Sample Sizing

1. Using benchmark n as a prior without checking difficulty

Detection: Your pilot accuracy is below 65% or above 85%, but you're using a sample size calculated for a 70% baseline.

Fix: Always run a 20-30 task pilot and recalculate n from your observed p1 before commissioning full authoring.

2. Ignoring task clustering

Detection: Tasks are authored by a small number of experts or drawn from a small number of source materials, and you haven't computed a design effect.

Fix: Estimate ICC from pilot data by fitting a one-way ANOVA on task scores grouped by author or source; use the resulting ICC to compute DEFF.

3. Treating rubric scores as continuous when they're ordinal

Detection: You're using a 1-5 rubric and running a t-test.

Fix: Either collapse to binary (pass/fail at a threshold) and use a proportion test, or use a non-parametric test (Mann-Whitney U) and adjust your power calculation accordingly. Non-parametric tests require roughly 15% more observations than their parametric equivalents at the same power level.

4. Confusing pass@k with pass@1 in the power calculation

Detection: Your eval reports pass@k but your sample size was calculated for a single-pass binary outcome.

Fix: The Chen et al. (2021) HumanEval paper defines pass@k with an unbiased estimator. Use that estimator and note that variance of pass@k depends on k and n jointly. For k greater than 1, you need to specify both the number of tasks and the number of samples per task in your power calculation.

5. Not accounting for difficulty drift

Detection: Your eval was calibrated six months ago and model accuracy has risen significantly since.

Fix: Schedule re-calibration passes against current frontier models at fixed intervals. Difficulty is a property of the task-model pair, not of the task alone. An eval that was well-powered at p1 = 0.55 may be under-powered at p1 = 0.80 because the variance regime has shifted and the effective MDE has changed.

6. Single-model calibration

Detection: You calibrated difficulty against one model family.

Fix: Run your pilot against at least two distinct model families. Task difficulty is not model-agnostic; a task that's hard for one architecture may be trivially easy for another. Power calculations should use the worst-case (highest) p1 across your target model set.

Where This Breaks Down

Power analysis gives you a minimum task count for a specific statistical test under specific assumptions. It does not guarantee that your eval is valid, only that it is adequately powered given your assumptions. Three limits are worth naming explicitly.

First, if your verifier or rubric has low inter-rater reliability, increasing n doesn't help. Measurement error attenuates the signal. Fix the rubric before scaling the task count.

Second, power analysis assumes you know p1. In a genuinely novel domain, you don't. Your pilot estimate has its own uncertainty. A 95% confidence interval on p1 from 25 tasks is wide enough to shift your required n by a factor of two or more. Treat the power calculation as a planning tool, not a guarantee.

Third, these methods assume you're testing a fixed hypothesis. Exploratory evals, where you're looking for failure modes rather than testing a specific accuracy claim, don't map cleanly onto hypothesis-testing power analysis. For exploratory work, focus on coverage of the task space rather than statistical power.

For more on how task authoring decisions interact with eval validity, see our writing on expert-authored evals and evaluation design.

FAQ

What is the minimum number of tasks for a valid LLM eval?

There is no universal minimum. The required number depends on your baseline accuracy, the effect size you want to detect, your power target, and your task clustering structure. For a two-model comparison detecting a 10-point difference at 70% baseline with power 0.80, the two-proportion z-test gives roughly 290 tasks per condition before adjusting for clustering. Smaller effects or higher power targets require more.

How do I estimate baseline accuracy before authoring tasks?

Run a pilot of 20-30 tasks against your target model or models. Use tasks that represent the full difficulty range you intend to cover. Record pass rates per model and per task sub-type. Use the observed pass rate as p1 in your power calculation. Do not borrow baseline estimates from unrelated benchmarks; domain-specific accuracy varies widely from general-purpose benchmark performance.

Does pass@k change the sample size calculation?

Yes. Pass@k is an unbiased estimator of the probability that at least one of k samples is correct, as defined in the HumanEval paper by Chen et al. (2021). When k is greater than 1, each task contributes k model samples, and the variance of the estimator depends on both n (number of tasks) and k (samples per task). You need to specify both in your power calculation, not just n.

How do I handle inter-rater disagreement in the power calculation?

Disagreement between raters inflates measurement error and reduces effective signal. Compute Cohen's kappa or percent agreement on a calibration set before scaling. If kappa is below 0.70, refine the rubric before running power analysis. Low reliability means your observed accuracy is a noisy estimate of true accuracy, and no sample size calculation can compensate for that noise at the source.

When should I use a one-proportion test instead of a two-proportion test?

Use a one-proportion z-test when you're measuring a single model against a fixed threshold, for example "does this model exceed 70% on our eval." Use a two-proportion z-test when comparing two models or two training conditions. The one-proportion test requires fewer tasks for the same power because you're not estimating variance for a second condition.

How often should I recalibrate task difficulty?

Difficulty should be recalibrated whenever frontier model performance on your domain shifts materially, typically every three to six months for fast-moving domains. A task that required 400 items to power adequately at p1 = 0.55 may need a different task set entirely if models now solve it at p1 = 0.85. Difficulty is not a fixed property of a task; it's a property of the task-model pair at a point in time.

What This Means in Practice

Getting the sample size right is upstream of everything else in eval design. An under-powered eval doesn't just produce noisy results; it produces results that look precise while hiding real uncertainty. The two-proportion z-test, adjusted for task clustering and rubric reliability, gives you a defensible authoring target before you spend expert time on task creation. Run the pilot. Estimate your ICC. Compute your DEFF. Then commission tasks.

The operational detail here, clustering effects, difficulty drift, rubric reliability as a prerequisite, is what separates a well-designed domain eval from a headcount exercise. Chiron Data Labs builds evals from this foundation, with empirical difficulty calibration and expert authoring designed to maintain headroom as frontier models improve.

If you're designing evals or RL environments in a specialist domain, get in touch with Chiron Data Labs to talk through your task requirements.

© 2026 CHIRON, SAN FRANCISCO, CA