Skip to content
Sahithyan's S3
1
Sahithyan's S3 — Applied Statistics

Two-Sample Proportion Test

Used to compare the proportion of successes between two populations. Suppose the p1p_1, p2p_2 are the true proportions of two populations.

Suppose the sample proportions from independent random samples of sizes n1n_1 and n2n_2 are:

p^1=x1n1,p^2=x2n2\hat{p}_1 = \frac{x_1}{n_1}, \quad \hat{p}_2 = \frac{x_2}{n_2}

Here x1x_1, x2x_2 are successes on each sample.

The general null and alternative hypotheses are:

H0:p1p2=d0H_0 : p_1 - p_2 = d_0

H1:p1p2<d0 or p1p2>d0 or p1p2d0H_1 : p_1 - p_2 < d_0\ \text{or}\ p_1 - p_2 > d_0\ \text{or}\ p_1 - p_2 \neq d_0

Tcal=p1^p2^(p1p2)p12(1p1)2n1+p22(1p2)2n2N(0,1)T_\text{cal} = \frac{ \hat{p_1} - \hat{p_2} - (p_1 - p_2) }{ \sqrt{ \frac{p_1^2 (1 - p_1)^2}{n_1} + \frac{p_2^2 (1 - p_2)^2}{n_2} } } \sim N(0,1)