IB Practice / Maths AA HL / Statistics and probability

Discrete random variables and the binomial distribution: practice worksheet

6 questions · 44 marks · about 53 minutes

This worksheet practises discrete probability distributions, expected values, fair games, binomial probabilities, variance and linear transformations.

Download the PDFFree, no sign-up. The markscheme is on the last pages.
  1. Question 1warm-up · no calculator

    The discrete random variable XX has the following probability distribution: x−203P(X=x)14k12\begin{array}{c|ccc}x&-2&0&3\\\hline P(X=x)&\frac14&k&\frac12\end{array}

    (a)Find kk.[2]

    Markscheme
    14+k+12=1\frac14+k+\frac12=1.M1
    k=14k=\frac14.A1

    Accept equivalent exact forms.

    Answer: k=14k=\frac14.

    (b)Find E(X)E(X).[2]

    Markscheme
    E(X)=(−2)(14)+0(k)+3(12)E(X)=(-2)\left(\frac14\right)+0(k)+3\left(\frac12\right).M1
    E(X)=1E(X)=1.A1

    Answer: E(X)=1E(X)=1.

  2. Question 2warm-up · no calculator

    A fair spinner has two equal sectors, blue and gold. It is spun independently three times. Let XX be the number of times it lands on blue.

    (a)Write down the distribution of XX, including its parameters.[1]

    Markscheme
    X∼B(3,12)X\sim\mathrm{B}\left(3,\frac12\right).A1

    Both parameters and the binomial distribution must be identified.

    Answer: X∼B(3,12)X\sim\mathrm{B}\left(3,\frac12\right).

    (b)Find P(X=3)P(X=3).[2]

    Markscheme
    P(X=3)=(12)3P(X=3)=\left(\frac12\right)^3.M1
    P(X=3)=18P(X=3)=\frac18.A1

    Accept use of the binomial probability formula.

    Answer: P(X=3)=18P(X=3)=\frac18.

    (c)Write down E(X)E(X).[1]

    Markscheme
    E(X)=3(12)=32E(X)=3\left(\frac12\right)=\frac32.A1

    Answer: E(X)=32E(X)=\frac32.

  3. Question 3exam-style · no calculator

    A festival game awards a prize of WW credits. Its probability distribution is w028P(W=w)k2k14\begin{array}{c|ccc}w&0&2&8\\\hline P(W=w)&k&2k&\frac14\end{array} The entry fee is 44 credits. A player's net gain is the prize minus the entry fee.

    (a)Find kk.[2]

    Markscheme
    k+2k+14=1k+2k+\frac14=1.M1
    k=14k=\frac14.A1

    Answer: k=14k=\frac14.

    (b)Find the expected prize.[2]

    Markscheme
    E(W)=0(k)+2(2k)+8(14)E(W)=0(k)+2(2k)+8\left(\frac14\right).M1
    E(W)=3E(W)=3 credits.A1

    Award A1 FT for a correct evaluation using the candidate's value of kk, provided the probabilities form a valid distribution.

    Answer: E(W)=3E(W)=3 credits.

    (c)Determine whether the game is fair at the stated entry fee, giving a reason. Hence find the entry fee that would make the game fair.[3]

    Markscheme
    E(net gain)=E(W)−4=3−4=−1E(\text{net gain})=E(W)-4=3-4=-1.M1
    The game is not fair because the expected net gain is not zero.R1
    The fair entry fee is 33 credits.A1

    Accept that the player loses one credit per play on average. Allow FT from part (b) for a consistent conclusion and fair entry fee.

    Answer: The game is not fair because the expected net gain is −1-1 credit. The fair entry fee is 33 credits.

  4. Question 4exam-style · calculator

    An automated sorter incorrectly labels a parcel with probability 0.250.25. Labelling outcomes are independent. Eight parcels are processed, and XX is the number incorrectly labelled.

    (a)State the distribution of XX, including its parameters.[1]

    Markscheme
    X∼B(8,0.25)X\sim\mathrm{B}(8,0.25).A1

    Answer: X∼B(8,0.25)X\sim\mathrm{B}(8,0.25).

    (b)Find the probability that exactly three parcels are incorrectly labelled.[2]

    Markscheme
    Use the binomial probability function with n=8n=8, p=0.25p=0.25 and x=3x=3, or evaluate (83)(0.25)3(0.75)5\binom83(0.25)^3(0.75)^5.M1
    P(X=3)=0.2076416016…≈0.208P(X=3)=0.2076416016\ldots\approx0.208.A1

    Accept the exact fraction.

    Answer: P(X=3)=17018192≈0.208P(X=3)=\frac{1701}{8192}\approx0.208.

    (c)Find the probability that at least two parcels are incorrectly labelled.[2]

    Markscheme
    P(X≥2)=1−P(X≤1)P(X\geq2)=1-P(X\leq1), using the binomial cumulative probability function.M1
    P(X≥2)=0.6329193115…≈0.633P(X\geq2)=0.6329193115\ldots\approx0.633.A1

    Accept a direct sum of probabilities from 22 to 88, or a correctly specified calculator upper-tail calculation.

    Answer: P(X≥2)=4147965536≈0.633P(X\geq2)=\frac{41479}{65536}\approx0.633.

    (d)Find the mean and the variance of XX.[3]

    Markscheme
    Use E(X)=npE(X)=np and Var⁡(X)=np(1−p)\operatorname{Var}(X)=np(1-p).M1
    E(X)=8(0.25)=2E(X)=8(0.25)=2.A1
    Var⁡(X)=8(0.25)(0.75)=1.5\operatorname{Var}(X)=8(0.25)(0.75)=1.5.A1

    Award M1 for a correct substitution into either formula.

    Answer: E(X)=2E(X)=2 and Var⁡(X)=32\operatorname{Var}(X)=\frac32; to three significant figures, 2.002.00 and 1.501.50.

  5. Question 5exam-style · no calculator

    A device records a discrete random variable XX with distribution x−214P(X=x)131216\begin{array}{c|ccc}x&-2&1&4\\\hline P(X=x)&\frac13&\frac12&\frac16\end{array} Its displayed reading is Y=6−2XY=6-2X.

    (a)Show that E(X)=12E(X)=\frac12.[2]

    Markscheme
    E(X)=(−2)(13)+1(12)+4(16)E(X)=(-2)\left(\frac13\right)+1\left(\frac12\right)+4\left(\frac16\right).M1
    E(X)=−4+3+46=36E(X)=\frac{-4+3+4}{6}=\frac36.A1
    Hence E(X)=12E(X)=\frac12.AG

    The given answer alone earns no marks.

    Answer: E(X)=12E(X)=\frac12.

    (b)Find Var⁡(X)\operatorname{Var}(X).[3]

    Markscheme
    E(X2)=(−2)2(13)+12(12)+42(16)E(X^2)=(-2)^2\left(\frac13\right)+1^2\left(\frac12\right)+4^2\left(\frac16\right).M1
    E(X2)=92E(X^2)=\frac92.A1
    Var⁡(X)=92−(12)2=174\operatorname{Var}(X)=\frac92-\left(\frac12\right)^2=\frac{17}{4}.A1

    Accept direct evaluation of ∑(x−μ)2P(X=x)\sum (x-\mu)^2P(X=x) as an alternative method.

    Answer: Var⁡(X)=174\operatorname{Var}(X)=\frac{17}{4}.

    (c)Hence find E(Y)E(Y) and Var⁡(Y)\operatorname{Var}(Y).[3]

    Markscheme
    Use E(Y)=6−2E(X)E(Y)=6-2E(X) and Var⁡(Y)=(−2)2Var⁡(X)\operatorname{Var}(Y)=(-2)^2\operatorname{Var}(X).M1
    E(Y)=6−2(12)=5E(Y)=6-2\left(\frac12\right)=5.A1
    Var⁡(Y)=4(174)=17\operatorname{Var}(Y)=4\left(\frac{17}{4}\right)=17.A1

    Award M1 for either correct transformation rule. Allow A1 FT for the variance using the candidate's non-negative variance from part (b).

    Answer: E(Y)=5E(Y)=5 and Var⁡(Y)=17\operatorname{Var}(Y)=17.

    (d)Without further calculation, explain why Y+7Y+7 has the same variance as YY.[1]

    Markscheme
    Adding a constant leaves variance unchanged, or Var⁡(Y+7)=12Var⁡(Y)\operatorname{Var}(Y+7)=1^2\operatorname{Var}(Y).R1

    A numerical answer without an explanation is insufficient.

    Answer: Adding a constant shifts every value equally and leaves the variance unchanged.

  6. Question 6challenge · calculator

    An electronic ticket costs 22 credits and independently wins a prize of 55 credits with probability 0.200.20. A losing ticket pays nothing. A player buys nn tickets. Let XX be the number of winning tickets and let GG be the player's total net gain, so that G=5X−2nG=5X-2n.

    (a)State the distribution of XX, including its parameters.[1]

    Markscheme
    X∼B(n,0.20)X\sim\mathrm{B}(n,0.20).A1

    Answer: X∼B(n,0.20)X\sim\mathrm{B}(n,0.20).

    (b)In the case where n=10n=10, find the probability that at least two tickets win.[2]

    Markscheme
    P(X≥2)=1−P(X≤1)P(X\geq2)=1-P(X\leq1) for X∼B(10,0.20)X\sim\mathrm{B}(10,0.20).M1
    P(X≥2)=0.6241903616≈0.624P(X\geq2)=0.6241903616\approx0.624.A1

    Accept a correctly specified direct upper-tail calculation.

    Answer: 1−(45)10−2(45)9=0.6241903616≈0.6241-\left(\frac45\right)^{10}-2\left(\frac45\right)^9=0.6241903616\approx0.624.

    (c)Using logarithms, determine the least integer value of nn for which the probability of at least one winning ticket is greater than 0.950.95.[4]

    Markscheme
    1−(0.8)n>0.951-(0.8)^n>0.95, giving (0.8)n<0.05(0.8)^n<0.05.M1
    Take logarithms to obtain nln⁡(0.8)<ln⁡(0.05)n\ln(0.8)<\ln(0.05).M1
    n>ln⁡(0.05)ln⁡(0.8)=13.4251…n>\frac{\ln(0.05)}{\ln(0.8)}=13.4251\ldots, reversing the inequality because ln⁡(0.8)<0\ln(0.8)<0.A1
    The least integer value is n=14n=14.A1

    Accept any logarithm base. A calculator search alone does not earn the logarithm method mark.

    Answer: n=14n=14.

    (d)The player buys the number of tickets found in part (c). Find E(G)E(G) and Var⁡(G)\operatorname{Var}(G).[3]

    Markscheme
    Use E(G)=5(np)−2nE(G)=5(np)-2n and Var⁡(G)=25np(1−p)\operatorname{Var}(G)=25np(1-p) with p=0.20p=0.20.M1
    E(G)=5(14)(0.20)−28=−14E(G)=5(14)(0.20)-28=-14 credits.A1
    Var⁡(G)=25(14)(0.20)(0.80)=56\operatorname{Var}(G)=25(14)(0.20)(0.80)=56 credits squared.A1

    Award M1 for either correct expression. Allow A1 FT for each result using the candidate's positive integer value from part (c).

    Answer: E(G)=−14E(G)=-14 credits and Var⁡(G)=56\operatorname{Var}(G)=56 credits squared; to three significant figures, −14.0-14.0 and 56.056.0, respectively.

    (e)The organiser replaces the prize of 55 credits with a prize of rr credits. The ticket price and winning probability remain unchanged. Determine rr so that the game is fair for any positive integer nn.[2]

    Markscheme
    For fairness, E(rX−2n)=0E(rX-2n)=0, giving 0.20nr−2n=00.20nr-2n=0.M1
    Since n>0n>0, r=10r=10 credits.A1

    Accept the equivalent per-ticket equation 0.20r=20.20r=2.

    Answer: r=10r=10 credits, or 10.010.0 credits to three significant figures.

Common errors

  • Forgetting that all probabilities in a discrete distribution must sum to one leads to an incorrect normalising constant.
  • Calculating P(X≥2)P(X\geq2) as 1−P(X≤2)1-P(X\leq2) incorrectly excludes the outcome X=2X=2.
  • Naming the binomial distribution without stating both parameters gives an incomplete model.
  • Using E(X2)−E(X)E(X^2)-E(X) instead of E(X2)−[E(X)]2E(X^2)-[E(X)]^2, or failing to square the multiplier in a variance transformation, produces an incorrect variance.
  • Failing to reverse an inequality when dividing by a negative logarithm can give the wrong least number of trials.

Original questions and notes written by Pietro Meloni, PhD, from the IB syllabus. Not endorsed by or affiliated with the International Baccalaureate Organization. Found a mistake? Please tell me privately at pietro@pietromeloni.com. More questions on this topic: Statistics and probability practice.

Find out what is costing the marks.

One to one, online, on Google Meet.

Book a first session