Which supplier? Binomial with conditional probability
Unit 3 Topic 5: Discrete random variables
The question
A shop buys boxes of 20 glass jars from two suppliers.
Supplier A provides 75% of the boxes. Supplier B provides the other boxes.
Each jar from supplier A is chipped with probability 0.02. Each jar from supplier B is chipped with probability 0.05. Jars are chipped independently of each other.
A box is chosen at random. It contains exactly one chipped jar.
Determine the probability that the box came from supplier B.
The idea. Find the chance of exactly one chipped jar for each supplier with the binomial. Weight each by how often that supplier's boxes turn up, then divide supplier B's share by the total.
The answer, one mark at a time
-
For a box from supplier A, the number of chipped jars is binomial with \(n = 20\) and \(p = 0.02\). Find the chance of exactly one.
\[X_{A} \sim \text{Bin}(20,\, 0.02)\]\[P(X_{A} = 1) = \binom{20}{1}(0.02)(0.98)^{19}\]\[P(X_{A} = 1) = 0.27249\]determines the probability of exactly one chipped jar in a box from supplier A [1 mark]
-
Do the same for supplier B, with \(p = 0.05\).
\[X_{B} \sim \text{Bin}(20,\, 0.05)\]\[P(X_{B} = 1) = \binom{20}{1}(0.05)(0.95)^{19}\]\[P(X_{B} = 1) = 0.37735\]determines the probability of exactly one chipped jar in a box from supplier B [1 mark]
-
A random box is from A with probability 0.75 and from B with probability 0.25. Add the two paths to exactly one chipped jar.
\[P(\text{one}) = 0.75(0.27249) + 0.25(0.37735)\]\[P(\text{one}) = 0.20437 + 0.09434\]\[P(\text{one}) = 0.29871\]determines the probability that a randomly chosen box has exactly one chipped jar [1 mark]
-
You know the box has exactly one chipped jar, so that total is what you divide by. Supplier B's path is the top.
\[P(\text{B} \mid \text{one}) = \frac{P(\text{B and one})}{P(\text{one})}\]\[P(\text{B} \mid \text{one}) = \frac{0.25(0.37735)}{0.29871}\]sets up the conditional probability [1 mark]
-
Divide, using the unrounded values from your calculator.
\[P(\text{B} \mid \text{one}) = \frac{0.09434}{0.29871}\]\[P(\text{B} \mid \text{one}) = 0.3158\]determines the probability [1 mark]
Answer
Watch for. \(0.25 \times 0.37735 = 0.0943\) is the chance a box is from B and has one chipped jar. The question gives you that it has one chipped jar, so divide by the total, 0.29871.