Conditional Probability
Conditional probability is the probability of an event occurring given that another event has already occurred. It helps us to refine the probability of an event when we know some additional information about the situation.
In formal terms, the conditional probability of an event A given that another event B has occurred is denoted as P(A∣B), and is defined as:
P(A∣B)=P(B)P(A∩B)
Where:
- P(A∣B) is the probability of event A occurring given that event B has occurred.
- P(A∩B) is the probability of both events A and B occurring (i.e., the intersection of A and B).
- P(B) is the probability of event B occurring. It must be greater than zero (P(B)>0), since we're conditioning on the occurrence of B.
Key Points:
- Conditional Probability refines the probability of an event by considering the restriction imposed by the occurrence of another event.
- The denominator P(B) is the probability of event B occurring, and the numerator P(A∩B) reflects the probability of both events occurring together.
Example 1: Drawing a Card from a Deck
Let's use a standard deck of 52 cards to demonstrate conditional probability.
- Event A: Drawing a face card (Jack, Queen, King).
- Event B: Drawing a red card (Hearts or Diamonds).
We are interested in finding the probability of drawing a face card (event A) given that a red card (event B) has already been drawn.
-
Calculate P(B): The deck has 26 red cards (13 Hearts and 13 Diamonds). Therefore, the probability of drawing a red card is:
P(B)=5226=21
-
Calculate P(A∩B): The red face cards are the Jack, Queen, and King of Hearts and Diamonds, so there are 6 red face cards in total. Therefore, the probability of drawing a red face card is:
P(A∩B)=526=263
-
Apply the formula for conditional probability:
P(A∣B)=P(B)P(A∩B)=21263=133
Thus, the probability of drawing a face card given that a red card has been drawn is 133.
General Formula for Conditional Probability with Multiple Events
When there are more than two events, the concept of conditional probability can be extended. For instance, the conditional probability of event A given events B and C is:
P(A∣B∩C)=P(B∩C)P(A∩B∩C)
Here, you are conditioning on the occurrence of both B and C, and you need to adjust for the intersection of all three events.
Conditional Probability in Terms of Bayes' Theorem
One of the most important applications of conditional probability is Bayes' Theorem, which relates conditional probabilities in the reverse direction (i.e., given A, we calculate B).
Bayes' Theorem states that:
P(B∣A)=P(A)P(A∣B)P(B)
Where:
- P(B∣A) is the conditional probability of event B given event A.
- P(A∣B) is the conditional probability of event A given event B.
- P(B) is the prior probability of event B.
- P(A) is the total probability of event A, which can be computed using the law of total probability.
Bayes' Theorem is especially useful in fields like medical diagnostics, spam filtering, and machine learning, where you need to update your beliefs about the probability of an event (e.g., having a disease, being a spam message) based on new evidence.
Example 2: Disease Testing (Bayes' Theorem)
Suppose a test is conducted for a disease, and we know the following:
- P(Disease)=0.01: The prior probability of having the disease is 1%.
- P(No Disease)=0.99: The probability of not having the disease is 99%.
- P(Positive Test∣Disease)=0.95: The probability of testing positive given that the person has the disease (True Positive Rate).
- P(Positive Test∣No Disease)=0.05: The probability of testing positive given that the person does not have the disease (False Positive Rate).
We want to know the probability that a person actually has the disease, given that they tested positive. This is P(Disease∣Positive Test).
Using Bayes' Theorem:
P(Disease∣Positive Test)=P(Positive Test)P(Positive Test∣Disease)P(Disease)
We first need to calculate P(Positive Test), the total probability of testing positive. This is the sum of the probabilities of testing positive for both disease and no disease:
P(Positive Test)=P(Positive Test∣Disease)P(Disease)+P(Positive Test∣No Disease)P(No Disease)
P(Positive Test)=(0.95×0.01)+(0.05×0.99)=0.0095+0.0495=0.059
Now, applying Bayes' Theorem:
P(Disease∣Positive Test)=0.0590.95×0.01=0.0590.0095≈0.161
Thus, even if a person tests positive, there is only about a 16.1% chance that they actually have the disease, which is a relatively low probability due to the low prior probability of the disease and the false positive rate.
Summary of Key Concepts
- Conditional Probability (P(A∣B)) is the probability of event A occurring given that event B has already occurred. It is calculated using:
P(A∣B)=P(B)P(A∩B)
- Bayes' Theorem allows us to reverse the condition, updating the probability of an event B given evidence A, using:
P(B∣A)=P(A)P(A∣B)P(B)
- Conditional probability is fundamental in real-world applications like medical diagnosis, risk analysis, and decision-making under uncertainty.
Understanding conditional probability is crucial because it allows us to refine our predictions and decisions based on additional information, making it a powerful tool in both theoretical and applied statistics.