Question 20.23

20.23 We really want a girl. Example 4 estimates the expected number of children a couple will have if they keep going until they get a girl or until they have three children. Suppose that they set no limit on the number of children but just keep going until they get a girl. Their expected number of children must now be higher than in Example 4. How would you simulate such a couple’s children? Simulate 25 repetitions. What is your estimate of the expected number of children?