The shape of the lesson
By the end of the lesson, learners can
- Probabilities as coefficients: A probability generating function (PGF) is a power series in a dummy variable \(t\) whose coefficients are the probabilities of \(X\).
- The four standard PGFs, derived: Each standard PGF comes from the probability formula in one or two lines: write down \(\sum P(X = x)\,t^{x}\) and recognise the series.
- Recognise it, transform it: Because a PGF determines the distribution, matching a PGF to one of the four standard forms identifies the distribution and its parameters.
- Construct: \(G(t) = \sum P(X = x)\,t^{x}\), with the power equal to the value of \(x\).
- Check or find constants with \(G(1) = 1\); remember \(G(0) = P(X = 0)\).
- Read probabilities as coefficients of \(t^{r}\), by expanding or from \(\dfrac{G^{(r)}(0)}{r!}\).
- Recognise: \((q + pt)^{n}\), \(\dfrac{pt}{1 - qt}\), \(e^{\lambda(t - 1)}\), \(\dfrac{t(1 - t^{n})}{n(1 - t)}\); tidy the PGF into one of these first.
- Transform: \(Y = aX + b\) has \(G_Y(t) = t^{b}G_X(t^{a})\).
One picture every idea returns to
For a discrete random variable \(X\) taking values \(0, 1, 2, \ldots\), the probability generating function is \(G_X(t) = E(t^{X}) = \displaystyle\sum_{x} P(X = x)\,t^{x}\). The coefficient of \(t^{r}\) is \(P(X = r)\), so \(P(X = r) = \dfrac{G^{(r)}(0)}{r!}\), and \(G(1) = \sum P(X = x) = 1\). The standard PGFs are: discrete uniform on \(1, \ldots, n\): \(\dfrac{t(1 - t^{n})}{n(1 - t)}\); \(\mathrm{B}(n, p)\): \((q + pt)^{n}\); \(\mathrm{Geo}(p)\): \(\dfrac{pt}{1 - qt}\); \(\mathrm{Po}(\lambda)\): \(e^{\lambda(t - 1)}\), where \(q = 1 - p\). For \(Y = aX + b\), \(G_Y(t) = t^{b}\,G_X(t^{a})\).
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, A whole distribution in one function.. Write each probability \(P(X = x)\) as the coefficient of \(t^{x}\) and add the terms: the result, \(G(t) = E(t^{X})\), stores the entire distribution of a discrete random variable. 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: Probabilities as coefficients | A probability generating function (PGF) is a power series in a dummy variable \(t\) whose coefficients are the probabilities of \(X\). Project tab 5 of the lab (Distributions lab, PGFs) and let a student drive it while the class predicts. Model the worked example From a table to a PGF on the board, one line at a time. Your turn: The PGF of \(X\) is \(G(t) = \frac{1}{4}(t + t^{2} + 2t^{4})\). Find \(P(X\ \text{is even})\). | Whole class, then pairs |
| 13 to 21 min | Teach and check: The four standard PGFs, derived | Each standard PGF comes from the probability formula in one or two lines: write down \(\sum P(X = x)\,t^{x}\) and recognise the series. Model the worked example Derive the geometric PGF and use it on the board, one line at a time. | Pairs |
| 21 to 30 min | Teach and check: Recognise it, transform it | Because a PGF determines the distribution, matching a PGF to one of the four standard forms identifies the distribution and its parameters. Model the worked example Identify a geometric PGF on the board, one line at a time. Your turn: The PGF of \(X\) is \(e^{1.5t - 1.5}\). Identify the distribution of \(X\), write down the PGF of \(Y = X + 3\) and find \(P(Y = 3)\). | Round Table |
| 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, 22 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 Recognise it, transform it, 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.
Round Table
One sheet travels round the team. Each student adds one line of working or one idea and passes it on, so the solution is built four hands at a time and every contribution is visible.
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 |
|---|---|
| It is \(G(1) = 1\), not \(G(0) = 1\). \(G(0)\) is just \(P(X = 0)\), which is often zero. | Using \(G(0) = 1\) to find \(k\) in \(k(1 + 2t)^{3}\) would give \(k = 1\), and then the probabilities would add up to 27. |
| Cambridge's geometric distribution counts the trials up to and including the first success, so \(X\) starts at 1 and the PGF has a factor \(t\) on top: \(\dfrac{pt}{1 - qt}\), not \(\dfrac{p}{1 - qt}\). | In the binomial PGF the \(t\) goes with \(p\), the probability of success: \((q + pt)^{n}\), not \((p + qt)^{n}\). |
| For \(Y = aX + b\) the PGF is \(t^{b}G_X(t^{a})\): the \(b\) becomes a power of \(t\) outside, and the \(a\) becomes a power of \(t\) inside. | It is NOT \(G_X(at + b)\), and NOT \(aG_X(t) + b\), which would not even satisfy \(G(1) = 1\). |
Probability generating functions: worksheet
6 questions, 22 marks. Written in the style of the papers; no past paper question is reproduced.
The random variable \(X\) has \(P(X = 1) = 0.25\), \(P(X = 2) = 0.45\) and \(P(X = 4) = 0.3\).
(a) Write down the probability generating function of \(X\).
(b) Show that \(G(1) = 1\) and state the value of \(G(0)\).
The PGF of \(X\) is \(G(t) = k\,t(1 + t)^{3}\). Find the value of \(k\) and \(P(X = 3)\).
The random variable \(X\) has the discrete uniform distribution on \(1, 2, \ldots, n\).
(a) Show that the PGF of \(X\) is \(\dfrac{t(1 - t^{n})}{n(1 - t)}\) for \(t \ne 1\).
(b) Write down the PGF of the score on a fair six-sided die, and use it to verify that \(P(\text{score} = 4) = \frac{1}{6}\).
The random variable \(Y\) has PGF \(G_Y(t) = e^{0.5(t^{2} - 1)}\).
(a) Show that \(Y = 2X\), where \(X \sim \mathrm{Po}(0.5)\).
(b) Find \(P(Y = 4)\).
(c) Explain why \(P(Y = 3) = 0\).
The PGF of \(X\) is \(G(t) = \dfrac{t}{5 - 4t}\).
(a) Show that \(X\) has a geometric distribution and state its parameter.
(b) Find \(P(X = 3)\) and \(P(X > 3)\).
The PGF of \(X\) is \(G(t) = (a + bt)^{4}\), where \(a\) and \(b\) are positive constants, and \(P(X = 4) = \frac{1}{81}\).
(a) Find \(a\) and \(b\), and name the distribution of \(X\).
(b) Find \(P(X = 1)\).
(c) Write down the PGF of \(Y = X + 2\) and state \(P(Y = 3)\).
Answer key and marking notes
- (a) \(G(t) = 0.25t + 0.45t^{2} + 0.3t^{4}\).
- (b) \(G(1) = 0.25 + 0.45 + 0.3 = 1\).
- \(G(0) = 0\), because \(P(X = 0) = 0\).
- \(G(1) = 1\): \(k \times 1 \times 2^{3} = 1\), so \(k = \dfrac{1}{8}\).
- \(G(t) = \dfrac{1}{8}(t + 3t^{2} + 3t^{3} + t^{4})\).
- \(P(X = 3)\) is the coefficient of \(t^{3}\): \(\dfrac{3}{8}\).
- (a) \(G(t) = \displaystyle\sum_{x = 1}^{n}\frac{1}{n}t^{x} = \frac{1}{n}(t + t^{2} + \cdots + t^{n})\).
- This is a geometric series with first term \(t\), common ratio \(t\) and \(n\) terms, so for \(t \ne 1\) its sum is \(\dfrac{t(1 - t^{n})}{1 - t}\), giving \(G(t) = \dfrac{t(1 - t^{n})}{n(1 - t)}\).
- (b) With \(n = 6\): \(G(t) = \dfrac{t(1 - t^{6})}{6(1 - t)}\).
- Since \(\dfrac{1 - t^{6}}{1 - t} = 1 + t + t^{2} + t^{3} + t^{4} + t^{5}\), \(G(t) = \frac{1}{6}(t + t^{2} + \cdots + t^{6})\), and the coefficient of \(t^{4}\) is \(\frac{1}{6}\).
- (a) For \(X \sim \mathrm{Po}(0.5)\), \(G_X(t) = e^{0.5(t - 1)}\), and \(Y = 2X + 0\) has PGF \(t^{0}G_X(t^{2}) = e^{0.5(t^{2} - 1)}\), which matches. A PGF fixes the distribution, so \(Y\) has the distribution of \(2X\).
- (b) \(G_Y(t) = e^{-0.5}e^{0.5t^{2}} = e^{-0.5}\left(1 + 0.5t^{2} + \dfrac{(0.5t^{2})^{2}}{2!} + \cdots\right)\).
- The \(t^{4}\) coefficient is \(e^{-0.5} \times \dfrac{0.25}{2} = 0.125e^{-0.5} = 0.0758\) (3 s.f.), which is \(P(X = 2)\).
- (c) \(G_Y(t)\) contains only even powers of \(t\), so the coefficient of \(t^{3}\) is 0: \(Y = 2X\) is always even.
- (a) Divide top and bottom by 5: \(G(t) = \dfrac{0.2t}{1 - 0.8t}\), which is \(\dfrac{pt}{1 - qt}\) with \(p = 0.2\), \(q = 0.8\). So \(X \sim \mathrm{Geo}(0.2)\).
- (b) \(G(t) = 0.2t(1 + 0.8t + 0.64t^{2} + \cdots)\), so \(P(X = 3) = 0.2 \times 0.64 = 0.128\).
- \(P(X > 3)\) means the first three trials all fail: \(q^{3} = 0.8^{3} = 0.512\).
- Check: \(P(X \le 3) = 0.2 + 0.16 + 0.128 = 0.488 = 1 - 0.512\).
- (a) \(P(X = 4)\) is the coefficient of \(t^{4}\): \(b^{4} = \frac{1}{81}\), so \(b = \frac{1}{3}\) (positive).
- \(G(1) = 1\): \((a + b)^{4} = 1\), so \(a + b = 1\) and \(a = \frac{2}{3}\). \(X \sim \mathrm{B}\left(4, \frac{1}{3}\right)\).
- (b) \(P(X = 1) = \binom{4}{1}\left(\frac{2}{3}\right)^{3}\left(\frac{1}{3}\right) = \dfrac{32}{81}\).
- (c) \(G_Y(t) = t^{2}\left(\frac{2}{3} + \frac{1}{3}t\right)^{4}\).
- \(Y = 3\) exactly when \(X = 1\), so \(P(Y = 3) = \dfrac{32}{81}\).
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.1 + 0.3t + kt^{2} + 0.2t^{4}\). Find \(k\) and \(P(X > 1)\).
- A\(k = 0.4,\ P(X > 1) = 0.2\)
- B\(k = 0.5,\ P(X > 1) = 0.7\)
- C\(k = 0.4,\ P(X > 1) = 0.9\)
- D\(k = 0.4,\ P(X > 1) = 0.6\)
The random variable \(X\) has PGF \(G(t) = \dfrac{3t}{7 - 4t}\). Identify the distribution of \(X\).
- A\(X \sim \mathrm{B}\left(1, \tfrac{3}{7}\right)\)
- B\(X \sim \mathrm{Geo}\left(\tfrac{3}{4}\right)\)
- C\(X \sim \mathrm{Geo}\left(\tfrac{3}{7}\right)\)
- D\(X \sim \mathrm{Geo}\left(\tfrac{4}{7}\right)\)
\(X\) has the discrete uniform distribution on \(1, 2, 3, 4, 5\). Which is the PGF of \(X\)?
- A\(\dfrac{t(1 - t^{5})}{1 - t}\)
- B\(\dfrac{t(1 - t^{6})}{5(1 - t)}\)
- C\(\dfrac{1 - t^{5}}{5(1 - t)}\)
- D\(\dfrac{t(1 - t^{5})}{5(1 - t)}\)
The random variable \(X\) has PGF \(G(t) = \dfrac{1}{16}(1 + t)^{2}(1 + 3t)\). Find \(P(X = 2)\).
- A\(\dfrac{7}{16}\)
- B\(\dfrac{1}{16}\)
- C\(\dfrac{3}{16}\)
- D\(\dfrac{5}{16}\)
Which of these functions CANNOT be the PGF of a discrete random variable?
- A\(\tfrac{1}{3}(4t - t^{2})\)
- B\(e^{t - 1}\)
- C\(\dfrac{t}{2 - t}\)
- D\(\tfrac{1}{4}(1 + t)^{2}\)
\(X \sim \mathrm{Geo}(0.4)\) and \(Y = 2X + 1\). Which is the PGF of \(Y\)?
- A\(\dfrac{0.4t^{3}}{1 - 0.6t}\)
- B\(\dfrac{0.4t^{3}}{1 - 0.6t^{3}}\)
- C\(\dfrac{0.4t^{3}}{1 - 0.6t^{2}}\)
- D\(\dfrac{0.4t^{2}}{1 - 0.6t^{2}}\)
The random variable \(X\), taking values \(0, 1, 2, \ldots\), has PGF \(G(t) = \dfrac{k}{3 - 2t}\). Find \(k\) and \(P(X = 2)\).
- A\(k = 3,\ P(X = 2) = \tfrac{4}{9}\)
- B\(k = 1,\ P(X = 2) = \tfrac{4}{9}\)
- C\(k = 1,\ P(X = 2) = \tfrac{4}{27}\)
- D\(k = 1,\ P(X = 2) = \tfrac{2}{9}\)
The random variable \(X\) has PGF \(G(t) = \dfrac{1}{(2 - t)^{2}}\). Use \(P(X = r) = \dfrac{G^{(r)}(0)}{r!}\) to find \(P(X = 2)\).
- A\(\dfrac{1}{8}\)
- B\(\dfrac{1}{16}\)
- C\(\dfrac{3}{8}\)
- D\(\dfrac{3}{16}\)
Quiz key
\(G(1) = 0.1 + 0.3 + k + 0.2 = 1\), so \(k = 0.4\). \(P(X > 1) = P(X = 2) + P(X = 4) = 0.4 + 0.2 = 0.6\). The answer 0.9 is \(P(X \ge 1)\), which wrongly includes the \(t\) term. \(k = 0.5\) leaves out the constant term 0.1 when using \(G(1) = 1\). 0.2 counts only the \(t^{4}\) term and misses \(P(X = 2)\).
\(\dfrac{3t}{7 - 4t} = \dfrac{\frac{3}{7}t}{1 - \frac{4}{7}t}\), which is \(\dfrac{pt}{1 - qt}\) with \(p = \tfrac{3}{7}\), \(q = \tfrac{4}{7}\) and \(p + q = 1\). So \(X \sim \mathrm{Geo}\left(\tfrac{3}{7}\right)\). \(\tfrac{4}{7}\) is \(q\), read as \(p\). \(\tfrac{3}{4}\) compares the two coefficients of \(t\) without dividing by 7 first. \(\mathrm{B}\left(1, \tfrac{3}{7}\right)\) has PGF \(\tfrac{4}{7} + \tfrac{3}{7}t\), a polynomial, not a quotient.
\(G(t) = \tfrac{1}{5}(t + t^{2} + \dots + t^{5}) = \tfrac{1}{5}\cdot\dfrac{t(1 - t^{5})}{1 - t}\). \(\dfrac{1 - t^{5}}{5(1 - t)}\) is the uniform distribution on \(0, \ldots, 4\) (it starts at \(t^{0}\)). \(t^{6}\) uses one term too many, so \(G(1) = \tfrac{6}{5}\). Dropping the \(\tfrac{1}{5}\) gives \(G(1) = 5\), not 1.
\((1 + 2t + t^{2})(1 + 3t) = 1 + 5t + 7t^{2} + 3t^{3}\), so \(G(t) = \tfrac{1}{16}(1 + 5t + 7t^{2} + 3t^{3})\) and \(P(X = 2) = \tfrac{7}{16}\) (check: \(1 + 5 + 7 + 3 = 16\)). \(\tfrac{1}{16}\) takes only \(t^{2} \times 1\) and misses the cross term \(2t \times 3t = 6t^{2}\). \(\tfrac{5}{16}\) is the coefficient of \(t\) (an index slip) and \(\tfrac{3}{16}\) the coefficient of \(t^{3}\).
\(\tfrac{1}{3}(4t - t^{2})\) has \(G(1) = \tfrac{1}{3}(4 - 1) = 1\), but the coefficient of \(t^{2}\) is \(-\tfrac{1}{3}\), a negative probability, so it is not a PGF. \(e^{t - 1}\) is the PGF of \(\mathrm{Po}(1)\). \(\dfrac{t}{2 - t} = \dfrac{\frac{1}{2}t}{1 - \frac{1}{2}t}\) is the PGF of \(\mathrm{Geo}\left(\tfrac{1}{2}\right)\). \(\tfrac{1}{4}(1 + t)^{2}\) is the PGF of \(\mathrm{B}\left(2, \tfrac{1}{2}\right)\). Choosing any of these comes from expecting an unusual-looking function to fail.
\(G_{X}(t) = \dfrac{0.4t}{1 - 0.6t}\), so \(G_{Y}(t) = t\,G_{X}(t^{2}) = t\cdot\dfrac{0.4t^{2}}{1 - 0.6t^{2}} = \dfrac{0.4t^{3}}{1 - 0.6t^{2}}\); its terms \(0.4t^{3} + 0.24t^{5} + \dots\) sit on \(Y = 3, 5, \ldots\) as they should. \(\dfrac{0.4t^{2}}{1 - 0.6t^{2}}\) is \(G_{X}(t^{2})\), forgetting the factor \(t^{1}\) for the \(+1\). \(\dfrac{0.4t^{3}}{1 - 0.6t}\) replaces \(t\) by \(t^{2}\) only in the numerator. \(\dfrac{0.4t^{3}}{1 - 0.6t^{3}}\) substitutes \(t^{3}\) throughout, mixing up \(a\) and \(b\).
\(G(1) = \dfrac{k}{1} = 1\), so \(k = 1\). \(G(t) = \tfrac{1}{3}\left(1 + \tfrac{2}{3}t + \tfrac{4}{9}t^{2} + \dots\right)\), so \(P(X = 2) = \tfrac{1}{3}\cdot\tfrac{4}{9} = \tfrac{4}{27}\). This \(X\) starts at 0, so it is not the 9231 \(\mathrm{Geo}(p)\), whose PGF \(\dfrac{pt}{1 - qt}\) starts at \(t^{1}\). \(\tfrac{2}{9}\) is the coefficient of \(t^{1}\), the answer if \(X\) is wrongly taken to start at 1. \(\tfrac{4}{9}\) with \(k = 1\) drops the factor \(\tfrac{1}{3}\) when taking out the 3, and \(k = 3\) matches the numerator to the 3 in the denominator instead of using \(G(1) = 1\).
\(G'(t) = 2(2 - t)^{-3}\) and \(G''(t) = 6(2 - t)^{-4}\), so \(G''(0) = \tfrac{6}{16} = \tfrac{3}{8}\) and \(P(X = 2) = \tfrac{3}{8} \div 2! = \tfrac{3}{16}\). Check: \(\tfrac{1}{4}\left(1 - \tfrac{t}{2}\right)^{-2} = \tfrac{1}{4}\left(1 + t + \tfrac{3}{4}t^{2} + \dots\right)\). \(\tfrac{3}{8}\) forgets to divide by \(2!\). \(\tfrac{1}{8}\) is the \(t^{2}\) coefficient of \(\dfrac{1}{2 - t}\), ignoring the square. \(\tfrac{1}{16}\) squares the \(t\) coefficient \(\tfrac{1}{4}\) of \(\dfrac{1}{2 - t}\) instead of multiplying the series.
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.