Question: Write a computer simulation to determine the waiting time till conception of a couple with p=0.2. Use a random-number generator to pick a number in
Write a computer simulation to determine the waiting time till conception of a couple with p=0.2.
Use a random-number generator to pick a number in the interval (0,1). If the number drawn is in (0,0.2), this signifies conception Now repeat the simulation for this couple 100 times and compute the average waiting time over all trials. Compare the result with the theoretical value obtained from w=1/p.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
