- Beta-binomial model
In
empirical Bayes methods , the Beta-binomial model is an analytic model where thelikelihood function is specifed by abinomial distribution :
:::
and the
conjugate prior is aBeta distribution :
:::
The Beta-binomial is a two-dimensional
multivariate Polya distribution , as the binomial and Beta distributions are special cases of the multinomial and Dirichlet distributions, respectively.Derivation of the posterior and the marginal
It is convenient to reparameterize the distributions so that the expected mean of the prior is a single parameter: Let
:
:::
where
::: and
so that
::: :::
The
posterior distribution is also a beta distribution:
:::
:::
while the marginal distribution is given by
:
::=
::=
Moment estimates
Because the marginal is a complex, non-linear function of Gamma and Digamma functions, it is quite difficult to obtain a marginal maximum likelihood estimate (MMLE) for the mean and variance. Instead, we use the method of iterated expectations to find the
expected value of the marginal moments.Let us write our model as a two-stage compund sampling model (for each event "i" out of "ni" possible events):
::
::
We can find iterated moment estimates for the mean and variance using the moments for the distributions in the two-stage model:
::
::
:::
:::
:::
We now seek a point estimate as a weighted average of the sample estimate and an estimate for . The sample estimate is given by
::
Therefore we need point estimates for and . The estimated mean is given as a weighted average
::
The hyperparameter is obtained using the moment estimates for the variance of the two-stage model:
::
::
We can now solve for :
::
Given our point estimates for the prior, we may now plug in these values to find a point estimate for the posterior
:
hrinkage factors
We may write the posterior estimate as a weighted average:
::
where is called the "Shrinkage Factor".
::
Example
Maximum likelihood estimation
Maximum likelihood estimates from empirical data can be computed using general methods for fitting multinomial Polya distributions, methods for which are described in (Minka 2003).
Improved estimates:
James-Stein estimator ee also
*
multivariate Polya distribution External links
* [http://www.cs.ubc.ca/~murphyk/Teaching/Stat406-Spring07/reading/ebHandout.pdf Empirical Bayes for Beta-Binomial model]
* [http://it.stlawu.edu/~msch/biometrics/papers.htm Using the Beta-binomial distribution to assess performance of a biometric identification device]
* [http://www.emse.fr/g2i/publications/rapports/RR_2005-500-012.pdf Extended Beta-Binomial Model for Demand Forecasting of Multiple Slow-Moving Items with Low Consumption and Short Request History]
* [http://research.microsoft.com/~minka/software/fastfit/ Fastfit] contains Matlab code for fitting Beta-Binomial distributions (in the form of two-dimensional Polya distributions) to data.References
* Minka, Thomas P. (2003). [http://research.microsoft.com/~minka/papers/dirichlet/ Estimating a Dirichlet distribution] . Microsoft Technical Report.
Wikimedia Foundation. 2010.