Solution

ID: past-exam-of-the-options-i-course-of-the-university-of-oxford/2013/o/2/a/solution

Let . The Bernoulli distribution likelihood is proportional to . Multiplication by the beta distribution prior gives
Normalizing with the beta function therefore gives
The parameters remain positive. This is Beta-binomial conjugacy: successes add to the first shape parameter and failures to the second.

New to topics? Read the docs here!