Complex Samples Z-Test of a Mean

From Q
Jump to: navigation, search

Where \bar x is the observed mean, e is the expected value, s_{\bar x} is the estimated Standard Error of the observed mean and n is the sample size:

 z = \frac{\bar x - e}{s_{\bar x}}

where p = 2(1-\Phi(|z|)) if \bar x \ne e and NaN otherwise.