Lably
Skip to content

Moment generating function

Concept in probability theory and statistics

  • 6 min read
  • 6 chapters

Related on Lably

Through Statistics, Random variable and Probability distribution

As its name implies, the moment generating function can be used to compute a distribution’s moments: the n-th moment about 0 is the n-th derivative of the moment generating function, evaluated at 0.

In addition to univariate real-valued distributions, moment generating functions can also be defined for vector- or matrix-valued random variables, and can even be extended to more general cases.

The moment generating function of a real-valued distribution does not always exist, unlike the characteristic function. There are relations between the behavior of the moment generating function of a distribution and properties of the distribution, such as the existence of moments.

Definition

Let X be a random variable with CDF FX. The moment generating function (mgf) of X (or FX), denoted by MX(t), is

MX(t)=E⁡[etX]

provided this expectation exists for t in some open neighborhood of 0. That is, there is an h>0 such that for all t satisfying −h<t<h, E⁡[etX] exists. If the expectation does not exist in an open neighborhood of 0, we say that the moment generating function does not exist.

In other words, the moment generating function of X is the expectation of the random variable etX. More generally, when X=(X1,…,Xn)T, an n-dimensional random vector, and t is a fixed vector, one uses t⋅X=tTX instead of tX: MX(t):=E⁡[etTX].

MX(0) always exists and is equal to 1. However, a key problem with moment generating functions is that moments and the moment generating function may not exist, as the integrals need not converge absolutely. By contrast, the characteristic function or Fourier transform always exists (because it is the integral of a bounded function on a space of finite measure), and for some purposes may be used instead.

The moment generating function is so named because it can be used to find the moments of the distribution. The series expansion of etX is

etX=1+tX+t2X22!+t3X33!+⋯+tnXnn!+⋯.

Hence, MX(t)=E⁡[etX]=1+tE⁡[X]+t2E⁡[X2]2!+t3E⁡[X3]3!+⋯+tnE⁡[Xn]n!+⋯=1+tm1+t2m22!+t3m33!+⋯+tnmnn!+⋯,

where mn is the n-th moment. Differentiating MX(t) i times with respect to t and setting t=0, we obtain the i-th moment about the origin, mi.

If X is a continuous random variable, the following relation between its moment generating function MX(t) and the two-sided Laplace transform of its probability density function fX(x) holds:

MX(t)=L{fX}(−t),

since the PDF's two-sided Laplace transform is given as

L{fX}(s)=∫−∞∞e−sxfX(x)dx,

and the moment generating function's definition expands (by the law of the unconscious statistician) to MX(t)=E⁡[etX]=∫−∞∞etxfX(x)dx.

This is consistent with the characteristic function of X being a Wick rotation of MX(t) when the moment generating function exists, as the characteristic function of a continuous random variable X is the Fourier transform of its probability density function fX(x), and in general when a function f(x) is of exponential order, the Fourier transform of f is a Wick rotation of its two-sided Laplace transform in the region of convergence. See the relation of the Fourier and Laplace transforms for further information.

Sign in to keep reading

5 more chapters are free with a Lably account.

More in Statistics and probability