Example 1
Question: A factory has two machines, X and Y. From historical data, the following probabilities are known: P(X breaks down) = 0.35, P(Y breaks down alone) = 0.10, P(X and Y both break down) = 0.08. Find P(X breaks down alone).
Solution: We are given the following information: P(X breaks down) = \(0.35\) P(Y breaks down alone) = \(0.10\) P(X and Y both break down) = \(0.08\) The event 'X breaks down alone' means X breaks down but Y does not break down. Using the formula: \[P(X \text{ alone}) = P(X) - P(X \cap Y)\] Substituting the known values: \[P(X \text{ alone}) = 0.35 - 0.08\] \[P(X \text{ alone}) = 0.27\] We can also verify our setup using the given data for Y alone. Since P(Y breaks down) = P(Y alone) + P(X and Y both break down), we have P(Y breaks down) = \(0.10 + 0.08 = 0.18\). This is consistent and confirms our approach. Hence, P(X breaks down alone) = \(0.27\).
Answer: P(X breaks down alone) = 0.27
Example 2
Question: Two software modules, P and Q, are tested independently. The following probabilities are recorded: P(module P has a bug) = 0.40, P(both modules P and Q have a bug) = 0.12, P(module Q has a bug alone) = 0.18. Find the probability that module P has a bug but module Q does not (i.e., P has a bug alone).
Solution: We are given: P(P has a bug) = \(0.40\) P(P and Q both have a bug) = \(P(P \cap Q) = 0.12\) P(Q has a bug alone) = \(0.18\) We need to find P(P has a bug alone), which is the probability that P has a bug but Q does not. The event 'P has a bug alone' is given by: \[P(P \text{ alone}) = P(P) - P(P \cap Q)\] Substituting the values: \[P(P \text{ alone}) = 0.40 - 0.12\] \[P(P \text{ alone}) = 0.28\] We can also find P(Q has a bug) as a check: P(Q has a bug) = P(Q alone) + P(P \cap Q) = \(0.18 + 0.12 = 0.30\). This is a valid probability, confirming our data is consistent. Hence, P(module P has a bug alone) = \(0.28\).
Answer: P(P has a bug alone) = 0.28