You are viewing a single comment's thread. Return to all comments →
import math boys = 0.12 girls = 0.88 ans = 0 for x in range(3): ans += math.comb(10, x)*boys**x*girls**(10-x) print(round(ans, 3)) s = 0 for i in range(2): s += math.comb(10, i)*boys**i*girls**(10-i) print(round(1-s,3))
Seems like cookies are disabled on this browser, please enable them to open this website
Day 4: Binomial Distribution II
You are viewing a single comment's thread. Return to all comments →