3.5.3 Conditional Probability¶
Understanding conditional probability notation and calculating the probability of an event given that another event has occurred.
定义¶
Conditional probability is the probability of an event occurring given that another event has already occurred. It measures how the probability of one event changes when we have information that another event has happened. The conditional probability of event \(A\) given event \(B\) is denoted as \(P(A|B)\), which represents the probability that event \(A\) occurs when we know that event \(B\) has occurred. This is calculated by dividing the probability of both events occurring together by the probability of the given event. Conditional probability is fundamental in understanding dependent events and is widely used in real-world applications such as medical testing, quality control, and risk assessment.
核心公式¶
- \(P(A|B) = \frac{P(A \cap B)}{P(B)}\), where \(P(B) \neq 0\)
- \(P(A \cap B) = P(A|B) \cdot P(B)\)
- \(P(A|B) = \frac{\text{Number of outcomes in both A and B}}{\text{Number of outcomes in B}}\)
- \(P(A|B) + P(A^c|B) = 1\)
- \(P(A \cap B \cap C) = P(A) \cdot P(B|A) \cdot P(C|A \cap B)\)
易错点¶
- ⚠️ Confusing \(P(A|B)\) with \(P(B|A)\): These are not equal in general. Students often reverse the order of events, leading to incorrect calculations. For example, \(P(\text{disease}|\text{positive test})\) is different from \(P(\text{positive test}|\text{disease})\).
- ⚠️ Using the original sample space instead of the reduced sample space: When calculating conditional probability, students sometimes forget to restrict the sample space to the given event \(B\), treating it as if \(B\) hasn't occurred.
- ⚠️ Incorrectly assuming independence: Students may assume that \(P(A|B) = P(A)\) without verifying that events \(A\) and \(B\) are actually independent. This leads to oversimplified calculations.
- ⚠️ Forgetting to check that \(P(B) \neq 0\): The formula \(P(A|B) = \frac{P(A \cap B)}{P(B)}\) is undefined when \(P(B) = 0\), but students sometimes apply it without this crucial condition.