Z-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:

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

where p≈2(1−Φ(|z|)= if g≠e and NaN otherwise.

An alternative version of this test uses Bessel's correction:

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