You are viewing a single comment's thread. Return to all comments →
p = 0.12 n = 10 q1 = sum([binomial_dist(n, x, p) for x in range(0, 3)]) q2 = sum([binomial_dist(n, x, p) for x in range(2, 11)])
print(round(q1, 3)) print(round(q2, 3))
Seems like cookies are disabled on this browser, please enable them to open this website
An unexpected error occurred. Please try reloading the page. If problem persists, please contact support@hackerrank.com
Binomial Distribution #3
You are viewing a single comment's thread. Return to all comments →
p = 0.12 n = 10 q1 = sum([binomial_dist(n, x, p) for x in range(0, 3)]) q2 = sum([binomial_dist(n, x, p) for x in range(2, 11)])
print(round(q1, 3)) print(round(q2, 3))