Posterior probability(Redirected from Posterior distribution)
This article includes a list of references, but its sources remain unclear because it has insufficient inline citations. (November 2009) (Learn how and when to remove this template message)
In Bayesian statistics, the posterior probability of a random event or an uncertain proposition[clarification needed] is the conditional probability that is assigned[clarification needed] after the relevant evidence or background is taken into account. Similarly, the posterior probability distribution is the probability distribution of an unknown quantity, treated as a random variable, conditional on the evidence obtained from an experiment or survey. "Posterior", in this context, means after taking into account the relevant evidence related to the particular case being examined. For instance, there is a ("non-posterior") probability of a person finding buried treasure if they dig in a random spot, and a posterior probability of finding buried treasure if they dig in a spot where their metal detector rings.
The posterior probability is the probability of the parameters given the evidence : .
It contrasts with the likelihood function, which is the probability of the evidence given the parameters: .
The two are related as follows:
The posterior probability can be written in the memorable form as
Suppose there is a mixed school having 60% boys and 40% girls as students. The girls wear trousers or skirts in equal numbers; all boys wear trousers. An observer sees a (random) student from a distance; all the observer can see is that this student is wearing trousers. What is the probability this student is a girl? The correct answer can be computed using Bayes' theorem.
The event is that the student observed is a girl, and the event is that the student observed is wearing trousers. To compute the posterior probability , we first need to know:
- , or the probability that the student is a girl regardless of any other information. Since the observer sees a random student, meaning that all students have the same probability of being observed, and the percentage of girls among the students is 40%, this probability equals 0.4.
- , or the probability that the student is not a girl (i.e. a boy) regardless of any other information ( is the complementary event to ). This is 60%, or 0.6.
- , or the probability of the student wearing trousers given that the student is a girl. As they are as likely to wear skirts as trousers, this is 0.5.
- , or the probability of the student wearing trousers given that the student is a boy. This is given as 1.
- , or the probability of a (randomly selected) student wearing trousers regardless of any other information. Since (via the law of total probability), this is .
Given all this information, the posterior probability of the observer having spotted a girl given that the observed student is wearing trousers can be computed by substituting these values in the formula:
The intuition of this result is that out of every hundred students (60 boys and 40 girls), since we observe trousers the student is one of the 80 students who wear these (60 boys and 20 girls); since 20/80 = 1/4 of these are girls, the probability that the student in trousers is a girl is 1/4.
The posterior probability distribution of one random variable given the value of another can be calculated with Bayes' theorem by multiplying the prior probability distribution by the likelihood function, and then dividing by the normalizing constant, as follows:
gives the posterior probability density function for a random variable given the data , where
- is the prior density of ,
- is the likelihood function as a function of ,
- is the normalizing constant, and
- is the posterior density of given the data .
Posterior probability is a conditional probability conditioned on randomly observed data. Hence it is a random variable. For a random variable, it is important to summarize its amount of uncertainty. One way to achieve this goal is to provide a credible interval of the posterior probability.
In classification, posterior probabilities reflect the uncertainty of assessing an observation to particular class, see also Class membership probabilities. While statistical classification methods by definition generate posterior probabilities, Machine Learners usually supply membership values which do not induce any probabilistic confidence. It is desirable to transform or re-scale membership values to class membership probabilities, since they are comparable and additionally more easily applicable for post-processing.