TOPICS
Search

Moment-Generating Function


The moment-generating function of a real random variable x is defined by

 M(t)=<e^(tx)>,
(1)

where <y> denotes the expectation value of y. Here the moment-generating function is said to exist when M(t)<infty for |t|<h with some h>0. This definition applies to arbitrary probability distributions, including discrete distributions. Existence of a probability density function is not required.

If x has a probability density function P(x), then for |t|<h,

M(t)=int_(-infty)^inftye^(tx)P(x)dx
(2)
=int_(-infty)^infty(1+tx+1/(2!)t^2x^2+...)P(x)dx
(3)
=1+tm_1^'+1/(2!)t^2m_2^'+...,
(4)

where m_r^' is the rth raw moment. The power series can be integrated term by term because its absolute sum e^(|t||x|) has finite expectation value under the stated hypothesis.

For independent random variables x and y, the moment-generating function of their sum satisfies

M_(x+y)(t)=<e^(t(x+y))>
(5)
=<e^(tx)e^(ty)>
(6)
=<e^(tx)><e^(ty)>
(7)
=M_x(t)M_y(t).
(8)

Finiteness on (-h,h) implies that M is infinitely differentiable there and that every absolute moment of positive integer order is finite. Differentiation under the expectation value gives the following identities for |t|<h and positive integers n (Durrett 2019, pp. 106-107):

M(t)=<e^(tx)>
(9)
M(0)=1
(10)
M^'(t)=<xe^(tx)>
(11)
M^'(0)=<x>
(12)
M^('')(t)=<x^2e^(tx)>
(13)
M^('')(0)=<x^2>
(14)
M^((n))(t)=<x^ne^(tx)>
(15)
M^((n))(0)=<x^n>.
(16)

The mean and variance are therefore

mu=<x>
(17)
=M^'(0)
(18)
sigma^2=<x^2>-<x>^2
(19)
=M^('')(0)-[M^'(0)]^2.
(20)

It is also true that

 mu_n=sum_(j=0)^n(n; j)(-1)^(n-j)mu_j^'(mu_1^')^(n-j),
(21)

where mu_n is the nth central moment, mu_0^'=1, and mu_j^' is the jth raw moment.

It is sometimes simpler to work with the logarithm of the moment-generating function, which is also called the cumulant-generating function, and is defined by

R(t)=ln[M(t)]
(22)
R^'(t)=(M^'(t))/(M(t))
(23)
R^('')(t)=(M(t)M^('')(t)-[M^'(t)]^2)/([M(t)]^2).
(24)

But M(0)=<1>=1, so

mu=M^'(0)=R^'(0)
(25)
sigma^2=M^('')(0)-[M^'(0)]^2=R^('')(0).
(26)

See also

Characteristic Function, Cumulant, Cumulant-Generating Function, Moment

Explore with Wolfram|Alpha

References

Durrett, R. Probability: Theory and Examples. Version 5, Jan. 11, 2019. Author manuscript. https://services.math.duke.edu/~rtd/PTE/PTE5_011119.pdf.Kenney, J. F. and Keeping, E. S. "Moment-Generating and Characteristic Functions," "Some Examples of Moment-Generating Functions," and "Uniqueness Theorem for Characteristic Functions." §4.6-4.8 in Mathematics of Statistics, Pt. 2, 2nd ed. Princeton, NJ: Van Nostrand, pp. 72-77, 1951.Massachusetts Institute of Technology. "Moment Generating Functions." Lecture 13 in 6.436J/15.085J Fundamentals of Probability. Fall 2018. https://ocw.mit.edu/courses/6-436j-fundamentals-of-probability-fall-2018/1a592ed184fb4c444547f67c9bcdd8ec_MIT6_436JF18_lec13.pdf.

Referenced on Wolfram|Alpha

Moment-Generating Function

Cite this as:

Weisstein, Eric W. "Moment-Generating Function." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/Moment-GeneratingFunction.html

Subject classifications