Conditional Probability
students, imagine you are checking two things about a student at school: whether they take part in sports and whether they also study music 🎵🏀. If you already know the student is in sports, does that change the chance that they study music? That is the big idea behind conditional probability. In statistics, we often learn that probabilities can change when we learn new information. Conditional probability helps us describe that change in a precise way.
In this lesson, you will learn how to define conditional probability, how to calculate it, how to use it with tables and tree diagrams, and why it matters in real-world decision-making. You will also connect it to the wider IB Mathematics: Applications and Interpretation SL topic of statistics and probability, where data and uncertainty are used to make sense of the world.
By the end of this lesson, you should be able to:
- Explain the meaning of conditional probability and the key notation.
- Use the formula for conditional probability correctly.
- Interpret information from two-way tables and tree diagrams.
- Connect conditional probability to probability models and real-world decisions.
- Recognize how conditional probability fits into statistics, inference, and data analysis.
What Conditional Probability Means
Conditional probability is the probability that one event happens given that another event has already happened. The word “given” is important. It means we are not looking at the whole sample space anymore. We are looking at a smaller group based on the information we already know.
If $A$ and $B$ are events, the conditional probability of $A$ given $B$ is written as $P(A\mid B)$. This is read as “the probability of $A$ given $B$.” The symbol $\mid$ means “given.”
Here is the main formula:
$$P(A\mid B)=\frac{P(A\cap B)}{P(B)}, \quad P(B)>0$$
This formula tells us something very important. To find the probability of $A$ given $B$, we only consider the outcomes where $B$ happens. Among those outcomes, we look at the fraction that also belong to $A$.
For example, suppose a school has $100$ students. Let $A$ be the event “student studies music,” and let $B$ be the event “student plays sports.” If $30$ students study music, $40$ students play sports, and $12$ do both, then:
$$P(A\mid B)=\frac{P(A\cap B)}{P(B)}=\frac{12/100}{40/100}=\frac{12}{40}=0.3$$
So, if you already know a student plays sports, the probability that the student studies music is $0.3$ or $30\%$.
Using Sets, Intersections, and “Given That” Language
Conditional probability is closely connected to set notation. The event $A\cap B$ means “$A$ and $B$ both happen.” This is called the intersection of the two events.
When you see a question that says “given that,” think: What information is already known? That known information becomes the new sample space. In a sense, the condition “shrinks” the situation.
For example:
- “What is the probability that a randomly chosen student is in the debate club given that they are in Year 12?” means only Year 12 students are considered.
- “What is the probability of rain tomorrow given that the forecast shows clouds today?” means the forecast information changes the context.
This is one reason conditional probability is useful in real life. New information changes our expectations. Doctors use test results to update the chance of disease. Companies use customer behavior to predict future purchases. Teachers use assessment data to identify students who may need support 📊.
A useful fact is that conditional probability can also be rearranged:
$$P(A\cap B)=P(A\mid B)P(B)$$
and also
$$P(A\cap B)=P(B\mid A)P(A)$$
These expressions are very helpful when building probability trees and solving multi-step problems.
Conditional Probability with Two-Way Tables
Two-way tables are one of the easiest ways to organize conditional probability. They show two categories at once. One category might be gender, and the other might be whether a student passed a test.
Suppose a class has the following table:
| | Passed | Did not pass | Total |
|---------------|--------|--------------|-------|
| Revision used | 18 | 6 | 24 |
| No revision | 12 | 14 | 26 |
| Total | 30 | 20 | 50 |
If we want the probability that a student passed given that they used revision, we only look at the $24$ students who used revision.
$$P(\text{Passed} \mid \text{Revision used})=\frac{18}{24}=\frac{3}{4}$$
If we want the probability that a student used revision given that they passed, we only look at the $30$ students who passed.
$$P(\text{Revision used} \mid \text{Passed})=\frac{18}{30}=\frac{3}{5}$$
Notice that these two probabilities are not the same. This is very important. In conditional probability, the order matters:
$$P(A\mid B)\neq P(B\mid A)$$
Many students make this mistake because the events sound similar. But the condition changes the denominator, so the result can be different.
A two-way table also helps you see whether events are independent. If knowing one event does not change the probability of the other, then the events may be independent. For example, if
$$P(A\mid B)=P(A)$$
then $A$ and $B$ are independent. In that case, learning $B$ gives no new information about $A$.
Conditional Probability with Tree Diagrams
Tree diagrams are another powerful tool. They are especially useful when events happen in stages. For example, a machine may produce an item, and then the item may be defective or not. Or a student may choose a transport method and then arrive on time or late.
In a tree diagram, each branch shows a probability. The probabilities along one set of branches must add up to $1$. To find the probability of a complete path, multiply the probabilities along that path.
Example: A bag contains $5$ red balls and $3$ blue balls. Two balls are drawn without replacement. What is the probability that the second ball is red given that the first ball is blue?
After one blue ball is removed, there are $5$ red and $2$ blue balls left, so $7$ balls remain. The conditional probability is
$$P(\text{second red} \mid \text{first blue})=\frac{5}{7}$$
If the question asks for the probability of both events, we use the multiplication rule:
$$P(\text{first blue and second red})=P(\text{first blue})P(\text{second red} \mid \text{first blue})$$
Since $P(\text{first blue})=\frac{3}{8}$, we get
$$P(\text{first blue and second red})=\frac{3}{8}\cdot\frac{5}{7}=\frac{15}{56}$$
This is a classic IB-style idea: use the structure of the situation, identify the condition, then calculate carefully.
Independence, Dependence, and Real-World Interpretation
Conditional probability helps us decide whether events are independent or dependent. Two events are independent if the occurrence of one does not affect the probability of the other. If events are dependent, then one event changes the probability of the other.
Example: If you draw a card from a standard deck, then replace it before drawing again, the draws are independent. If you do not replace it, the second draw depends on the first.
This idea appears in many real situations:
- A medical test result can affect the estimated chance of a disease.
- A weather forecast can affect the chance of carrying an umbrella ☔.
- A social media app may use previous clicks to predict what a user will open next.
In statistics, conditional probability is important because data often comes with context. A raw probability may be less useful than a probability conditioned on relevant information. This is part of how statistics supports better decisions.
For IB Mathematics: Applications and Interpretation SL, you should be comfortable reading the words in a question carefully. Ask yourself:
- What is the event I want?
- What is the condition given?
- What is the correct denominator after restricting the sample space?
If you answer those three questions, many conditional probability problems become much easier.
Conclusion
Conditional probability is a core idea in probability because it shows how probability changes when we know something new. The notation $P(A\mid B)$ means the probability of $A$ given $B$, and the key formula is
$$P(A\mid B)=\frac{P(A\cap B)}{P(B)}$$
You can calculate conditional probability using two-way tables, tree diagrams, and algebraic relationships. It also helps you understand independence, dependence, and real-world situations where new information changes decisions.
In the wider Statistics and Probability topic, conditional probability connects data analysis to inference and decision-making. It helps answer practical questions about risk, prediction, and patterns in data. For students, mastering conditional probability means being able to interpret information carefully and use mathematical reasoning to make sense of uncertainty.
Study Notes
- Conditional probability means the probability of one event given that another event has already happened.
- The notation is $P(A\mid B)$, read as “the probability of $A$ given $B$.”
- The main formula is $$P(A\mid B)=\frac{P(A\cap B)}{P(B)}, \quad P(B)>0$$
- The intersection $A\cap B$ means both events happen.
- The order matters: usually $$P(A\mid B)\neq P(B\mid A)$$
- Use the condition to reduce the sample space before calculating.
- In a two-way table, the denominator is the total for the condition group.
- In a tree diagram, multiply along branches to find joint probabilities.
- If $P(A\mid B)=P(A)$ then the events may be independent.
- Conditional probability is useful in medicine, weather, sports, business, and many other real-world settings 📈.
