Using PGFs to Find a Mean and Variance, and the Geometric PGF | Cambridge A Level Maths notes

Free preview: Using PGFs to Find a Mean and Variance, and the Geometric PGF

Mean and Variance by Differentiating

9231 Paper 4: Further Probability & Statistics

Remember the proofs that the Poisson mean is λ, or that the geometric mean is 1p? They needed clever series tricks. Here's the good news: once you have a PGF, a little differentiation does the same job in a few lines. Let's see why.

Why differentiating helps

  1. Start from G(t)=∑pxtx, where px=P(X=x).
  2. Differentiate term by term: G′(t)=∑xpxtx−1. Each power x comes down as a multiplier, which is just what E(X) needs.
  3. Put t = 1, so every power of t becomes 1: G′(1)=∑xpx=E(X).
  4. Differentiate again: G″(t)=∑x(x−1)pxtx−2. Put t = 1: G″(1)=E(X(X−1))=E(X2)−E(X).
  5. So E(X2)=G″(1)+G′(1), and then Var(X)=E(X2)−[E(X)]2.

E(X)=G′(1)Var(X)=G″(1)+G′(1)−[G′(1)]2

💡 In plain words

  • Differentiate once, put t = 1: that's the mean.
  • Differentiate twice, put t = 1, add the mean, subtract the mean squared: that's the variance.

📝 Here's the trap

  • G″(1) is E(X(X−1)), not E(X2). Don't forget to add G′(1).
  • Wrong: Var(X)=G″(1)−[G′(1)]2. Right: G″(1)+G′(1)−[G′(1)]2.

👀 Watch me do it: prove the Poisson results from G(t)=eλ(t−1)

What I writeWhy I do it
G′(t)=λeλ(t−1)Chain rule: the derivative of the power λ(t−1) is λ.
G″(t)=λ2eλ(t−1)Same again.
G′(1)=λ, G″(1)=λ2At t = 1 the power is 0, and e0=1.
Var(X)=λ2+λ−λ2=λMuch quicker than summing series.

👀 Watch me do it: the binomial, G(t)=(q+pt)n

What I writeWhy I do it
G′(t)=np(q+pt)n−1Chain rule: bring down n, multiply by p.
G″(t)=n(n−1)p2(q+pt)n−2Again.
G′(1)=np, G″(1)=n(n−1)p2At t = 1, q+p=1, so the brackets become 1.
Var(X)=n2p2−np2+np−n2p2=np(1−p)Expand n(n−1)p2; the n2p2 terms cancel.

✏️ YOUR TURN 1

Try this first:

X has PGF G(t)=t(1+t)24. Use G to find E(X) and Var(X).

Answer:

  • Expand: G(t)=14(t+2t2+t3).
  • G′(t)=14(1+4t+3t2), so G′(1)=84=2.
  • G″(t)=14(4+6t), so G″(1)=2.5.
  • Var(X)=2.5+2−22=0.5.

The Geometric and a Summary

Now let's get the PGF of the geometric distribution, the waiting time for a first success. The geometric one is a great example of an infinite PGF that sums to a neat formula.

Unlock the full note: start 7 days free.

Log in or subscribe to read the rest of this note. Members also get the AI tutor, practice quizzes, mock exams and flashcards for this topic.

Log in · Subscribe · Start free trial

All notes in Probability generating functions (4.5)

  1. Probability Generating Functions: Definition and Reading Off Probabilities
  2. Using PGFs to Find a Mean and Variance, and the Geometric PGF
  3. PGFs of Sums of Independent Random Variables

What's inside for this topic

3 teacher notes, 86 practice questions, 29 flashcards, 2 quizzes.

Get the full notes, every practice question, flashcards, quizzes and mock papers.

Start your free 7-day trial

Questions? Chat with us on WhatsApp · Try one live lesson

Previous note: Probability Generating Functions: Definition and Reading Off Probabilities Next note: PGFs of Sums of Independent Random Variables

All Cambridge A Level Maths topics · A Level Maths