Skip to content

Commit 1324bfd

Browse files
Merge pull request CamDavidsonPilon#158 from georgemarrows/master
Typo + code fix to Poisson example in chapter 1
2 parents d7edf68 + a662abe commit 1324bfd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Chapter1_Introduction/Chapter1_Introduction.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"========\n",
1818
"\n",
1919
"#####Version 0.1\n",
20-
"Welcome to *Bayesian Methods for Hackers*. The full Github repository is available at [github/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers](https://github.com/CamDavidsonPilon/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers). The other chapters can be found on the projects [homepage](camdavidsonpilon.github.io/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers/). We hope you enjoy the book, and we encourage any contributions!"
20+
"Welcome to *Bayesian Methods for Hackers*. The full Github repository is available at [github/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers](https://github.com/CamDavidsonPilon/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers). The other chapters can be found on the project's [homepage](camdavidsonpilon.github.io/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers/). We hope you enjoy the book, and we encourage any contributions!"
2121
]
2222
},
2323
{
@@ -427,6 +427,7 @@
427427
"a = np.arange(16)\n",
428428
"poi = stats.poisson\n",
429429
"lambda_ = [1.5, 4.25]\n",
430+
"colours = [\"#348ABD\", \"#A60628\"]\n",
430431
"\n",
431432
"plt.bar(a, poi.pmf(a, lambda_[0]), color=colours[0],\n",
432433
" label=\"$\\lambda = %.1f$\" % lambda_[0], alpha=0.60,\n",

0 commit comments

Comments
 (0)