Which test is most appropriate for determining if a binary-metric LLM eval drop is statistically significant?
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
McNemar's test is the right tool: the data is paired (same examples, two models) and binary (pass/fail), and it tests only the off-diagonal disagreement cells.
Imagine two graders mark the same 200 exam papers as pass or fail, and you want to know whether one grader is genuinely harsher or just unlucky. You ignore the papers both graders agree on, because those tell you nothing about a difference. You look only at the papers where the two disagree: one says pass, the other says fail. If almost all the disagreements lean one way, the harsher grader is really different. If they split evenly, the gap is probably noise. That is exactly what McNemar's test does for two model versions scored on the same fixed eval set: it counts the disagreements and asks whether their lopsidedness is too big to be chance.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
5 min: why a fixed eval set is paired binary data, the McNemar 2x2 table and statistic, why each distractor is wrong, then the CI gate, judge-nondeterminism, and multiple-comparison wrinkles.
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Reaching for a two-sample t-test on a fixed eval set. The same examples run under both models, so the outcomes are paired, not independent. A paired test is required.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.