SOLVER7 Study. Nothing Else.
Miscellaneous Exercise Chapter 13 Q6

Suppose we have four boxes A,B,C and D containing coloured marbles as given below: One of the boxes has been selected at random and a single marble is drawn from it. If the marble is red, what is the probability that it was drawn from box A?, box B?, box C?

CBSE Class 12 Maths · Probability

Solution

👶 Simple Explanation

Simple Explanation

Imagine four bags of coloured candies. You close your eyes, pick a bag randomly, and pull out one candy. It turns out to be red! Now you wonder: which bag did it probably come from? Bags with more red candies are more likely the source. You use this clue — the red candy — to make a smarter guess about which bag was chosen. The answer tells you box C is the most likely source, since it had the most red marbles.

Answer: \[ P(A \mid R) = \frac{1}{15}, \quad P(B \mid R) = \frac{2}{5} = \frac{6}{15}, \quad P(C \mid R) = \frac{8}{15}. \]

📖 Bayes' Theorem: Probability of the Chosen Box

Detailed Explanation

This is a classic Bayes' theorem problem. We first pick a box (this is the 'cause'), then observe an event (drawing a red marble). We are asked to work backwards: given that the marble is red, which box did it most likely come from. Since one box is chosen at random out of four, each box has prior probability \( \frac{1}{4} \). Each box has a total of \( 1+6+3 = 10 \) marbles, so the chance of drawing a red marble from a given box is simply the number of red marbles divided by 10. Bayes' theorem lets us update these prior probabilities using the observed evidence (red marble) to get the posterior probabilities.

Formula Used

Bayes' theorem: \[ P(E_i \mid R) = \frac{P(E_i)\, P(R \mid E_i)}{\sum_{j} P(E_j)\, P(R \mid E_j)} \] where \( E_i \) is the event 'box i is chosen' and \( R \) is the event 'a red marble is drawn'.

Solution

  1. Step 1: Assign prior probabilities: Since one of the four boxes is selected at random, each box is equally likely. So \[ P(A) = P(B) = P(C) = P(D) = \frac{1}{4}. \] These are the prior probabilities of choosing each box before we look at the marble.
  2. Step 2: Find probability of red from each box: Each box holds 10 marbles in total. The probability of drawing a red marble from each box is the red count over 10. \[ P(R \mid A) = \frac{1}{10}, \quad P(R \mid B) = \frac{6}{10}, \quad P(R \mid C) = \frac{8}{10}, \quad P(R \mid D) = \frac{0}{10} = 0. \]
  3. Step 3: Compute total probability of a red marble: By the total probability theorem, add the contributions of all boxes. \[ P(R) = P(A)P(R \mid A) + P(B)P(R \mid B) + P(C)P(R \mid C) + P(D)P(R \mid D). \] Substituting values: \[ P(R) = \frac{1}{4}\cdot\frac{1}{10} + \frac{1}{4}\cdot\frac{6}{10} + \frac{1}{4}\cdot\frac{8}{10} + \frac{1}{4}\cdot 0. \] \[ P(R) = \frac{1}{40} + \frac{6}{40} + \frac{8}{40} + 0 = \frac{15}{40} = \frac{3}{8}. \]
  4. Step 4: Apply Bayes' theorem for box A: The numerator is the contribution of box A, the denominator is \( P(R) \). \[ P(A \mid R) = \frac{P(A)P(R \mid A)}{P(R)} = \frac{\frac{1}{40}}{\frac{15}{40}} = \frac{1}{15}. \]
  5. Step 5: Apply Bayes' theorem for box B: \[ P(B \mid R) = \frac{P(B)P(R \mid B)}{P(R)} = \frac{\frac{6}{40}}{\frac{15}{40}} = \frac{6}{15} = \frac{2}{5}. \]
  6. Step 6: Apply Bayes' theorem for box C: \[ P(C \mid R) = \frac{P(C)P(R \mid C)}{P(R)} = \frac{\frac{8}{40}}{\frac{15}{40}} = \frac{8}{15}. \]
  7. Step 7: Check the results: Box D has no red marbles, so \( P(D \mid R) = 0 \). All posterior probabilities should sum to 1: \[ \frac{1}{15} + \frac{6}{15} + \frac{8}{15} + 0 = \frac{15}{15} = 1. \] This confirms the answers are consistent.

