# Independent Samples T-Test - Comparing Two Proportions

Where ${\displaystyle g_{1}}$ and ${\displaystyle g_{2}}$ are the two proportions and ${\displaystyle n_{1}}$ and ${\displaystyle n_{2}}$ are the sample sizes:
${\displaystyle z={\frac {g_{1}-g_{2}}{\sqrt {g_{12}(1-g_{12})(n_{1}^{-1}+n_{2}^{-1})}}}}$
${\displaystyle g_{12}={\frac {n_{1}g_{1}+n_{2}g_{2}}{n_{1}+n_{2}}}}$
where ${\displaystyle p\approx 2\Pr(t_{n_{1}+n_{2}-2}\geq |t|)}$.