Probabilistic-Programming-and-Bayesian-Methods-for-Hackers
Probabilistic-Programming-and-Bayesian-Methods-for-Hackers copied to clipboard
Chapter 2 Normal Distribution
Hello,
I'm a newbie of Bayesian statistics, thanks for authors' awesome work.
I found the demo code of Normal Distribution may have a problem. the scipy.stats function norm has a keyword scale, and it is defined as the standard deviation. As mentioned in the description, $1/ \tau$ is equal to $\sigma^2$. Thus, the code in row 11 shall be plt.plot(x, nor.pdf(x, _mu, scale=np.sqrt(1./_tau)),, if I didn't miss anything.