Your eval shows Model B scores 82.1% vs Model A at 80.5% on 200 test cases. Your manager wants to ship Model B immediately. What question should you ask first?
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Ask whether the 1.6pp gap is statistically significant. With 200 test cases, the confidence interval may be wider than the observed difference.
Imagine flipping two coins 200 times each. One lands heads 82 times and the other 80. You would not bet money that the first coin is truly heavier on the heads side, because the difference is so small it could easily be luck. The same logic applies to model scores. With only 200 test cases, a 1.6-point gap might just be noise. Before shipping, you need a statistical test to check whether the gap is real or could vanish if you tested on a different 200 examples.
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.
Start with the coin-flip intuition: 200 examples, 1.6-point gap, wide CI. Walk through the paired bootstrap mechanics (resample pairs, compute difference, build CI). Contrast paired vs unpaired tests. Name McNemar as the parametric alternative for binary outcomes. Discuss the false-positive model swap risk. Close with the distinction between statistical and practical significance, and name optional stopping as the pitfall when chasing a p-value.
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.
Treating any positive score difference as a real improvement without checking whether the gap exceeds the confidence interval for the sample size.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.