Final Answer

\[ P(A \mid R) = \frac{1}{15}, \quad P(B \mid R) = \frac{2}{5} = \frac{6}{15}, \quad P(C \mid R) = \frac{8}{15}. \]

Common Mistake

A common mistake is to forget the prior probability \( \frac{1}{4} \) of choosing each box and to compare only the red-marble ratios directly. Since each box is equally likely to be chosen, the \( \frac{1}{4} \) factors cancel here, but students must still include them in \( P(R) \) and apply Bayes' theorem properly rather than guessing based only on red counts.

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Assign prior probabilities to each box: Since one box is chosen at random from four equally likely boxes A, B, C, D, each has the same prior probability: \[P(A) = P(B) = P(C) = P(D) = \frac{1}{4}.\] Reason: Before observing any marble, there is no reason to prefer one box over another, so all four priors are equal.
  2. Step 2: Find the likelihood of drawing a red marble from each box: Each box contains exactly 10 marbles in total. The number of red marbles in boxes A, B, C, D are 1, 6, 8, and 0 respectively. Dividing the red count by 10 gives the conditional probabilities: \[P(R \mid A) = \frac{1}{10}, \quad P(R \mid B) = \frac{6}{10}, \quad P(R \mid C) = \frac{8}{10}, \quad P(R \mid D) = 0.\] Reason: These likelihoods tell us how probable it is to draw a red marble, assuming a particular box was already chosen.
  3. Step 3: Compute the total probability of drawing a red marble: Using the law of total probability, sum over all four boxes: \[P(R) = P(A)\,P(R \mid A) + P(B)\,P(R \mid B) + P(C)\,P(R \mid C) + P(D)\,P(R \mid D).\] Substituting the values: \[P(R) = \frac{1}{4}\cdot\frac{1}{10} + \frac{1}{4}\cdot\frac{6}{10} + \frac{1}{4}\cdot\frac{8}{10} + \frac{1}{4}\cdot 0 = \frac{1}{40} + \frac{6}{40} + \frac{8}{40} + 0 = \frac{15}{40} = \frac{3}{8}.\] Reason: This denominator is needed for all three posterior calculations; it represents the overall chance of picking a red marble regardless of which box is used.
  4. Step 4: Apply Bayes' theorem to find P(A | R): Substituting into Bayes' formula for box A: \[P(A \mid R) = \frac{P(A)\,P(R \mid A)}{P(R)} = \frac{\frac{1}{4} \cdot \frac{1}{10}}{\frac{3}{8}} = \frac{\frac{1}{40}}{\frac{3}{8}} = \frac{1}{40} \times \frac{8}{3} = \frac{8}{120} = \frac{1}{15}.\] Reason: This updates the prior probability of box A using the evidence that the marble drawn was red.
  5. Step 5: Apply Bayes' theorem to find P(B | R): For box B: \[P(B \mid R) = \frac{P(B)\,P(R \mid B)}{P(R)} = \frac{\frac{1}{4} \cdot \frac{6}{10}}{\frac{3}{8}} = \frac{\frac{6}{40}}{\frac{3}{8}} = \frac{6}{40} \times \frac{8}{3} = \frac{48}{120} = \frac{2}{5}.\] Reason: Box B has more red marbles than A, so its posterior probability after seeing a red marble is larger.
  6. Step 6: Apply Bayes' theorem to find P(C | R): For box C: \[P(C \mid R) = \frac{P(C)\,P(R \mid C)}{P(R)} = \frac{\frac{1}{4} \cdot \frac{8}{10}}{\frac{3}{8}} = \frac{\frac{8}{40}}{\frac{3}{8}} = \frac{8}{40} \times \frac{8}{3} = \frac{64}{120} = \frac{8}{15}.\] Reason: Box C has the most red marbles, so it is the most likely source of the red marble observed.
  7. Step 7: Verify the posteriors sum to 1: Note that box D contributes \\ 0 to the posterior since it has no red marbles. Adding the three non-zero posteriors: \[\frac{1}{15} + \frac{6}{15} + \frac{8}{15} = \frac{15}{15} = 1.\] Reason: All valid posterior probabilities over mutually exclusive, exhaustive events must sum to 1, confirming our answers are correct.

