Before–after symptom change, a = 40, b = 25, c = 8, d = 27
The discordant pairs are b = 25 (symptom resolved) and c = 8 (symptom appeared): 33 of the 100 patients changed. The concordant 67 patients set the proportions — 65.0% had the symptom before, 48.0% after — but only the 33 changers enter the test.
- Read off the discordant counts: b = 25, c = 8, so b + c = 33 and b − c = 17.
- Chi-square form, uncorrected: χ² = (25 − 8)² / 33 = 289 / 33 = 8.758, on 1 degree of freedom, giving p = 0.0031.
- Chi-square form with the Edwards continuity correction: χ² = (|25 − 8| − 1)² / 33 = 256 / 33 = 7.758, giving p = 0.0053 — the correction moves the p-value up, as it always does.
- Exact form: the smaller discordant count is 8, tested against a binomial distribution with 33 trials and probability 0.5. The two-sided probability of a split this uneven or worse is p = 0.0046 — sitting between the two chi-square figures, closer to the corrected one.
- Choose what to report: b + c = 33 is at or above 25, so the chi-square form is dependable here and any of the three p-values supports the same conclusion. The paired odds ratio is 25 / 8 = 3.125, and the net change is 48.0% − 65.0% = −17.0 percentage points.
All three forms agree that the change is statistically significant: patients were about 3.1 times as likely to lose the symptom as to gain it, and the symptom's prevalence fell by 17.0 percentage points. Try other splits in the explorer below — with b + c under 25, watch the verdict switch to the exact p.