Study Guide

Generating Functions

CIE A-Level Further MathematicsΒ· Unit 4: Further Probability & Statistics, Generating functionsΒ· 20 min read

1. PGFs: Definition and Core Propertiesβ˜…β˜…β˜†β˜†β˜†β± 5 min

πŸ“˜ Definition

Probability Generating Function

For any non-negative integer-valued discrete random variable , the PGF is the expectation of , valid for all where the sum converges. Coefficients of equal .

Example:

If ,

We can find expectation and variance directly from PGF derivatives, avoiding summing over all possible values of :

GXβ€²(1)=E(X)GXβ€²β€²(1)=E[X(Xβˆ’1)]=E(X2)βˆ’E(X)Var(X)=GXβ€²β€²(1)+GXβ€²(1)βˆ’[GXβ€²(1)]2G_X'(1) = \mathbb{E}(X) \\ G_X''(1) = \mathbb{E}[X(X-1)] = \mathbb{E}(X^2) - \mathbb{E}(X) \\ \text{Var}(X) = G_X''(1) + G_X'(1) - \left[G_X'(1)\right]^2
πŸ“ Worked Example

A discrete random variable has PGF . Find and .

  1. 1

    Calculate the first derivative and evaluate at :

  2. 2
    GXβ€²(t)=12+12t+34t2GXβ€²(1)=12+12+34=74E(X)=74=1.75G_X'(t) = \frac{1}{2} + \frac{1}{2}t + \frac{3}{4}t^2 \\ G_X'(1) = \frac{1}{2} + \frac{1}{2} + \frac{3}{4} = \frac{7}{4} \\ \mathbb{E}(X) = \frac{7}{4} = 1.75
  3. 3

    Calculate the second derivative and evaluate at :

  4. 4
    GXβ€²β€²(t)=12+32tGXβ€²β€²(1)=12+32=2G_X''(t) = \frac{1}{2} + \frac{3}{2}t \\ G_X''(1) = \frac{1}{2} + \frac{3}{2} = 2
  5. 5

    Substitute into the variance formula:

  6. 6
    Var(X)=2+74βˆ’(74)2=32+28βˆ’4916=1116=0.6875\text{Var}(X) = 2 + \frac{7}{4} - \left(\frac{7}{4}\right)^2 = \frac{32 + 28 - 49}{16} = \frac{11}{16} = 0.6875

Exam tip:

Always evaluate PGF derivatives for moments at , a common mistake is evaluating at by accident.

2. PGFs for Common Discrete Distributionsβ˜…β˜…β˜†β˜†β˜†β± 6 min

You will be expected to recognize or derive PGFs for all standard discrete distributions tested in CIE 9231. The table below lists standard results:

Distribution

PMF

PGF

Binomial()

Poisson()

Geometric() (trials to first success)

Negative Binomial()

πŸ“ Worked Example

Derive the PGF of a Poisson distribution with parameter , then find from the PGF.

  1. 1

    Start with the definition of PGF:

  2. 2
    GX(t)=E(tX)=βˆ‘x=0∞txβ‹…eβˆ’Ξ»Ξ»xx!G_X(t) = \mathbb{E}(t^X) = \sum_{x=0}^\infty t^x \cdot \frac{e^{-\lambda} \lambda^x}{x!}
  3. 3

    Factor out the constant term :

  4. 4
    GX(t)=eβˆ’Ξ»βˆ‘x=0∞(Ξ»t)xx!G_X(t) = e^{-\lambda} \sum_{x=0}^\infty \frac{(\lambda t)^x}{x!}
  5. 5

    Use the Taylor series expansion :

  6. 6
    GX(t)=eβˆ’Ξ»eΞ»t=eΞ»(tβˆ’1)G_X(t) = e^{-\lambda} e^{\lambda t} = e^{\lambda(t-1)}
  7. 7

    Find the first derivative and evaluate at :

  8. 8
    GXβ€²(t)=Ξ»eΞ»(tβˆ’1)β€…β€ŠβŸΉβ€…β€ŠGXβ€²(1)=Ξ»=E(X)G_X'(t) = \lambda e^{\lambda(t-1)} \implies G_X'(1) = \lambda = \mathbb{E}(X)

3. Sums of Independent Random Variablesβ˜…β˜…β˜…β˜†β˜†β± 7 min

The most useful property of PGFs (and MGFs) is that the generating function of a sum of independent random variables is the product of the individual generating functions. This avoids the need for tedious convolution of probability mass functions.

πŸ“˜ Definition

Product Property for Independent Sums

If are independent discrete random variables, then the PGF of is . The same rule applies to MGFs.

πŸ“ Worked Example

Given independent and , prove that .

  1. 1

    Write down the PGFs of and :

  2. 2
    GX(t)=eΞ»(tβˆ’1),GY(t)=eΞΌ(tβˆ’1)G_X(t) = e^{\lambda(t-1)}, \quad G_Y(t) = e^{\mu(t-1)}
  3. 3

    Use the product property for independent variables:

  4. 4
    GX+Y(t)=GX(t)GY(t)=eΞ»(tβˆ’1)eΞΌ(tβˆ’1)=e(Ξ»+ΞΌ)(tβˆ’1)G_{X+Y}(t) = G_X(t) G_Y(t) = e^{\lambda(t-1)} e^{\mu(t-1)} = e^{(\lambda+\mu)(t-1)}
  5. 5

    This PGF matches the PGF of a Poisson distribution with parameter . Since PGFs uniquely identify discrete distributions, .

Exam tip:

Never use the product rule for dependent random variables. It only holds because independence gives , which is not true for dependent variables.

4. Moment Generating Functionsβ˜…β˜…β˜…β˜†β˜†β± 6 min

πŸ“˜ Definition

Moment Generating Function

A generating function that works for both discrete and continuous random variables. The -th derivative evaluated at gives the -th moment .

MGFs share the same product property as PGFs: for independent random variables, the MGF of the sum is the product of the individual MGFs. Like PGFs, MGFs uniquely identify probability distributions.

πŸ“ Worked Example

Given , find the MGF of and use it to confirm .

  1. 1

    Start with the definition of MGF for a continuous distribution:

  2. 2
    MX(t)=βˆ«βˆ’βˆžβˆžetxβ‹…1Οƒ2Ο€eβˆ’(xβˆ’ΞΌ)2/(2Οƒ2)dxM_X(t) = \int_{-\infty}^\infty e^{tx} \cdot \frac{1}{\sigma \sqrt{2\pi}} e^{-(x-\mu)^2/(2\sigma^2)} dx
  3. 3

    Completing the square in the exponent simplifies the integral to give the standard result:

  4. 4
    MX(t)=eΞΌt+12Οƒ2t2M_X(t) = e^{\mu t + \frac{1}{2} \sigma^2 t^2}
  5. 5

    Differentiate once with respect to :

  6. 6
    MXβ€²(t)=(ΞΌ+Οƒ2t)eΞΌt+12Οƒ2t2M_X'(t) = (\mu + \sigma^2 t) e^{\mu t + \frac{1}{2} \sigma^2 t^2}
  7. 7

    Evaluate at to get the expectation:

  8. 8
    MXβ€²(0)=(ΞΌ+0)e0=ΞΌ=E(X)M_X'(0) = (\mu + 0) e^0 = \mu = \mathbb{E}(X)

5. Common Pitfalls

Wrong move:

Evaluating PGF derivatives at instead of for expectation

Why:

PGFs are defined as , so derivatives only give moments at . only gives .

Correct move:

Always evaluate PGF derivatives for expectation/variance at .

Wrong move:

Using the product rule for PGFs/MGFs of dependent random variables

Why:

The product rule relies on the property , which only holds for independent variables.

Correct move:

Confirm the variables are independent before multiplying their generating functions.

Wrong move:

Omitting the term in the variance formula for PGFs

Why:

, so must be added back to get .

Correct move:

Use the full formula: .

Wrong move:

Claiming two distributions are equal just because they have matching expectation and variance

Why:

Many different distributions share the same first two moments. Only matching PGFs/MGFs prove distributions are equal.

Correct move:

Always show the full PGF/MGF matches the target distribution to confirm identity.

Wrong move:

Using the wrong PGF for geometric distribution (wrong parameterization)

Why:

CIE uses the 'number of trials until first success' parameterization, not the 'number of failures before first success' version.

Correct move:

Memorize CIE's standard geometric PGF: .

6. Quick Reference Cheatsheet

Concept

Formula

Notes

PGF Definition

Non-negative integer discrete

from PGF

Var from PGF

PGF for independent sum

Only for independent

Binomial PGF

Poisson PGF

Geometric PGF

Trials to first success

MGF Definition

Discrete or continuous

-th moment from MGF

MGF for independent sum

Only for independent

Normal MGF

When this came up on past exams

AI-estimated based on syllabus patterns β€” cross-check with official past papers for accuracy. Use only as revision-focus signals.

  • 2024 Β· 2

    Find expectation from given PGF

  • 2023 Β· 2

    PGF for sum of independent variables

  • 2022 Β· 2

    Derive MGF for binomial distribution

  • 2021 Β· 2

    Find variance of sum from PGFs

Going deeper

What's Next

Generating functions are a foundational tool for advanced probability and statistics, and underpin almost all further topics in university-level statistics. After mastering this sub-topic, you can apply generating function techniques to solve problems involving recurrence relations and random walks, a common follow-up topic in CIE 9231. Generating functions also form the basis for understanding sampling distributions, where properties of sums of independent random variables are core to hypothesis testing and confidence interval calculations. This topic connects directly to all further topics in statistics that involve combining information from multiple independent observations.