What does McNemar's test do?
hardAnswer
- Paired categorical (usually binary) test.
- Compares proportions in matched pairs.
- From a 2×2 table of concordant / discordant pairs, approximately (or exact binomial for small counts).
- Uses: classifier comparison on the same test set (does model A get more test items right than model B?), before / after intervention on the same subjects.
Check yourself — multiple choice
- Independent categorical
- Paired binary test on discordant pairs (b, c) → ~ ; used for classifier comparison on shared test set
- Same as chi-square independence
- Only continuous
McNemar: paired binary test on discordant pairs; classifier comparison on shared test set.
#hypothesis-testing#non-parametric
Practise Statistics Fundamentals
215 interview questions in this topic.