13.21
McNemar's test applies to paired nominal data presented in two-by-two contingency tables. This is a special case of randomized block design, where individuals are evaluated only twice.
For example, an ant species is evaluated in an experimental setting for its response to the artificial odor of its potential prey.
30 individuals are subjected to test arenas measuring 5 and 10 cm, one half of which is infused with the odor, and the other is a control.
The ants that move toward the odor are scored +, and the ones that move towards the control are scored -. Next, the two-by-two contingency table for 5 and 10 cm arenas is as follows.
Here, the null hypothesis is that the proportions in these two trials are the same, mathematically expressed as follows. If the change in the proportion between two trials is significant, the null hypothesis is rejected.
McNemar's test statistic is computed by the following expression.
As these values approximate chi-square distribution, the degree of freedom is one, and there is no evidence of any significant change in the behavioral response.
McNemar's Test is a nonparametric statistical test used to determine if there is a significant difference in proportions between two related groups wh…
Copyright © 2026 MyJoVE Corporation. All rights reserved.