Skip to content
Prev 157165 / 398506 Next

Proper power computation for one-sided binomial tests.

Johannes H?sing wrote:
Yes, that's what I read the task as saying: Sample from p=0.00 when the 
hypothesis is p=0.03. Then rejection happens with probability 1 when n 
 >= 99. Actually, he said that we could assume the _sample_ rate to be 
0%, but that is only assured when p=0.0.

(You can continue the game by looking at the probability of getting 0 
failures, depending on the true p. E.g., if p=0.001, we have

 > dbinom(0, 99, 0.001)
[1] 0.9056978

i.e. 90% power to detect at 5% level. And further continue into a full 
power analysis where you calculate the probability of a failure rate 
that is significantly different from 0.03 depending on p and n.)