AllenDowney / ThinkBayes2

Text and code for the forthcoming second edition of Think Bayes, by Allen Downey.
http://allendowney.github.io/ThinkBayes2/
MIT License
1.8k stars 1.49k forks source link

Chapter 4 - Typo in Plot Legend #74

Closed iamyifan closed 6 months ago

iamyifan commented 6 months ago

Hey developer,

In Chapter 4, the first exercise, the given example should illustrate the posterior distribution of batting rather than the prior distribution:

image

posterior = prior.copy() should be added before the updating; posterior.plot(label='posterior') instead of prior.plot(label='prior'), since we are plotting the posterior distribution.

Cheers, Yifan