Final Answer

\[ P(A \mid R) = \frac{1}{15}, \quad P(B \mid R) = \frac{2}{5} = \frac{6}{15}, \quad P(C \mid R) = \frac{8}{15}. \]

Common Mistake

One common mistake: Students often forget to include box D in the total probability calculation P(R). Even though P(R | D) = 0 and it contributes nothing numerically, omitting it shows incomplete application of the law of total probability and can cause errors if the problem changes.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Priors and likelihoods: \[ P(A)=P(B)=P(C)=P(D)=\frac{1}{4}, \quad P(R \mid A)=\frac{1}{10},\; P(R \mid B)=\frac{6}{10},\; P(R \mid C)=\frac{8}{10},\; P(R \mid D)=0 \]
  2. Step 2: Total probability of red: \[ P(R) = \frac{1}{4}\!\left(\frac{1}{10}+\frac{6}{10}+\frac{8}{10}+0\right) = \frac{1}{4}\cdot\frac{15}{10} = \frac{15}{40} = \frac{3}{8} \]
  3. Step 3: Apply Bayes' theorem: \[ P(A \mid R)=\frac{\tfrac{1}{4}\cdot\tfrac{1}{10}}{\tfrac{3}{8}}=\frac{1}{15}, \quad P(B \mid R)=\frac{\tfrac{1}{4}\cdot\tfrac{6}{10}}{\tfrac{3}{8}}=\frac{6}{15}, \quad P(C \mid R)=\frac{\tfrac{1}{4}\cdot\tfrac{8}{10}}{\tfrac{3}{8}}=\frac{8}{15} \]

Answer: \[ P(A \mid R) = \frac{1}{15}, \quad P(B \mid R) = \frac{2}{5} = \frac{6}{15}, \quad P(C \mid R) = \frac{8}{15}. \]

➕ More Examples

More Examples

Example 1

Question: Three bags P, Q, and R contain coloured balls as follows: Bag P: 3 red, 2 blue Bag Q: 1 red, 4 blue Bag R: 4 red, 1 blue One bag is chosen at random and one ball is drawn from it. The ball turns out to be red. Find the probability that the red ball was drawn from (i) Bag P, (ii) Bag Q, and (iii) Bag R.

Solution: Let \( E_P \), \( E_Q \), and \( E_R \) denote the events of selecting Bag P, Bag Q, and Bag R respectively. Let \( A \) be the event that the ball drawn is red. Since one bag is chosen at random: \[ P(E_P) = P(E_Q) = P(E_R) = \frac{1}{3} \] Now, the conditional probabilities of drawing a red ball from each bag: Bag P has 3 red out of 5 total: \[ P(A \mid E_P) = \frac{3}{5} \] Bag Q has 1 red out of 5 total: \[ P(A \mid E_Q) = \frac{1}{5} \] Bag R has 4 red out of 5 total: \[ P(A \mid E_R) = \frac{4}{5} \] By the Law of Total Probability: \[ P(A) = P(E_P) \cdot P(A \mid E_P) + P(E_Q) \cdot P(A \mid E_Q) + P(E_R) \cdot P(A \mid E_R) \] \[ P(A) = \frac{1}{3} \cdot \frac{3}{5} + \frac{1}{3} \cdot \frac{1}{5} + \frac{1}{3} \cdot \frac{4}{5} \] \[ P(A) = \frac{1}{15} \left(3 + 1 + 4\right) = \frac{8}{15} \] Now applying Bayes' Theorem: (i) Probability that the red ball came from Bag P: \[ P(E_P \mid A) = \frac{P(E_P) \cdot P(A \mid E_P)}{P(A)} = \frac{\dfrac{1}{3} \cdot \dfrac{3}{5}}{\dfrac{8}{15}} \] \[ P(E_P \mid A) = \frac{\dfrac{3}{15}}{\dfrac{8}{15}} = \frac{3}{8} \] (ii) Probability that the red ball came from Bag Q: \[ P(E_Q \mid A) = \frac{P(E_Q) \cdot P(A \mid E_Q)}{P(A)} = \frac{\dfrac{1}{3} \cdot \dfrac{1}{5}}{\dfrac{8}{15}} \] \[ P(E_Q \mid A) = \frac{\dfrac{1}{15}}{\dfrac{8}{15}} = \frac{1}{8} \] (iii) Probability that the red ball came from Bag R: \[ P(E_R \mid A) = \frac{P(E_R) \cdot P(A \mid E_R)}{P(A)} = \frac{\dfrac{1}{3} \cdot \dfrac{4}{5}}{\dfrac{8}{15}} \] \[ P(E_R \mid A) = \frac{\dfrac{4}{15}}{\dfrac{8}{15}} = \frac{4}{8} = \frac{1}{2} \] Verification: \( \dfrac{3}{8} + \dfrac{1}{8} + \dfrac{1}{2} = \dfrac{3}{8} + \dfrac{1}{8} + \dfrac{4}{8} = 1 \). Correct.

