Example 1
Question: A delivery agent can reach a customer by four routes: Route A, Route B, Route C, or Route D, with probabilities \(\frac{1}{4}\), \(\frac{1}{3}\), \(\frac{1}{6}\), and \(\frac{1}{4}\) respectively. The probabilities that the delivery will be delayed are \(\frac{1}{3}\), \(\frac{1}{2}\), and \(\frac{1}{4}\) if the agent uses Route A, Route B, and Route C respectively. If the agent uses Route D, the delivery is never delayed. Given that the delivery was delayed, find the probability that the agent used Route B.
Solution: Let \(E_1, E_2, E_3, E_4\) denote the events that the agent uses Route A, Route B, Route C, and Route D respectively, and let \(A\) denote the event that the delivery is delayed. The prior probabilities are: \[P(E_1) = \frac{1}{4}, \quad P(E_2) = \frac{1}{3}, \quad P(E_3) = \frac{1}{6}, \quad P(E_4) = \frac{1}{4}\] The conditional probabilities of delay given each route are: \[P(A \mid E_1) = \frac{1}{3}, \quad P(A \mid E_2) = \frac{1}{2}, \quad P(A \mid E_3) = \frac{1}{4}, \quad P(A \mid E_4) = 0\] Now we compute \(P(E_i) \cdot P(A \mid E_i)\) for each route: For Route A: \[P(E_1) \cdot P(A \mid E_1) = \frac{1}{4} \times \frac{1}{3} = \frac{1}{12}\] For Route B: \[P(E_2) \cdot P(A \mid E_2) = \frac{1}{3} \times \frac{1}{2} = \frac{1}{6}\] For Route C: \[P(E_3) \cdot P(A \mid E_3) = \frac{1}{6} \times \frac{1}{4} = \frac{1}{24}\] For Route D: \[P(E_4) \cdot P(A \mid E_4) = \frac{1}{4} \times 0 = 0\] The total probability of delay is: \[P(A) = \frac{1}{12} + \frac{1}{6} + \frac{1}{24} + 0\] Converting to a common denominator of 24: \[P(A) = \frac{2}{24} + \frac{4}{24} + \frac{1}{24} = \frac{7}{24}\] By Bayes' Theorem, the probability that Route B was used given the delay is: \[P(E_2 \mid A) = \frac{P(E_2) \cdot P(A \mid E_2)}{P(A)} = \frac{\dfrac{1}{6}}{\dfrac{7}{24}}\] Simplifying: \[P(E_2 \mid A) = \frac{1}{6} \times \frac{24}{7} = \frac{24}{42} = \frac{4}{7}\]
Answer: \(\dfrac{4}{7}\)
Example 2
Question: A factory produces items using three machines: Machine I, Machine II, and Machine III. The probabilities that a randomly selected item is produced by Machine I, Machine II, and Machine III are \(\frac{2}{5}\), \(\frac{1}{3}\), and \(\frac{4}{15}\) respectively. The probabilities that an item produced by Machine I, Machine II, and Machine III is defective are \(\frac{1}{6}\), \(\frac{1}{4}\), and \(\frac{1}{2}\) respectively. An item is selected at random and found to be defective. Find the probability that it was produced by Machine III.
Solution: Let \(E_1, E_2, E_3\) denote the events that the item is produced by Machine I, Machine II, and Machine III respectively, and let \(D\) denote the event that the item is defective. The prior probabilities are: \[P(E_1) = \frac{2}{5}, \quad P(E_2) = \frac{1}{3}, \quad P(E_3) = \frac{4}{15}\] Verification that these sum to 1: \[\frac{2}{5} + \frac{1}{3} + \frac{4}{15} = \frac{6}{15} + \frac{5}{15} + \frac{4}{15} = \frac{15}{15} = 1\] The conditional probabilities of a defective item from each machine are: \[P(D \mid E_1) = \frac{1}{6}, \quad P(D \mid E_2) = \frac{1}{4}, \quad P(D \mid E_3) = \frac{1}{2}\] Now we compute \(P(E_i) \cdot P(D \mid E_i)\) for each machine: For Machine I: \[P(E_1) \cdot P(D \mid E_1) = \frac{2}{5} \times \frac{1}{6} = \frac{2}{30} = \frac{1}{15}\] For Machine II: \[P(E_2) \cdot P(D \mid E_2) = \frac{1}{3} \times \frac{1}{4} = \frac{1}{12}\] For Machine III: \[P(E_3) \cdot P(D \mid E_3) = \frac{4}{15} \times \frac{1}{2} = \frac{4}{30} = \frac{2}{15}\] The total probability of a defective item is: \[P(D) = \frac{1}{15} + \frac{1}{12} + \frac{2}{15}\] Converting to a common denominator of 60: \[P(D) = \frac{4}{60} + \frac{5}{60} + \frac{8}{60} = \frac{17}{60}\] By Bayes' Theorem, the probability that the defective item came from Machine III is: \[P(E_3 \mid D) = \frac{P(E_3) \cdot P(D \mid E_3)}{P(D)} = \frac{\dfrac{2}{15}}{\dfrac{17}{60}}\] Simplifying: \[P(E_3 \mid D) = \frac{2}{15} \times \frac{60}{17} = \frac{120}{255} = \frac{8}{17}\]
Answer: \(\dfrac{8}{17}\)