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 givesThe law of total probability and the equal prior probabilities giveBy Bayes' theorem, the posterior probabilities of given are respectively . Therefore the conditional expectation isUndisturbed sleep shifts the posterior toward larger mattress counts because those counts make the observation more likely.
Articles by others on the same topic
There are currently no matching articles.