1001Ferramentas
🔁 Calculators

McNemar's Test (Paired)

Computes McNemar's test, used to compare two paired proportions — when the same subjects are measured twice (before and after, or by two methods). Unlike the two-proportion test, which treats the groups as independent, McNemar looks only at the cases that switched classification (the discordant cells b and c of the 2×2 table), ignoring those that stayed the same. The continuity-corrected version follows a chi-square with 1 degree of freedom. Enter the two discordant counts.

Resultado

McNemar's Test (Paired)

Computes McNemar's test, used to compare two paired proportions — when the same subjects are measured twice (before and after, or by two methods). Unlike the two-proportion test, which treats the groups as independent, McNemar looks only at the cases that switched classification (the discordant cells b and c of the 2×2 table), ignoring those that stayed the same. The continuity-corrected version follows a chi-square with 1 degree of freedom. Enter the two discordant counts.

Comparing proportions when the data are paired

Picture measuring the same people's opinion before and after a campaign, or classifying the same exams by two different methods. The two sets of answers aren't independent — they come from the same individuals. Applying the two-proportion test here would be a mistake, because it assumes independence. McNemar's test is the right tool for paired data.

McNemar's insight is to look only at who changed. In a two-by-two table of before versus after, the diagonal cells, which agree, carry no information about change; all that matters are the two discordant cells, b and c, where the classification flipped one way or the other. If the change were symmetric, b and c would be similar; a large difference between them is what the test detects.

Enter the two discordant counts, b and c. The tool computes the continuity-corrected chi-square statistic, which follows a chi-square with one degree of freedom. The correction subtracts one from the absolute difference before squaring, making the test a bit more conservative, which helps when the number of discordances is modest.

Related Tools

🔗

Paired t-Test

Computes the paired t-test, used when you measure the same subjects twice — before and after a treatment, or by two methods. It works with the differences of each pair and tests whether the mean difference is compatible with zero. By removing the variability between subjects, it's usually far more powerful than comparing two independent groups. The tool returns the t statistic, the degrees of freedom and the two-sided p-value. Enter the two paired series.

🔲

Chi-Square Test of Independence

Computes the chi-square test of independence for a contingency table, checking whether two categorical variables are associated or independent. For example: does preference for a product depend on age group? The test compares the observed frequencies with those that would be expected if there were no relationship at all, and the chi-square statistic measures the size of that mismatch. The tool returns the statistic, the degrees of freedom and the p-value. Enter the table: columns by comma, rows by semicolon.

📉

One-Sample Variance Test (Chi-Square)

Computes the chi-square test for the variance of a single sample, which checks whether the population variance equals a reference value. It's the dispersion counterpart of the one-sample t-test for the mean. It shows up often in quality control: is a process's variability within the specified limit, or has it increased? The statistic compares the sample variance with the hypothesized one and follows a chi-square distribution. Enter the sample and the hypothesized variance (σ₀²).

The results provided by this tool are for general informational and educational purposes only and do not constitute professional, financial, medical, legal, tax or accounting advice. Always confirm important decisions with a qualified professional and official sources.