Mathematics.
x_ in x: x_ = int(x_) y.append( (factorial(n)/factorial(x_)/factorial(n-x_)) * ((1-p)**(n-x_)) * p**x_ ) plt.bar(x,y) plt.xlim(10,50) plt.show() A typical binomial distribution with n= 100 and p =0.3, looks like : Binomial Distribution ( n = 100, p = 0.3 ) (iii) Geometric Distribution This