Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2014/iii/paper-35/2/f/solution

Apply the law of iterated expectation to the auxiliary binomial distribution:
This expectation is over the full prior distribution construction, not over a particular observed auxiliary count.

New to topics? Read the docs here!