T-Test of a Proportion

From Q
Jump to: navigation, search

Where g is the observed proportion and e is the expected proportion, n is the sample size and d_{eff} is Extra deff:

 t = \frac{g - e}{\sqrt{d_{eff}g(1-g)/n}}

where p \approx 2\Pr(t_{n-1} \ge |t|) if  g \ne e and NaN otherwise,

Where Bessel's correction is applied:

 t = \frac{p - e}{\sqrt{d_{eff}g(1-g)/(n-1)}}