Binomial births In the U.S., 49% of births are female. Assume the sexes of babies are independent of each other. Find the following probabilities using stats.btnom.pnf, stats, binom.cdf, and arithmetic. The stats library of scipy has been imported in the top cell of this notebook. (a) Find the chance that among 20 births, the majority (more than half) are female. Save your answer in the variable called port
from scipy.stats import binom
prob = binom.cdf(10, 20, 0.49)
prob
0.6229439292068963
Comments
Leave a comment