Week 10 Self-Paced Module: Statistical Reliability of Prompt Evals — How Much Does a Pass Prove?
CSIC30216 · Fall 2026
Overview
In the lab you built a 10-case suite and watched most of it fail. This module is about the other direction: what you are allowed to conclude when tests pass, when two prompts score differently, or when you re-run a test and get a different answer. It needs no statistics background; every calculation is a few lines, and the video shows the numbers.
Why This Matters
A red cell in a test table is easy to act on: you read the output and fix the prompt. A green table is the dangerous one, because it feels like proof. Five clean runs of a test does not mean the failure rate is zero — it means a failure rate up to about 45% has not been ruled out at the usual confidence level. Fifty runs across ten tickets are not fifty pieces of evidence, because repeats of the same ticket are clustered: the number that actually sets your uncertainty is the number of distinct tickets, not the number of runs. And a prompt that fixes five failing tickets and breaks none can still fall short of statistical significance at ten tests. None of this means small suites are useless — they are excellent at finding failures, which is exactly what the lab used them for. It means knowing the difference between a suite that finds problems and a suite that certifies success, so the claim you write about your own prompt is one the evidence actually supports.
Format and Timing
- Framing video (24 minutes, posted on E3).
- Required reading — three items: a paper on adding error bars to evals, an Anthropic engineering article on demystifying evals, and a short clinical note on the rule of three (~38 minutes combined). Linked below.
- Multiple choice questions (單一選擇題) — four questions on E3, about 10 minutes.
- Total estimated time: ~60 minutes
- Complete by Sunday, November 15.
What You'll Learn
- Two sources of uncertainty — randomness in the model's output when you re-run the same test (run-to-run noise), and the limited sample of test cases you happened to write (test-sample noise). Repeats fix the first; writing more distinct tests fixes the second.
- What a clean run really proves — after n clean runs, the exact 95% upper bound on the failure rate is 1 − 0.05^(1/n): about 45% after 5 clean runs, about 26% after 10. The rule of three (roughly 3 ÷ n) is a useful approximation for larger n, not a certificate of zero failures.
- A pass rate has an interval, not a point — a suite result like 9 of 10 is an estimate, with a 95% confidence interval of roughly 55% to 99.7%. Small suites are good at finding failures and poor at certifying success; keeping those two jobs separate is the point.
- Repeats are not new tests (clustering) — 10 tests × 5 repeats is 50 runs, but not 50 independent pieces of evidence, because the five repeats of one ticket share that ticket. The number that sets your uncertainty is the number of distinct tickets tested, not the number of runs.
- What repeats are actually good for — detecting flaky tests, separating whether a failure comes from the prompt or from sampling, and steadying a comparison between two prompts. Not for lowering the temperature just to make the table look stable.
- Comparing two prompts on the same tests (paired comparison) — only the tickets that changed from fail to pass or pass to fail carry information about which prompt is better. An exact sign test on the changed tickets tells you whether the result is established or just suggestive — five tickets improved and none worse can still fall short of the usual significance line.
- Other ways the number misleads — tuning the prompt until your own tests pass (keep some held out), a suite that saturates at 100% (which only guards against regressions), model updates changing results with no prompt edit, and a test set drawn from your imagination rather than real tickets.
- Writing an honest reliability claim — report the number of distinct test cases, the number of repeats, the interval (or the limit of a small suite), and which cases were held out.
Required Materials
- Framing video: posted on E3 under Week 10 Self-Paced Modules.
- Reading: Miller (2024), “Adding Error Bars to Evals: A Statistical Approach to Language Model Evaluations” (~17 minutes) — read Section 1 (Introduction); Section 2 (Analysis framework: independent questions, and the idea of clustering, without the formulas); Section 4 (Comparing models: unpaired and paired analysis); Section 5 (Power analysis — skim the idea, skip the derivations); and Section 6 (Conclusion). Skip the appendices.
- Reading: Anthropic Engineering (January 2026), “Demystifying evals for AI agents” (~14 minutes) — read: The structure of an evaluation; Capability vs. regression evals; How to think about non-determinism in evaluations for agents; and from the roadmap, Collect tasks for the initial eval dataset and Maintain and use the eval long-term (look for the passages on eval saturation). Skim the sections on specific agent types.
- Reading: Phillips (2005), “Towards evidence based medicine for paediatricians”, Archimedes series (~7 minutes) — read only the short section on the rule of three (zero events, upper limit 3/n, worked examples). Skip the rest of the article.
- Multiple choice questions: posted on E3 under Week 10 Self-Paced Module Response.
Optional Materials
If you want to go deeper on any of these topics (not required, but helpful if you're curious):
- Madaan et al. (2024), “Quantifying Variance in Evaluation Benchmarks” — measures how much benchmark scores vary between model training runs, and finds that benchmarks with few items show high variance. It is about training seeds rather than prompts, so read it for the idea that small benchmarks are noisy, not for your own numbers.
- Newman (1995), “If Almost Nothing Goes Wrong, Is Almost Everything All Right? Interpreting Small Numerators”, JAMA — a short letter responding to the original 1983 rule-of-three article. States the 3/N rule and gives examples.
- Thinking Machines, “Defeating Nondeterminism in LLM Inference” (2025) — On why some model outputs vary even at temperature 0.