Probabilistic-Programming-and-Bayesian-Methods-for-Hackers icon indicating copy to clipboard operation
Probabilistic-Programming-and-Bayesian-Methods-for-Hackers copied to clipboard

Chapter 2 Normal Distribution

Open MinTTT opened this issue 6 years ago • 0 comments

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.

MinTTT avatar May 13 '19 17:05 MinTTT