← Probability

Class 12 Maths · 10 worked problems

Study the worked examples below, or retry these problems as a revision test.

Take topic test →

Conditioning, independence and Bayes

Select the conditioned sample space first. A posterior probability compares joint probabilities of all routes to the observed event.

Practise with worked solutions

Problem 1

Bag A has 3 red and 1 blue ball. B has 1 red and 3 blue. Select either bag with probability 12\frac{1}{2}. Find P(red).

Worked solution
  1. Choose the ruleTotal probability sums P(bag)P(red given bag).
  2. Why it appliesSelect the conditioned sample space first. A posterior probability compares joint probabilities of all routes to the observed event.
  3. Work it outAdd (12\frac{1}{2})(34\frac{3}{4}) + (12\frac{1}{2})(14\frac{1}{4}).
  4. Result12\frac{1}{2}.
Problem 2

Two fair dice are rolled. You learn the sum is 8. Find P(a double given this information).

Worked solution
  1. Choose the ruleConditioning makes compatible ordered outcomes the new space.
  2. Why it appliesSelect the conditioned sample space first. A posterior probability compares joint probabilities of all routes to the observed event.
  3. Work it outThe five pairs are (2,6),(3,5),(4,4),(5,3),(6,2).
  4. ResultOnly (4,4) is a double, giving 15\frac{1}{5}.
Problem 3

A and B are independent with P(A) = 0.3 and P(B) = 0.6. Find P(A ∩ BcB^{c}).

Worked solution
  1. Choose the ruleIndependence extends to complements.
  2. Why it appliesSelect the conditioned sample space first. A posterior probability compares joint probabilities of all routes to the observed event.
  3. Work it outMultiply P(A) by 1 − P(B).
  4. Result0.12.
Problem 4

A batch comes 80% from line L and 20% from line M. Their defect rates are 1% and 4%. Find the total defect probability.

Worked solution
  1. Choose the ruleWeight each conditional defect rate by its production share.
  2. Why it appliesSelect the conditioned sample space first. A posterior probability compares joint probabilities of all routes to the observed event.
  3. Work it out0.8 × 0.01 + 0.2 × 0.04 = 0.016.
  4. Result1.6%.
Problem 5

A bag has 4 white and 2 black balls. Draw twice without replacement. Find P(second white given first black).

Worked solution
  1. Choose the ruleCondition on the new composition.
  2. Why it appliesSelect the conditioned sample space first. A posterior probability compares joint probabilities of all routes to the observed event.
  3. Work it outAfter a black draw there are 4 white and 1 black left.
  4. Result45\frac{4}{5}.
Problem 6

Follows on from: Find P(red).

Bag A has 3 red and 1 blue ball. B has 1 red and 3 blue. Select either bag with probability 12\frac{1}{2}. Given a red draw, find P(A).

Worked solution
  1. Choose the ruleUse Bayes: posterior = prior × likelihood / total evidence probability.
  2. Why it appliesSelect the conditioned sample space first. A posterior probability compares joint probabilities of all routes to the observed event.
  3. Work it outThe A-and-red probability is 38\frac{3}{8}. Divide by the total red probability 12\frac{1}{2}.
  4. Result34\frac{3}{4}.
Problem 7

Follows on from: Find P(a double given this information).

Two fair dice are rolled. You learn the sum is 8. Given a double instead, find P(sum = 8).

Worked solution
  1. Choose the ruleUse the conditioned sample space as the denominator.
  2. Why it appliesSelect the conditioned sample space first. A posterior probability compares joint probabilities of all routes to the observed event.
  3. Work it outThere are six possible doubles, only one with sum 8.
  4. Result16\frac{1}{6}.
Problem 8

Follows on from: Find P(A ∩ BcB^{c}).

A and B are independent with P(A) = 0.3 and P(B) = 0.6. Find P(A ∪ B).

Worked solution
  1. Choose the ruleP(A∪B)=P(A)+P(B)−P(A∩B)P(A\cup B)=P(A)+P(B)-P(A\cap B).
  2. Why it appliesSelect the conditioned sample space first. A posterior probability compares joint probabilities of all routes to the observed event.
  3. Work it outThe overlap is 0.18. Subtract it from 0.3 + 0.6.
  4. Result0.72.
Problem 9

Follows on from: Find the total defect probability.

A batch comes 80% from line L and 20% from line M. Their defect rates are 1% and 4%. A defective item is observed. Which line is more likely?

Worked solution
  1. Choose the ruleCompare prior probability times defect likelihood for each production line.
  2. Why it appliesSelect the conditioned sample space first. A posterior probability compares joint probabilities of all routes to the observed event.
  3. Work it outThe joint contributions are both 0.008. Divide each by 0.016.
  4. ResultEach has posterior probability 12\frac{1}{2}.
Problem 10

Follows on from: Find P(second white given first black).

A bag has 4 white and 2 black balls. Draw twice without replacement. Find P(first black given second white).

Worked solution
  1. Choose the ruleP(first black given second white) = P(first black and second white) / P(second white).
  2. Why it appliesSelect the conditioned sample space first. A posterior probability compares joint probabilities of all routes to the observed event.
  3. Work it outThe joint black-then-white probability is (26\frac{2}{6})(45\frac{4}{5}). The unconditional chance of white second is 46\frac{4}{6} by symmetry.
  4. Result(415\frac{4}{15})/(23\frac{2}{3}) = 25\frac{2}{5}.