Answer: (i) \( P(E_P \mid A) = \dfrac{3}{8} \), (ii) \( P(E_Q \mid A) = \dfrac{1}{8} \), (iii) \( P(E_R \mid A) = \dfrac{1}{2} \)

Example 2

Question: A factory has four machines W, X, Y, and Z producing items. The machines produce 20%, 30%, 25%, and 25% of the total output respectively. The defect rates for each machine are: W produces 2% defective, X produces 4% defective, Y produces 1% defective, and Z produces 3% defective. An item is picked at random and found to be defective. Find the probability that it was produced by (i) Machine W, (ii) Machine X, (iii) Machine Y, and (iv) Machine Z.

Solution: Let \( E_W \), \( E_X \), \( E_Y \), \( E_Z \) be the events that an item is produced by machine W, X, Y, Z respectively, and let \( D \) be the event that the item is defective. The prior probabilities (proportion of output) are: \[ P(E_W) = 0.20, \quad P(E_X) = 0.30, \quad P(E_Y) = 0.25, \quad P(E_Z) = 0.25 \] The conditional probabilities of a defective item from each machine: \[ P(D \mid E_W) = 0.02, \quad P(D \mid E_X) = 0.04, \quad P(D \mid E_Y) = 0.01, \quad P(D \mid E_Z) = 0.03 \] By the Law of Total Probability: \[ P(D) = P(E_W) \cdot P(D \mid E_W) + P(E_X) \cdot P(D \mid E_X) + P(E_Y) \cdot P(D \mid E_Y) + P(E_Z) \cdot P(D \mid E_Z) \] \[ P(D) = (0.20)(0.02) + (0.30)(0.04) + (0.25)(0.01) + (0.25)(0.03) \] \[ P(D) = 0.004 + 0.012 + 0.0025 + 0.0075 = 0.026 \] Expressing in fractions for clarity: \( P(D) = \dfrac{26}{1000} = \dfrac{13}{500} \) Now applying Bayes' Theorem: (i) Probability that the defective item came from Machine W: \[ P(E_W \mid D) = \frac{P(E_W) \cdot P(D \mid E_W)}{P(D)} = \frac{(0.20)(0.02)}{0.026} = \frac{0.004}{0.026} \] \[ P(E_W \mid D) = \frac{4}{26} = \frac{2}{13} \] (ii) Probability that the defective item came from Machine X: \[ P(E_X \mid D) = \frac{P(E_X) \cdot P(D \mid E_X)}{P(D)} = \frac{(0.30)(0.04)}{0.026} = \frac{0.012}{0.026} \] \[ P(E_X \mid D) = \frac{12}{26} = \frac{6}{13} \] (iii) Probability that the defective item came from Machine Y: \[ P(E_Y \mid D) = \frac{P(E_Y) \cdot P(D \mid E_Y)}{P(D)} = \frac{(0.25)(0.01)}{0.026} = \frac{0.0025}{0.026} \] \[ P(E_Y \mid D) = \frac{2.5}{26} = \frac{5}{52} \] (iv) Probability that the defective item came from Machine Z: \[ P(E_Z \mid D) = \frac{P(E_Z) \cdot P(D \mid E_Z)}{P(D)} = \frac{(0.25)(0.03)}{0.026} = \frac{0.0075}{0.026} \] \[ P(E_Z \mid D) = \frac{7.5}{26} = \frac{15}{52} \] Verification: \( \dfrac{2}{13} + \dfrac{6}{13} + \dfrac{5}{52} + \dfrac{15}{52} = \dfrac{8}{52} + \dfrac{24}{52} + \dfrac{5}{52} + \dfrac{15}{52} = \dfrac{52}{52} = 1 \). Correct.

