Compare matched binary outcomes with clear decision indicators, confidence intervals, and business-ready reporting.
π¨βπ« Professor Mode: Guided Learning Experience
New to paired categorical tests? Enable Professor Mode for step-by-step guidance through McNemar's test for matched-pair data!
QUICK START: Choose Your Path
π
Use a Case Study
💼 Real Marketing McNemar Scenarios
Select a preset scenario to explore real-world matched-pair comparisons with authentic marketing metrics and business context.
πUse a Case Studyclick to switch
π€
Upload Your Data
Upload a file to populate the table above β row-level raw data or a pre-summarized file.
Upload row-level matched outcomes. Each row should contain Condition A and Condition B outcomes.
Drag & Drop raw data file (.csv, .tsv, .txt, .xls, .xlsx)
Two columns with headers (Condition A, Condition B); entries can be text labels or 0/1 outcomes.
No raw file uploaded.
Upload a single-row CSV with condition labels, outcome labels, and the four cell counts.
Drag & Drop summary file (.csv, .tsv, .txt, .xls, .xlsx)
One header row + one data row with columns for labels and counts (a_positive_b_positive, a_positive_b_negative, a_negative_b_positive, a_negative_b_negative).
No summary file uploaded.
π€Upload Your Dataclick to switch
INPUTS & SETTINGS
Matched Outcome Table
π What goes in each cell?
Cell a: Subjects positive on both conditions (concordant)
Cell b: Positive on A, Negative on B (switcher β)
Cell c: Negative on A, Positive on B (β switcher)
Cell d: Subjects negative on both conditions (concordant)
Key insight: McNemar's test only uses the highlighted switcher cells (b and c). The concordant cells (a and d) don't affect the test statistic.
Enter counts for each combination. Highlighted cells are the "switchers" that drive the test.
Condition BPositive
Negative
Condition APositive
a
Both positive
b
Switcher →
Negative
c
← Switcher
d
Both negative
Row 1 Total0
Row 2 Total0
Total Pairs0
Confidence Level & Reporting
Set the significance level for all McNemar reporting.
Analysis Settings
Stay with the default unless your testing doc specifies otherwise.
Statistic guidance
Chi-square (corrected): default, controls false positives when switchers are scarce.
Chi-square (no correction): use when you have 25+ switchers and want slightly more power.
Exact binomial: safest when you have only a handful of switchers.
Advanced: Override the statistic
YOUR DECISION
⏳
Enter data to see your result
We'll test if conditions differ in their success rates
p-value
—
α threshold
0.050
Odds Ratio
—
VISUAL OUTPUT
📊 How to read these charts
The contingency heatmap shows your 2×2 table visually. Darker cells indicate higher counts. The discordant pairs (b and c cells) drive the McNemar test—these are the "switchers" who changed their response between conditions.
Contingency Heatmap
TEST RESULTS
π‘ How to Interpret These Results
Reading the p-value and test statistic:
McNemar ΟΒ²: Measures the magnitude of asymmetry between discordant pairs. Larger values = stronger evidence that conditions differ.
p < 0.05: Strong evidence that the proportion of "positive" outcomes differs between conditions. Reject \(H_0\) (no difference).
p β₯ 0.05: Insufficient evidence. Cannot conclude conditions produce different success rates.
Very small p (< 0.001): Very strong evidence. The difference between conditions is highly unlikely due to chance.
Understanding the Odds Ratio (OR):
OR = b/c where b and c are the discordant pair counts
OR > 1: Condition A produces more "positive β negative" switches than Condition B (A favors positive outcomes)
OR < 1: Condition B produces more "negative β positive" switches (B favors positive outcomes)
OR β 1: No meaningful difference between conditions
The confidence interval shows the plausible range for the true OR. If it excludes 1, the difference is significant.
Understanding the 2Γ2 table cells:
Cell a (both positive): Same subjects responded "positive" under both conditions. Concordant β does NOT drive the test.
Cell d (both negative): Same subjects responded "negative" under both conditions. Concordant β does NOT drive the test.
Cell b (A+, Bβ): Subjects who were positive under Condition A but negative under Condition B. Discordant "switcher".
Cell c (Aβ, B+): Subjects who were negative under Condition A but positive under Condition B. Discordant "switcher".
McNemar's test only uses cells b and c. A significant result means "switching" is not symmetricβone condition outperforms the other.
Which method should I use?
Chi-square (corrected): Default choice. Reduces false positives when discordant pairs (b + c) are small (< 25).
Chi-square (no correction): Slightly more power when b + c β₯ 25. Use if you have plenty of switchers.
Exact binomial: Safest for very small samples (b + c < 10). Computes exact probability.
Method: –β
Test statistic: –β
Degrees of freedom: 1β
p-value: –β
Odds ratio (CI): –β
Decision (α): –β
Interpretation: –
APA-Style Statistical Reporting
Managerial Interpretation
Switcher Narrative
McNemar Test Output
Enter paired counts to run the test.
Summary Table
Cell
Count
Share of total
Notes
Enter counts to see the full table.
LEARNING RESOURCES
📚 When to use this test
Use McNemar's test when:
You have matched pairs of binary (yes/no) observations
The same subjects are measured under two different conditions
You want to test if the proportion of "positive" responses differs between conditions
Common examples: before/after studies, matched market tests, crossover designs
Why McNemar instead of Chi-Square?
Regular chi-square tests assume independent samples. McNemar's test accounts for the paired structure of your data, focusing only on the "discordant pairs" (subjects who switched their response between conditions).
⚠️ Common mistakes to avoid
Using chi-square for paired data: Regular chi-square ignores the matched structure and can give incorrect p-values.
Ignoring small sample sizes: When you have fewer than 25 discordant pairs, use the exact binomial test instead of the chi-square approximation.
Confusing cells: The "b" and "c" cells (discordant pairs) drive the test. The "a" and "d" cells (concordant pairs) don't contribute to the test statistic.
One-tailed vs. two-tailed: By default, McNemar's test is two-tailed. If you have a directional hypothesis, halve the p-value.
📐 How we calculate this (equations)
McNemar's test focuses on the "switchers"—pairs where the two conditions disagree: