Probability generating functions

Probability generating functions Test

Spec 7.1–3 · Edexcel A-Level Further Maths: Subtopic test

Studying this course? Keep your progress in one place.

Two ways to do this test

Question by question

One question at a time. Each answer is marked the moment you hand it in, so you learn as you go. Drago helps if you get stuck. All 10 questions, or just 5.

Exam mode

The whole paper in one go, timed like the real exam. Nothing is marked until you hand it in, then you get every mark explained.

10 questions, 27 marks

Edexcel A-Level Further Maths

Probability generating functions

Total 27 marks

Name

Class

Date

  1. 1
    The discrete random variable XX has P(X=0)=0.2\mathrm{P}(X=0)=0.2, P(X=1)=0.5\mathrm{P}(X=1)=0.5 and P(X=2)=0.3\mathrm{P}(X=2)=0.3. The probability generating function of XX is GX(t)\mathrm{G}_X(t).
    (a)
    Find GX(t)\mathrm{G}_X(t).
    [1 mark]
    • A0.3+0.5t+0.2t20.3+0.5t+0.2t^2
    • B0.5t+0.6t20.5t+0.6t^2
    • C0.2+0.5t+0.3t20.2+0.5t+0.3t^2
    • D0.2t+0.5t2+0.3t30.2t+0.5t^2+0.3t^3
    Show the mark scheme

    Mark scheme

    Answer: C
    (b)
    Use GX(t)\mathrm{G}_X(t) to find E(X)\mathrm{E}(X).
    [1 mark]
    • A1.11.1
    • B1.71.7
    • C0.60.6
    • D11
    Show the mark scheme

    Mark scheme

    Answer: A
    (c)
    Use GX(t)\mathrm{G}_X(t) to find Var(X)\mathrm{Var}(X).
    [2 marks]
    Show the mark scheme

    Mark scheme

    M1: GX′′(1)=0.6\mathrm{G}_X''(1)=0.6 used in Var(X)=GX′′(1)+GX′(1)−[GX′(1)]2\mathrm{Var}(X)=\mathrm{G}_X''(1)+\mathrm{G}_X'(1)-\left[\mathrm{G}_X'(1)\right]^2
    A1:
    0.6+1.1−1.21=0.490.6+1.1-1.21=0.49
    Accept: follow-through from their
    GX′(1)\mathrm{G}_X'(1)

    Total for question 1: 4 marks

  2. 2
    The random variable XX has a geometric distribution with parameter p=14p=\frac14, so XX is the number of trials up to and including the first success, with P(X=r)=qr−1p\mathrm{P}(X=r)=q^{r-1}p for r=1,2,3,…r=1,2,3,\ldots and q=1−pq=1-p.
    (a)
    Find GX(t)\mathrm{G}_X(t).
    [1 mark]
    • A3t4−t\dfrac{3t}{4-t}
    • Bt4+3t\dfrac{t}{4+3t}
    • C14−3t\dfrac{1}{4-3t}
    • Dt4−3t\dfrac{t}{4-3t}
    Show the mark scheme

    Mark scheme

    Answer: D
    (b)
    Use GX(t)\mathrm{G}_X(t) to find E(X)\mathrm{E}(X).
    [1 mark]
    • A14\frac14
    • B44
    • C1212
    • D34\frac34
    Show the mark scheme

    Mark scheme

    Answer: B
    (c)
    Given that GX′(t)=4(4−3t)2\mathrm{G}_X'(t)=\dfrac{4}{(4-3t)^2}, find GX′′(1)\mathrm{G}_X''(1) and hence show that Var(X)=12\mathrm{Var}(X)=12.
    [2 marks]
    Show the mark scheme

    Mark scheme

    M1: GX′′(t)=24(4−3t)3\mathrm{G}_X''(t)=\frac{24}{(4-3t)^3} (chain rule or quotient rule)
    A1:
    GX′′(1)=24\mathrm{G}_X''(1)=24, so Var(X)=24+4−16=12\mathrm{Var}(X)=24+4-16=12
    AG

    Total for question 2: 4 marks

  3. 3
    The random variable XX has distribution B(3,0.4)\mathrm{B}(3,0.4) and the random variable YY has distribution Po(2)\mathrm{Po}(2). The variables XX and YY are independent and Z=X+YZ=X+Y.
    (a)
    Show, from the definition of a probability generating function, that GX(t)=(0.6+0.4t)3\mathrm{G}_X(t)=(0.6+0.4t)^3.
    [3 marks]
    Show the mark scheme

    Mark scheme

    B1: GX(t)=∑P(X=r)tr=∑r=03(3r)(0.4)r(0.6)3−rtr\mathrm{G}_X(t)=\sum\mathrm{P}(X=r)t^r=\sum_{r=0}^{3}\binom3r(0.4)^r(0.6)^{3-r}t^r
    M1:
    ∑(3r)(0.4t)r(0.6)3−r\sum\binom3r(0.4t)^r(0.6)^{3-r}, the binomial expansion
    A1:
    (0.6+0.4t)3(0.6+0.4t)^3
    AG
    (b)
    The probability generating function of YY is GY(t)=e2(t−1)\mathrm{G}_Y(t)=\mathrm{e}^{2(t-1)}. Find the probability generating function of ZZ, and hence find E(Z)\mathrm{E}(Z).
    [4 marks]
    Show the mark scheme

    Mark scheme

    M1: GZ(t)=GX(t) GY(t)\mathrm{G}_Z(t)=\mathrm{G}_X(t)\,\mathrm{G}_Y(t) (independent variables)
    A1:
    (0.6+0.4t)3e2(t−1)(0.6+0.4t)^3\mathrm{e}^{2(t-1)}
    M1: product rule for
    GZ′(t)\mathrm{G}_Z'(t), e.g. 1.2(0.6+0.4t)2e2(t−1)+2(0.6+0.4t)3e2(t−1)1.2(0.6+0.4t)^2\mathrm{e}^{2(t-1)}+2(0.6+0.4t)^3\mathrm{e}^{2(t-1)}
    A1:
    E(Z)=GZ′(1)=1.2+2=3.2\mathrm{E}(Z)=\mathrm{G}_Z'(1)=1.2+2=3.2

    Total for question 3: 7 marks

  4. 4
    A biased coin shows heads with probability p=0.2p=0.2 and tails with probability q=0.8q=0.8. The coin is tossed repeatedly. The random variable XX is the number of tosses up to and including the first head, with GX(t)\mathrm{G}_X(t) its probability generating function.
    (a)
    Show, from the definition, that GX(t)=pt1−qt\mathrm{G}_X(t)=\dfrac{pt}{1-qt}, stating the condition on tt for the series to converge. Hence prove that E(X)=1p\mathrm{E}(X)=\dfrac1p.
    [6 marks]
    Show the mark scheme

    Mark scheme

    B1: GX(t)=∑r=1∞qr−1p tr\mathrm{G}_X(t)=\sum_{r=1}^{\infty}q^{r-1}p\,t^r
    M1:
    pt∑r=1∞(qt)r−1pt\sum_{r=1}^{\infty}(qt)^{r-1}, a geometric series with first term 1 and ratio qtqt
    A1:
    pt1−qt\frac{pt}{1-qt}, valid for ∣qt∣<1|qt|<1
    M1:
    GX′(t)\mathrm{G}_X'(t) by the quotient rule
    A1:
    GX′(t)=p(1−qt)+pqt(1−qt)2=p(1−qt)2\mathrm{G}_X'(t)=\frac{p(1-qt)+pqt}{(1-qt)^2}=\frac{p}{(1-qt)^2}
    A1:
    E(X)=GX′(1)=p(1−q)2=1p\mathrm{E}(X)=\mathrm{G}_X'(1)=\frac{p}{(1-q)^2}=\frac1p
    Accept:
    ∣t∣<1q|t|<\frac1q for the condition
    (b)
    The random variable NN is the number of tosses up to and including the third head. Find the probability generating function of NN, and use GX′(1)=5\mathrm{G}_X'(1)=5 and GX′′(1)=40\mathrm{G}_X''(1)=40 to find E(N)\mathrm{E}(N) and Var(N)\mathrm{Var}(N).
    [6 marks]
    Show the mark scheme

    Mark scheme

    B1: N=X1+X2+X3N=X_1+X_2+X_3, the sum of three independent copies of XX
    A1:
    GN(t)=[GX(t)]3=(0.2t1−0.8t)3\mathrm{G}_N(t)=\left[\mathrm{G}_X(t)\right]^3=\left(\frac{0.2t}{1-0.8t}\right)^3
    M1:
    GN′(t)=3[GX(t)]2GX′(t)\mathrm{G}_N'(t)=3\left[\mathrm{G}_X(t)\right]^2\mathrm{G}_X'(t) (chain rule)
    A1:
    E(N)=GN′(1)=3(1)(5)=15\mathrm{E}(N)=\mathrm{G}_N'(1)=3(1)(5)=15
    M1:
    GN′′(t)=6 GX[GX′]2+3[GX]2GX′′\mathrm{G}_N''(t)=6\,\mathrm{G}_X\left[\mathrm{G}_X'\right]^2+3\left[\mathrm{G}_X\right]^2\mathrm{G}_X'' and GN′′(1)=6(25)+3(40)=270\mathrm{G}_N''(1)=6(25)+3(40)=270
    A1:
    Var(N)=270+15−152=60\mathrm{Var}(N)=270+15-15^2=60

    Total for question 4: 12 marks

End of questions

Subtopic tests