Probability Generating Functions
Revise Probability Generating Functions for Further Mathematics — revision notes and instant AI marking. Free to start.
Probability Generating Functions
t tells you the value of X, and the coefficient tells you its probability. Once your distribution is "encoded" this way, you can find means, variances, and even combine random variables using ordinary algebra instead of long sums.
Summary — What This Chapter Covers
- Constructing a PGF — turning a probability distribution table into a polynomial in
t. - G(1) = 1 — a built-in check that always works, because all probabilities sum to 1.
- Finding probabilities from a PGF — expanding (using the Binomial Theorem or Maclaurin series) and reading off coefficients.
- E(X) = G′(1) — differentiate once, substitute t = 1.
- Var(X) = G″(1) + G′(1) − [G′(1)]² — differentiate twice, substitute t = 1.
- PGFs of standard distributions — Binomial, Poisson, Geometric, Negative Binomial — and how to derive each from first principles.
- PGF of X + Y — multiply the two PGFs together (only valid when X and Y are independent).
- PGF of aX + b — replace t with tᵃ, then multiply the whole thing by tb.
1. Constructing PGFs
1What actually is a PGF?
Imagine you've got a discrete random variable X with this distribution:
| x | 0 | 1 | 4 | 5 |
|---|---|---|---|---|
| P(X = x) | 0.4 | 0.3 | 0.2 | 0.1 |
A PGF just glues each value of x onto the power of a "dummy" variable t, and each probability becomes the coefficient sitting in front of it:
Why bother? Because once your distribution is written as a single algebraic expression, you can differentiate it, multiply two of them together, or substitute values into it — and all of those algebraic operations turn out to correspond to meaningful probability operations (finding the mean, combining independent variables, and so on). It's the same trick as using logarithms to turn multiplication into addition — you're changing the "space" you work in to make the maths easier.
2The golden check: G(1) = 1
If you substitute t = 1 into any PGF, every power of t becomes 1anything = 1, so you're just left with the sum of all the probabilities — which must equal 1.
This is genuinely useful, not just a curiosity. If a question gives you a PGF containing an unknown constant (like p or k), you can find it instantly by setting t = 1 and solving.
Q: GX(t) = k(2t + 3t² + 5t³). Find k.
3The formal definition: G(t) = E(tˣ)
You've probably met E(X) = Σx·P(X = x) before — the expectation formula. A PGF is exactly the same idea, but instead of weighting each value of x by itself, you weight tx by its probability:
4Going backwards: finding probabilities from a PGF
Sometimes you're handed a PGF and asked to find a specific probability. The strategy is always: fully expand the PGF into a polynomial, then read off the coefficient of the power of t you care about.
The tricky part is that PGFs are rarely handed to you already expanded — you usually need one of two expansion tools:
| PGF looks like... | Use this tool |
|---|---|
| (1 + at)n for rational n (including negative/fractional) | General Binomial Theorem |
| A function like ln(1 − at) that isn't a polynomial | Maclaurin Series |
Q: GX(t) = t² / (5 − 4t)². Find P(X = 4).
GX(t) = t²(5 − 4t)⁻² = t² × 5⁻²(1 − 4⁄5t)⁻² = 1⁄25 t²(1 − 4⁄5t)⁻²
GX(t) = 1⁄25 t² [ 1 + (−2)(−4⁄5t) + (−2)(−3)⁄2!(−4⁄5t)² + ... ]
= 1⁄25 t² + 8⁄125 t³ + 48⁄625 t⁴ + ...
P(X = 4) = 48⁄625
Q: GX(t) = −1⁄ln 2 ln(1 − 0.5t). Expand it.
GX(t) = −1⁄ln 2 [ (−0.5t) − (−0.5t)²⁄2 + (−0.5t)³⁄3 − ... ]
A discrete random variable X has probability distribution:
| x | 2 | 3 | 7 | 9 |
|---|---|---|---|---|
| P(X = x) | 0.25 | 0.15 | k | 0.35 |
Find k, then write down GX(t).
GX(t) = 1⁄4(1 + t)². Find P(X = 1).
2. E(X) and Var(X) from PGFs
1Finding E(X)
Here's the beautiful part of PGFs: once you have G(t), finding the mean is just one differentiation and one substitution — no sums, no tables.
Why does this work? Differentiating Σtˣ P(X=x) term by term brings each exponent x down as a multiplier: Σ x tx−1 P(X=x). Substituting t = 1 turns every tx−1 into 1, leaving exactly Σ x P(X=x) — which is the definition of E(X).
Q: GX(t) = 1⁄81 t³(1 + 2t)⁴. Find E(X).
G′X(t) = 1⁄81(3t²)(1+2t)⁴ + 1⁄81 t³ × 4(1+2t)³ × 2
G′X(1) = 1⁄81 × 3 × (3)⁴ + 1⁄81 × 1 × 4 × (3)³ × 2 = 3 + 8⁄3
2Finding Var(X)
Variance needs a second derivative too, because we need E(X²) as an ingredient — and getting E(X²) directly from a PGF requires differentiating twice.
Where does the "+ G′(1)" come from? Differentiating a second time gives you Σ x(x−1) tx−2 P(X=x). At t=1 this becomes E(X(X−1)) = E(X²) − E(X). Rearranging: E(X²) = G″(1) + E(X) = G″(1) + G′(1). That's exactly why the formula has three terms instead of the usual two.
Q: GX(t) = 0.2 + 0.4t + 0.3t⁴ + 0.1t⁵. Find Var(X).
G′X(1) = 0.4 + 1.2 + 0.5 = 2.1
G″X(1) = 3.6 + 2 = 5.6
Var(X) = 5.6 + 2.1 − 2.1² = 5.6 + 2.1 − 4.41
GX(t) = 1⁄6(1 + 2t + 3t²). Find E(X) and Var(X).
3. PGFs of Standard Distributions
These four are given to you in the Formulae Booklet, but if a question says "derive" or "from first principles", you must prove them yourself — quoting the result gets you zero marks.
| Distribution | P(X = x) | PGF |
|---|---|---|
| Binomial B(n, p) | ⁿCx pˣ(1−p)ⁿ⁻ˣ | (1 − p + pt)ⁿ |
| Poisson Po(λ) | e⁻λ λˣ/x! | eλ(t−1) |
| Geometric Geo(p) on 1,2,... | p(1−p)ˣ⁻¹ | pt / [1 − (1−p)t] |
| Negative Binomial on r, r+1,... | ˣ⁻¹Cr−1 pʳ(1−p)ˣ⁻ʳ | [pt / (1−(1−p)t)]ʳ |
1Binomial — derivation logic
The trick every derivation shares: write the PGF as a polynomial using the probability formula, then spot a known series hiding inside it. For Binomial, that known series is the Binomial Expansion itself.
2Poisson — derivation logic
Here the known series you're hunting for is the Maclaurin expansion of eˣ.
3Geometric — derivation logic
This one hides an infinite geometric series (S∞ = a/(1−r)).
4Negative Binomial — derivation logic
This proof is normally done in sigma notation, and you'll be given the summation identity Σ (x−1 choose r−1) aˣ⁻ʳ = (1−a)⁻ʳ to use — you don't need to know it from memory.
Q: Write down the PGF for X ~ Geo(p) and use it to prove that Var(X) = (1−p)/p².
G′X(t) = [(1−qt)p − pt(−q)] / (1−qt)² = p / (1−qt)² = p(1−qt)⁻²
G″X(t) = −2p(1−qt)⁻³(−q) = 2pq / (1−qt)³
G′X(1) = p/(1−q)² = p/p² = 1/p
G″X(1) = 2pq/(1−q)³ = 2pq/p³ = 2q/p²
Var(X) = 2q/p² + 1/p − 1/p² = (2q + p − 1)/p² = (2(1−p) + p − 1)/p² = (2 − 2p + p − 1)/p²
Use GX(t) = (q + pt)ⁿ to show that E(X) = np for X ~ B(n,p).
4. PGFs of Sums & Transformations
1PGF of X + Y (independent variables)
This is arguably the single most powerful trick in the whole chapter: if X and Y are independent, the PGF of their sum is simply the product of their individual PGFs.
This extends naturally: if Z = X₁ + X₂ + ... + Xₙ where each Xᵢ is an independent copy of the same distribution X (e.g. "playing the same game 5 times"), then:
Q: Prove that the sum of two independent Poisson distributions is itself Poisson.
A fair 3-sided spinner labelled 2, 4, 8 is spun. A biased coin labelled 4, 6 is flipped (25% chance of landing on 4). Use PGFs to find P(sum of scores = 8).
2PGF of aX + b (linear transformation)
This one is not in the Formulae Booklet — you need to memorise it. If Y = aX + b is a linear transformation of X:
Why does it work? GY(t) = E(tY) = E(taX+b) = E(taXtb) = tbE((ta)X) = tbGX(ta). It's just algebra on the exponent laws.
Q: GX(t) = t / (5 − 4t). Find GY(t) where Y = 2(X + 5).
Y = 2X + 10 → a = 2, b = 10
GY(t) = t¹⁰ GX(t²)
GY(t) = t¹⁰ × t² / (5 − 4t²)
GY(t) = t¹² / (5 − 4t²)
GX(t) = (0.3 + 0.7t)⁵. Let Y = 3X − 2. Find GY(t).
What to Memorise
Concepts Checklist
Exam Tips & Common Mistakes
Forgetting the "+ G′(1)" in the variance formula
The single most common error on this whole topic. Write out Var(X) = G″(1) + G′(1) − [G′(1)]² in full every time — don't try to shortcut it from memory.
Not memorising GaX+b(t) = tbGX(ta)
This formula is genuinely not in the Formulae Booklet, unlike almost everything else in this chapter. If you don't know it cold, you cannot answer transformation questions.
Use G(1) = 1 as a free sanity check
Whenever you derive or are given a PGF, quickly substitute t = 1 to confirm you get exactly 1. This catches algebra slips before they cost you marks on the rest of the question.
"Derive" or "from first principles" means prove it, not quote it
If a question uses either of these words, you must show the full derivation (building the table, writing the sum, spotting the hidden series) — simply writing down the known PGF result earns no marks.
G(X+Y) = G(X)·G(Y) only works for independent variables
Never multiply two PGFs together to find the PGF of a sum unless the question confirms (or you can assume) independence — this is a fundamental requirement of the formula.
Negative or coefficients that don't make sense = an algebra error
Since coefficients in a PGF are always probabilities, they can never be negative and can never exceed 1. If your expansion produces one, go back and check your working.
Rewrite Y = a(X + c) style expressions before transforming
Always expand brackets first to get Y into the clean form aX + b so you can clearly read off a and b before applying the transformation rule.
- 4. PGFs of Sums & Transformations
- Exam Tips & Common Mistakes
Read the full Probability Generating Functions notes free
That's the preview — create a free account to read the rest, plus flashcards and practice questions with instant AI marking. No credit card.
Unlock the full notes free →