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{(p_0(1-p_0) / n) }}{\sqrt{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{(p_0(1-p_0) / n) }}{\sqrt{p_1(1-p_1)/n}})

Two-sided power H_0: p=p_0\!

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

n:sample size

p:the true population proportion

p0:hypothesized proportion

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.