The shape of the lesson
By the end of the lesson, learners can
- The mean and variance from G(t): Start from \(G(t) = \sum p_{r}t^{r}\).
- Checking the standard results: The PGFs from the last lesson give the familiar means and variances in a few lines.
- 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)\).
- Check \(G(1) = 1\).
- Mean: \(E(X) = G'(1)\). Differentiate first, substitute second.
- Variance: \(\operatorname{Var}(X) = G''(1) + G'(1) - [G'(1)]^{2}\); never negative.
- Probabilities: \(P(X = k)\) is the coefficient of \(t^{k}\); \(P(X = 0) = G(0)\).
- Sums: for INDEPENDENT variables multiply the PGFs, then recognise, differentiate or expand the product.
One picture every idea returns to
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.
Forty-five minutes, phase by phase
| Time | Phase | What happens in the room | Grouping |
|---|---|---|---|
| 0 to 5 min | Hook: predict | Open with the question in the title, Differentiate once for the mean, multiply for a sum.. A probability generating function packs a whole distribution into one function of \(t\). Put the figure on the board: it is the one picture every idea in the lesson returns to. | Whole class, then pairs |
| 5 to 13 min | Teach and check: The mean and variance from G(t) | Start from \(G(t) = \sum p_{r}t^{r}\). Model the worked example A polynomial PGF on the board, one line at a time. Your turn: \(X\) has PGF \(G(t) = \dfrac{1}{2}t^{2}(1 + t)\). Find \(E(X)\) and \(\operatorname{Var}(X)\). | Whole class, then pairs |
| 13 to 21 min | Teach and check: Checking the standard results | The PGFs from the last lesson give the familiar means and variances in a few lines. Model the worked example Binomial and Poisson on the board, one line at a time. 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)\). | Pairs |
| 21 to 30 min | Teach and check: 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)\). Project tab 5 of the lab (Distributions lab, PGF of a sum) and let a student drive it while the class predicts. Model the worked example Two Poisson counts on the board, one line at a time. 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. | Rally Coach |
| 30 to 36 min | Check | The four Stage 1 questions from the student lesson, answered on mini whiteboards or by show of fingers. Re-teach the one most get wrong. | Individual, then whole class |
| 36 to 43 min | Plenary | The exam-style questions from Stage 2, one at a time: thirty seconds alone, then a random call. The feedback lines in the key give the examiner's wording. | Individual, random call |
| 43 to 45 min | Exit and homework | Set the worksheet below (6 questions, 28 marks). Learners self-assess against the objectives before they leave. | Individual |
Protect the parts that carry the learning
The sequence carries about fifty minutes of material, so the lab is driven by one student while the class predicts rather than explored freely. Times are a guide.
Protected: the check at 30 minutes. It is the only individual read on whether the key idea landed, and it is not cut.
Cut first if the build overruns: the last check in Sums of independent variables: multiply, never the check or the plenary.
In a 60 minute block: run worksheet questions 1 to 3 in class as a Rally Coach set and model both the hardest worked example and its check live.
Rally Coach
Pairs share one worksheet. One partner solves the first question aloud while the other coaches, checking each line and offering a prompt rather than the answer; they swap roles for the next question.
The full structure, with its PIES check and a worked example for every subject, is on the cooperative-learning page, one of fifteen structures there.
What to head off, and how
| Trap learners fall into | Teaching move that pre-empts it |
|---|---|
| \(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. |
| 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}\). |
| 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})\). |
PGFs: mean, variance and sums: worksheet
6 questions, 28 marks. Written in the style of the papers; no past paper question is reproduced.
The random variable \(X\) has PGF \(G(t) = \dfrac{1}{8}\left(1 + 3t + 4t^{3}\right)\).
Use \(G\) to find \(E(X)\) and \(\operatorname{Var}(X)\).
The random variable \(X\) has PGF \(G(t) = \dfrac{1}{(2 - t)^{2}}\).
(a) Show that \(G(1) = 1\).
(b) Find \(E(X)\) and \(\operatorname{Var}(X)\).
(c) Find \(P(X = 0)\) and \(P(X = 1)\).
The random variable \(X\) is uniformly distributed on \(1, 2, \dots, n\), so \(G(t) = \dfrac{1}{n}\left(t + t^{2} + \dots + t^{n}\right)\).
Using \(\sum_{r=1}^{n} r = \tfrac{1}{2}n(n+1)\) and \(\sum_{r=1}^{n} r(r-1) = \tfrac{1}{3}(n-1)n(n+1)\), show that \(E(X) = \dfrac{n + 1}{2}\) and \(\operatorname{Var}(X) = \dfrac{n^{2} - 1}{12}\).
The numbers of calls \(X\) and \(Y\) received by two help desks in a 10-minute period are independent, with \(X \sim \mathrm{Po}(1.2)\) and \(Y \sim \mathrm{Po}(0.8)\).
(a) Use PGFs to show that the total \(T = X + Y\) has a Poisson distribution, stating its mean.
(b) Find \(P(T \le 2)\).
\(X \sim \mathrm{B}(4, 0.3)\) and \(Y \sim \mathrm{B}(6, 0.3)\) are independent.
(a) Use PGFs to find the distribution of \(X + Y\), and find \(P(X + Y = 2)\).
(b) \(W \sim \mathrm{B}(6, 0.5)\) is independent of \(X\). Explain, by considering PGFs, why \(X + W\) does not have a binomial distribution.
Three friends each toss a fair coin until they get a head. \(X_{1}\), \(X_{2}\), \(X_{3}\) are the numbers of tosses they need, independent and each \(\mathrm{Geo}(\tfrac{1}{2})\). \(T = X_{1} + X_{2} + X_{3}\).
(a) Show that the PGF of \(T\) is \(G_{T}(t) = \dfrac{t^{3}}{(2 - t)^{3}}\).
(b) Use \(G_{T}\) to find \(E(T)\) and \(\operatorname{Var}(T)\).
(c) By expanding \(G_{T}(t)\), find \(P(T = 5)\).
Answer key and marking notes
- \(G'(t) = \tfrac{1}{8}(3 + 12t^{2})\), so \(E(X) = G'(1) = \tfrac{15}{8}\).
- \(G''(t) = \tfrac{1}{8}(24t)\), so \(G''(1) = 3\).
- \[\operatorname{Var}(X) = 3 + \tfrac{15}{8} - \tfrac{225}{64} = \tfrac{192 + 120 - 225}{64} = \tfrac{87}{64}\]
- (a) \(G(1) = \dfrac{1}{1^{2}} = 1\).
- (b) \(G'(t) = 2(2 - t)^{-3}\) and \(G''(t) = 6(2 - t)^{-4}\), so \(G'(1) = 2\) and \(G''(1) = 6\).
- \(E(X) = 2\) and \(\operatorname{Var}(X) = 6 + 2 - 4 = 4\).
- (c) \(P(X = 0) = G(0) = \tfrac{1}{4}\).
- \(P(X = 1)\) is the coefficient of \(t\), which is \(G'(0) = 2\times 2^{-3} = \tfrac{1}{4}\).
- \(G'(1) = \tfrac{1}{n}\sum r = \tfrac{1}{n}\times\tfrac{1}{2}n(n+1) = \tfrac{n+1}{2}\).
- \(G''(1) = \tfrac{1}{n}\sum r(r-1) = \tfrac{1}{3}(n-1)(n+1)\).
- \[\begin{aligned} \operatorname{Var}(X) &= \tfrac{(n-1)(n+1)}{3} + \tfrac{n+1}{2} - \tfrac{(n+1)^{2}}{4} \\ &= \tfrac{n+1}{12}\big(4(n-1) + 6 - 3(n+1)\big) \end{aligned}\]
- \[= \tfrac{n+1}{12}(n - 1) = \tfrac{n^{2} - 1}{12}\]
- (a) \(G_{T}(t) = e^{1.2(t-1)}\,e^{0.8(t-1)} = e^{2(t-1)}\), the PGF of \(\mathrm{Po}(2)\). The mean is 2.
- \[\text{(b) } P(T \le 2) = e^{-2}\left(1 + 2 + \tfrac{2^{2}}{2}\right) = 5e^{-2}\]
- \(= 0.677\) (3 s.f.).
- (a) \((0.7 + 0.3t)^{4}(0.7 + 0.3t)^{6} = (0.7 + 0.3t)^{10}\), so \(X + Y \sim \mathrm{B}(10, 0.3)\).
- \[P(X + Y = 2) = \binom{10}{2}(0.3)^{2}(0.7)^{8} = 0.233 \text{ (3 s.f.)}\]
- (b) The PGF of \(X + W\) is \((0.7 + 0.3t)^{4}(0.5 + 0.5t)^{6}\).
- A binomial PGF is \((q + pt)^{n}\), a single linear factor raised to a power; here the linear factors are different (roots \(t = -\tfrac{7}{3}\) and \(t = -1\)), so the product cannot be written in that form and \(X + W\) is not binomial.
- (a) Each \(X_{i}\) has PGF \(\dfrac{\frac{1}{2}t}{1 - \frac{1}{2}t} = \dfrac{t}{2 - t}\); by independence \(G_{T}(t) = \left(\dfrac{t}{2 - t}\right)^{3}\).
- \[\text{(b) } G_{T}'(t) = 3t^{2}(2 - t)^{-3} + 3t^{3}(2 - t)^{-4} \;\Rightarrow\; G_{T}'(1) = 6\]
- \[\begin{aligned} G_{T}''(t) &= 6t(2-t)^{-3} + 18t^{2}(2-t)^{-4} \\ &\quad + 12t^{3}(2-t)^{-5} \end{aligned}\]
- \(G_{T}''(1) = 6 + 18 + 12 = 36\), so \(E(T) = 6\) and \(\operatorname{Var}(T) = 36 + 6 - 36 = 6\) (check: \(3\times\tfrac{q}{p^{2}} = 3\times 2 = 6\)).
- \[\text{(c) } G_{T}(t) = \frac{t^{3}}{8}\left(1 - \tfrac{t}{2}\right)^{-3} = \frac{t^{3}}{8}\left(1 + \tfrac{3}{2}t + \tfrac{6}{4}t^{2} + \dots\right)\]
- The coefficient of \(t^{5}\) is \(\tfrac{1}{8}\times\tfrac{6}{4} = \tfrac{3}{16}\), so \(P(T = 5) = \tfrac{3}{16}\).
8 multiple-choice questions on this lesson
From the topic question bank. Assign them in the app for a marked score in your gradebook, or run the topic as a class game.
The random variable \(X\) has PGF \(G(t) = 0.2t + 0.5t^{2} + 0.3t^{4}\). Use \(G\) to find \(E(X)\).
- A\(2.1\)
- B\(0.2\)
- C\(4.6\)
- D\(2.4\)
The random variable \(X\) has PGF \(G(t) = (0.4 + 0.6t)^{5}\). Use \(G\) to find \(\operatorname{Var}(X)\).
- A\(3\)
- B\(10.2\)
- C\(1.2\)
- D\(4.2\)
\(X \sim \mathrm{Po}(1.2)\) and \(Y \sim \mathrm{Po}(0.8)\) are independent. Use PGFs to find \(P(X + Y = 2)\), to 3 significant figures.
- A\(0.176\)
- B\(0.541\)
- C\(0.271\)
- D\(0.130\)
Independent random variables \(X\) and \(Y\) have PGFs \(0.4 + 0.6t\) and \(0.3t + 0.7t^{2}\). Find \(P(X + Y = 2)\).
- A\(0.18\)
- B\(0.28\)
- C\(0.42\)
- D\(0.46\)
The random variable \(X\) has PGF \(G(t) = \dfrac{t}{5 - 4t}\). Use \(G\) to find \(E(X)\) and \(\operatorname{Var}(X)\).
- A\(E(X) = 5,\ \operatorname{Var}(X) = 20\)
- B\(E(X) = 4,\ \operatorname{Var}(X) = 20\)
- C\(E(X) = 5,\ \operatorname{Var}(X) = 25\)
- D\(E(X) = 5,\ \operatorname{Var}(X) = 45\)
\(X_{1}\) and \(X_{2}\) are independent, each \(\mathrm{Geo}\left(\tfrac{1}{3}\right)\), and \(T = X_{1} + X_{2}\). Use the PGF of \(T\) to find \(P(T = 4)\).
- A\(\dfrac{8}{81}\)
- B\(\dfrac{4}{27}\)
- C\(\dfrac{80}{729}\)
- D\(\dfrac{4}{81}\)
\(X \sim \mathrm{B}(10, 0.2)\) and \(Y \sim \mathrm{Po}(3)\) are independent, and \(T = X + Y\) has PGF \(G_{T}(t) = (0.8 + 0.2t)^{10}e^{3(t - 1)}\). Find \(E(T)\) and \(\operatorname{Var}(T)\).
- A\(E(T) = 6,\ \operatorname{Var}(T) = 4.8\)
- B\(E(T) = 5,\ \operatorname{Var}(T) = 8.98\)
- C\(E(T) = 5,\ \operatorname{Var}(T) = 4.6\)
- D\(E(T) = 5,\ \operatorname{Var}(T) = 5\)
The random variable \(X\) has PGF \(G(t) = \dfrac{1}{9}t(1 + 2t)^{2}\). Find \(E(X)\) and \(\operatorname{Var}(X)\).
- A\(E(X) = \tfrac{7}{3},\ \operatorname{Var}(X) = \tfrac{13}{9}\)
- B\(E(X) = \tfrac{4}{3},\ \operatorname{Var}(X) = \tfrac{4}{9}\)
- C\(E(X) = \tfrac{7}{3},\ \operatorname{Var}(X) = \tfrac{4}{9}\)
- D\(E(X) = \tfrac{7}{3},\ \operatorname{Var}(X) = \tfrac{53}{9}\)
Quiz key
\(G'(t) = 0.2 + t + 1.2t^{3}\), so \(E(X) = G'(1) = 0.2 + 1 + 1.2 = 2.4\). \(0.2\) is \(G'(0)\), substituting the wrong value of \(t\). \(2.1\) differentiates \(0.3t^{4}\) as \(0.9t^{2}\), using the power 3. \(4.6\) is \(G''(1)\), differentiating once too often.
\(G'(t) = 3(0.4 + 0.6t)^{4}\), so \(G'(1) = 3\). \(G''(t) = 7.2(0.4 + 0.6t)^{3}\), so \(G''(1) = 7.2\). \(\operatorname{Var}(X) = 7.2 + 3 - 9 = 1.2\), which agrees with \(npq = 5(0.6)(0.4)\). \(4.2\) subtracts \(G'(1)\) instead of adding it. \(10.2\) leaves out \(-[G'(1)]^{2}\). \(3\) is the mean, not the variance.
\(G_{X+Y}(t) = e^{1.2(t - 1)}e^{0.8(t - 1)} = e^{2(t - 1)}\), so \(X + Y \sim \mathrm{Po}(2)\) and \(P(X + Y = 2) = e^{-2}\dfrac{2^{2}}{2!} = 0.271\). \(0.130\) is \(P(X = 1)P(Y = 1)\), only one of the three ways to make 2. \(0.176\) multiplies the means to use \(\mathrm{Po}(0.96)\). \(0.541\) forgets to divide by \(2!\).
\((0.4 + 0.6t)(0.3t + 0.7t^{2}) = 0.12t + (0.28 + 0.18)t^{2} + 0.42t^{3}\), so \(P(X + Y = 2) = 0.46\) (check: \(0.12 + 0.46 + 0.42 = 1\)). \(0.28\) keeps only \(0.4 \times 0.7t^{2}\) and \(0.18\) only \(0.6t \times 0.3t\): each misses one of the two ways to total 2. \(0.42\) is the coefficient of \(t^{3}\).
\(G(t) = \dfrac{0.2t}{1 - 0.8t}\) is \(\mathrm{Geo}(0.2)\). \(G'(t) = \dfrac{5}{(5 - 4t)^{2}}\), so \(G'(1) = 5\); \(G''(t) = \dfrac{40}{(5 - 4t)^{3}}\), so \(G''(1) = 40\). \(\operatorname{Var}(X) = 40 + 5 - 25 = 20 = \dfrac{q}{p^{2}}\). \(\operatorname{Var} = 25\) uses \(\dfrac{1}{p^{2}}\), forgetting the factor \(q\). \(E(X) = 4\) is \(\dfrac{q}{p}\), the mean number of failures, for a geometric starting at 0. \(45\) is \(G''(1) + G'(1)\) without subtracting \([G'(1)]^{2}\).
\(G_{T}(t) = \left(\dfrac{\frac{1}{3}t}{1 - \frac{2}{3}t}\right)^{2} = \dfrac{1}{9}t^{2}\left(1 + 2\cdot\tfrac{2}{3}t + 3\left(\tfrac{2}{3}t\right)^{2} + \dots\right)\). The \(t^{4}\) term needs \(t^{2}\) from the bracket: \(P(T = 4) = \tfrac{1}{9}\cdot 3\cdot\tfrac{4}{9} = \tfrac{4}{27}\) (the three ways (1, 3), (2, 2), (3, 1) each have probability \(\tfrac{4}{81}\)). \(\tfrac{4}{81}\) drops the factor 3, counting only one way. \(\tfrac{8}{81}\) is \(P(X_{1} = 4)\) for a single variable. \(\tfrac{80}{729}\) takes the \(t^{4}\) term of the bracket, forgetting the \(t^{2}\) in front.
\(G_{T}'(1) = 2 + 3 = 5\) and \(G_{T}''(1) = 3.6 + 2(2)(3) + 9 = 24.6\), so \(\operatorname{Var}(T) = 24.6 + 5 - 25 = 4.6\), matching \(npq + \lambda = 1.6 + 3\). \(\operatorname{Var} = 5\) treats \(T\) as Poisson, but \(T\) is not Poisson, so its variance need not equal its mean. \(E = 6,\ \operatorname{Var} = 4.8\) multiplies the means (\(2 \times 3\)) and the variances (\(1.6 \times 3\)) instead of adding them. \(8.98\) adds the standard deviations and then squares.
\(G(t) = t\left(\tfrac{1}{3} + \tfrac{2}{3}t\right)^{2}\), so \(X = 1 + W\) with \(W \sim \mathrm{B}\left(2, \tfrac{2}{3}\right)\). By differentiation, \(G'(1) = \tfrac{7}{3}\) and \(G''(1) = \tfrac{32}{9}\), so \(\operatorname{Var}(X) = \tfrac{32}{9} + \tfrac{21}{9} - \tfrac{49}{9} = \tfrac{4}{9}\), the same as \(\operatorname{Var}(W) = 2\cdot\tfrac{2}{3}\cdot\tfrac{1}{3}\). \(E = \tfrac{4}{3}\) ignores the factor \(t\), the shift of 1. \(\tfrac{13}{9}\) adds the shift of 1 to the variance as well, but a shift does not change the variance. \(\tfrac{53}{9}\) is \(G''(1) + G'(1)\) without subtracting \([G'(1)]^{2}\).
What to project
The student lesson embeds these tabs. Open them full screen on the projector; every slider has a drag handle on the stage.
Slides for this lesson
A projectable deck for every pack is on the way. Until then, present the student lesson full screen: its sections, figure and lab tabs follow the same order as the plan above.