SOLVER7 Study. Nothing Else.
Exercise 13.3 Q8

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

CBSE Class 12 Maths · Probability

Solution

👶 Simple Explanation

Simple Explanation

Imagine two cookie jars. The big jar holds 60 cookies and the small jar holds 40 cookies. A few cookies in each jar are stale. Machine A made the big jar and Machine B made the small jar. Someone picks one stale cookie without looking. We want to guess which jar it came from. Even though Machine A makes more cookies, we also check how often each machine makes bad ones. Combining both clues gives us the answer. The chance the stale cookie came from Machine B turns out to be 1 in 4.

Answer: The probability that the defective item was produced by machine B is \[P(E_2 \mid A) = \frac{1}{4} = 0.25\]

📖 Bayes' Theorem: Defective Item from Machine B

Detailed Explanation

This is a reverse conditional probability problem. We are told an item is defective, and we must find which machine it most likely came from. Bayes' theorem lets us update our belief about the cause (which machine) given the observed effect (the item is defective). First we assign 'prior' probabilities based on how much each machine produces. Then we use the given defect rates as conditional probabilities. Finally, Bayes' theorem combines them to give the 'posterior' probability that machine B was the source, given the item is defective.

Formula Used

Bayes' theorem: \[P(E_2 \mid A) = \frac{P(E_2)\,P(A \mid E_2)}{P(E_1)\,P(A \mid E_1) + P(E_2)\,P(A \mid E_2)}\]

Solution

  1. Step 1: Define the events: Let \(E_1\) be the event that an item is produced by machine A, and \(E_2\) the event that it is produced by machine B. Let \(A\) be the event that a chosen item is defective. We want \(P(E_2 \mid A)\), the probability the item came from B given it is defective.
  2. Step 2: Write the prior probabilities: Machine A produces \(60\%\) and machine B produces \(40\%\) of the output, so \[P(E_1) = \frac{60}{100} = 0.6\] \[P(E_2) = \frac{40}{100} = 0.4\]
  3. Step 3: Write the conditional (defect) probabilities: Given that \(2\%\) of A's items and \(1\%\) of B's items are defective: \[P(A \mid E_1) = \frac{2}{100} = 0.02\] \[P(A \mid E_2) = \frac{1}{100} = 0.01\] These are the chances an item is defective, knowing which machine made it.
  4. Step 4: Apply Bayes' theorem: Substitute into the formula: \[P(E_2 \mid A) = \frac{P(E_2)\,P(A \mid E_2)}{P(E_1)\,P(A \mid E_1) + P(E_2)\,P(A \mid E_2)}\] \[P(E_2 \mid A) = \frac{(0.4)(0.01)}{(0.6)(0.02) + (0.4)(0.01)}\]
  5. Step 5: Simplify the arithmetic: Compute each product: \[(0.6)(0.02) = 0.012\] \[(0.4)(0.01) = 0.004\] So the denominator is \(0.012 + 0.004 = 0.016\), and \[P(E_2 \mid A) = \frac{0.004}{0.016} = \frac{4}{16} = \frac{1}{4}\]

Final Answer

The probability that the defective item was produced by machine B is \[P(E_2 \mid A) = \frac{1}{4} = 0.25\]

Common Mistake

A common mistake is to answer \(P(A \mid E_2) = 0.01\) directly, confusing the defect rate of machine B with the required reverse probability \(P(E_2 \mid A)\). You must apply Bayes' theorem, not just quote the given percentage.

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Label all events clearly. Let \(E_1\) = item was made by machine A, \(E_2\) = item was made by machine B, and \(A\) = the selected item is defective. We need to find \(P(E_2 \mid A)\). — Reason: Naming events precisely prevents confusion between the cause (which machine) and the effect (defective item) throughout the solution.
  2. Step 2: Record the prior (production share) probabilities. Machine A produces 60% of total output and machine B produces 40%, so \[P(E_1) = \frac{60}{100} = 0.6\] and \[P(E_2) = \frac{40}{100} = 0.4\] — Reason: These priors reflect how likely it is, before any quality information, that a randomly picked item came from each machine. Note that \(P(E_1) + P(E_2) = 1\), confirming the two events are exhaustive.
  3. Step 3: Record the conditional defect probabilities. Machine A has a 2% defect rate and machine B has a 1% defect rate, so \[P(A \mid E_1) = \frac{2}{100} = 0.02\] and \[P(A \mid E_2) = \frac{1}{100} = 0.01\] — Reason: These tell us how likely a defect is given we already know which machine made the item; they are the likelihoods needed for Bayes' theorem.
  4. Step 4: Compute the total probability of a defective item using the Law of Total Probability. \[P(A) = P(E_1) \cdot P(A \mid E_1) + P(E_2) \cdot P(A \mid E_2)\] Substituting the values: \[P(A) = (0.6)(0.02) + (0.4)(0.01) = 0.012 + 0.004 = 0.016\] — Reason: \(P(A)\) acts as the normalising denominator in Bayes' formula; it accounts for all possible ways a defective item could have been produced.
  5. Step 5: Apply Bayes' theorem to find \(P(E_2 \mid A)\). \[P(E_2 \mid A) = \frac{P(E_2) \cdot P(A \mid E_2)}{P(A)} = \frac{(0.4)(0.01)}{0.016} = \frac{0.004}{0.016}\] — Reason: We substitute the numerator (the joint likelihood that machine B made the item AND it is defective) over the total probability of a defect computed in Step 4.
  6. Step 6: Simplify the fraction. \[\frac{0.004}{0.016} = \frac{4}{16} = \frac{1}{4} = 0.25\] — Reason: Reducing to lowest terms gives the clean final probability, confirming that only 25% of defective items originate from machine B, even though B contributes 40% of production, because its defect rate is lower.

