Example 1
Question: A factory produces bulbs using three machines A, B, and C. Machine A produces 30% of the total bulbs, Machine B produces 45%, and Machine C produces 25%. The probability that a bulb produced by machines A, B, and C is defective are 0.02, 0.05, and 0.03 respectively. A bulb is picked at random from the total production. Find the probability that the bulb is defective.
Solution: Let the events be defined as follows. Let \( H_A \) = bulb is produced by Machine A, \( H_B \) = bulb is produced by Machine B, \( H_C \) = bulb is produced by Machine C, and \( D \) = the bulb is defective. The prior probabilities are: \[ P(H_A) = 0.30, \quad P(H_B) = 0.45, \quad P(H_C) = 0.25 \] The conditional probabilities of a defective bulb are: \[ P(D \mid H_A) = 0.02, \quad P(D \mid H_B) = 0.05, \quad P(D \mid H_C) = 0.03 \] By the Total Probability Theorem: \[ P(D) = P(H_A) \cdot P(D \mid H_A) + P(H_B) \cdot P(D \mid H_B) + P(H_C) \cdot P(D \mid H_C) \] Substituting the values: \[ P(D) = (0.30 \times 0.02) + (0.45 \times 0.05) + (0.25 \times 0.03) \] Calculating each term: \[ P(D) = 0.006 + 0.0225 + 0.0075 \] Adding them up: \[ P(D) = 0.036 \] Therefore, the probability that a randomly picked bulb is defective is \( 0.036 \).
Answer: \( P(D) = 0.036 \)
Example 2
Question: A medical test is conducted on patients who may have one of three conditions: Condition X with probability 0.50, Condition Y with probability 0.30, and Condition Z with probability 0.20. The probabilities that the test result comes back positive given each condition are 0.90, 0.60, and 0.40 respectively. Find the probability that a randomly selected patient tests positive.
Solution: Let the events be defined as follows. Let \( X \), \( Y \), \( Z \) denote the events that the patient has Condition X, Condition Y, or Condition Z respectively. Let \( T \) denote the event that the test result is positive. The prior probabilities are: \[ P(X) = 0.50, \quad P(Y) = 0.30, \quad P(Z) = 0.20 \] Note that \( P(X) + P(Y) + P(Z) = 0.50 + 0.30 + 0.20 = 1 \), so these form a complete set of mutually exclusive and exhaustive events. The conditional probabilities of a positive test result are: \[ P(T \mid X) = 0.90, \quad P(T \mid Y) = 0.60, \quad P(T \mid Z) = 0.40 \] By the Total Probability Theorem: \[ P(T) = P(X) \cdot P(T \mid X) + P(Y) \cdot P(T \mid Y) + P(Z) \cdot P(T \mid Z) \] Substituting the values: \[ P(T) = (0.50 \times 0.90) + (0.30 \times 0.60) + (0.20 \times 0.40) \] Calculating each term: \[ P(T) = 0.45 + 0.18 + 0.08 \] Adding them up: \[ P(T) = 0.71 \] Therefore, the probability that a randomly selected patient tests positive is \( 0.71 \).
Answer: \( P(T) = 0.71 \)