17.9.5.2 Algorithms (PSS: One-Proportion Test)


Power

One-sided power:H_0:p\le p_0

Power =1-F(\frac{p_0-p_1+z_{\alpha }\sqrt{\frac{(p_0(1-p_0)}{n}}}{\sqrt{\frac{p_1(1-p_1)}{n}}})

One-sided power:H_0:p\ge p_0

Power =F(\frac{p_0-p_1-z_{\alpha }\sqrt{\frac{(p_0(1-p_0)}{n} }}{\sqrt{\frac{p_1(1-p_1)}{n}}})

Two-sided power: H_0: p=p_0\!

Power =1-F(\frac{p_0-p_1+z_{\frac{\alpha}{2}}\sqrt{\frac{(p_0(1-p_0)}{n} }}{\sqrt{\frac{p_1(1-p_1)}{n}}})+F(\frac{p_0-p_1-z_{\frac{\alpha}{2} }\sqrt{\frac{(p_0(1-p_0)}{n} }}{\sqrt{\frac{p_1(1-p_1)}{n}}})

n:Sample size

p:The true population proportion

p_0:The null proportion

p_1:The alternative proportion

z_{\alpha }: The α-level upper critical value of Normal distribution

z_{\frac{\alpha}{2}} : The α/2-level two-side critical value of Normal distribution

F:The cumulative distribution function of the standard normal distribution

Sample Size

Origin uses an iterative algorithm with the power equation. At each iteration,the power for a trial sample size are evaluated and iteration stops when the power evaluated reaches the values which corresponding to an integer sample size, and which is nearest to, yet greater than, the target value.