Maths4U
Menu

Maths4U Original · Learn, check, explain

Probability generating functions — chapter review — 9231 FPS

Read probabilities from coefficients and recover moments using derivatives. Multiply PGFs only when the variables are independent.

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.

If X and Y are independent nonnegative integer variables, \(G_{X+Y}(t)=G_X(t)G_Y(t)\). For m independent copies of X, use \([G_X(t)]^m\).

Differentiate the product to recover moments, or add independent expectations and variances. A deterministic shift c gives \(G_{X+c}(t)=t^cG_X(t)\); multiplying the value of X by c instead gives \(G_{cX}(t)=G_X(t^c)\).

Check the conditions

Three worked examples

Example 1 · Probability generating functions

X has PGF \(\displaystyle G_{X}(t)= \frac{5+ 6t+ 8t^{2}}{19}\).

  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{8}{19}\)

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

(b)

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

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

(c)

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

Answer: \(\displaystyle \frac{238}{361}\).

(d)

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

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

Example 2 · PGFs of independent sums

\(\displaystyle X_{1}\),…,\(\displaystyle X_{m}\) are independent \(\displaystyle \operatorname{Bin}(4,\frac{1}{5})\) variables, with \(\displaystyle m=4\). Let S be their sum. Thus \(G_S(t)=(1-p+pt)^{16}\).

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

(a)

\(\displaystyle mn p=\frac{16}{5}\)

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

(b)

\(\displaystyle mn p(1-p)=\frac{64}{25}\)

Answer: \(\displaystyle \frac{64}{25}\).

(c)

\(\displaystyle G_S(0)=(1-p)^{mn}=\frac{4294967296}{152587890625}\)

Answer: \(\displaystyle \frac{4294967296}{152587890625}\).

(d)

\(\displaystyle mn p(1-p)^{mn-1}=\frac{17179869184}{152587890625}\)

Answer: \(\displaystyle \frac{17179869184}{152587890625}\).

Example 3 · Probability generating functions

X has PGF \(\displaystyle G_{X}(t)= \frac{7+ 8t+ 10t^{2}}{25}\).

  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{2}{5}\)

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

(b)

\(\displaystyle G_X'(1)=\frac{28}{25}\)

Answer: \(\displaystyle \frac{28}{25}\).

(c)

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

Answer: \(\displaystyle \frac{416}{625}\).

(d)

\(\displaystyle G_X''(1)=\frac{4}{5}\)

Answer: \(\displaystyle \frac{4}{5}\).

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: Cross-topic review exercise 2 →