4. Statistics and Probability

Conditional Probability

Conditional Probability

students, imagine you are checking a school survey and you know some students play a sport, some students study music, and some do both 🎒🎵. A key question is: if you already know one fact about a person, how does that change the chance of another fact being true? That is the heart of conditional probability.

In this lesson, you will learn to:

  • explain the meaning of conditional probability and the vocabulary around it,
  • calculate probabilities using the formula for conditional probability,
  • use tree diagrams, tables, and Venn diagrams to organize information,
  • connect conditional probability to independence, events, and the broader study of statistics and probability,
  • interpret results in real-life contexts such as medicine, testing, sports, and surveys.

Conditional probability is important in IB Mathematics Analysis and Approaches SL because it helps you reason carefully with data. It appears whenever information is updated after something is known. That makes it useful in real life and in exam questions.

What conditional probability means

A probability describes how likely an event is. For example, if event $A$ is “a student plays basketball,” then $P(A)$ is the probability of that event. But sometimes you know more information. If event $B$ is “a student is in Year 12,” then you may want the probability that a student plays basketball given that the student is in Year 12. This is conditional probability.

The notation for conditional probability is $P(A\mid B)$. It is read as “the probability of $A$ given $B$.” The symbol $\mid$ means “given.” It tells us that event $B$ has already happened or is already known to be true.

A very important idea is that the sample space changes once the condition is known. If you know $B$ has happened, then you only consider outcomes inside $B$. This is why conditional probability is not the same as the simple probability $P(A)$.

The formula is

$$P(A\mid B)=\frac{P(A\cap B)}{P(B)}, \quad P(B)>0$$

Here, $A\cap B$ means the outcomes where both $A$ and $B$ happen. The denominator $P(B)$ shows that we only look at the part of the sample space where $B$ is true.

Using the formula with real examples

Let’s use a school example. Suppose 40 students answered a survey. 18 students play a sport, 15 students study music, and 7 students do both sport and music.

Let $S$ be the event “student plays a sport,” and let $M$ be the event “student studies music.” Then

$$P(S)=\frac{18}{40}, \qquad P(M)=\frac{15}{40}, \qquad P(S\cap M)=\frac{7}{40}$$

If you want the probability that a student studies music given that they play a sport, use

$$P(M\mid S)=\frac{P(M\cap S)}{P(S)}=\frac{\frac{7}{40}}{\frac{18}{40}}=\frac{7}{18}$$

This means that among students who play a sport, $\frac{7}{18}$ also study music. Notice how the denominator changed from all 40 students to only the 18 sport students.

Now reverse the condition:

$$P(S\mid M)=\frac{P(S\cap M)}{P(M)}=\frac{\frac{7}{40}}{\frac{15}{40}}=\frac{7}{15}$$

This is not the same as $P(M\mid S)$, and that is very important. Conditional probability is usually not symmetric. Knowing $S$ changes the meaning of the probability differently from knowing $M$.

A common exam mistake is to mix up $P(A\mid B)$ with $P(B\mid A)$. Always read the wording carefully. The order matters.

Tables, tree diagrams, and Venn diagrams

Conditional probability becomes easier when the information is organized well. IB questions often present data in a two-way table, a tree diagram, or a Venn diagram.

Two-way tables

A two-way table shows counts for two categories. For example, suppose a class is split by gender and whether students submitted homework on time. If you want $P(\text{on time}\mid \text{girl})$, first focus only on the girls, then find the proportion of girls who submitted on time.

This is a practical way to think: the condition selects a row or column, and then you work within that smaller group.

Tree diagrams

Tree diagrams are useful when events happen in stages. For example, if a bag contains colored balls and one is drawn, then another is drawn without replacement, the second event depends on the first. The probabilities on the second branch are conditional probabilities because the contents of the bag have changed.

If the first draw is red, the probability of drawing blue next may change. This is a clear real-world example of conditional probability in action.

Venn diagrams

Venn diagrams help with overlapping events. If you know a student is in the set $B$, then conditional probability asks what proportion of that circle also lies in set $A$. In symbols, this is the overlap $A\cap B$ divided by the whole of $B$.

Visual tools help students see that conditional probability is about narrowing the focus of the sample space 📊.

