FS1-7 Probability generating functions — coverage pack

3 specification leaves · notes, questions, answers and worked methods

FS1-7.1 · Definitions, derivations and applications. Use of the probability generating function for the negative binomial, geometric, binomial and Poisson distributions.

  • For a non-negative integer-valued random variable, the probability generating function is GX(t)=E(tX)=xP(X=x)txG_X(t)=E(t^X)=\sum_xP(X=x)t^x.
  • The standard PGFs are (1p+pt)n(1-p+pt)^n for binomial, eλ(t1)e^{\lambda(t-1)} for Poisson, pt1(1p)t\dfrac{pt}{1-(1-p)t} for geometric, and (pt1(1p)t)r\left(\dfrac{pt}{1-(1-p)t}\right)^r for negative binomial.
  • The coefficient of txt^x in GX(t)G_X(t) equals P(X=x)P(X=x), so a PGF encodes the whole distribution.
  • A common error is to omit the factor tt in the geometric PGF; the Edexcel convention starts at trial 11, not at zero failures.

Tier 1 · Easy

  1. 1. Given XBin(4,0.3)X\sim\operatorname{Bin}(4,0.3), write down GX(t)G_X(t) and use its coefficient of t2t^2 to find P(X=2)P(X=2).[3 marks]

    Answer

    • GX(t)=(0.7+0.3t)4G_X(t)=(0.7+0.3t)^4
    • P(X=2)=0.2646P(X=2)=0.2646

    Method: The binomial PGF is (1p+pt)n(1-p+pt)^n, giving (0.7+0.3t)4(0.7+0.3t)^4. Its t2t^2 coefficient is (42)(0.3)2(0.7)2=0.2646\binom42(0.3)^2(0.7)^2=0.2646.

Tier 2 · Standard

  1. 1. A geometric random variable XX has parameter p=0.4p=0.4 and counts the trial of the first success. Derive its PGF and hence find P(X=5)P(X=5).[5 marks]

    Answer

    • GX(t)=0.4t10.6tG_X(t)=\dfrac{0.4t}{1-0.6t}
    • P(X=5)=0.05184P(X=5)=0.05184

    Method: GX(t)=x=10.4(0.6)x1tx=0.4tj=0(0.6t)j=0.4t10.6tG_X(t)=\sum_{x=1}^{\infty}0.4(0.6)^{x-1}t^x=0.4t\sum_{j=0}^{\infty}(0.6t)^j=\dfrac{0.4t}{1-0.6t}. The coefficient of t5t^5 is 0.4(0.6)4=0.051840.4(0.6)^4=0.05184.

Tier 3 · Hard

  1. 1. The random variable XX counts the trial on which the third success occurs in independent trials with success probability 0.250.25. Derive GX(t)G_X(t) and use it to find P(X=6)P(X=6).[7 marks]

    Answer

    • GX(t)=(0.25t10.75t)3G_X(t)=\left(\dfrac{0.25t}{1-0.75t}\right)^3
    • P(X=6)=0.06592P(X=6)=0.06592 to 44 significant figures

    Method: A waiting time to the third success is the sum of three independent geometric waiting times, so its PGF is the cube of the geometric PGF: GX(t)=[0.25t/(10.75t)]3G_X(t)=[0.25t/(1-0.75t)]^3. Using (1z)3=j=0(j+22)zj(1-z)^{-3}=\sum_{j=0}^{\infty}\binom{j+2}{2}z^j, the coefficient of t6t^6 is (52)(0.25)3(0.75)3=0.06591797\binom52(0.25)^3(0.75)^3=0.06591797\ldots.

FS1-7.2 · Use to find the mean and variance.

  • For a PGF GXG_X, GX(1)=E(X)G'_X(1)=E(X) and GX(1)=E[X(X1)]G''_X(1)=E[X(X-1)].
  • Therefore Var(X)=GX(1)+GX(1)[GX(1)]2\operatorname{Var}(X)=G''_X(1)+G'_X(1)-[G'_X(1)]^2.
  • The check GX(1)=1G_X(1)=1 confirms that the encoded probabilities sum to one before derivatives are used.
  • A common error is to treat GX(1)G''_X(1) as E(X2)E(X^2); the missing GX(1)G'_X(1) must be added.

Tier 1 · Easy

  1. 1. The PGF of XX is GX(t)=(0.8+0.2t)6G_X(t)=(0.8+0.2t)^6. Use derivatives of the PGF to find E(X)E(X) and Var(X)\operatorname{Var}(X).[4 marks]

    Answer

    • E(X)=1.2E(X)=1.2
    • Var(X)=0.96\operatorname{Var}(X)=0.96

    Method: GX(t)=1.2(0.8+0.2t)5G'_X(t)=1.2(0.8+0.2t)^5, so GX(1)=1.2G'_X(1)=1.2. Also GX(1)=6(5)(0.2)2=1.2G''_X(1)=6(5)(0.2)^2=1.2. Hence Var(X)=1.2+1.21.22=0.96\operatorname{Var}(X)=1.2+1.2-1.2^2=0.96.

