Example 1
Question: Three machines A, B, and C produce bolts in a factory. The ratio of bolts produced by A, B, and C is 5 : 3 : 2. The probability that a bolt produced by A, B, or C is defective is 0.02, 0.05, and 0.04 respectively. A bolt chosen at random from the day's production is found to be defective. Find the probability that it was produced by machine B.
Solution: Let \( H_A \), \( H_B \), \( H_C \) be the events that the bolt was produced by machine A, B, or C respectively, and let \( E \) be the event that the bolt is defective. Step 1: Find prior probabilities from the ratio 5 : 3 : 2 (total parts = 10). \[ P(H_A) = \frac{5}{10} = 0.5, \quad P(H_B) = \frac{3}{10} = 0.3, \quad P(H_C) = \frac{2}{10} = 0.2 \] Step 2: Note the conditional probabilities (likelihood of a defective bolt given each machine). \[ P(E \mid H_A) = 0.02, \quad P(E \mid H_B) = 0.05, \quad P(E \mid H_C) = 0.04 \] Step 3: Compute the total probability of a defective bolt using the law of total probability. \[ P(E) = P(H_A)\,P(E \mid H_A) + P(H_B)\,P(E \mid H_B) + P(H_C)\,P(E \mid H_C) \] \[ P(E) = (0.5)(0.02) + (0.3)(0.05) + (0.2)(0.04) \] \[ P(E) = 0.010 + 0.015 + 0.008 = 0.033 \] Step 4: Apply Bayes' Theorem to find the probability that the defective bolt came from machine B. \[ P(H_B \mid E) = \frac{P(H_B)\,P(E \mid H_B)}{P(E)} = \frac{(0.3)(0.05)}{0.033} \] \[ P(H_B \mid E) = \frac{0.015}{0.033} = \frac{15}{33} = \frac{5}{11} \]
Answer: \( P(H_B \mid E) = \dfrac{5}{11} \)
Example 2
Question: In a college, three professors X, Y, and Z set question papers for an exam. The probability that the paper is set by X, Y, or Z is 0.5, 0.3, and 0.2 respectively. The probability that the paper is considered difficult by students, given it was set by X, Y, or Z is 0.4, 0.6, and 0.7 respectively. The students found the exam difficult. Find the probability that the paper was set by professor Z.
Solution: Let \( H_X \), \( H_Y \), \( H_Z \) be the events that the paper was set by X, Y, or Z respectively, and let \( E \) be the event that the paper is found difficult. Step 1: Note the prior probabilities. \[ P(H_X) = 0.5, \quad P(H_Y) = 0.3, \quad P(H_Z) = 0.2 \] Step 2: Note the conditional probabilities. \[ P(E \mid H_X) = 0.4, \quad P(E \mid H_Y) = 0.6, \quad P(E \mid H_Z) = 0.7 \] Step 3: Compute the total probability that the paper is difficult. \[ P(E) = P(H_X)\,P(E \mid H_X) + P(H_Y)\,P(E \mid H_Y) + P(H_Z)\,P(E \mid H_Z) \] \[ P(E) = (0.5)(0.4) + (0.3)(0.6) + (0.2)(0.7) \] \[ P(E) = 0.20 + 0.18 + 0.14 = 0.52 \] Step 4: Apply Bayes' Theorem for professor Z. \[ P(H_Z \mid E) = \frac{P(H_Z)\,P(E \mid H_Z)}{P(E)} = \frac{(0.2)(0.7)}{0.52} \] \[ P(H_Z \mid E) = \frac{0.14}{0.52} = \frac{14}{52} = \frac{7}{26} \]
Answer: \( P(H_Z \mid E) = \dfrac{7}{26} \)