Q.A factory has two machines A and B. Past record shows that machine A produced of the items of output and machine B produced of the items. Further, of the items produced by machine A and produced by machine B were defective. All the items are put into one stockpile and then one item is chosen at random from this and is found to be defective. What is the probability that it was produced by machine B?
You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
Start your 14-day free trial to unlock the full solution →Using Bayes’ theorem, we update the prior probability that an item came from machine B (40%) given that it is defective. The posterior probability is or 25%.
We are dealing with a classic inverse probability problem. The question gives us the overall production shares (the priors) and the defect rates within each machine (the likelihoods). We observe a defective item and want the chance it came from machine B — that is, we need to reverse the conditional probability.
The tool for this is Bayes’ theorem, which in its simplest form says:
where is the event “item is defective”. The denominator is the total probability of a defective item, found by weighting each machine’s defect rate by its production share.
Let’s assign events clearly:
- Let = item produced by machine A.
- Let = item produced by machine B.
- Let = item is defective.
From the problem:
- ,
- (2% of A’s items are defective)
- (1% of B’s items are defective)
We want .
- Find the total probability of a defective item, . By the law of total probability:
Substitute:
So 1.6% of all items in the stockpile are defective.
- Apply Bayes’ theorem:
Compute the numerator: .
Then:
- Interpret the result: …
Unlock everything free for 14 days
- Full step-by-step solutions
- Concept-first explanations
- Methods, shortcuts & mistakes
- PYQ mapping + timed mock tests
Full access for 14 days. No credit card required.