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 2 - nomenclature adjustment #72

Closed vitorvilela closed 9 months ago

vitorvilela commented 9 months ago

It's not a code issue...

Since we are applying the Diachronic Bayes, I think it is more readable to keep the H letter instead of B, in page 21 - Bayes Tables:

I call the result unnorm because these values are the "unnormalized posteriors". Each of them is the product of a prior and a likelihood:

$$P(H_i)~P(D|H_i)$$

which is the numerator of Bayes's Theorem. If we add them up, we have

$$P(H_1)~P(D|H_1) + P(H_2)~P(D|H_2)$$

which is the denominator of Bayes's Theorem, $P(D)$.

vitorvilela commented 9 months ago

PS.: This book and notebooks are amazing. Thank you for writing them this way.

AllenDowney commented 9 months ago

Yes, that's better. Thanks for the suggestion and for the kind words!