Bayes’ theorem relates the conditional and marginal probabilities of two events and , where has nonzero probability:
Here, is the prior probability of (in that it doesn’t take into account any information about ), is the posterior probability of given , is the conditional probability of given , and is the marginal probability of which acts here as a normalizing constant.
In the context of Bayesian inference about a parameter given , this relationship can be written
which states that the posterior density of is proportional to the likelihood? of given times the prior density of .