Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2011/ia/paper-2/9f/b/solution

Let denote the mattress count and the event of undisturbed sleep. Use the intended model in which the presence of the pea is independent of , with probability , and without a pea sleep is undisturbed. Conditioning on gives
The law of total probability and the equal prior probabilities give
By Bayes' theorem, the posterior probabilities of given are respectively . Therefore the conditional expectation is
Undisturbed sleep shifts the posterior toward larger mattress counts because those counts make the observation more likely.

New to topics? Read the docs here!