(Gamma sample.) Let be independent variables having the Gamma distribution, where is known. Note that the case corresponds to the exponential distribution. So
Now, studying this form, regarded as a function of suggests we could take a prior of the form
and so
.
It emerges that the only case where conjugates can be easily obtained is for data models within the exponential family.
That is,
for functions and .
This might seem restrictive, but in fact includes the exponential distribution, the Poisson distribution, the gamma distribution with known shape parameter, the binomial distribution and the normal distribution with known variance.
Given a random sample from this general distribution, the likelihood for is then
Thus if we choose a prior of the form
we obtain
where and . This results in a posterior in the same family as the prior, but with modified parameters.
So, in exponential family notation we have , , , and . Thus, we construct a conjugate prior with the form
which is a member of the beta family of distributions.
Table 2.1 lists many of the standard prior–likelihood conjugate analysis.
Likelihood | Prior | Posterior |
---|---|---|
Beta | Beta | |
Beta | Beta | |
Beta | Beta | |
Gamma | Gamma | |
( known) | Gamma | Gamma |
, | ||
( known) | Normal | Normal |
Some of these have been given as examples; the others you should verify.