A-Level Further Maths 9231 / Topic 4.5 / AS & A Level
Differentiate once for the mean, multiply for a sum.
A probability generating function packs a whole distribution into one function of \(t\). Differentiate it and put \(t = 1\) to get the mean and the variance without summing a single series, and multiply PGFs together to find the distribution of a total of independent variables.
For \(G(t) = E(t^{X}) = \sum p_{r}t^{r}\): \(G(1) = 1\), \(E(X) = G'(1)\) and \(\operatorname{Var}(X) = G''(1) + G'(1) - [G'(1)]^{2}\) (both in MF19). Differentiate FIRST, then put \(t = 1\). If \(X\) and \(Y\) are independent, \(G_{X+Y}(t) = G_{X}(t)\,G_{Y}(t)\), and the same holds for any number of independent variables. \(P(X + Y = k)\) is the coefficient of \(t^{k}\) in the product.
Fig. 1: the total S of two fair dice. Squaring the PGF of one die, G(t) = (t + t^2 + ... + t^6)/6, gives the PGF of S; the coefficient of t^s is P(S = s), and differentiating gives E(S) = 7
Section 01
The mean and variance from G(t).
Start from \(G(t) = \sum p_{r}t^{r}\). Differentiating term by term brings each power \(r\) down in front, and putting \(t = 1\) turns every power of \(t\) into 1. That is all the derivation needs.
\(G''(1)\) is \(E\big(X(X-1)\big)\), NOT \(E(X^{2})\). Writing \(\operatorname{Var}(X) = G''(1) - [G'(1)]^{2}\) drops the \(+\,G'(1)\) and gives \(\tfrac{17}{4} - \tfrac{25}{4} = -2\) in the first example: a negative variance is a sure sign of this slip. Also differentiate BEFORE putting \(t = 1\); \(G(1)\) is always 1 and tells you nothing about the mean.
Section 02
Checking the standard results.
The PGFs from the last lesson give the familiar means and variances in a few lines. This is a common exam request ('use the PGF to show that ...'), so set out each derivative clearly.
Distribution
\(G(t)\)
\(E(X) = G'(1)\)
\(\operatorname{Var}(X)\)
\(\mathrm{B}(n, p)\), \(q = 1 - p\)
\((q + pt)^{n}\)
\(np\)
\(npq\)
\(\mathrm{Po}(\lambda)\)
\(e^{\lambda(t - 1)}\)
\(\lambda\)
\(\lambda\)
\(\mathrm{Geo}(p)\), \(r = 1, 2, \dots\)
\(\dfrac{pt}{1 - qt}\)
\(\dfrac{1}{p}\)
\(\dfrac{q}{p^{2}}\)
uniform on \(1, \dots, n\)
\(\tfrac{1}{n}(t + t^{2} + \dots + t^{n})\)
\(\dfrac{n + 1}{2}\)
\(\dfrac{n^{2} - 1}{12}\)
Worked example Binomial and Poisson
Use PGFs to show that \(X \sim \mathrm{B}(n, p)\) has variance \(npq\), and that \(Y \sim \mathrm{Po}(\lambda)\) has mean and variance both equal to \(\lambda\).
Answer: \(E(X) = \frac{1}{p}\) and \(\operatorname{Var}(X) = \frac{q}{p^{2}}\)
Your turn
The score \(X\) on a fair six-sided die has PGF \(G(t) = \tfrac{1}{6}(t + t^{2} + \dots + t^{6})\). Use it to find \(E(X)\) and \(\operatorname{Var}(X)\).
In 9231 the geometric variable counts trials up to and INCLUDING the first success (\(r = 1, 2, \dots\)), so its PGF has \(t\) on top: \(\dfrac{pt}{1 - qt}\). Leaving out that \(t\) gives \(\dfrac{p}{1 - qt}\), the PGF of the number of failures, with mean \(\dfrac{q}{p}\), not \(\dfrac{1}{p}\).
Stage 1 · Learn
Check your understanding
Four quick checks. Each correct answer earns XP and records this skill on your profile.
For a random variable \(X\), \(G'(1) = 3\) and \(G''(1) = 10\). Find \(\operatorname{Var}(X)\).
Quick check+10 XP
\(X\) and \(Y\) are independent with PGFs \((0.3 + 0.7t)^{4}\) and \((0.3 + 0.7t)^{6}\). Which is the PGF of \(X + Y\)?
Quick check+10 XP
\(X \sim \mathrm{Po}(1.5)\) and \(Y \sim \mathrm{Po}(2.5)\) are independent. Which is the PGF of \(X + Y\)?
Section 03
Sums of independent variables: multiply.
If \(X\) and \(Y\) are independent, then \(t^{X}\) and \(t^{Y}\) are independent too, so the expectation of their product is the product of their expectations: \(G_{X+Y}(t) = E(t^{X}t^{Y}) = E(t^{X})\,E(t^{Y}) = G_{X}(t)\,G_{Y}(t)\). If the product is a PGF you recognise, you have identified the distribution of the sum.
Poisson: \(e^{\lambda(t-1)}e^{\mu(t-1)} = e^{(\lambda + \mu)(t-1)}\), so \(X + Y \sim \mathrm{Po}(\lambda + \mu)\).
Binomial, same \(p\): \((q + pt)^{m}(q + pt)^{n} = (q + pt)^{m+n}\), so \(X + Y \sim \mathrm{B}(m + n, p)\). With different values of \(p\) the product is not of this form.
\(n\) independent \(\mathrm{Geo}(p)\): the total has PGF \(\left(\dfrac{pt}{1 - qt}\right)^{n}\). No named distribution is needed; differentiate or expand it.
Any discrete variables: multiply the polynomials; \(P(X + Y = k)\) is the coefficient of \(t^{k}\) (Fig. 1).
Worked example Two Poisson counts
The numbers of emails \(X\) and texts \(Y\) a student receives in an hour are independent with \(X \sim \mathrm{Po}(2)\) and \(Y \sim \mathrm{Po}(3)\). Use PGFs to find the distribution of the total \(T = X + Y\), and find \(P(T = 2)\).
The coefficient of \(t^{10}\) is \(\tfrac{3}{36}\): the products \(t^{4}t^{6}\), \(t^{5}t^{5}\), \(t^{6}t^{4}\). See Fig. 1.
\(G_{S}'(t) = 2G(t)G'(t)\), so \(G_{S}'(1) = 2\times 1\times\tfrac{7}{2} = 7\).
Answer: \(P(S = 10) = \frac{1}{12}\) and \(E(S) = 7\)
Your turn
\(X \sim \mathrm{B}(3, 0.4)\) and \(Y \sim \mathrm{B}(5, 0.4)\) are independent. Use PGFs to identify the distribution of \(X + Y\) and find \(P(X + Y = 3)\) to 3 significant figures.
\((0.6 + 0.4t)^{3}(0.6 + 0.4t)^{5} = (0.6 + 0.4t)^{8}\), so \(X + Y \sim \mathrm{B}(8, 0.4)\). \(P(X + Y = 3) = \binom{8}{3}(0.4)^{3}(0.6)^{5} = 0.279\).
Your turn
\(X_{1}\), \(X_{2}\), \(X_{3}\) are independent, each \(\mathrm{Geo}(\tfrac{1}{2})\). Write down the PGF of \(T = X_{1} + X_{2} + X_{3}\) and find \(P(T = 4)\).
Each PGF is \(\dfrac{\frac{1}{2}t}{1 - \frac{1}{2}t} = \dfrac{t}{2 - t}\), so \(G_{T}(t) = \dfrac{t^{3}}{(2 - t)^{3}} = \dfrac{t^{3}}{8}\left(1 - \tfrac{t}{2}\right)^{-3} = \dfrac{t^{3}}{8}\left(1 + \tfrac{3}{2}t + \dots\right)\). The coefficient of \(t^{4}\) is \(\tfrac{3}{16}\).
Examiner trap
Multiply PGFs, never add them: \(G_{X}(t) + G_{Y}(t)\) equals 2 at \(t = 1\), so it is not a PGF at all. The result needs INDEPENDENCE. And a sum of two copies is not \(2X\): if \(X_{1}\) and \(X_{2}\) are independent with PGF \(G(t)\), then \(X_{1} + X_{2}\) has PGF \([G(t)]^{2}\), but \(2X_{1}\) has PGF \(G(t^{2})\).
Stage 2 · Exam
Exam-style questions
Unlocks once the four checks above are done. Worth more XP, written to AS & A Level Further Mathematics Paper 1 to 4 standard.
Finish the four checks above to unlock the exam questions
Exam style+20 XP
The random variable \(X\) has PGF \(G(t) = \dfrac{t}{4 - 3t}\). Use \(G\) to find \(\operatorname{Var}(X)\).
Exam style+20 XP
The random variable \(X\) has PGF \(G(t) = e^{2(t^{2} - 1)}\). Find \(E(X)\) and \(\operatorname{Var}(X)\).
Exam style+20 XP
A fair four-sided die has faces 1, 2, 3, 4, so its score has PGF \(\tfrac{1}{4}(t + t^{2} + t^{3} + t^{4})\). Two such dice are thrown. Use PGFs to find the probability that the total is 5.
Exam style+20 XP
\(X_{1}\) and \(X_{2}\) are independent, each \(\mathrm{Geo}(0.2)\), and \(T = X_{1} + X_{2}\), with PGF \(G_{T}(t) = \left(\dfrac{0.2t}{1 - 0.8t}\right)^{2}\). Given \(G_{T}'(1) = 10\) and \(G_{T}''(1) = 130\), find \(\operatorname{Var}(T)\).
Skill unlocked
Mean, variance and sums from PGFs: that completes Further Mathematics 9231.
This skill is now recorded on your profile. Keep the chain going.