A variable with a beta binomial distribution is distributed as a binomial distribution with parameter , where
is distribution with a beta
distribution with parameters
and
. For
trials, it has probability
density function
|
(1)
|
where
is a beta function and
is a binomial coefficient,
and distribution function
|
(2)
|
where
is a gamma function and
|
(3)
|
is a generalized hypergeometric function.
It is implemented as BetaBinomialDistribution[alpha, beta, n].
The first few raw moments are
|
(4)
| |||
|
(5)
| |||
|
(6)
|
giving the mean and variance as
|
(7)
| |||
|
(8)
|