McNemar's Test Calculator
Calculate exact two-sided McNemar p value from the two discordant cell counts of paired binary observations with explicit coherent-SI inputs, dimensional checks
McNemar's Test Calculator
Background.
McNemar's Test Calculator evaluates exact two-sided McNemar p value from the two discordant cell counts of paired binary observations. The page keeps every model input visible and uses the relationship p = 2 × P[Binomial(b+c, 0.5) ≤ min(b,c)], capped at 1. It is designed for a transparent calculation where the quantities have already been measured or selected from an appropriate source. It does not choose a material, operating condition, reference state, or empirical coefficient on the user's behalf.
Enter discordant count b, discordant count c in the units printed beside the fields. These are coherent SI quantities, so the displayed equation can be followed without a hidden unit factor. A result is only comparable with another source when the same quantity definitions, reference conditions, and sign or magnitude convention are used. Record those conditions whenever the number supports engineering, laboratory, or coursework decisions.
The calculator performs arithmetic with Decimal.js and rounds once at the output boundary to twelve significant digits. That protects very small and very large scientific results from early decimal-place rounding. The tests do more than pin one example: they check the dimensional scaling implied by each variable, finite and positive domain guards, several orders of magnitude, and the formula-engine registration used by the live page.
Exact equal-discordance test for paired binary observations; it ignores concordant cells by design and does not establish pairing quality, independence between pairs, effect size, confidence interval, multiplicity, or causal interpretation. The scope statement appears beside the numerical result because it changes how the answer may be used. A neat number does not remove uncertainty in measurements, material properties, geometry, calibration, or the assumptions used to reduce a real system to one equation.
Use scaling as a quick reasonableness check. If an input appears in the numerator, increasing it should move the result in the same direction; a denominator should move it in the opposite direction; a square-root term changes more slowly. If the page behaves differently from the displayed relationship, stop and review the units. The calculator rejects zero, negative, infinite, and nonnumeric quantities where the equation requires a positive magnitude.
What is mcnemar's test calculator?
McNemar's Test Calculator is a transparent implementation of p = 2 × P[Binomial(b+c, 0.5) ≤ min(b,c)], capped at 1 for exact two-sided McNemar p value from the two discordant cell counts of paired binary observations.
How to use this calculator.
- Confirm that the displayed quantity equation matches the model you intend to use.
- Convert every measurement to the SI unit printed beside its field.
- Enter sourced magnitudes and keep their reference conditions with the result.
- Read the numeric result together with the model-scope output.
- Round the reported value to the uncertainty supported by the inputs.
The formula.
The implementation evaluates p = 2 × P[Binomial(b+c, 0.5) ≤ min(b,c)], capped at 1 with Decimal.js. Inputs are required to be finite and positive because this page treats them as magnitudes. Arithmetic is not rounded between operations; each numeric output is rounded once to twelve significant digits. The scaling tests independently verify the power of every input in the equation.
A worked example.
Using the displayed default inputs in p = 2 × P[Binomial(b+c, 0.5) ≤ min(b,c)], capped at 1 gives exactTwoSidedPValue = 0.0768127441406. The calculation retains Decimal precision and rounds once at the result boundary.
Frequently asked questions.
What equation does this mcnemar's test calculator use?
Why must all inputs use the displayed units?
When should I not use this result?
References& sources.
How this page was produced
- Published by
- Quanta Calculator
- Primary sources
- 3 cited below
- Method
- p = 2 × P[Binomial(b+c, 0.5) ≤ min(b,c)], capped at 1
- Published
- Last verified
Built with AI assistance and verified by automated tests against the cited sources — every worked example on this page is computed by the same code that runs the calculator. How we build and check calculators.
In this category
Embed
Quanta Pro
Paid features are coming later.
- All 1120 calculators remain free
- No billing is enabled