Final Answer

The probability that the defective item was produced by machine B is \[P(E_2 \mid A) = \frac{1}{4} = 0.25\]

Common Mistake

One common mistake: students sometimes swap \(P(E_2 \mid A)\) (what we want — probability the item came from B given it is defective) with \(P(A \mid E_2)\) (the defect rate of machine B, which is given). These are fundamentally different quantities; Bayes' theorem is precisely the tool for converting one into the other.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Given: \(P(E_1) = 0.6\), \(P(E_2) = 0.4\), \(P(A \mid E_1) = 0.02\), \(P(A \mid E_2) = 0.01\)
  2. Step 2: Numerator: \(P(E_2)\,P(A \mid E_2) = 0.4 \times 0.01 = 0.004\)
  3. Step 3: Denominator: \(P(E_1)\,P(A \mid E_1) + P(E_2)\,P(A \mid E_2) = (0.6 \times 0.02) + (0.4 \times 0.01) = 0.012 + 0.004 = 0.016\)
  4. Step 4: \[P(E_2 \mid A) = \frac{0.004}{0.016} = \frac{1}{4} = 0.25\]

Answer: The probability that the defective item was produced by machine B is \[P(E_2 \mid A) = \frac{1}{4} = 0.25\]

➕ More Examples

More Examples

Example 1

Question: A company has three plants P, Q, and R manufacturing the same product. Plant P produces 50% of the total output, plant Q produces 30%, and plant R produces the remaining 20%. It is known that 3% of items from plant P, 4% of items from plant Q, and 5% of items from plant R are defective. One item is selected at random from the combined stockpile and is found to be defective. Find the probability that the defective item was produced by plant Q.

Solution: Let \( E_1, E_2, E_3 \) be the events that the selected item was produced by plants P, Q, and R respectively, and let \( A \) be the event that the selected item is defective. The prior probabilities are: \[P(E_1) = 0.50, \quad P(E_2) = 0.30, \quad P(E_3) = 0.20\] The conditional probabilities (likelihoods) of a defective item from each plant are: \[P(A \mid E_1) = 0.03, \quad P(A \mid E_2) = 0.04, \quad P(A \mid E_3) = 0.05\] By the Total Probability Theorem, the probability that any randomly chosen item is defective: \[P(A) = P(E_1)\cdot P(A \mid E_1) + P(E_2)\cdot P(A \mid E_2) + P(E_3)\cdot P(A \mid E_3)\] \[P(A) = (0.50)(0.03) + (0.30)(0.04) + (0.20)(0.05)\] \[P(A) = 0.015 + 0.012 + 0.010 = 0.037\] By Bayes' Theorem, the probability that the defective item came from plant Q is: \[P(E_2 \mid A) = \frac{P(E_2)\cdot P(A \mid E_2)}{P(A)}\] \[P(E_2 \mid A) = \frac{(0.30)(0.04)}{0.037} = \frac{0.012}{0.037}\] \[P(E_2 \mid A) = \frac{12}{37}\]

Answer: \(\dfrac{12}{37}\)

Example 2

Question: In a large hospital, 70% of the patients in a particular ward are adults and 30% are children. Among adults, the probability of testing positive for a certain condition is 0.08, while among children it is 0.05. A randomly selected patient from the ward tests positive. What is the probability that this patient is a child?

Solution: Let \( E_1 \) be the event that the selected patient is an adult, \( E_2 \) be the event that the selected patient is a child, and \( A \) be the event that the patient tests positive. The prior probabilities are: \[P(E_1) = 0.70, \quad P(E_2) = 0.30\] The conditional probabilities of testing positive are: \[P(A \mid E_1) = 0.08, \quad P(A \mid E_2) = 0.05\] By the Total Probability Theorem: \[P(A) = P(E_1)\cdot P(A \mid E_1) + P(E_2)\cdot P(A \mid E_2)\] \[P(A) = (0.70)(0.08) + (0.30)(0.05)\] \[P(A) = 0.056 + 0.015 = 0.071\] By Bayes' Theorem, the probability that the positive patient is a child: \[P(E_2 \mid A) = \frac{P(E_2)\cdot P(A \mid E_2)}{P(A)}\] \[P(E_2 \mid A) = \frac{(0.30)(0.05)}{0.071} = \frac{0.015}{0.071}\] \[P(E_2 \mid A) = \frac{15}{71}\]

