6.1.3 Moment Generating Functions

Here, we will introduce and discuss moment generating functions (MGFs). Moment generating functions are useful for several reasons, one of which is their application to analysis of sums of random variables. Before discussing MGFs, let’s define moments.

Definition . The n th moment of a random variable is defined to be . The n th central moment of is defined to be .

For example, the first moment is the expected value . The second central moment is the variance of . Similar to mean and variance, other moments give useful information about random variables.

The moment generating function (MGF) of a random variable is a function defined as

We say that MGF of exists, if there exists a positive constant such that is finite for all .

Before going any further, let’s look at an example.


Example
For each of the following random variables, find the MGF.

  1. is a discrete random variable, with PMF PX(k)={13k=123k=2
  2. is a random variable.
  • Solution
      1. For , we have
        which is well-defined for all $s∈R$ .
        
      2. For , we can write Note that we always have , thus is also well-defined for all .

Why is the MGF useful? There are basically two reasons for this. First, the MGF of gives us all moments of . That is why it is called the moment generating function. Second, the MGF (if it exists) uniquely determines the distribution. That is, if two random variables have the same MGF, then they must have the same distribution. Thus, if you find the MGF of a random variable, you have indeed determined its distribution. We will see that this method is very useful when we work on sums of several independent random variables. Let’s discuss these in detail.

Finding Moments from MGF:

Remember the Taylor series for : for all , we have

Now, we can write

Thus, we have

We conclude that the th moment of is the coefficient of in the Taylor series of . Thus, if we have the Taylor series of , we can obtain all moments of .


Example
If , find using .

  • Solution
    • We found in Example 6.3, so we have Thus, the coefficient of in the Taylor series for is , so

We remember from calculus that the coefficient of in the Taylor series of is obtained by taking the th derivative of and evaluating it at . Thus, we can write

We can obtain all moments of from its MGF:


Example
Let . Find the MGF of , , and all of its moments, .

  • Solution
    • Recall that the PDF of is

      where is the unit step function. We conclude

      Therefore, exists for all . To find the moments of , we can write

      We conclude that


Example
Let . Find the MGF of , .

  • Solution
    • We have Thus,

As we discussed previously, the MGF uniquely determines the distribution. This is a very useful fact. We will see examples of how we use it shortly. Right now let’s state this fact more precisely as a theorem. We omit the proof here.
Theorem Consider two random variables and . Suppose that there exists a positive constant such that MGFs of and are finite and identical for all values of in . Then,


Example
For a random variable , we know that

Find the distribution of .

  • Solution
    • We note that the above MGF is the MGF of an exponential random variable with (Example 6.5). Thus, we conclude that .

Sum of Independent Random Variables:

Suppose , ,…, are independent random variables, and the random variable is defined as

Then,

If , ,…, are independent random variables, then


Example
If find the MGF of .

  • Solution
    • We can solve this question directly using the definition of MGF, but an easier way to solve it is to use the fact that a binomial random variable can be considered as the sum of independent and identically distributed (i.i.d.) Bernoulli random variables. Thus, we can write

      where . Thus,

      Also,

      Thus, we conclude


Example
Using MGFs prove that if and are independent, then .

  • Solution
    • We have Since and are independent, we conclude that which is the MGF of a random variable. Thus, .

previous

next


The print version of the book is available on Amazon. Book Cover
**Practical uncertainty:**Useful Ideas in Decision-Making, Risk, Randomness, & AI ractical Uncertaintly Cover