Complex Samples t-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:

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

where p = 2 \Pr(t_{n-1} \ge |t|) if \bar x \ne e and NaN otherwise.