A cipher has perfect secrecy when the conditional probability of every plaintext given a ciphertext equals its prior probability: whenever . Equivalently, the plaintext and ciphertext are independent random variables.
Fix a ciphertext that can occur. Perfect secrecy requires every possible plaintext to remain possible after observing . For a deterministic decryption rule, two different plaintexts producing require two different keys, so the key space has cardinality at least that of the message space.
In a one-time pad, the message and key belong to the same finite additive group, the key is uniform and independent of the message, and encryption is . For every there is exactly one key , so
independent of . Bayes' theorem then gives , proving perfect secrecy.
For , the conditional probability is
Hence
Because the form a partition, the law of total probability gives
Substitution proves Bayes' theorem in the required form:
A Bayesian inverse problem consists of a prior distribution on the unknown , a reference measure on the data space , and a jointly measurable likelihood such that is a probability density function for -almost every . For observed data , Bayes' theorem defines the posterior distribution by
provided .
Every posterior given by Bayes' theorem is absolutely continuous with respect to its prior , so it belongs to . If , total-variation well-posedness gives
Part c, now using the common dominating measure , yields
Existence and uniqueness are unchanged. The problem is therefore a well-posed Bayesian inverse problem in Hellinger distance.
By Bayes' theorem, the frailty distribution among survivors has density
It is an exponential distribution with rate .
For a fixed observed colour , Bayes' theorem gives
Completing the square shows that this is a truncated normal distribution with variance , lower endpoint zero, and untruncated location
Hence
Conditioning first on and using the law of total expectation yields the dusty colour-magnitude relation
As , the Inverse Mills ratio implies with vanishing derivative, so the asymptotic slope is . As , , so the asymptotic slope is .
Using Bayes' theorem and the fact that the prior is proper,
Thus is an unbiased estimator of , and the Harmonic mean estimator of Bayesian model evidence is . The reciprocal is not itself generally unbiased, though it is consistent when the strong law of large numbers applies.
Under , Bayes' theorem at the nested value gives
Separability of the prior and equality of the priors imply
Rearranging proves the Savage-Dickey density ratio
which is the Bayes factor in favor of the nested model.
The graph has no cause of , so is independent of its potential outcomes. By consistency of potential outcomes, the G-formula therefore gives
Condition on and use the structural zero from part ii:
Consequently the causal risk ratio is
Applying Bayes' theorem to the second factor gives
which proves the stated formula. The unmeasured common cause of and does not obstruct this total-effect argument because no mediator effect is being identified.
The directed acyclic graph factorization is
The graph gives and . Therefore Bayes' theorem gives
Consequently
which contains no . This observed equality is a Verma constraint: it is implied by the latent-variable causal graph even though it is not a conditional independence.
Bayes' theorem turns the categorical distribution prior probabilities and the component multivariate normal densities into
These probabilities define the label update in the Gibbs sampler.
Define the prior-predictive nuisance integrals
Then
For each individual analysis, Bayes' theorem also gives
Bayes' theorem gives
Taking its posterior expectation after subtracting yields
Thus the equality holds for every proper prior and valid likelihood for which the displayed expectations are well-defined.
By the law of total probability,
Bayes' theorem therefore gives the conditional probability mass function
The six probabilities sum to one. A small red outcome is more likely after an immediate success because more white faces can meet its threshold.
Let denote having the disease and a positive result. Assume I am sampled uniformly from the stated population, so . By the law of total probability, . Thus Bayes' theorem gives
The denominator must be positive; otherwise the observed event has zero probability in this model and the conditional probability is undefined. The answer depends on disease prevalence as well as the test's two error rates.
Let mean that the tested person is guilty and mean a positive match. Under the specified model, , and . Bayes' theorem gives
The posterior probability for a unique source after a positive test depends on the number of alternative possible sources as well as the false-positive probability. In particular, the false-positive probability is not the probability of innocence conditional on a positive match.
The negative-test probability is . Applying Bayes' theorem again,
By Bayes' theorem, the required conditional probability is
This is about ; it is a different conditioning direction from the test's positive probability among carriers.
Let , , and denote the three disjoint categories, and or the test result. The law of total probability gives
To calculate the requested conditional probability, first combine the two categories with the virus. Their joint negative-test probability is , whereas . Bayes' theorem therefore gives
These numbers use the specified population proportions and test probabilities; the negative result reduces the initial combined proportion to about within this model.
The prior probability is . Using Bayes' theorem, the posterior probability after two absences is
Thus the probability rises from 10% to about 73.5% within the assumed attendance model. Two absences are 25 times as likely under the lazy model, overcoming the prior odds of ; they still do not make the classification certain.