Machines A, B and C produce 50%, 30% and 20% of a factory's items. Their defect rates are 1%, 2% and 3%. An item is picked at random and found defective. What is the probability that it came from machine C?
Probability and statistics, Conditional probability
Level L2 Elementary. Length Short. Nature Mat Mathematical.
What's being asked
Total probability followed by Bayes' rule with more than two hypotheses.
Key idea
, where means "defective".
Steps
- List the priors and likelihoods: and .
- Compute the joint terms: , , .
- Sum them for the law of total probability: .
- Apply Bayes: .
- Sanity check: the three posteriors add to 1. Machine C makes only 20% of items but 35% of defects.
Common mistakes
- Answering instead of .
- Forgetting to weight by the production shares when finding .
- Taking as the plain average .
How long your answer should be
5–6 lines of working.
Last checked on 4 December 2026.
Read this
Previous in Probability and statistics: A bag holds 4 red and 6 blue balls. You draw 3 balls at random without replacement. What is the probability that exactly 2 are red?
Next in Probability and statistics: A classifier errs independently on each test example with probability 0.1. On 20 test examples, what is the probability of at most one error?