If you wanted to run a simulation for something with a 25% (1 in 4) chance of success, then you could generate random numbers 1 – 4, and arbitrarily choose one of the numbers to represent a “success.” You could choose “1” to be a “success,” for instance.
a. Suppose you want to simulate something with 6.25% (1 in 16) chance of success. The most efficient way to simulate that with whole numbers would be to generate the numbers from 1 to ___, and arbitrarily choose ___ number(s) to represent a "success."
b. Suppose you want to simulate something with a 40% (2 in 5) chance of success.
The most efficient way to simulate that with whole numbers would be to generate the numbers from 1 to ___, and arbitrarily choose ___ number(s) to represent a "success."
c. Suppose you want to simulate something with a 2 in 29 chance of success.
The most efficient way to simulate that with whole numbers would be to generate the numbers from 1 to ___, and arbitrarily choose ___ number(s) to represent a "success."
Get Answers For Free
Most questions answered within 1 hours.