Two-Sided Difference of Proportions Test Calculator

Two-Sided Difference of Proportions Test Calculator

Enter the number of successes and sample sizes for two groups to perform a two-sided difference of proportions test.

* Note: This test uses the pooled proportion under the null hypothesis \( p_1 = p_2 \).

Step 1: Enter Data

e.g., 30

e.g., 100

e.g., 25

e.g., 100

How It Works

Under the null hypothesis that the two proportions are equal (\( p_1 = p_2 \)), the pooled proportion is calculated as: $$ \hat{p} = \frac{x_1+x_2}{n_1+n_2}. $$

The test statistic is computed using: $$ z = \frac{\hat{p}_1-\hat{p}_2}{\sqrt{\hat{p}(1-\hat{p})\left(\frac{1}{n_1}+\frac{1}{n_2}\right)}}, $$ where \( \hat{p}_1=\frac{x_1}{n_1} \) and \( \hat{p}_2=\frac{x_2}{n_2} \).

For a two-sided test, the p-value is calculated as: $$ \text{p-value} = 2\Phi(-|z|), $$ where \(\Phi(z)\) is the standard normal cumulative distribution function.

Two-Sided Difference of Proportions Test Calculator

Related Calculators