Further Statistics 1 (Paper 3B or 4B), topic 7 (Probability generating functions), spec point 7.1
Definition
For a discrete random variable X X X taking non-negative integer values, the probability generating function (PGF) is
G X ( t ) = E ( t X ) = ∑ P ( X = x ) t x \mathrm{G}_X(t) = \mathrm{E}\left(t^X\right) = \sum \mathrm{P}(X = x)\,t^x G X ( t ) = E ( t X ) = ∑ P ( X = x ) t x
It packs the whole distribution into one function: the coefficient of t x t^x t x is P ( X = x ) \mathrm{P}(X = x) P ( X = x ) .
Two quick facts: G X ( 1 ) = 1 \mathrm{G}_X(1) = 1 G X ( 1 ) = 1 (the probabilities add to 1), and G X ( 0 ) = P ( X = 0 ) \mathrm{G}_X(0) = \mathrm{P}(X = 0) G X ( 0 ) = P ( X = 0 ) .
Worked example 1
If P ( X = 0 ) = 0.2 \mathrm{P}(X = 0) = 0.2 P ( X = 0 ) = 0.2 , P ( X = 1 ) = 0.5 \mathrm{P}(X = 1) = 0.5 P ( X = 1 ) = 0.5 and P ( X = 2 ) = 0.3 \mathrm{P}(X = 2) = 0.3 P ( X = 2 ) = 0.3 , then G X ( t ) = 0.2 + 0.5 t + 0.3 t 2 \mathrm{G}_X(t) = 0.2 + 0.5t + 0.3t^2 G X ( t ) = 0.2 + 0.5 t + 0.3 t 2 .
Standard PGFs
Distribution
PGF
B ( n , p ) \mathrm{B}(n, p) B ( n , p )
( 1 − p + p t ) n (1 - p + pt)^n ( 1 − p + pt ) n
P o ( λ ) \mathrm{Po}(\lambda) Po ( λ )
e λ ( t − 1 ) e^{\lambda(t - 1)} e λ ( t − 1 )
G e o ( p ) \mathrm{Geo}(p) Geo ( p )
p t 1 − ( 1 − p ) t \dfrac{pt}{1 - (1 - p)t} 1 − ( 1 − p ) t pt
N B ( r , p ) \mathrm{NB}(r, p) NB ( r , p )
( p t 1 − ( 1 − p ) t ) r \left(\dfrac{pt}{1 - (1 - p)t}\right)^r ( 1 − ( 1 − p ) t pt ) r
Worked example 2: deriving the Poisson PGF
G ( t ) = ∑ x = 0 ∞ e − λ λ x x ! t x = e − λ ∑ x = 0 ∞ ( λ t ) x x ! = e − λ e λ t = e λ ( t − 1 ) \mathrm{G}(t) = \sum_{x=0}^{\infty} \frac{e^{-\lambda}\lambda^x}{x!}t^x = e^{-\lambda}\sum_{x=0}^{\infty} \frac{(\lambda t)^x}{x!} = e^{-\lambda}e^{\lambda t} = e^{\lambda(t - 1)} G ( t ) = x = 0 ∑ ∞ x ! e − λ λ x t x = e − λ x = 0 ∑ ∞ x ! ( λ t ) x = e − λ e λ t = e λ ( t − 1 )
Worked example 3: deriving the geometric PGF
G ( t ) = ∑ x = 1 ∞ p ( 1 − p ) x − 1 t x = p t ∑ k = 0 ∞ [ ( 1 − p ) t ] k = p t 1 − ( 1 − p ) t \mathrm{G}(t) = \sum_{x=1}^{\infty} p(1 - p)^{x - 1}t^x = pt\sum_{k=0}^{\infty} \left[(1 - p)t\right]^k = \frac{pt}{1 - (1 - p)t} G ( t ) = x = 1 ∑ ∞ p ( 1 − p ) x − 1 t x = pt k = 0 ∑ ∞ [ ( 1 − p ) t ] k = 1 − ( 1 − p ) t pt
using the sum of an infinite geometric series (valid for ∣ ( 1 − p ) t ∣ < 1 |(1 - p)t| < 1 ∣ ( 1 − p ) t ∣ < 1 ).
Reading off probabilities
To find P ( X = x ) \mathrm{P}(X = x) P ( X = x ) from a PGF, expand it as a series in t t t and take the coefficient of t x t^x t x .
Common mistake: forgetting that the geometric distribution starts at x = 1 x = 1 x = 1 , so its PGF has a factor of t t t and no constant term.
Exam tip: if asked to "show that" a PGF is correct, start from the definition ∑ P ( X = x ) t x \sum \mathrm{P}(X = x)t^x ∑ P ( X = x ) t x and recognise a standard series (exponential, binomial or geometric).
Check yourself
Find G ( 1 ) \mathrm{G}(1) G ( 1 ) for any PGF.
1 1 1 .
Write the PGF of B ( 3 , 0.5 ) \mathrm{B}(3, 0.5) B ( 3 , 0.5 ) .
( 0.5 + 0.5 t ) 3 (0.5 + 0.5t)^3 ( 0.5 + 0.5 t ) 3 .
G ( t ) = 0.1 + 0.6 t + 0.3 t 3 \mathrm{G}(t) = 0.1 + 0.6t + 0.3t^3 G ( t ) = 0.1 + 0.6 t + 0.3 t 3 . Find P ( X = 3 ) \mathrm{P}(X = 3) P ( X = 3 ) .
0.3 0.3 0.3 .
Stuck on this topic? Get friendly one-to-one help with Further Maths. Pick a time that suits you and pay only after the lesson.