You are viewing a single comment's thread. Return to all comments →
from math import comb n = 10 p = 0.12 print(round(sum(comb(n, i) * (p**i) * ((1 - p)**(n - i)) for i in range(3)),3)) print(round(1 - sum(comb(n, i) * (p**i) * ((1 - p)**(n - i)) for i in range(0, 2)),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 →