The system:
- I have a bag filled with 1,000 balls
- All of them are either red or blue
I want to gain some amount of confidence that all the balls are blue, but I'm very lazy and I only want to examine a sample as small as possible.
Question: How large must the sample be to say with P confidence that N balls are blue?
I'm looking for a generic answer, but here are two specific questions:
- How large must the sample be to say with 95% confidence that all 1,000 of the balls are blue?
- How large must the sample be to say with 95% confidence that 990 (99%) of the 1,000 balls are blue?
It's been a while with no response, so if my question is missing information or just bad for some reason, please let me know how I can improve it.