The moment generating function or mgf of a random variable is defined through
for all real values of for which the expectation exists.
Moment generating functions can be manipulated in many ways to reveal properties of the underlying probability distributions. They often help in mathematical proofs of probability theorems, and will be used for this purpose in Chapter 9.
Find the mgf of the random variable following the exponential distribution with parameter ; sketch the mgf when .
Solution. , for . Hence,
for . Note that is only defined for , since only in that case does the integral exist. Hence, for the mgf looks like:
Unnumbered Figure: Link
Quiz: Now consider a general rv: can the mgf be negative? No; it is the expectation of a non-negative quantity.
If mgf is defined in some neighbourhood of the origin, , the following properties are satisfied:
The mgf determines uniquely the distribution of the rv . That is, if two rvs have the same mgf then they have the same cdf.
If , for real and non-zero real number, .
Moments about the origin can be obtained by differentiating the mgf with respect to and then evaluating the mgf at zero, i.e.
Hence the name!
Let be independent rvs with mgf respectively. Then,
Proof uses ideas from complex analysis (see Math215).
If , then
Since then , etc.; but so
,
,
,
and so on.
by independence, so . ∎
From Part 4, by induction, if are independent random variables:
Using its mgf, find the expectation and the variance of the random variable following the exponential distribution with parameter .
Solution. Consider the first two derivatives of the mgf:
, .
Hence, , and
The mgf of a Normal random variable We first consider . Then
by completing the squares. Hence by unit integrability of the N(t,1) density.
So if then by Property 2,
For instance, if then
,
,
,
,
.
In particular so and as mentioned in Chapter 3.
Unfortunately the mgf is not defined for some rvs.
Let , then
which is not defined as, if the integrand as and if the integrand as .