Answer: (i) \( P(E_W \mid D) = \dfrac{2}{13} \), (ii) \( P(E_X \mid D) = \dfrac{6}{13} \), (iii) \( P(E_Y \mid D) = \dfrac{5}{52} \), (iv) \( P(E_Z \mid D) = \dfrac{15}{52} \)

🎯 Try a Similar Question

Try a Similar Question

Question: Three bags P, Q, and R contain coloured balls as described below: Bag P: 2 red, 3 blue, 5 green (total 10) Bag Q: 4 red, 2 blue, 4 green (total 10) Bag R: 6 red, 1 blue, 3 green (total 10) One bag is selected at random and one ball is drawn from it. If the ball drawn is red, find the probability that it was drawn from (i) Bag P, (ii) Bag Q, (iii) Bag R.

Solution

  1. Step 1: Define Events: Let \( P \), \( Q \), \( R \) denote the events of selecting Bag P, Bag Q, and Bag R respectively. Let \( E \) be the event that the ball drawn is red. Since one bag is chosen at random: \[ P(P) = P(Q) = P(R) = \frac{1}{3} \]
  2. Step 2: Find Conditional Probabilities of Drawing a Red Ball: From Bag P: 2 red out of 10, so \( P(E \mid P) = \frac{2}{10} = \frac{1}{5} \). From Bag Q: 4 red out of 10, so \( P(E \mid Q) = \frac{4}{10} = \frac{2}{5} \). From Bag R: 6 red out of 10, so \( P(E \mid R) = \frac{6}{10} = \frac{3}{5} \).
  3. Step 3: Find the Total Probability of Drawing a Red Ball: Using the Total Probability Theorem: \[ P(E) = P(P) \cdot P(E \mid P) + P(Q) \cdot P(E \mid Q) + P(R) \cdot P(E \mid R) \] Substituting values: \[ P(E) = \frac{1}{3} \cdot \frac{1}{5} + \frac{1}{3} \cdot \frac{2}{5} + \frac{1}{3} \cdot \frac{3}{5} \] \[ P(E) = \frac{1}{15} + \frac{2}{15} + \frac{3}{15} = \frac{6}{15} = \frac{2}{5} \]
  4. Step 4: Apply Bayes' Theorem for Bag P: \[ P(P \mid E) = \frac{P(P) \cdot P(E \mid P)}{P(E)} = \frac{\frac{1}{3} \cdot \frac{1}{5}}{\frac{2}{5}} = \frac{\frac{1}{15}}{\frac{2}{5}} = \frac{1}{15} \times \frac{5}{2} = \frac{1}{6} \]
  5. Step 5: Apply Bayes' Theorem for Bag Q: \[ P(Q \mid E) = \frac{P(Q) \cdot P(E \mid Q)}{P(E)} = \frac{\frac{1}{3} \cdot \frac{2}{5}}{\frac{2}{5}} = \frac{\frac{2}{15}}{\frac{2}{5}} = \frac{2}{15} \times \frac{5}{2} = \frac{1}{3} \]
  6. Step 6: Apply Bayes' Theorem for Bag R: \[ P(R \mid E) = \frac{P(R) \cdot P(E \mid R)}{P(E)} = \frac{\frac{1}{3} \cdot \frac{3}{5}}{\frac{2}{5}} = \frac{\frac{3}{15}}{\frac{2}{5}} = \frac{3}{15} \times \frac{5}{2} = \frac{1}{2} \]
  7. Step 7: Verification: Check: \( P(P \mid E) + P(Q \mid E) + P(R \mid E) = \frac{1}{6} + \frac{1}{3} + \frac{1}{2} = \frac{1}{6} + \frac{2}{6} + \frac{3}{6} = 1 \). The probabilities sum to 1, confirming the answer is correct.

Answer: \[ P(P \mid E) = \frac{1}{6}, \quad P(Q \mid E) = \frac{1}{3}, \quad P(R \mid E) = \frac{1}{2} \]

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)