IB Practice / Maths AA HL / Statistics and probability

Conditional probability and Bayes' theorem: practice worksheet

6 questions · 44 marks · about 53 minutes

This worksheet practises the addition and product rules, tree and total-probability calculations, conditioning on complements, independence tests and Bayes' theorem for up to three events, finishing with a link to the binomial distribution.

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

    Events AA and BB are such that P(A)=35P(A) = \frac{3}{5}, P(B)=12P(B) = \frac{1}{2} and P(A∪B)=1720P(A \cup B) = \frac{17}{20}.

    (a)Find P(A∩B)P(A \cap B).[2]

    Markscheme
    use of addition rule: P(A∩B)=35+12−1720P(A \cap B) = \frac{3}{5} + \frac{1}{2} - \frac{17}{20}M1
    P(A∩B)=520=14P(A \cap B) = \frac{5}{20} = \frac{1}{4}A1

    Accept 0.250.25.

    Answer: P(A∩B)=14P(A \cap B) = \frac{1}{4}

    (b)Find P(A∣B)P(A \mid B).[2]

    Markscheme
    P(A∣B)=P(A∩B)P(B)=1412P(A \mid B) = \dfrac{P(A \cap B)}{P(B)} = \dfrac{\frac{1}{4}}{\frac{1}{2}}M1
    =12= \frac{1}{2}A1

    FT from an incorrect P(A∩B)P(A \cap B) in part (a) provided the value is between 0 and 12\frac{1}{2}.

    Answer: P(A∣B)=12P(A \mid B) = \frac{1}{2}

  2. Question 2warm-up · no calculator

    A bag contains 3 red counters and 5 blue counters. Two counters are taken from the bag at random, one after the other, without replacement.

    (a)Find the probability that the two counters are the same colour.[2]

    Markscheme
    38×27+58×47\frac{3}{8} \times \frac{2}{7} + \frac{5}{8} \times \frac{4}{7}M1
    =2656=1328= \frac{26}{56} = \frac{13}{28}A1

    A correctly labelled tree diagram with the two relevant branches identified earns the M1.

    Answer: 1328\frac{13}{28}

    (b)Given that the second counter is blue, find the probability that the first counter was red.[2]

    Markscheme
    recognition of conditional probability in context: P(first red∣second blue)=38×5738×57+58×47(=15563556)P(\text{first red} \mid \text{second blue}) = \dfrac{\frac{3}{8}\times\frac{5}{7}}{\frac{3}{8}\times\frac{5}{7} + \frac{5}{8}\times\frac{4}{7}} \left(= \dfrac{\frac{15}{56}}{\frac{35}{56}}\right)M1
    =1535=37= \frac{15}{35} = \frac{3}{7}A1

    Award M0 for a bare formula P(A∣B)=P(A∩B)P(B)P(A \mid B) = \frac{P(A \cap B)}{P(B)} with no values substituted.

    Answer: 37\frac{3}{7}

  3. Question 3exam-style · no calculator

    For two events AA and BB, it is known that P(A)=0.7P(A) = 0.7, P(B∣A)=0.2P(B \mid A) = 0.2 and P(B∣A′)=0.6P(B \mid A') = 0.6.

    (a)Find P(B)P(B).[2]

    Markscheme
    P(B)=0.7×0.2+0.3×0.6P(B) = 0.7 \times 0.2 + 0.3 \times 0.6M1
    =0.14+0.18=0.32= 0.14 + 0.18 = 0.32A1

    Accept 825\frac{8}{25}.

    Answer: P(B)=0.32P(B) = 0.32

    (b)Find P(A∣B′)P(A \mid B').[3]

    Markscheme
    recognition that P(A∣B′)=P(A∩B′)P(B′)P(A \mid B') = \dfrac{P(A \cap B')}{P(B')} with an attempt to find P(A∩B′)P(A \cap B') via 0.7×(1−0.2)0.7 \times (1 - 0.2)M1
    P(A∩B′)=0.56P(A \cap B') = 0.56 and P(B′)=0.68P(B') = 0.68A1
    P(A∣B′)=0.560.68=1417P(A \mid B') = \dfrac{0.56}{0.68} = \dfrac{14}{17}A1

    FT from an incorrect P(B)P(B) in part (a). Do not accept 0.7×0.680.7 \times 0.68 as the numerator (assumes independence).

    Answer: P(A∣B′)=1417P(A \mid B') = \frac{14}{17} (≈0.824)(\approx 0.824)

    (c)Determine whether events AA and BB are independent.[2]

    Markscheme
    correct comparison, e.g. P(B∣A)=0.2P(B \mid A) = 0.2 and P(B)=0.32P(B) = 0.32, or P(A∩B)=0.14P(A \cap B) = 0.14 and P(A)P(B)=0.224P(A)P(B) = 0.224A1
    since these are not equal, AA and BB are not independentR1

    The R1 is dependent on a correct numerical comparison. Accept the equivalent comparison P(B∣A)≠P(B∣A′)P(B \mid A) \neq P(B \mid A') with a valid reason.

    Answer: AA and BB are not independent, since P(B∣A)=0.2≠P(B)=0.32P(B \mid A) = 0.2 \neq P(B) = 0.32.

  4. Question 4exam-style · calculator

    A bicycle manufacturer buys gear cables from three suppliers. Supplier PP provides 50%50\% of the cables, supplier QQ provides 30%30\% and supplier RR provides the remaining 20%20\%. From experience, 2%2\% of cables from PP, 4%4\% of cables from QQ and 5%5\% of cables from RR are faulty. A cable is selected at random from the manufacturer's stock. Let DD be the event that the cable is faulty.

    (a)Find P(D)P(D).[2]

    Markscheme
    P(D)=0.5×0.02+0.3×0.04+0.2×0.05P(D) = 0.5 \times 0.02 + 0.3 \times 0.04 + 0.2 \times 0.05M1
    =0.01+0.012+0.01=0.032= 0.01 + 0.012 + 0.01 = 0.032A1

    Accept 3.2%3.2\% or 4125\frac{4}{125}. A tree diagram with the three faulty branches identified earns the M1.

    Answer: P(D)=0.032P(D) = 0.032

    (b)Given that the cable is faulty, find the probability that it was supplied by QQ.[3]

    Markscheme
    recognition of conditional probability in context: P(Q∣D)=P(Q∩D)P(D)P(Q \mid D) = \dfrac{P(Q \cap D)}{P(D)}M1
    =0.3×0.040.032(=0.0120.032)= \dfrac{0.3 \times 0.04}{0.032} \left(= \dfrac{0.012}{0.032}\right)A1
    =0.375= 0.375A1

    FT from an incorrect P(D)P(D) in part (a). Accept 38\frac{3}{8} or 37.5%37.5\%.

    Answer: P(Q∣D)=38=0.375P(Q \mid D) = \frac{3}{8} = 0.375

    (c)Given that the cable is not faulty, find the probability that it was supplied by RR.[2]

    Markscheme
    P(R∣D′)=0.2×0.951−0.032(=0.190.968)P(R \mid D') = \dfrac{0.2 \times 0.95}{1 - 0.032} \left(= \dfrac{0.19}{0.968}\right)M1
    =0.196= 0.196 (0.19628…)(0.19628\ldots)A1

    Award M0 if the numerator is 0.2×0.050.2 \times 0.05 or the denominator is 0.0320.032 (conditioning on the wrong event). FT from part (a).

    Answer: P(R∣D′)=95484≈0.196P(R \mid D') = \frac{95}{484} \approx 0.196

  5. Question 5exam-style · calculator

    A blood test is used to screen for a condition that affects 3%3\% of a population. If a person has the condition, the test gives a positive result with probability 0.960.96. If a person does not have the condition, the test gives a negative result with probability 0.920.92. A person is chosen at random from the population and tested. Let CC be the event that the person has the condition and TT be the event that the test result is positive.

    (a)Find P(T)P(T).[2]

    Markscheme
    P(T)=0.03×0.96+0.97×0.08P(T) = 0.03 \times 0.96 + 0.97 \times 0.08M1
    =0.0288+0.0776=0.1064= 0.0288 + 0.0776 = 0.1064A1

    Accept 0.1060.106 or 10.6%10.6\%.

    Answer: P(T)=0.1064P(T) = 0.1064

    (b)Given that the test result is positive, find the probability that the person has the condition.[2]

    Markscheme
    P(C∣T)=0.03×0.960.1064(=0.02880.1064)P(C \mid T) = \dfrac{0.03 \times 0.96}{0.1064} \left(= \dfrac{0.0288}{0.1064}\right)M1
    =0.271= 0.271 (0.27068…)(0.27068\ldots)A1

    FT from part (a). Accept 27.1%27.1\%.

    Answer: P(C∣T)=36133≈0.271P(C \mid T) = \frac{36}{133} \approx 0.271

    (c)Given that the test result is negative, find the probability that the person has the condition.[2]

    Markscheme
    P(C∣T′)=0.03×0.041−0.1064(=0.00120.8936)P(C \mid T') = \dfrac{0.03 \times 0.04}{1 - 0.1064} \left(= \dfrac{0.0012}{0.8936}\right)M1
    =0.00134= 0.00134 (0.001342…)(0.001342\ldots)A1

    FT from part (a). Award M0 for a denominator of 0.10640.1064.

    Answer: P(C∣T′)=32234≈0.00134P(C \mid T') = \frac{3}{2234} \approx 0.00134

    (d)The health authority wants to improve the test so that, when the result is positive, the probability that the person has the condition is at least 0.50.5. The probability 0.960.96 of a positive result for a person with the condition is to remain unchanged, but the probability pp of a negative result for a person without the condition is to be increased. Find the minimum value of pp required.[3]

    Markscheme
    setting up 0.02880.0288+0.97(1−p)=0.5\dfrac{0.0288}{0.0288 + 0.97(1 - p)} = 0.5 (or ≥0.5\geq 0.5)M1
    0.97(1−p)=0.0288⇒1−p=0.02969…0.97(1 - p) = 0.0288 \Rightarrow 1 - p = 0.02969\ldotsA1
    p=0.970p = 0.970 (0.97031…)(0.97031\ldots)A1

    METHOD 2: solving the equation directly on the GDC earns M1 for the correct equation entered and A2 for the answer. Accept 97.0%97.0\%; do not accept 0.970.97 unless the more accurate value is seen.

    Answer: pmin⁡≈0.970p_{\min} \approx 0.970 (0.97031…)(0.97031\ldots)

  6. Question 6challenge · calculator

    A bakery uses two ovens. Oven AA bakes 60%60\% of the bakery's loaves and oven BB bakes the remaining 40%40\%. The probability that a loaf from oven AA is underbaked is 0.050.05, and the probability that a loaf from oven BB is underbaked is 0.120.12. Whether or not a loaf is underbaked is independent of all other loaves. Loaves are packed into boxes of six, all the loaves in any one box coming from the same oven, and 60%60\% of the boxes come from oven AA.

    (a)A loaf is chosen at random from the bakery's output. Find the probability that it is underbaked.[2]

    Markscheme
    0.6×0.05+0.4×0.120.6 \times 0.05 + 0.4 \times 0.12M1
    =0.03+0.048=0.078= 0.03 + 0.048 = 0.078A1

    Accept 7.8%7.8\% or 39500\frac{39}{500}.

    Answer: 0.0780.078

    (b)Given that the loaf is underbaked, find the probability that it was baked in oven BB.[2]

    Markscheme
    P(B∣underbaked)=0.4×0.120.078(=0.0480.078)P(B \mid \text{underbaked}) = \dfrac{0.4 \times 0.12}{0.078} \left(= \dfrac{0.048}{0.078}\right)M1
    =813= \dfrac{8}{13} (0.615)(0.615)A1

    FT from part (a).

    Answer: 813≈0.615\frac{8}{13} \approx 0.615

    (c)(i)A box of six loaves from oven BB is chosen. Let XX be the number of underbaked loaves in the box. Find P(X=2)P(X = 2).[2]

    Markscheme
    recognition that X∼B(6, 0.12)X \sim \mathrm{B}(6,\ 0.12), e.g. (62)(0.12)2(0.88)4\binom{6}{2}(0.12)^2(0.88)^4 or GDC binomial pdfM1
    P(X=2)=0.130P(X = 2) = 0.130 (0.12953…)(0.12953\ldots)A1

    Answer: P(X=2)≈0.130P(X = 2) \approx 0.130 (0.12953…)(0.12953\ldots)

    (c)(ii)Given that the box contains at most two underbaked loaves, find the probability that it contains at least one underbaked loaf.[3]

    Markscheme
    recognition of conditional probability in context: P(X≥1∣X≤2)=P(1≤X≤2)P(X≤2)P(X \geq 1 \mid X \leq 2) = \dfrac{P(1 \leq X \leq 2)}{P(X \leq 2)}M1
    P(1≤X≤2)=0.510P(1 \leq X \leq 2) = 0.510 (0.50950…)(0.50950\ldots) or P(X≤2)=0.974P(X \leq 2) = 0.974 (0.97390…)(0.97390\ldots)A1
    =0.523= 0.523 (0.52315…)(0.52315\ldots)A1

    Award M0 A0 A0 for P(X≥1)P(X≤2)\frac{P(X \geq 1)}{P(X \leq 2)} (numerator not intersected with the conditioning event). Also accept the numerator written as P(X≤2)−P(X=0)P(X \leq 2) - P(X = 0).

    Answer: P(X≥1∣X≤2)≈0.523P(X \geq 1 \mid X \leq 2) \approx 0.523 (0.52315…)(0.52315\ldots)

    (d)A box of six loaves is chosen at random from the bakery's output. Given that none of the loaves in the box is underbaked, find the probability that the box came from oven AA.[4]

    Markscheme
    attempt to find the probability of no underbaked loaves for each oven: P(none∣A)=0.956P(\text{none} \mid A) = 0.95^6 and P(none∣B)=0.886P(\text{none} \mid B) = 0.88^6M1
    0.956=0.7350.95^6 = 0.735 (0.73509…)(0.73509\ldots) and 0.886=0.4640.88^6 = 0.464 (0.46440…)(0.46440\ldots)A1
    use of Bayes' theorem: P(A∣none)=0.6×0.735…0.6×0.735…+0.4×0.464…(=0.44106…0.62682…)P(A \mid \text{none}) = \dfrac{0.6 \times 0.735\ldots}{0.6 \times 0.735\ldots + 0.4 \times 0.464\ldots} \left(= \dfrac{0.44106\ldots}{0.62682\ldots}\right)M1
    =0.704= 0.704 (0.70364…)(0.70364\ldots)A1

    Award the first M1 for either binomial probability seen, including via GDC. FT the final A1 from incorrect values of 0.9560.95^6 or 0.8860.88^6 provided the Bayes structure is correct. Do not accept 0.6×(1−0.078)60.6 \times (1 - 0.078)^6 for the denominator (this ignores that all loaves in a box come from the same oven).

    Answer: P(A∣none underbaked)≈0.704P(A \mid \text{none underbaked}) \approx 0.704 (0.70364…)(0.70364\ldots)

Common errors

  • Assuming P(A∩B)=P(A)P(B)P(A \cap B) = P(A)P(B) without first checking that the events are independent.
  • Inverting the conditional and calculating P(B∣A)P(B \mid A) when the question asks for P(A∣B)P(A \mid B), or dividing by the wrong denominator.
  • Forgetting to weight each category's probability by its proportion of the population when finding a total probability or a Bayes denominator.
  • When conditioning on a complement, using P(A)P(A) or P(A∩B)P(A \cap B) in the numerator instead of first finding P(A∩B′)P(A \cap B').
  • In conditional probability within a distribution, taking the numerator as P(X≥1)P(X \geq 1) instead of the intersection P(1≤X≤2)P(1 \leq X \leq 2), or confusing 'at least' with a strict inequality.

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.

Twenty minutes, one to one, online. No charge, no commitment.

Request an initial assessment