I won’t say much nonsense, just upload the code!
from import binom, norm, beta, expon import numpy as np import as plt #Poisson Distributionx = (lam=34.7, size=10000) pillar = 100 a = (x, bins=pillar, color='black', alpha=0.5) ((u'Frequency')) (u'The number of frequency occurrence') () () #Negative binomial distributionfrom import nbinom help(nbinom) p=0.055 r=2.1734 x = (r, p, size=10000) pillar = 50 a = (x, bins=pillar) ((u'Frequency')) (u'The number of frequency occurrence') () ()
The above example of python generating specific distribution numbers is all the content I share with you. I hope you can give you a reference and I hope you can support me more.