Explainer
Paired comparison
A paired comparison runs two versions on the same cases and compares their verdicts case by case, not only their totals.
It is also called a paired test, a case-by-case comparison or an A/B on the same cases. Every case lands in one of four piles. Illustration: versions A and B on the invented 1,000 cases from the first guide.
- Both pass: 845.
- Only A passes: 45.
- Only B passes: 60.
- Both fail: 50.
A passes 890 (845 plus 45) and B passes 905 (845 plus 60). Only the 105 changed cases carry the difference; the other 895 add nothing to it. Sixty gains minus 45 losses is B’s lead of 15 cases, 1.5 percentage points of 1,000.
The same totals can hide opposite stories. Totals of 890 and 905 could come from 15 gains and no losses. Here it comes from 60 gains and 45 losses, and the first guide’s table shows one place they hide: Hindi fell from 80 to 50 of 100.
A live A/B test differs: users are split, and each request gets one version only, so nothing is paired. Anthropic’s agent-evaluation guide describes it as “Comparing variants with real user traffic”. Because both versions face the same questions, a paired test “lets us eliminate the variance in question difficulty” (Anthropic’s statistics post).
Going deeper
A name to recognize: McNemar’s test, for paired pass or fail results, uses only the two changed piles (discordant pairs); statsmodels describes them as cases “zero in one sample but one in the other sample”. Miller recommends “using the paired version of the standard error estimate wherever practicable.” Here B’s gain of 1.5 points has an approximate 95% range from 0.5 points worse to 3.5 points better, so B could be worse. See confidence intervals.
In Evaluations in practice: Compare two versions case by case. Then sort the piles yourself in the case-by-case exercise.