Which statistical test should I use in this situation (sample size question)?

48 Views Asked by At

Assume I have 5 millions oranges. Now I want to test a hypothesis.

If there is a black dot on an orange, then the orange is BAD.

Within these 5 millions oranges, I have been told that which are bad.

However, I cannot check all bad oranges to see whether there is black dot on each.

I want to find the sample size that I need to prove my hypothesis is right at 95% sure.

2

There are 2 best solutions below

2
On BEST ANSWER

If I assume a proportion p = .999, an error E of .01 then n for a Z proportion test at the 95% confidence level is:

$$n = 1.96^2 \frac{(.001*.999)}{(.01^2)} = 38$$

0
On

I think you are looking for something like this; http://www.w3computing.com/systemsanalysis/sample-size-decision/

In addition, you can use Chebyshev Inequality.(If you use this, the sample size n will be extremely big!!)