Generating Functions
CIE A-Level Further MathematicsΒ· Unit 4: Further Probability & Statistics, Generating functionsΒ· 20 min read
1. PGFs: Definition and Core Propertiesβ β ββββ± 5 min
Probability Generating Function
For any non-negative integer-valued discrete random variable , the PGF is the expectation of , valid for all where the sum converges. Coefficients of equal .
Example:
If ,
We can find expectation and variance directly from PGF derivatives, avoiding summing over all possible values of :
A discrete random variable has PGF . Find and .
- 1
Calculate the first derivative and evaluate at :
- 2
- 3
Calculate the second derivative and evaluate at :
- 4
- 5
Substitute into the variance formula:
- 6
Exam tip:
Always evaluate PGF derivatives for moments at , a common mistake is evaluating at by accident.
2. PGFs for Common Discrete Distributionsβ β ββββ± 6 min
You will be expected to recognize or derive PGFs for all standard discrete distributions tested in CIE 9231. The table below lists standard results:
Distribution | PMF | PGF |
|---|---|---|
Binomial() | ||
Poisson() | ||
Geometric() (trials to first success) | ||
Negative Binomial() |
Derive the PGF of a Poisson distribution with parameter , then find from the PGF.
- 1
Start with the definition of PGF:
- 2
- 3
Factor out the constant term :
- 4
- 5
Use the Taylor series expansion :
- 6
- 7
Find the first derivative and evaluate at :
- 8
3. Sums of Independent Random Variablesβ β β βββ± 7 min
The most useful property of PGFs (and MGFs) is that the generating function of a sum of independent random variables is the product of the individual generating functions. This avoids the need for tedious convolution of probability mass functions.
Product Property for Independent Sums
If are independent discrete random variables, then the PGF of is . The same rule applies to MGFs.
Given independent and , prove that .
- 1
Write down the PGFs of and :
- 2
- 3
Use the product property for independent variables:
- 4
- 5
This PGF matches the PGF of a Poisson distribution with parameter . Since PGFs uniquely identify discrete distributions, .
Exam tip:
Never use the product rule for dependent random variables. It only holds because independence gives , which is not true for dependent variables.
4. Moment Generating Functionsβ β β βββ± 6 min
Moment Generating Function
A generating function that works for both discrete and continuous random variables. The -th derivative evaluated at gives the -th moment .
MGFs share the same product property as PGFs: for independent random variables, the MGF of the sum is the product of the individual MGFs. Like PGFs, MGFs uniquely identify probability distributions.
Given , find the MGF of and use it to confirm .
- 1
Start with the definition of MGF for a continuous distribution:
- 2
- 3
Completing the square in the exponent simplifies the integral to give the standard result:
- 4
- 5
Differentiate once with respect to :
- 6
- 7
Evaluate at to get the expectation:
- 8
5. Common Pitfalls
Wrong move:
Evaluating PGF derivatives at instead of for expectation
Why:
PGFs are defined as , so derivatives only give moments at . only gives .
Correct move:
Always evaluate PGF derivatives for expectation/variance at .
Wrong move:
Using the product rule for PGFs/MGFs of dependent random variables
Why:
The product rule relies on the property , which only holds for independent variables.
Correct move:
Confirm the variables are independent before multiplying their generating functions.
Wrong move:
Omitting the term in the variance formula for PGFs
Why:
, so must be added back to get .
Correct move:
Use the full formula: .
Wrong move:
Claiming two distributions are equal just because they have matching expectation and variance
Why:
Many different distributions share the same first two moments. Only matching PGFs/MGFs prove distributions are equal.
Correct move:
Always show the full PGF/MGF matches the target distribution to confirm identity.
Wrong move:
Using the wrong PGF for geometric distribution (wrong parameterization)
Why:
CIE uses the 'number of trials until first success' parameterization, not the 'number of failures before first success' version.
Correct move:
Memorize CIE's standard geometric PGF: .
6. Quick Reference Cheatsheet
Concept | Formula | Notes |
|---|---|---|
PGF Definition | Non-negative integer discrete | |
from PGF | ||
Var from PGF | ||
PGF for independent sum | Only for independent | |
Binomial PGF | ||
Poisson PGF | ||
Geometric PGF | Trials to first success | |
MGF Definition | Discrete or continuous | |
-th moment from MGF | ||
MGF for independent sum | Only for independent | |
Normal MGF |
When this came up on past exams
AI-estimated based on syllabus patterns β cross-check with official past papers for accuracy. Use only as revision-focus signals.
- 2024 Β· 2
Find expectation from given PGF
- 2023 Β· 2
PGF for sum of independent variables
- 2022 Β· 2
Derive MGF for binomial distribution
- 2021 Β· 2
Find variance of sum from PGFs
Going deeper
What's Next
Generating functions are a foundational tool for advanced probability and statistics, and underpin almost all further topics in university-level statistics. After mastering this sub-topic, you can apply generating function techniques to solve problems involving recurrence relations and random walks, a common follow-up topic in CIE 9231. Generating functions also form the basis for understanding sampling distributions, where properties of sums of independent random variables are core to hypothesis testing and confidence interval calculations. This topic connects directly to all further topics in statistics that involve combining information from multiple independent observations.
