Friday, March 27, 2020

Bio nomial probability in datascience using python

from scipy.stats import binom
import matplotlib.pyplot as plt
import numpy as np

n,p=10,0.5

x=np.arange(0,10,0.001)
plt.plot(x,binom.pmf(x,n,p))

output:



No comments:

Post a Comment

python class topic video