Tier 2 · Standard

  1. 1. A random variable has PGF GX(t)=2t3tG_X(t)=\dfrac{2t}{3-t}. Use the PGF to find its mean and variance.[5 marks]

    Answer

    • E(X)=32E(X)=\frac32
    • Var(X)=34\operatorname{Var}(X)=\frac34

    Method: GX(t)=6/(3t)2G'_X(t)=6/(3-t)^2 and GX(t)=12/(3t)3G''_X(t)=12/(3-t)^3. Thus GX(1)=3/2G'_X(1)=3/2 and GX(1)=3/2G''_X(1)=3/2. Therefore Var(X)=3/2+3/2(3/2)2=3/4\operatorname{Var}(X)=3/2+3/2-(3/2)^2=3/4.

Tier 3 · Hard

  1. 1. A random variable has PGF GX(t)=k(1+2t+3t2+4t3)G_X(t)=k(1+2t+3t^2+4t^3). Find kk, then use derivatives to calculate E(X)E(X) and Var(X)\operatorname{Var}(X).[6 marks]

    Answer

    • k=0.1k=0.1
    • E(X)=2E(X)=2
    • Var(X)=1\operatorname{Var}(X)=1

    Method: GX(1)=10k=1G_X(1)=10k=1, so k=0.1k=0.1. Then GX(t)=0.1(2+6t+12t2)G'_X(t)=0.1(2+6t+12t^2), giving GX(1)=2G'_X(1)=2, and GX(t)=0.1(6+24t)G''_X(t)=0.1(6+24t), giving GX(1)=3G''_X(1)=3. Hence Var(X)=3+222=1\operatorname{Var}(X)=3+2-2^2=1.

FS1-7.3 · Probability generating function of the sum of independent random variables.

  • If XX and YY are independent, then GX+Y(t)=GX(t)GY(t)G_{X+Y}(t)=G_X(t)G_Y(t).
  • Multiply and simplify the PGFs before identifying a familiar distribution or extracting coefficients.
  • For example, multiplying eλ(t1)e^{\lambda(t-1)} and eμ(t1)e^{\mu(t-1)} gives e(λ+μ)(t1)e^{(\lambda+\mu)(t-1)}, the PGF of Po(λ+μ)\operatorname{Po}(\lambda+\mu).
  • A common error is to multiply PGFs without establishing independence; dependence prevents the expectation from factorising.

Tier 1 · Easy

  1. 1. Independent variables have distributions XPo(1.4)X\sim\operatorname{Po}(1.4) and YPo(2.6)Y\sim\operatorname{Po}(2.6). Use PGFs to identify the distribution of X+YX+Y and find P(X+Y=0)P(X+Y=0).[4 marks]

    Answer

    • X+YPo(4)X+Y\sim\operatorname{Po}(4)
    • P(X+Y=0)=e4=0.01832P(X+Y=0)=e^{-4}=0.01832

    Method: GX(t)GY(t)=e1.4(t1)e2.6(t1)=e4(t1)G_X(t)G_Y(t)=e^{1.4(t-1)}e^{2.6(t-1)}=e^{4(t-1)}, which is the PGF of Po(4)\operatorname{Po}(4). Its constant coefficient is P(X+Y=0)=e4=0.0183156P(X+Y=0)=e^{-4}=0.0183156\ldots.

Tier 2 · Standard

  1. 1. Independent variables satisfy XBin(5,0.4)X\sim\operatorname{Bin}(5,0.4) and YBin(7,0.4)Y\sim\operatorname{Bin}(7,0.4). Use PGFs to identify S=X+YS=X+Y and calculate P(S=3)P(S=3).[5 marks]

    Answer

    • SBin(12,0.4)S\sim\operatorname{Bin}(12,0.4)
    • P(S=3)=0.1419P(S=3)=0.1419 to 44 significant figures

    Method: GS(t)=(0.6+0.4t)5(0.6+0.4t)7=(0.6+0.4t)12G_S(t)=(0.6+0.4t)^5(0.6+0.4t)^7=(0.6+0.4t)^{12}, so SBin(12,0.4)S\sim\operatorname{Bin}(12,0.4). The coefficient of t3t^3 is (123)(0.4)3(0.6)9=0.14189396\binom{12}{3}(0.4)^3(0.6)^9=0.14189396\ldots.

Tier 3 · Hard

  1. 1. Independent geometric variables XX and YY each have parameter 0.40.4 and count trials to first success. Use PGFs to identify the distribution of S=X+YS=X+Y and find P(S>5)P(S>5).[7 marks]

    Answer

    • SS is negative binomial with r=2r=2, p=0.4p=0.4
    • P(S>5)=0.33696P(S>5)=0.33696

    Method: GS(t)=(0.4t10.6t)2G_S(t)=\left(\dfrac{0.4t}{1-0.6t}\right)^2, the PGF of the trial of the second success. Hence P(S>5)=1s=25(s11)(0.4)2(0.6)s2=0.33696P(S>5)=1-\sum_{s=2}^{5}\binom{s-1}{1}(0.4)^2(0.6)^{s-2}=0.33696.