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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!