Read the Notes and Credits section to see what problem we are trying to solve. 1.) Click the Green Flag. 2.) Type in the Number of Trails you want to run. Sit back and watch the results. 3.) Start will 10 trails. Do that a couple of times. Then do 100 and 1,000 a couple of times. Try a 1,000,000 and 1,000,000,000. What do you notice about the probability and what do you conclude?
Here is the question: Video game machines manufactured by Glazem Inc. are shipped in lots of 12. Before shipping, a quality-control inspector randomly selects a sample of 3 from each lot for testing. If the sample contains any defective games, the entire lot is rejected. What is the probability that a lot containing exactly one defective game will still be shipped? I got this problem from a friend in a college probability class. We solved it mathematically but I wanted to test it with a program/simulation. (11C3/12C3 is one way of doing it but there are others too depending on how you think about it.)