Maths4U
Menu

Maths4U Original · Learn, check, explain

Mean (E(X)) and variance (Var(X)) using the probability generating function — 9231 FPS

Read probabilities from coefficients and recover moments using derivatives.

Notes and key methods

For a nonnegative integer-valued X, \(G_X(t)=E(t^X)=\sum p_xt^x\). The coefficient of \(\displaystyle t^{r}\) is \(\displaystyle P(X=r)\), and \(\displaystyle G(1)=1\).

Use \(E(X)=G'(1)\) and \(\operatorname{Var}(X)=G''(1)+G'(1)-[G'(1)]^2\). The second derivative gives E(X(X−1)), not \(\displaystyle E(X^{2})\), which explains the extra first-moment term.

Check the conditions

Three worked examples

Example 1 · Probability generating functions

X has PGF \(\displaystyle G_{X}(t)= \frac{2+ 3t+ 5t^{2}}{10}\).

  1. Find \(\displaystyle P(X=2)\).
  2. Find E(X).
  3. Find Var(X).
  4. Find E(X(X−1)).
Show the reasoning

(a)

\(\displaystyle [t^2]G_X(t)=\frac{1}{2}\)

Answer: \(\displaystyle \frac{1}{2}\).

(b)

\(\displaystyle G_X'(1)=\frac{13}{10}\)

Answer: \(\displaystyle \frac{13}{10}\).

(c)

\(\displaystyle G_X''(1)+G_X'(1)-[G_X'(1)]^2=\frac{61}{100}\)

Answer: \(\displaystyle \frac{61}{100}\).

(d)

\(G_X''(1)=1\)

Answer: \(1\).

Example 2 · Probability generating functions

X has PGF \(\displaystyle G_{X}(t)= \frac{3+ 4t+ 6t^{2}}{13}\).

  1. Find \(\displaystyle P(X=2)\).
  2. Find E(X).
  3. Find Var(X).
  4. Find E(X(X−1)).
Show the reasoning

(a)

\(\displaystyle [t^2]G_X(t)=\frac{6}{13}\)

Answer: \(\displaystyle \frac{6}{13}\).

(b)

\(\displaystyle G_X'(1)=\frac{16}{13}\)

Answer: \(\displaystyle \frac{16}{13}\).

(c)

\(\displaystyle G_X''(1)+G_X'(1)-[G_X'(1)]^2=\frac{108}{169}\)

Answer: \(\displaystyle \frac{108}{169}\).

(d)

\(\displaystyle G_X''(1)=\frac{12}{13}\)

Answer: \(\displaystyle \frac{12}{13}\).

Example 3 · Probability generating functions

X has PGF \(\displaystyle G_{X}(t)= \frac{4+ 5t+ 7t^{2}}{16}\).

  1. Find \(\displaystyle P(X=2)\).
  2. Find E(X).
  3. Find Var(X).
  4. Find E(X(X−1)).
Show the reasoning

(a)

\(\displaystyle [t^2]G_X(t)=\frac{7}{16}\)

Answer: \(\displaystyle \frac{7}{16}\).

(b)

\(\displaystyle G_X'(1)=\frac{19}{16}\)

Answer: \(\displaystyle \frac{19}{16}\).

(c)

\(\displaystyle G_X''(1)+G_X'(1)-[G_X'(1)]^2=\frac{167}{256}\)

Answer: \(\displaystyle \frac{167}{256}\).

(d)

\(\displaystyle G_X''(1)=\frac{7}{8}\)

Answer: \(\displaystyle \frac{7}{8}\).

Common mistakes

Practise with answer checking

Original exam-style problems

Write complete solutions before opening the worked solution. The marking guidance rewards reasoning as well as answers.

Examination practice · 2020–2026

Apply the method to recent source-labelled questions from this chapter.

Browse recent examination questions · All topic resources and the full bank

Next skill: The sum of independent random variables →