Now that we have an understanding of random variables, let’s explore one of their properties, their moment!
Univariate Case
Moments and Moment Generating Functions
Let be a random variable. Then, for all positive , the moment of about the origin, denoted , is given as
Furthermore, the moment around the mean (), denoted , is given as
Remark: Expected Value and Variance
Notice that on , the first moment about the origin is the random variable’s expected value
And on , the second moment about the mean is the random variable’s variance
We can define a function which will let us easily find these moments! Given a random variable , the moment generating function (mgf) is given as
How does this let us find our moments?
In our expected value calculation, if we expand as the infinite series
We find that
Thus, in our infinite series, the coefficient of term is the value of the moment !
Using this fact, if we let , we can easily find by taking the derivative of ! This is reflected in the following theorem
Theorem: Moment Generating Function and Moments
Given random variable , and its moment generating function , we can find the moment of by taking
Remark
If , then
Furthermore, moment generating functions are unique to random variable distributions! This is known as the uniqueness theorem.
Theorem: Uniqueness of Moment Generating Functions
Let and be random variables. Then, and have the same distribution if and only if their moment generating functions are the same.
Thus, we can think of moment generating functions as unique “signatures” for random variables!
See the following examples.
Example: Moments and Moment Generating Functions
Consider random variable with pdf given as
Find the moment generating function (mgf) of , and use it to derive a simple expression for the moment, .
We find the mgf of by finding the expected value of (by definition of moment generating functions).
We can now expand this as a series to find the coefficient of .
We find the rth moment as .
Example: Moments and Moment Generating Functions (2)
Suppose we have random variable with pmf given by
Find the moment generating function of , and determine the second moment about the origin.
We first find the moment generating function of , by finding the expected value of .
Now with , we can easily find the second moment by differentiating twice and setting .
Common Moment Generating Functions (Discrete Case)
Below, we provide the moment generating functions for common discrete distributions.
Derivations for the moment generating functions are given below. Note that some derivations are ommitted, due to their complexity.
Uniform Distribution: Derivation for MGF
Binomial Distribution: Derivation for MGF
Geometric Distribution: Derivation for MGF
The derivation for negative binomial follows similarly.
Poisson Distribution: Derivation for MGF
Common Moment Generating Functions (Continuous Case)
Below, we provide the moment generating functions for common continuous distributions.
Uniform Distribution (Continuous): Derivation for MGF
Normal Distribution: Derivation for MGF
Suppose we have a random variable . To find its moment generating function, we will first find the moment generating function of the standardized normal distribution.
Suppose we have standard normal distribution . We find its moment generating function as
Using this moment generating function, and knowing that we can represent in terms of the standard normal distribution as , we transform our moment generating function (see remark in first section) as
Gamma Distribution: Derivation for MGF
We apply change of variables . Note that by this change of variables, .
Multivariate Case
Sum of Random Variables and Moment Generating Functions
Let be random variables. Define the vectors and .
Then, the joint moment generating function of is given as
Note that the ‘s for each of the moment generating functions are distinct!
Note that if we let all ‘s be 0 apart from a single , we get our moment generating function for !
Remark
Let and . Similar to the univariate case, if , then
While the joint moment generating function can be extremely difficult (and annoying) to calculate, we can easily find it if the random variables are independent. This is expressed in the following theorem:
Theorem: Independence and Joint MGFs
Suppose we have random variables .
If are independent, then the joint mgf is given as the product of each random variable’s moment generating function.
Furthermore, if are independent, if we let all , we can differentiate our joint mgf twice to find the expected value of random variable products.
Remark
Note that if we have random variable where and are independent, then
And thus, applying our theorem, we can find as the product of the moment generating functions of and !
Consider the following examples.
Example: Joint Moment Generating Functions
Suppose .
From our earlier derivation, we know that the moment generating function of and is
So, assuming and are independent, we can find the moment generating of their sum as
Example: Joint Moment Generating Functions (2)
Let be independent, and assume .
From our earlier derivation, we know that the moment generating of any is given as
Thus, assuming our distributions are independent, we can find the moment generating function of the sum of all (let ) as
Thus, because this still conforms to the moment generating function for the Gamma distribution, we’ve shown that the sum of the independent Gamma random variable stays as the Gamma distribution, provided that stays constant!
Example: Joint Moment Generating Functions (3)
Let be a joint pdf given as
Find the joint moment generating function.
We find our joint mgf by applying our definition.
Note that in this derivation, we forcefully choose the bounds of and so that our integral can evaluate. This means that outside of these bounds, our integral (and thus mgf) would be undefined.
Furthermore, we can find and by setting and , respectively.