You are viewing a single comment's thread. Return to all comments →
I did the following with scipy but it is not accepted , is this because for some reason we cannot use scipy ?
from scipy.stats import binom sum=0 for i in range (3,6+1): sum+=binom.pmf(i,6,1-(1/2.09)) #print(binom.pmf(i,6,1-(1/2.09)))
print(round(sum,3))
Seems like cookies are disabled on this browser, please enable them to open this website
Day 4: Binomial Distribution I
You are viewing a single comment's thread. Return to all comments →
I did the following with scipy but it is not accepted , is this because for some reason we cannot use scipy ?
from scipy.stats import binom sum=0 for i in range (3,6+1): sum+=binom.pmf(i,6,1-(1/2.09)) #print(binom.pmf(i,6,1-(1/2.09)))
print(round(sum,3))