Topic 7 · Lesson 1 of 3
Generating functions and standard distributions
The definition
For a random variable taking values ,
The coefficient of is . For example, if takes the values 0, 1, 2, 3 with probabilities 0.1, 0.4, 0.3, 0.2, then
Two facts follow at once:
- . This is how you find an unknown constant: if , then .
- .
A function can only be a PGF if, expanded as a series in , its coefficients are all between 0 and 1 and .
Reading off probabilities
To find , expand and pick out the coefficient of .
- , so .
- , so .
- , so .
Use the binomial expansion, the expansion of and geometric series: the same tools as for Maclaurin series.
The standard generating functions
These are in the formula booklet, but you need to be able to derive them. Let .
- Binomial : .
- Poisson : .
- Geometric : , for .
- Negative binomial : , for .
Deriving them
Binomial. by the binomial theorem.
Poisson. .
Geometric. , a geometric series with sum , which converges when .
Negative binomial. An variable is the sum of independent variables (the waits for each success in turn), so its PGF is the geometric one raised to the power , by the product rule for sums in the next lesson.
Recognising distributions
Because a PGF determines the distribution, you can identify a distribution from its PGF:
- is ;
- is ;
- is .
Rearranging into the standard form (dividing top and bottom by a constant, as in the last example) is often the key step.
Practise this topic
Both are part of Premium.