Evals
Statistics for evals
Confidence intervals, run-to-run variance and sample sizes — so “v2 is better” means something.
What it is and why it exists
An 82% vs 79% pass rate on 100 items is noise. Bootstrap confidence intervals over items, paired comparisons on the same items, multiple runs per item to measure non-determinism, and enough items for the effect size you care about.
Quick prototype
Compare two averages.
In production, at scale
Report scores with 95% intervals, use paired tests (same items, both versions), estimate required sample size before building the set, and repeat runs for agents (pass^k).
Vendors and tools
| SciPy / statsmodels | Bootstrap and tests |
|---|---|
| Eval platforms | Increasingly show intervals |
How it fails
- Shipping a “win” that was random variation
What the interviewer asks next
Roughly how many items to detect a 5-point difference?
For independent samples around 80% pass, roughly a thousand per arm at 80% power; paired designs on the same items need fewer. With 100 items you can only see large effects (~15+ points).