Ok, I have come up with the 2.01 z-score (2.010076 really) using the method outlined. I then got a little mad that the concept wasn’t coming to me, so I brute-force coded the cumulative Bernoulli distribution. Turns out that the cumulative probability for a z-score of 2.010076 is 0.977788. My cumulative probability for the Bernoulli distribution of p=.01 at <=120 positives =0.977866, a difference of .0000097 most likely due to Window’s inability to deal with really small and large numbers (i.e., the small probabilities like .01^10000 and huge combinatorics like 10000C120, which becomes more problematic when you are trying to mutilitply them and then sum up a bunch of them together).
I then re-jiggered the distribution to p=.012 and checked the cumulative distribution for >=100 and got .033853, which compares to a predicted cumulative probability based on a z-score of -1.836796 (by the process I used above) of .033120 or a difference of .000733, again probably small enough for that this looks like a Window’s issue.
So I am getting the idea that both hypothesis tests work.
EDIT: Of course the reason for the small differences could also be the fact that Bernoulli distributions are discrete, not continuous. So we would not expect a perfect match in any case.
I think what matters is using the appropriate methodology for the given question. You could do a hypothesis test for the population mean number of successes, or you could do hypothesis test for the population proportion of successes. You’ll have different calculations in each case. So, each will work, provided you’re answering the question you asked.
What we should be looking at now is the p-value for the hypothesis test. What does everyone think?
Right, I think we were appropriately testing alternatively the sample proportion and the population mean. If I have some more time, I might try to see if I can figure out an algebraic equivilance between the two tests, but for now, I am just going to let this one rest.
In any case, thanks for putting me on to StatTrek. I’m definitely going to be using that one.