For paired binary observations , let count pairs and pairs . Under the null hypothesis of equal marginal event probabilities, these discordant outcomes have equal probabilities. Conditional on , has the binomial distribution , giving an exact test. For enough discordant pairs, has an approximate standard normal distribution, or its square has an approximate one-degree-of-freedom chi-squared distribution. Concordant pairs provide no information about the direction of the marginal difference. If there are no discordant pairs, there is no directional information and the divided statistic is not computed. The pairing and independence between pairs are essential; the usual independent-two-sample formula is not a paired test.
Let a paired binary table have cells and . The uncorrected McNemar test is , while the ordinary independent-sample chi-squared test on the two marginal allele columns is . For nonzero difference and positive denominators, they coincide exactly when . Such numerical coincidence does not justify discarding pairing; altering concordant counts can change the unpaired statistic while leaving McNemar's statistic unchanged.
// Target: biology.bigb
For a paired binary difference , set and . Then and . Under equal marginal probabilities the variance is . The McNemar test has approximate upper rejection boundary for the sum of differences. Requiring that the alternative mean exceed this boundary by gives the displayed planning size for a positive alternative, neglecting its very small lower-tail rejection probability. Use for a pre-specified one-sided test. The marginal probabilities alone do not determine : co-occurrence of positive outcomes must be specified or bounded. Discreteness and clustered data can change achieved statistical power.
Articles by others on the same topic
There are currently no matching articles.