Moment-Generating Function
Moment-Generating Function (Definition)
The moment generating function (mgf) of a r.v. is:
- is a function of ( is a dummy variable)
- needs to be finite on an open interval containing , otherwise we say the mgf doesn’t exist
Ex: Find the mgf for Bernoulli Distribution:
Ex: Find the mgf of a Uniform Distribution:
- 1st moment:
- 2nd moment: → , Variance
- 3rd moment: → Skewness
- 4th moment: → Kurtosis (how “fat the tail is”)
Why is the mgf important? Because we have the following results.
Result 1
We can calculate the -th moment of a r.v. by evaluating the -th derivative of the mgf at
MGFs allow us to replace “messy” integration with “cleaner” derivatives.
Result 2: The mgf determines the distribution
If two RVs have the same mgf, then they have the same distribution.
Result 3: The mgf of indenpendent distributions
If r.v.s and are independent, then
This is useful because we are often interested in sums and averages in Modelling.
Example: Find the mgf of a Binomial Distribution, i.e. find the mgf of , where . We know that where
Using Result 3, we get
TODO: COMPLETE THE PROOF HRE M_1_X WHAT IS happening here????