
Skill
braintrust-size-eval-dataset
calculate evaluation dataset sample sizes
Description
Calculate or audit eval sample sizes, minimum detectable effects, confidence interval precision, required repeated runs, and clean-trial counts for bounding rare failures. Use when a user asks how many eval cases, items, scenarios, runs, or safety trials are needed, whether an existing dataset is adequately powered, whether N examples can detect an X-point gain, or how many clean trials certify a low violation rate. Account for paired designs, clustering, target confidence, and practical effect size. Do not use for general dataset composition.
SKILL.md
Size the dataset
Contract: references/interaction-contract.md. Calibration, templates, provenance: references/power-analysis.md.
Trigger
- "How many eval cases do we need?" / "Can 200 examples detect a 3-point gain?"
- "How many clean trials certify a low failure rate?"
- A null result that needs distinguishing from an underpowered one.
Do
- Classify the goal first — it selects the method: detect a difference, estimate a rate, or bound a rare failure.
- Take the minimum meaningful effect from the release gate's magnitude criterion, not from what the data shows. Ask only if genuinely absent.
- Compute N with the method and anchors in
reference.md, applying the design effect for clustered items — related variants are fewer items than they look. - Multiply through the whole matrix: items × arms × runs (K ≥ 3 for gating), and check the product against every quota and credit balance in the path before anyone starts.
- Report a sensitivity range, not a single number, and close with the plain-language decision implication.
Avoid
- Do not return a sample size without stating the practical effect, baseline rate, risk tolerance, clustering, pairing, confidence, and power assumptions.
- Do not use the normal approximation near 0 or 1 — use Wilson, which is exactly the safety-rate case.
- Do not design content here.
- Do not let a cheap smoke run over a handful of items be quoted as evidence about which option is better. It verifies plumbing, nothing else.
Check
- Goal type identified; method named; inputs shown; every assumption listed with its source.
- Design effect applied for clustered or repeated-variant items.
- Sensitivity range alongside the point answer.
- A plain sentence stating what the resulting N can and cannot establish.
Risk
- Treating correlated variants as independent overstates precision more than any other single error in eval reporting.
- Normal approximations near zero produce impossible bounds and false safety assurances.
- Powering for the effect you hope for rather than the effect worth acting on guarantees an ambiguous result.
- An underpowered eval and a real null produce the identical sentence: "no measurable effect."
Braintrust
Shared mechanics: references/platform-mechanics.md. Pairing is what buys the sample-size
reduction, and §3 makes it a platform decision rather than a later statistical one — a design
sized for pairing silently reverts to the unpaired requirement if the arms were never pinned. So
the N you compute here is only achievable if the experiment design honors that.
Planned N and achieved N diverge routinely, which makes the §2 read-safety checks a sizing concern and not just an analysis one: a truncated pull looks exactly like an underpowered run, and the two call for opposite responses. K runs means K recorded trials (§7); the worst run is what a latency or reliability gate reads.
More skills from the eval-library repository
View all 24 skillsbraintrust-analyze-eval-experiment
analyze LLM and agent eval experiments
Aug 20AnalysisBraintrustEvalsLLM +1braintrust-attribute-multi-variable-change
attribute performance changes to multiple variables
Aug 20AnalysisBraintrustEvalsLLM +1braintrust-build-eval-dataset
create and manage LLM eval datasets
Aug 20AgentsBraintrustDatasetsEvals +1braintrust-define-eval-objective
define LLM evaluation objectives
Aug 20BraintrustEvalsLLMProduct Management +1braintrust-define-eval-release-gate
configure release gates for LLM applications
Aug 20AgentsBraintrustCI/CDEvals +1braintrust-deploy-evaluator
deploy evaluators to Braintrust
Aug 20BraintrustDeploymentEvals
More from Braintrust
View publishertroubleshoot-braintrust-mcp
configure and troubleshoot Braintrust MCP servers
braintrust-claude-plugin
Jul 12BraintrustDebuggingMCPbraintrust-design-eval-experiment
design controlled LLM eval experiments
eval-library
Aug 20BraintrustEvalsExperimentsLLM +1braintrust-design-eval-instrumentation
design trace and evaluation dataset schemas
eval-library
Aug 20BraintrustDatasetsEvalsObservability +1braintrust-design-eval-metric-bundle
create multi-objective evaluation metric bundles
eval-library
Aug 20AgentsBraintrustEvalsLLM +1braintrust-design-human-eval-review
design human evaluation and review workflows
eval-library
Aug 20AgentsBraintrustDatasetsEvals +1braintrust-discover-agent-failures
identify and classify agent failure modes
eval-library
Aug 20AgentsBraintrustDebuggingEvals +1