Probability Generating, Moment Generating, and Characteristic Functions
Three ways to encode a distribution that turn sums of independent variables into products.
Draft — not yet reviewed by the site owner.
Prerequisites: Random Variables, Expected Value, Statistical Independence.
A probability transform packages a random variable’s whole distribution into a function. The main reason to do this is that the transform of a sum of independent random variables is a product. Multiplication is often easier than directly finding every way a sum can occur.
Why a sum is difficult
If and are counts, can arise from , , , or . Finding its probability requires adding the probabilities of all those cases. For larger sums, this becomes cumbersome. A transform encodes all those possibilities in one function, then lets algebra do the bookkeeping.
For a nonnegative integer-valued , its probability generating function (PGF) is
for values of where the sum converges; at least works. The coefficient of is exactly . For independent counts and ,
The last equality uses independence. Without it, the product rule need not hold.
A coin-toss example
Let equal 1 for heads and 0 for tails, with . Its PGF is . For independent tosses, the number of heads has
Expanding this expression gives the binomial distribution: the coefficient of is . We found a distribution by recognizing its transform, without counting each sum from scratch.
Three transforms, three uses
| Transform | Definition | When it is useful |
|---|---|---|
| PGF | For nonnegative integer counts; coefficients give probabilities. | |
| MGF | When finite for all in an interval around 0; derivatives there give moments. | |
| Characteristic function | , where | Exists for every real-valued random variable; useful for sums and convergence. |
For the moment generating function (MGF), and when the MGF exists near zero. The characteristic function uses a complex exponential; its absolute value is always at most 1, which is why the expectation always exists. Each transform determines the distribution under its stated conditions. You do not need complex numbers to understand the shared idea: all three convert an independent sum to a product.
An MGF need not exist near zero. A distribution with sufficiently heavy tails can make infinite for positive . The characteristic function still exists, but its derivatives need not exist if the corresponding moments are absent.
A random number of terms
Suppose is a nonnegative integer count, independent of iid counts , and (with ). Given , the PGF of the sum is . Averaging over gives
For example, if is Poisson with mean and each is Bernoulli with success probability , then and . Substituting yields
That is the PGF of a Poisson count with mean : independently keeping each of a Poisson number of items with probability gives another Poisson count. The composition formula needs to be independent of the ; a stopping rule based on their values changes the problem.
Further reading
- MIT OpenCourseWare, “Moment Generating Functions”. Public notes covering transforms and sums of a random number of terms.