AP Statistics · Topic 2.6 · Reading guide, about 5 min

Probability given that something happened

Learn conditional probability, how to read it from two-way tables and tree diagrams, and the general multiplication rule, with a worked example.

In one minute

Conditional probability answers a question that starts with new information: given that event BB has already happened, how likely is event AA? The new information shrinks the set of possible outcomes, so the probability can change.

You will read conditional probabilities from two-way tables and tree diagrams, and use the general multiplication rule to find joint probabilities. The key skill is deciding which group is the denominator.

Key terms

Conditional probability
The probability of AA given that BB occurred, written P(A∣B)P(A \mid B). Only outcomes in BB are considered.
Given
The word (or the phrase "among", "of those", "if") that tells you which group to restrict to. It goes after the bar.
Conditional formula
P(A∣B)=P(A and B)P(B)P(A \mid B) = \dfrac{P(A \text{ and } B)}{P(B)}, defined when P(B)>0P(B) > 0.
General multiplication rule
P(A and B)=P(A)×P(B∣A)P(A \text{ and } B) = P(A) \times P(B \mid A), a way to get a joint probability from stages.
Tree diagram
A drawing with branches for each stage of a process, with probabilities on branches and products along paths.
Branch probability
The probability on a branch after the first stage is a conditional probability given the earlier branches.
Joint probability
The probability of both events, found by multiplying along a path of a tree or from a table cell.
Two-way table
Counts for two categorical variables, from which conditional probabilities are ratios of counts.

Conditional probability from the formula

The notation P(A∣B)P(A \mid B) is read "the probability of AA given BB". The event after the bar is the condition, and it defines your new, smaller sample space. The formula divides the probability of both events by the probability of the condition: P(A∣B)=P(A and B)/P(B)P(A \mid B) = P(A \text{ and } B)/P(B).

Why that works: of all the times BB happens, the fraction in which AA also happens is P(A and B)P(A \text{ and } B) divided by P(B)P(B). Everything outside BB is thrown away, because it is no longer possible.

Direction matters. The probability that a randomly chosen cat owner also owns a dog is usually not the probability that a dog owner also owns a cat. Always ask "what is known to be true?" and make that group the denominator.

Reading a two-way table

In a table of counts, a conditional probability is a cell count divided by the total of the row or column for the condition. The condition tells you which total to use, not the table total.

The words "given", "among" and "of those who" all signal a condition. "What proportion of evening members do strength training" restricts to the evening row, so the denominator is the evening total. "What proportion of strength trainers come in the evening" restricts to the strength column.

Invented counts for 200 gym members: workout time and workout type
TimeStrengthCardioTotal
Morning4555100
Evening7030100
Total11585200

Tree diagrams and the multiplication rule

When a process has stages, a tree is natural. The first branches carry ordinary probabilities. Branches after that carry conditional probabilities, because they depend on what happened first. Multiplying along a path gives a joint probability, which is the general multiplication rule: P(A and B)=P(A)×P(B∣A)P(A \text{ and } B) = P(A) \times P(B \mid A).

To find a probability that can happen along more than one path, such as "the item is defective", compute each path's product and add them, since different paths are disjoint. To find a probability going the other way, such as "which machine made a defective item", divide one path by that total.

Worked example

Gym table (all counts are invented). One member is chosen at random.

(a) Given that the member comes in the evening, what is the probability they do strength training? The condition is "evening", whose total is 100. P(strength∣evening)=70/100=0.70P(\text{strength} \mid \text{evening}) = 70/100 = 0.70.

(b) Given that the member does strength training, what is the probability they come in the evening? The condition is "strength", whose total is 115. P(evening∣strength)=70/115≈0.6087P(\text{evening} \mid \text{strength}) = 70/115 \approx 0.6087 (rounded to four decimal places). The two answers differ because the denominators differ.

(c) Check the multiplication rule. P(evening)=100/200=0.50P(\text{evening}) = 100/200 = 0.50, so P(evening and strength)=0.50×0.70=0.35P(\text{evening and strength}) = 0.50 \times 0.70 = 0.35, which matches the cell value 70/200=0.3570/200 = 0.35.

Now a tree. In a factory, machine A makes 60 percent of the items and 3 percent of its items are defective. Machine B makes 40 percent and 5 percent of its items are defective. Path A and defective: 0.60×0.03=0.0180.60 \times 0.03 = 0.018. Path B and defective: 0.40×0.05=0.0200.40 \times 0.05 = 0.020. So P(defective)=0.018+0.020=0.038P(\text{defective}) = 0.018 + 0.020 = 0.038.

Given that an item is defective, the probability it came from machine A is P(A∣defective)=0.018/0.038≈0.4737P(A \mid \text{defective}) = 0.018/0.038 \approx 0.4737. Machine A makes more items but has fewer defects per item, so it accounts for less than 60 percent of the defective ones.

How it connects

  • Back to 2.2: conditional relative frequencies in a two-way table are conditional probabilities in disguise.
  • Back to 2.5: a joint probability is the numerator of the conditional formula.
  • Forward to 2.7: independence means conditioning on one event does not change the other, so P(A∣B)=P(A)P(A \mid B) = P(A).

Common mistakes

  • Reversing the condition. P(A∣B)P(A \mid B) and P(B∣A)P(B \mid A) usually differ. Read for the word "given" and make that group the denominator.
  • Dividing by the table total. That gives a joint probability. For a conditional, divide by the total of the conditioning row or column.
  • Adding branch probabilities along a path. Along a path you multiply; across different paths to the same event you add.

How it shows up on the exam

  • A two-way table or tree diagram in context, asking for a conditional probability and often asking you to explain what it means in the situation.
  • Short written questions in which you must show the formula, the substituted values and a rounded result.

Check yourself

  1. Which total do you divide by when you are asked for the probability of AA given BB from a table?
  2. Why is P(rain∣cloudy)P(\text{rain} \mid \text{cloudy}) not the same as P(cloudy∣rain)P(\text{cloudy} \mid \text{rain})?
  3. How would you find P(A and B)P(A \text{ and } B) if you know P(A)P(A) and P(B∣A)P(B \mid A)?
  4. On a tree diagram, why do the probabilities on second-stage branches add to 1 for each first-stage branch?

Practice this topic. AP Practice questions on exactly what this lesson covers, with an explanation for every answer.