Independence and conditional probability

Two events are independent if the occurrence of one does not change the probability of the other. This is closely linked to conditional probability.

Events $A$ and $B$ are independent if

$$P(A\mid B)=P(A)$$

and also

$$P(B\mid A)=P(B)$$

Another equivalent test is

$$P(A\cap B)=P(A)P(B)$$

These formulas all say the same thing: knowing one event does not affect the other.

For example, if a fair coin is tossed and a fair die is rolled, the result of the coin does not change the die probabilities. So these events are independent.

But if you draw two cards from a deck without replacement, the second card depends on the first. Those events are not independent because the sample space changes after the first draw.

In IB questions, independence often appears together with conditional probability. If you are given $P(A\mid B)$ and it equals $P(A)$, you can conclude independence. If not, the events are dependent.

Conditional probability in context

Conditional probability is not just a formula. It helps answer questions in medicine, quality control, and decision-making.

For example, suppose a medical test is used for a disease. A positive result does not always mean the person has the disease. The probability of having the disease given a positive test is a conditional probability. This matters because tests can have false positives and false negatives.

In sports, you might ask: “If a player has already scored once, what is the probability they score again?” That depends on the game situation. In surveys, you might ask: “If a student uses public transport, what is the probability they live far from school?” In each case, the known information changes the relevant group.

Conditional probability also connects to data collection and statistical description because the quality of the answer depends on how the data were gathered. If the sample is biased, the conditional probabilities may not represent the whole population well. That is why careful data collection matters in statistics.

Solving IB-style questions carefully

When solving a conditional probability problem, students should follow a reliable process:

  1. Identify the events clearly. Write what each symbol means.
  2. Find the event in the condition. The “given” part is the new sample space.
  3. Use a table, diagram, or counts if needed.
  4. Apply the formula $P(A\mid B)=\frac{P(A\cap B)}{P(B)}$.
  5. Check whether the answer makes sense as a fraction or decimal between $0$ and $1$.

Here is a short example.

Suppose $P(A)=0.6$, $P(B)=0.5$, and $P(A\cap B)=0.3$.

Then

$$P(A\mid B)=\frac{0.3}{0.5}=0.6$$

This shows that once $B$ is known, the chance of $A$ is $0.6$. Because this equals $P(A)$, the events are independent.

If the question gives counts rather than probabilities, convert counts into probabilities or work directly with the counts, as long as you use the same group for numerator and denominator.

A careful reading of wording is essential. Phrases such as “among,” “given that,” “of those who,” and “if” often signal conditional probability. In exam questions, these phrases tell you the condition.

Conclusion

Conditional probability is a powerful tool for updating probabilities when new information is known. It uses the formula $P(A\mid B)=\frac{P(A\cap B)}{P(B)}$ and helps describe how one event affects another. It is closely linked to independence, because if $P(A\mid B)=P(A)$, then the events are independent. It also connects to tables, tree diagrams, Venn diagrams, and real-world decision-making. In Statistics and Probability, conditional probability helps students interpret data in a focused and accurate way 🔍.

Study Notes

  • Conditional probability means the probability of one event happening given that another event has already happened.
  • The notation is $P(A\mid B)$, read as “the probability of $A$ given $B$.”
  • The key formula is $P(A\mid B)=\frac{P(A\cap B)}{P(B)}$, with $P(B)>0$.
  • The order matters: usually $P(A\mid B)\neq P(B\mid A)$.
  • The event $A\cap B$ means both events happen.
  • Use two-way tables, tree diagrams, and Venn diagrams to organize information.
  • Events are independent if $P(A\mid B)=P(A)$ or equivalently $P(A\cap B)=P(A)P(B)$.
  • Conditional probability is useful in medicine, surveys, sports, and quality control.
  • Phrases like “given that,” “among,” and “of those who” often signal conditional probability.
  • Good data collection matters because biased data can lead to misleading probabilities.
  • In IB Mathematics Analysis and Approaches SL, conditional probability connects directly to statistical reasoning and interpretation.

Practice Quiz

5 questions to test your understanding

Conditional Probability — IB Mathematics Analysis And Approaches SL | A-Warded