Skip to content

Instantly share code, notes, and snippets.

@aita
Created July 1, 2013 04:36
Show Gist options
  • Select an option

  • Save aita/5898382 to your computer and use it in GitHub Desktop.

Select an option

Save aita/5898382 to your computer and use it in GitHub Desktop.
ポアソン分布
import matplotlib.pyplot as plt
import numpy as np
l = 5
sample = 10000
data = np.random.poisson(l, sample)
n, bins, patches = plt.hist(data, bins=14, normed=True)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment