# Independent Complex Samples Z-Test - Comparing Two Proportions

Where $g_1$ and $g_2$ are the two proportions and $\sigma_{g_1}$ and $\sigma_{g_2}$ are their standard errors:

$z=\frac{g_1-g_2}{\sqrt{\sigma^2_{g_1} + \sigma^2_{g_1}}}$,

where $p = 2(1-\Phi(|z|))$.