Exact McNemar Discordant Pair Test
Compare paired binary outcomes using the discordant counts.
Processing stays in your browser. At most 1,000 discordant pairs. Counts must describe matched observations; independent groups need a different test. Concordant pairs do not enter this conditional calculation.
How to use the exact mcnemar discordant pair test
Start with the supplied example and review first-only positive count, second-only positive count. Replace it with your own data, choose Calculate, and check the result against the method and limits below. Copy or download only after review; edits clear the previous output.
How the tool works
Condition on the number of discordant pairs. Under equal marginal probabilities, their direction is binomial with probability one half. Double the lower tail up to the smaller discordant count, capped at one.
Worked example
View the example inputs
- First-only positive count
- 8
- Second-only positive count
- 2
Discordant counts 8 and 2 yield a two-sided exact p-value of 0.109375. If both counts are zero, the reported p-value is one.
Good to know
At most 1,000 discordant pairs. Counts must describe matched observations; independent groups need a different test. Concordant pairs do not enter this conditional calculation.
Sources and implementation notes
Implemented by DevBricks Technologies. Method notes updated . References describe the underlying format, method or API. Local processing runs on your device. Any public provider queries are described above and start when you run the lookup.
Match the calculation to the question and data
Define what one observation represents and whether observations are independent, paired, grouped or ordered in time. Keep the source data and identify missing values before calculating. Choose the method because it fits the study design, not because it produces a preferred number. A sample can be correctly formatted and still fail the assumptions required to generalize its result to a wider population.
Inputs and settings explained
- First-only positive count
- Enter a numeric value for first-only positive count, using the units and bounds indicated by the label and method notes. The demonstration uses 8. Check signs and scale before calculating; a percentage, fraction and whole-number count have different meanings.
See the demonstration value
8
- Second-only positive count
- Enter a numeric value for second-only positive count, using the units and bounds indicated by the label and method notes. The demonstration uses 2. Check signs and scale before calculating; a percentage, fraction and whole-number count have different meanings.
See the demonstration value
2
How to review the result
Inspect the sample size, units, effect direction and intermediate quantities alongside the final statistic. Check the result with a small example whose behavior is known. A correlation does not establish causation, a p-value does not measure effect size, and a narrow numerical result does not eliminate bias in data collection. Review sensitivity to unusual observations and document any exclusions. For model or process reports, distinguish a retrospective description of the supplied data from a validated prediction of future outcomes.
- Confirm the test or estimator matches the pairing, grouping and distribution assumptions.
- Check missing-value treatment and whether filtering changed the study population.
- Report the effect and uncertainty in context instead of relying on a single threshold.
Common questions about this workflow
Does a statistically significant result prove a useful effect?
No. Consider effect size, uncertainty, study design and the practical consequences of the finding. Repeated testing and selective reporting also affect interpretation. Use the specific assumptions and limitations explained for this calculation.
Can I use an example dataset as evidence about real users?
An example demonstrates how the calculation behaves. It does not establish a population fact. Use appropriately collected data and a suitable analysis plan when drawing conclusions beyond the demonstration.
Built by DevBricks Technologies. Found an unexpected result in Exact McNemar Discordant Pair Test? Report a reproducible example with the tool URL, settings and a small sample that contains no private information.