Homepage Solution manuals Kevin P. Murphy Machine Learning: a Probabilistic Perspective Exercise 3.17 - Marginal likelihood for beta-binomial under uniform prior

Exercise 3.17 - Marginal likelihood for beta-binomial under uniform prior

Answers

The marginal likelihood is given by:

p ( N 1 | N ) = 0 1 p ( N 1 , 𝜃 | N ) d 𝜃 = 0 1 p ( N 1 | 𝜃 , N ) p ( 𝜃 ) d 𝜃 .

Plug in:

p ( N 1 | 𝜃 , N ) = Bin ( N 1 | 𝜃 , N ) ,

p ( 𝜃 ) = Beta ( 𝜃 | 1 , 1 ) .

Thus:

p ( N 1 | N ) = 0 1 ( N N 1 ) 𝜃 N 1 ( 1 𝜃 ) N N 1 d 𝜃 = ( N N 1 ) B ( N 1 + 1 , N N 1 + 1 ) = N ! N 1 ! ( N N 1 ) ! N 1 ! ( N N 1 ) ! ( N + 1 ) ! = 1 N + 1 .

Where B is the regulizer for a Beta distribution:

B ( a , b ) = Γ ( a ) Γ ( b ) Γ ( a + b ) .

The physics behind this setting is that if no prior information is introduced then all N + 1 possibilities are equally likely to appear.

User profile picture
2021-03-24 13:42
Comments