What Is the Moment-Generating Function of a Beta Distribution?
At a glance
- 1. Write the density
For positive shape parameters alpha and beta, use the beta density on the interval from zero to one.
- 2. Take the exponential expectation
Integrate e to the power tX against the density, or expand the exponential and use the beta moments.
- 3. Identify the function
The integral is the confluent hypergeometric function 1F1 with parameters alpha and alpha plus beta.
- 4. Read off moments
The coefficient of each power of t gives a moment; derivatives at zero give the same results.
If , its moment-generating function can be written using the confluent hypergeometric function. In general, it does not simplify to a combination of elementary functions, but the formula gives a convergent series and makes moments easy to obtain.
The formula
Assume and , with the standard Beta distribution supported on . Its density is
where is the beta function. By definition, the MGF is . For a Beta random variable,
Here is the confluent hypergeometric function, also called Kummer’s function. The semicolon separates its two parameters.
Deriving the MGF
Start with the expectation integral and substitute the density:
One way to identify the result is the integral representation
which applies when . Set and . The prefactor becomes the reciprocal beta-function normalization, giving the stated MGF.
You can also derive it from the power series for the exponential. The Beta moments are
where is the rising factorial, and . Thus
Because , the expectation of is finite for every real . In fact, the power series converges for every complex as well.
Worked example:
For this distribution, and , so
Expanding the series gives
The coefficient of is . For example, the coefficient of gives . The coefficient of is , so . Therefore,
This agrees with the standard Beta variance formula .
Common mistakes
- Using the wrong second parameter. The second parameter of is , not just .
- Forgetting the factorial in the series. The coefficient of is , not the moment itself.
- Confusing an MGF with a probability-generating function. The MGF uses and a real parameter ; it is not obtained by substituting a probability value into a discrete generating function.
- Assuming every MGF has an elementary form. The hypergeometric expression is a standard closed form; for general shape parameters it need not reduce to elementary functions.
A useful check
At , the formula must give , as every MGF does. Differentiating at zero gives , the Beta mean. A formula that fails either check likely has an incorrect parameter or normalization.
References
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.