我就废话不多说了,直接上代码吧!
from scipy.stats import binom, norm, beta, expon
import numpy as np
import matplotlib.pyplot as plt
#泊松分布
x = np.random.poisson(lam=34.7, size=10000)
pillar = 100
a = plt.hist(x, bins=pillar, color='black', alpha=0.5)
plt.xlabel((u'频数'))
plt.ylabel(u'频数出现数目')
plt.grid()
plt.show()