Exercise 1.13 p. 14 (Introduction to Probability, 2nd ed.)
Number of simulated days365
Expected number of births in Large Hospital45
Expected number of births in Small Hospital15
Percentage of Male births per day
(for which the probability is computed)
0.5
#Females births in Large Hospital8216
#Males births in Large Hospital8209
#Female births in Small Hospital2726
#Male births in Small Hospital2749
Probability of more than 50 % of male births in Large Hospital0.487671232876712
Probability of more than 50 % of male births in Small Hospital0.526027397260274
#Days per Year when more than 50 % of male births occur in Large Hospital178
#Days per Year when more than 50 % of male births occur in Small Hospital192