You are viewing a single comment's thread. Return to all comments →
from math import comb as c n, p, q = 10, 0.12, 0.88 print(f'{sum(map(lambda x:c(n,x)*p**x*q**(n-x),range(0,3))):.3f}') print(f'{sum(map(lambda x:c(n,x)*p**x*q**(n-x),range(2,11))):.3f}')
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 →