By the definition of conditional probability,
Since the form a disjoint partition of the sample space, the law of total probability gives . Substitution proves Bayes' theorem in the required form:
The hypotheses make the denominator positive and each conditioning probability well defined.
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.

Articles by others on the same topic (0)

There are currently no matching articles.