Update Probability.ipynb

Update deprecated attribute
This commit is contained in:
James Harmon
2021-06-03 17:52:55 -05:00
committed by GitHub
parent 1f81306f34
commit 69468a5ce1

View File

@@ -2339,7 +2339,7 @@
"def repeated_hist(dist, n=10**6, bins=100):\n",
" \"Sample the distribution n times and make a histogram of the results.\"\n",
" samples = [dist() for _ in range(n)]\n",
" plt.hist(samples, bins=bins, normed=True)\n",
" plt.hist(samples, bins=bins, density=True)\n",
" plt.title('{} (μ = {:.1f})'.format(dist.__name__, mean(samples)))\n",
" plt.grid(axis='x')\n",
" plt.yticks([], '')\n",