1. Classical & Edwards Continuity-Corrected McNemar Chi-Square
\[ \chi^2_{\text{McNemar}} = \frac{(b - c)^2}{b + c}, \qquad \chi^2_{\text{Corrected}} = \frac{(|b - c| - 1)^2}{b + c} \quad (\text{df} = 1) \]
π¬ Read it in plain English: McNemar's statistic squares the net imbalance between the two switcher cells (b and c) and divides by the total number of switchers; Edwards's correction subtracts 1 from the numerator gap so the continuous chi-square curve better matches discrete headcounts.
a, d
Subjects whose binary outcome did not change between Condition A and Condition B.
b
Count of subjects who were Positive under Condition A but switched to Negative under Condition B.
c
Count of subjects who were Negative under Condition A and switched to Positive under Condition B.
Ο2McNemar
Uncorrected chi-square statistic (df = 1) testing Hβ: p_b = p_c.
Ο2Corrected
Continuity-corrected chi-square statistic that reduces false positives in moderate samples.
2. Exact Binomial Test & Discordant Odds Ratio
\[ p_{\text{exact}} = 2 \sum_{k=0}^{\min(b,c)} \binom{b+c}{k} (0.5)^{b+c}, \qquad \text{OR}_{\text{McNemar}} = \frac{c}{b} \]
π¬ Read it in plain English: Under the null hypothesis of no net shift, every switcher is a 50/50 coin flip between b and cβthe exact binomial test sums those exact coin-flip probabilities, while the discordant odds ratio (c / b) tells you how many times more likely a switcher was to move positive than negative.
pexact
Exact two-tailed probability from Binomial(n = b + c, p = 0.5), capped at 1.0.
ORMcNemar
Ratio of positive switchers to negative switchers (c / b); OR = 1.0 indicates symmetric switching.
b + c
Effective sample size of switchers governing the power of McNemarβs test.
(c β b) / N
Difference between Condition B positive rate (a + c)/N and Condition A positive rate (a + b)/N.