T-Test of a Proportion

From Q
Jump to navigation Jump to search

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

t=g−edeffg(1−g)/n

where p≈2Pr⁡(tn−1≥|t|) if g≠e and NaN otherwise,

Where Bessel's correction is applied:

t=p−edeffg(1−g)/(n−1)