Unit 10 of 12 · about 4 hours · derive, measure
Minimum meaningful change, regression thresholds and guardrail metrics
A higher point estimate is not automatically a useful improvement, and better average quality cannot compensate for forbidden effects. Define the decision rule before inspecting candidate results.
You'll be able to
- Predeclare a minimum meaningful change and compare candidate and baseline using paired item outcomes.
- Estimate the independent-item budget needed to detect a specified effect under stated assumptions.
- Combine primary verified success with non-compensating safety, schema, latency and resource guardrails.
Covers
Read
In this order, only the parts listed
0 of 2 done
- Paired change and detectable effectAdding Error Bars to Evals: A Statistical Approach to Language Model Evaluations
Section 4.2 Equations 7 and 8; Section 5 Equation 9 and its 969-question worked example (2024 v1)
Use the stated variance and independent-question assumptions. Equation 9 is a planning approximation, not a guarantee for clustered cases, repeated peeking or many simultaneous gates.
- Measure the whole workflow's constraintsAI Agents in Depth - Chapter 7
Section 7.6.1 Key Dimensions for Selection; Section 7.6.3 Cost Analysis of Agent Systems: Components of Cost and Cost Monitoring and Budget Control (live edition read 2026-10-18)
Skip Experiments 7-9 and 7-10, hosted-model pricing and published savings. Use local resource accounting and controlled timing fixtures; fakes do not measure model speed.
Focus on
- Freeze the baseline, paired item population, repeats, scorer and sampling policy. Compute candidate-minus-baseline differences per item, using source clusters for related items; inspect baseline-versus-baseline variation before attributing a lift.
- Choose a product-relevant margin before running the candidate. For an improvement gate, require the lower confidence bound of the paired change to exceed that margin; an interval crossing it is inconclusive, not proof of no change.
- Predeclare separate floors or regression tolerances for unauthorized effects, schema validity, tail latency, tool calls and resource cost. Record full-attempt latency including retries and failures; a composite weighted score must not hide a safety violation.
- Use a pilot variance estimate for power planning and disclose how many independent cases remain. Tiny smoke suites check plumbing; synthetic tokens and fake timing test accounting only, while local runtime depends on your hardware and load.
Common mistakes · 3
- Testing overlap of two marginal confidence intervals instead of calculating uncertainty on paired differences.
- Claiming equivalence because a superiority test is not significant. Non-inferiority or equivalence requires its own predeclared margin and test.
- Choosing the margin after seeing the candidate, or repeatedly rerunning until a favorable interval appears. Both invalidate the original decision interpretation.
Try it yourself
Closed-book, before checking anything
[0, 1, 0, 0, 0, 0]: the mean change and sample-SD-based SE are both about 0.166667, so the positive point estimate alone is weak evidence. Recompute Miller Equation 9 with paired variance one ninth, a three-percentage-point effect, two-sided significance 0.05 and power 0.8: about 968.9975 independent questions, rounded up to 969. Then implement a synthetic gate requiring a lower change bound above two percentage points plus complete evidence and all guardrails; verify that a safety violation holds even a candidate with a three-point lower bound.Quiz yourself
Answer first, then mark it. Missed ones go to Review.
0 got · 0 missed
1.The mean lift is positive but its interval includes harmful regressions. Ship?Answer
Not under an improvement gate. The evidence is inconclusive; collect planned independent evidence or hold the change.
2.Why is 969 not the required size of every evaluation?Answer
It follows from one example's variance, effect, significance, power and independence assumptions. Different tasks and cluster structure require different planning.
3.What does zero observed unauthorized effects establish?Answer
Only that none were observed in the evaluated cases. Report the denominator and residual risk; it is not proof that the true violation probability is zero.
You're done when
You reproduce the paired and power fixtures, justify your own margin and sampling unit, and demonstrate that missing evidence or a failed guardrail blocks an otherwise favorable comparison.
Only when you can do this without notes.
Leads to
Notes
Resources · 2 for this unit, 14 more in the section
- AI Agents in Depth - Chapter 7Bojie Li · required
Read the live Chapter 7: 7.1 (anatomy of a tau2-bench telecom task), 7.2.1 Pass@k and 7.2.2 Pass^k, 7.3, 7.4 (7.4.2 verifiers, 7.4.4 contamination, 7.4.5 quality control), 7.5.1 judges, 7.5.2 first-error localization, 7.5.4 position bias, 7.7 statistical significance, 7.8 and 7.10. It has no inter-rater agreement procedure; pair it with the judge sources.
- Adding Error Bars to Evals: A Statistical Approach to Language Model EvaluationsEvan Miller · required
Read Sections 2.2 (clustered standard errors, Equation 4), 4.2 (paired differences, Equation 7) and 5 (power, Equation 9). Compare systems on question-level paired differences from saved item scores, cluster by source item, and size the eval for the smallest effect you need to detect.
Also in this section
- Demystifying Evals for AI AgentsAnthropic · primary
Read "The structure of an evaluation" (task, trial, grader, transcript, outcome, harness, suite), "Types of graders for agents", "Capability vs. regression evals", the non-determinism section and the roadmap Steps 0 to 8. Its
0.75**3reliability example assumes independent trials at one fixed success probability; do not raise an aggregate success rate to a power. Apply it to one multi-step task with outcome checks on environment state. - AlgoMaster AI Engineering - Evaluation UnitsAlgoMaster · support
The owned premium lessons
agent-evaluation-and-testingandevaluating-rag-systems(about ten minutes each) are a short application-oriented pass after the Anthropic article. Recompute anything they report in your own harness and keep item-level evidence. - LLM Evals FAQ and LLM-as-a-Judge GuideHamel Husain and Shreya Shankar · required
Read the FAQ answers "What is a trace?", "How many examples do I need for an eval?", "How do I know if I can trust my automated eval?" and "How are evaluations used differently in CI/CD vs. monitoring production?", then the judge guide (
/blog/posts/llm-judge/) Steps 2, 3, 5 and 6. Do the open and axial coding of failures on your own traces before writing any judge. - AI Engineering Handbook - EvaluationHandbook Academy · support
Study Part 4 Eval Fundamentals and the evaluation, judge, regression, online-testing, tracing and feedback chapters in Part 8 (
/curriculum/evaluation-and-observability/). Use its taxonomies to check coverage, while keeping raw item-level artifacts as the source of truth. - Inspect AIUK AI Security Institute · required
Read tasks, datasets, solvers, scorers (
match,model_graded_qa: bind the grader model explicitly, or it falls back to the model under test), metrics (Epochsreducers;pass_at_kandpass_kdiffer) and eval logs (read_eval_log).mockllm/modelruns on CPU without keys for plumbing tests. Either implement one small suite in Inspect or map an independent harness to the same contracts. - Evaluating Large Language Models Trained on Code (pass@k estimator)Chen et al. · required
Read Section 2.1, Equation 1 and the numerically stable implementation in Figure 3 only. Estimate pass@k per task from n samples with c successes as
1 - C(n-c, k) / C(n, k), then average over tasks; the plug-in1 - (1 - c/n)**kis biased. Pass@k is not the all-k reliability that pass^k measures. - Judging LLM-as-a-Judge with MT-Bench and Chatbot ArenaZheng et al. · required
Read Sections 3.3 and 3.4 with Tables 2 and 3: position, verbosity and self-enhancement bias, and the swapped-order and randomized-position mitigations. The paper says it cannot determine whether self-enhancement exists, so treat it as a risk to test. Build swapped-order and padded-length fixtures for your judge.
- Who Validates the Validators? Aligning LLM-Assisted Evaluation of LLM Outputs with Human PreferencesShankar et al. · support
Read Section 7.3.1 on criteria drift and the coverage and false-failure-rate idea in Appendix A.3. Define coverage and false-failure rate from an explicit confusion matrix of human labels, since the v1 appendix notation is inconsistent, and keep exploratory rubric data apart from the locked set.
- Large Language Models are not Fair EvaluatorsWang et al. · support
Read Section 2 (position manipulation) and Section 3.2 Balanced Position Calibration, Equation 2: average each response's scores over both placements. Use it when you implement order-balanced judging.
- Cohen's Kappa (scikit-learn)scikit-learn · reference
Use the definition
kappa = (p_o - p_e) / (1 - p_e)with per-annotator marginals for two-reviewer agreement, and keep the confusion matrix beside the scalar. Agreement is not correctness, and no kappa threshold is a universal gate. - Length-Controlled AlpacaEval: A Simple Way to Debias Automatic EvaluatorsDubois et al. · depth
Read Section 3 with Equations 1 and 2 and the limitations in Section 5 after the basic swap and length tests pass. Length control changes the estimand; it is not dividing a win rate by output length.
- No Magic - microerrorbars.pyNo Magic · reference
Read this dependency-free script for the mechanics of standard errors and paired comparisons on eval scores, then implement the same checks on your own saved item-level results.
- tau-benchSierra Research · depth
At commit 59a200c, read README "Run", "User simulators" and "Historical trajectories", and
Env.calculate_rewardintau_bench/envs/base.py(database hash equality after replaying the reference actions, then required output substrings). The README says the tasks are not updated and points to tau2-bench. Inspect one stored trajectory instead of running the benchmark. - AI Engineering and Agentic Systems CheckpointRoadmap-Final · support
Use only the evaluation and debugging clauses as an adversarial checklist. Reserve the M5 integrated pass condition for AI-8.