dgrtwo / empirical-bayes-book

Introduction to Empirical Bayes: Examples from Baseball Statistics
Other
189 stars 76 forks source link

h function in page 51 #12

Open chengvt opened 7 years ago

chengvt commented 7 years ago

Thank you so much for such a great book!

I was trying out the closed-form solution in page 51 and found that 1-sum(exp(log_vals)) wasn't implemented in Evan Miller's implementation section. Thus, this would be giving Pr(p_A>p_B) instead of Pr(p_B>p_A). I am not sure if what I am pointing out is correct or not but would greatly appreciate your confirmation.