Answer: \(\dfrac{15}{71}\)

🎯 Try a Similar Question

Try a Similar Question

Question: A company has two factories, Factory P and Factory Q. Factory P produces 70% of the total output and Factory Q produces the remaining 30%. It is known that 3% of the items produced by Factory P are defective and 5% of the items produced by Factory Q are defective. All items are mixed together and one item is chosen at random. If the chosen item is found to be defective, find the probability that it was produced by Factory Q.

Solution

  1. Step 1: Define the Events: Let \( E_1 \) be the event that the item was produced by Factory P, \( E_2 \) be the event that the item was produced by Factory Q, and \( D \) be the event that the chosen item is defective. We need to find \( P(E_2 \mid D) \).
  2. Step 2: Write Down the Given Probabilities: From the problem: \( P(E_1) = 0.70 \), \( P(E_2) = 0.30 \). The conditional probabilities of a defective item from each factory are \( P(D \mid E_1) = 0.03 \) and \( P(D \mid E_2) = 0.05 \).
  3. Step 3: Apply the Total Probability Theorem: The total probability of picking a defective item is \[P(D) = P(E_1) \cdot P(D \mid E_1) + P(E_2) \cdot P(D \mid E_2)\] Substituting values: \[P(D) = (0.70)(0.03) + (0.30)(0.05)\] \[P(D) = 0.021 + 0.015 = 0.036\]
  4. Step 4: Apply Bayes' Theorem: Using Bayes' Theorem to find \( P(E_2 \mid D) \): \[P(E_2 \mid D) = \frac{P(E_2) \cdot P(D \mid E_2)}{P(D)}\] Substituting values: \[P(E_2 \mid D) = \frac{(0.30)(0.05)}{0.036} = \frac{0.015}{0.036}\]
  5. Step 5: Simplify the Result: Simplifying the fraction: \[P(E_2 \mid D) = \frac{0.015}{0.036} = \frac{15}{36} = \frac{5}{12}\]

Answer: The probability that the defective item was produced by Factory Q is \[P(E_2 \mid D) = \frac{5}{12} \approx 0.4167\]

Everything you get with Solver7

More questions in Probability

Chapter 13 Examples Q1 65/4/1 2022 / Section A Q1 Chapter 13 Examples Q2 65/4/1 2022 / Section A Q2(a) Chapter 13 Examples Q3 65/4/1 2022 / Section A Q2(b) 65/4/2 2024 / Section A Q3 Chapter 13 Examples Q4 65/2/3 2026 / Section A Q4 Chapter 13 Examples Q5 65/2/1 2022 / Section A Q4 Chapter 13 Examples Q6 65/2/1 2022 / Section A Q5 Chapter 13 Examples Q7 Chapter 13 Examples Q8 65/2/2 2023 / Section A Q8 Chapter 13 Examples Q9 Chapter 13 Examples Q10 Chapter 13 Examples Q11 65/1/1 2024 / Section A Q11 65/2/1 2024 / Section A Q11 65/3/1 2024 / Section A Q11 Chapter 13 Examples Q12 65/1/1 2023 / Section A Q12 Chapter 13 Examples Q13 Chapter 13 Examples Q14 65/3/1 2023 / Section A Q14 Chapter 13 Examples Q15 Chapter 13 Examples Q16 65(B) 2026 / Section A Q16 Chapter 13 Examples Q17 65(B) 2026 / Section A Q17 Chapter 13 Examples Q18 65(B) 2026 / Section A Q18 65/2/1 2022 / Section C Q14(a) 65/3/1 2026 / Section A Q18 65/4/1 2023 / Section A Q18 65/4/1 2026 / Section A Q18 65/5/1 2026 / Section A Q18 Chapter 13 Examples Q19 65/1/1 2026 / Section A Q19 65/2/1 2022 / Section C Q14(b) 65/4/1 2022 / Section C Q14(a) Chapter 13 Examples Q20 65(B) 2026 / Section A Q20 65/4/1 2022 / Section C Q14(b) Chapter 13 Examples Q21 Chapter 13 Miscellaneous Examples Q22 Chapter 13 Miscellaneous Examples Q23 Chapter 13 Miscellaneous Examples Q24 Exercise 13.1 Q1 Exercise 13.1 Q2 Exercise 13.1 Q3(i) Exercise 13.1 Q3(ii) 65/2/3 2026 / Section C Q26(a)i Exercise 13.1 Q3(iii) 65/2/3 2026 / Section C Q26(a)ii Exercise 13.1 Q4 65/2/3 2026 / Section C Q26(b) Exercise 13.1 Q5(i)