Skip to content
Exercise 13.3 · Q8

Q.A factory has two machines A and B. Past record shows that machine A produced 60%60\% of the items of output and machine B produced 40%40\% of the items. Further, 2%2\% of the items produced by machine A and 1%1\% 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?

Tripura TbseTextbookSubjective· 5mImportance★★★★★
32% · 52/165 Questions
🔒 Locked · start free trial →

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 14\frac{1}{4} 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:

P(B∣D)=P(B)⋅P(D∣B)P(D)P(B \mid D) = \frac{P(B) \cdot P(D \mid B)}{P(D)}

where DD is the event “item is defective”. The denominator P(D)P(D) 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 AA = item produced by machine A.
  • Let BB = item produced by machine B.
  • Let DD = item is defective.

From the problem:

  • P(A)=0.60P(A) = 0.60, P(B)=0.40P(B) = 0.40
  • P(D∣A)=0.02P(D \mid A) = 0.02 (2% of A’s items are defective)
  • P(D∣B)=0.01P(D \mid B) = 0.01 (1% of B’s items are defective)

We want P(B∣D)P(B \mid D).

  1. Find the total probability of a defective item, P(D)P(D). By the law of total probability:

P(D)=P(A)⋅P(D∣A)+P(B)⋅P(D∣B)P(D) = P(A) \cdot P(D \mid A) + P(B) \cdot P(D \mid B)

Substitute:

P(D)=(0.60)(0.02)+(0.40)(0.01)=0.012+0.004=0.016P(D) = (0.60)(0.02) + (0.40)(0.01) = 0.012 + 0.004 = 0.016

So 1.6% of all items in the stockpile are defective.

  1. Apply Bayes’ theorem:

P(B∣D)=P(B)⋅P(D∣B)P(D)=0.40×0.010.016P(B \mid D) = \frac{P(B) \cdot P(D \mid B)}{P(D)} = \frac{0.40 \times 0.01}{0.016}

Compute the numerator: 0.40×0.01=0.0040.40 \times 0.01 = 0.004.

Then:

P(B∣D)=0.0040.016=416=14P(B \mid D) = \frac{0.004}{0.016} = \frac{4}{16} = \frac{1}{4}

  1. 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.