Complex Samples Z-Test of a Proportion

From Q
Jump to navigation Jump to search

Where [math]\displaystyle{ g }[/math] is the observed proportion, [math]\displaystyle{ e }[/math] is the expected proportion, [math]\displaystyle{ s_p }[/math] is the estimated Standard Error of the observed proportion and [math]\displaystyle{ n }[/math] is the sample size,

[math]\displaystyle{ n }[/math] is the sample size:

[math]\displaystyle{ z = \frac{g - e}{s_p} }[/math]

where [math]\displaystyle{ p = 2(1-\Phi(|z|)) }[/math] if [math]\displaystyle{ g \ne e }[/math] and NaN otherwise.