3.4    Moment Generating Function

Recall: the moments of a random variable are useful to know, but not so easy to find.

In cases where we know a formula for the p.d.f., can often find all moments at once in a convenient way!

Def:  Let X be a discrete random variable.  Then the moment generating function of X is the function of the variable t defined as

ex: ex: The above are functions of t; where are the moments of the random variables??
 

Theorem
If mX(t) is the m.g.f. of X, then the moments of X can be found as

  E(Xk)   = 

i.e., to find the kth moment, take the kth derivative of the moment generating function and evaluate at t = 0.

ex:

Why do we care so much about finding moments? Properties of moment generating functions
Let X be a random variable, mX(t) its moment generating function, and let c be a constant. Then the moment generating functions of certain modifications of X are related to the moment generating function of X as follows:
  1. the moment generating function of the random variable  cX  is
    1. mcX(t) = mX(ct)
  2. the moment generating function of the random variable  X + c  is
    1. mX+c(t) = ect mX(t)
  3. Let  X1  and  X2  be independent random variables with moment generating functions

  4. mX1(t)  and  mX2(t).  Then the moment generating function of the random variable  X1 + X2  is
      mX1+X2(t)  =  mX1(t) * mX2(t)
These results will be of use to us later. The proofs of these follow from the properties of expectation discussed earlier.
 
 


The Geometric Distribution

Def: A random variable X is a geometric random variable if it arises as the result of the following type of process:
  1. have an infinite series of trials; on each trial, result is it is either success (s) or failure (f). (Such a trial is called a Bernoulli experiment.)
  2. the trials are independent, and the probability of success is same on each trial. (The probability of success in each trial will be denoted  p,  and the probability of failure will be denoted  q;  thus  q  =  1 - p.)
  3. X represents the number of trials until the first success.
(In short, a random variable is geometric if it "counts the number of trials until the first success.")
 
 

ex:

The sample space of such a process can be written as below; the value of the random variable X associated with each possible outcome is shown beneath; and the probability of each outcome is given beneath that. (The probabilities just come from the multiplication rule for independent events.) Thus the probability density function of a geometric random variable  X  with probability of success  p  is: Its moment generating function can be shown to be (using a technique identical to that used in the "flip a coin until a tail appears" example above).

We can thus use the moment generating function to find the moments, and hence the mean and variance and standard deviation:

So the mean and variance are ex: ex: Cumulative probability function  

ex:

 
 

 
Previous section  Next section