4.5 - Means and variances from PGFs
Differentiating a PGF changes its coefficients into weighted probabilities. You will see why the first derivative gives the mean, why the second derivative needs a correction, and how the two derivatives give the variance and determine unknown parameters.
The first derivative at one
Why should a derivative tell you the average value of a random variable? For a distribution with PGF , differentiation brings each exponent down beside its probability:
At , the remaining powers become one. The result is exactly the weighted sum .
For the general PGF, differentiate term by term:
For infinite distributions, the relevant moment must exist. The standard PGFs used here can be differentiated near , so their derivatives there are finite.
Mean from a PGF
Differentiate with respect to first, then substitute .
In the formula booklet.
Putting first gives the constant , which has lost the information that differentiation needs.
Worked example 1: a sparse polynomial
Question. Find the mean of , given
Plan. Differentiate the PGF, then evaluate the derivative at one.
Answer. .
Check. Reading the distribution directly gives . A non-integer mean is possible even though every outcome is an integer.
Now shift all outcomes up by one, leaving their probabilities unchanged. The mean should rise by one too.
Worked example 2: a shifted distribution
Question. Find the mean of , given
Plan. Use the derivative at one and compare the result with the shift in possible values.
Answer. .
Check. Directly from the coefficients, the outcomes are , so the mean is . Equivalently, each outcome in Worked example 1 has increased by one, and .
The derivative method becomes particularly useful when a PGF has a compact factorised form and a long expansion. Keep that form and use the product or chain rule accurately.
Watch out
checks normalisation. gives the mean. The prime changes the question being answered.
Try a distribution whose possible values have a different gap.
The second factorial moment
Differentiating twice does not bring down the square of each exponent. It brings down two successive factors:
This is the expected value of , called the second factorial moment. Since , you recover the second ordinary moment by adding the mean.
Second moment from a PGF
Provided the second moment is finite,
The factorial-moment interpretation and this separate second-moment identity are not listed in the formula booklet; they explain the supplied variance formula.
For example, if , its contribution to is zero, while its contribution to is one. That missing contribution is part of what the added mean restores.
Worked example 3: four binomial trials
Question. A random variable has PGF . Find and .
Plan. Differentiate twice, and add the first derivative at one to obtain the second ordinary moment.
Answer. and .
Check. Expand the PGF to read probabilities , divided by , on . Then
Increase the number of trials by one, keeping the success probability at one half. The distinction between the two second moments remains the same.
Continue this lesson.
You’re previewing NovaLearn without an account. Create a free account to read the rest.
Create free account