Worked Example: Worked Mathematical Example: McNemar’s Paired χ² Test
Test paired nominal shifts via McNemar’s χ², continuity-corrected χ², and matched Odds Ratio.
- Specify the function parameters, matrix entries, or confusion matrix counts.
- Apply the closed-form or iterative formula: χ²_McNemar = (b − c)² / (b + c); χ²_Edwards = (|b − c| − 1)² / (b + c); OR_matched = b / c.
- Examine the primary result, error bounds, and 3 interactive SVG plots.
Result: Computes McNemar’s Paired χ² Test via χ²_McNemar = (b − c)² / (b + c); χ²_Edwards = (|b − c| − 1)² / (b + c); OR_matched = b / c.
Mathematics & Statistics · Non-Parametric & Hypothesis Testing
McNemar’s Paired Chi-Square Test (χ² = (b − c)²/(b + c)) & Exact Discordant Odds Calculator: inputs, method, and how to read the result
Test paired nominal shifts via McNemar’s χ², continuity-corrected χ², and matched Odds Ratio.
Choose inputs for the case you are checking
The defaults are illustrative. Replace them with values for your case and keep the units shown beside each field.
- Discordant Neg To Pos Cell B: Discordant pairs shifting Pre-Negative → Post-Positive (cell b).
- Discordant Pos To Neg Cell C: Discordant pairs shifting Pre-Positive → Post-Negative (cell c).
- Concordant Pairs A Plus D: Concordant pairs remaining unchanged (a + d).
What the calculation includes
With the default values shown, McNemar’s Chi-Square Statistic (df = 1) is 8.526 χ². The calculation follows McNemar’s Paired χ² Test Formula; the formula and variable definitions above show how the inputs combine.
One-input check: With the other defaults held constant, changing Discordant Neg To Pos Cell B from 28 cell b to 31 cell b changes McNemar’s Chi-Square Statistic (df = 1) from 8.526 χ² to 10.756 χ². This is a comparison inside the calculator's stated model, not a prediction.
Where to use caution
- Uses exact analytical or standard numerical analysis formulations from NIST DLMF.
- Double-precision floating-point arithmetic has ~15–17 significant decimal digits of precision.
Scope: Global Mathematical & Statistical Standard Check the assumptions and limitations against your situation before relying on the estimate.
More in Mathematics & Statistics: Scientific Calculator, Statistics & Standard Deviation Calculator, Permutations, Combinations, Probability, Sample Size & P-Value Calculator.