Statistics & Probability · Grade 10

Conditional Probability: The Probability of A Given B

Quick answer

A conditional probability answers a question about part of a sample space: of the outcomes where B happened, what fraction also have A? Knowing B shrinks the sample space to B, so P(A | B) = P(A and B) / P(B). Swapping the two events usually changes the answer, and confusing them is behind some of the most consequential probability mistakes in medicine and law.

What you'll learn

  • Find a conditional probability from a two-way table or from the formula
  • Explain why P(A | B) and P(B | A) are different questions
  • Use the multiplication rule P(A and B) = P(B) × P(A | B)

“Given that” shrinks the sample space

A student is chosen at random from 200200. What is the probability they are in the band?

P(band)=50200=0.25P(\text{band}) = \frac{50}{200} = 0.25

Now you are told the student plays a sport. What is the probability they are in the band?

BandNo bandTotal
Sport181842426060
No sport3232108108140140
Total5050150150200200

Knowing the student plays a sport rules out the 140140 who do not. The sample space is now the 6060 sport players, and 1818 of them are in the band:

P(band∣sport)=1860=0.30P(\text{band} \mid \text{sport}) = \frac{18}{60} = 0.30

The vertical bar is read “given”. The new information changed the answer from 0.250.25 to 0.300.30, because it changed which students were in the running.

The formula

Divide the overlap by the size of the condition:

P(A∣B)=P(A and B)P(B)P(A \mid B) = \frac{P(A \text{ and } B)}{P(B)}

With the table’s probabilities:

P(band∣sport)=18/20060/200=1860=0.30P(\text{band} \mid \text{sport}) = \frac{18/200}{60/200} = \frac{18}{60} = 0.30

The 200200s cancel, which is why working in counts gives the same answer with less writing: the count in both, over the count in the condition.

Why P(A | B) and P(B | A) are different

Swap the two events:

P(sport∣band)=1850=0.36P(\text{sport} \mid \text{band}) = \frac{18}{50} = 0.36

The overlap is the same 1818 students. The denominators are not. P(A∣B)P(A \mid B) divides by BB; P(B∣A)P(B \mid A) divides by AA — different groups, different questions:

QuestionRestrict toAnswer
Of sport players, what fraction are in band?the 6060 sport players0.300.30
Of band members, what fraction play sport?the 5050 band members0.360.36

This distinction matters far beyond tables. A medical test might detect a disease in 99%99\% of people who have it — that is P(positive∣disease)P(\text{positive} \mid \text{disease}). A patient who tests positive wants P(disease∣positive)P(\text{disease} \mid \text{positive}), and for a rare disease that can be far lower, because most positive results come from the much larger healthy group.

The multiplication rule

Multiply both sides of the formula by P(B)P(B):

P(A and B)=P(B)×P(A∣B)P(A \text{ and } B) = P(B) \times P(A \mid B)

It finds the chance of both happening, one step at a time: the chance of the first, times the chance of the second once the first is known.

A bag holds 44 red and 66 blue marbles. Two are drawn without replacement. Find P(both red)P(\text{both red}).

P(red, then red)=410×39=1290=215P(\text{red, then red}) = \frac{4}{10} \times \frac{3}{9} = \frac{12}{90} = \frac{2}{15}

The 39\tfrac{3}{9} is the conditional probability: given the first marble was red, 33 reds remain among 99 marbles. That is the dependent-events calculation from grade 7, now with its name.

Conditional probability in everyday language

Most everyday statistics are conditional probabilities in disguise. The skill is spotting which event is the condition.

StatementWritten as
”30%30\% of sport players are in the band”P(band∣sport)=0.30P(\text{band} \mid \text{sport}) = 0.30
“Among smokers, the risk of lung cancer is higher”P(cancer∣smoker)P(\text{cancer} \mid \text{smoker})
“If it rains, the game is canceled 80%80\% of the time”P(canceled∣rain)=0.80P(\text{canceled} \mid \text{rain}) = 0.80

The condition is the group being talked about — the word after “among”, “of”, “if” or “given”.

Worked examples

Common mistakes

Practice problems

  1. How is P(A∣B)P(A \mid B) read aloud?

    Answer

    “The probability of AA given BB”

    Full solution

    The bar means “given”.

  2. P(A and B)=0.2P(A \text{ and } B) = 0.2 and P(B)=0.5P(B) = 0.5. Find P(A∣B)P(A \mid B).

    Answer

    0.40.4

    Full solution

    0.20.5=0.4\tfrac{0.2}{0.5} = 0.4.

  3. Using the sport and band table, find P(sport∣no band)P(\text{sport} \mid \text{no band}).

    Answer

    0.280.28

    Full solution

    42150=0.28\tfrac{42}{150} = 0.28.

  4. A die shows an even number. Find the probability it is a 66.

    Answer

    13\tfrac{1}{3}

    Full solution

    The even outcomes are 2,4,62, 4, 6, and one of them is 66.

  5. A card is red. Find the probability it is a heart.

    Answer

    12\tfrac{1}{2}

    Full solution

    1313 of the 2626 red cards are hearts.

  6. P(A)=0.5P(A) = 0.5 and P(B∣A)=0.6P(B \mid A) = 0.6. Find P(A and B)P(A \text{ and } B).

    Answer

    0.30.3

    Full solution

    0.5×0.6=0.30.5 \times 0.6 = 0.3.

  7. A bag has 55 green and 33 yellow marbles. Two are drawn without replacement. Find P(both green)P(\text{both green}).

    Answer

    514\tfrac{5}{14}

    Full solution

    58×47=2056=514\tfrac{5}{8} \times \tfrac{4}{7} = \tfrac{20}{56} = \tfrac{5}{14}.

  8. In a class of 3030, 1212 students have a dog, 1010 have a cat, and 44 have both. Find P(cat∣dog)P(\text{cat} \mid \text{dog}) and P(dog∣cat)P(\text{dog} \mid \text{cat}).

    Hint

    Same overlap, two different groups to restrict to.

    Answer

    P(cat∣dog)=13P(\text{cat} \mid \text{dog}) = \tfrac{1}{3}; P(dog∣cat)=25P(\text{dog} \mid \text{cat}) = \tfrac{2}{5}

    Full solution

    Restrict to the 1212 dog owners: 44 also have a cat, so 412=13\tfrac{4}{12} = \tfrac{1}{3}.

    Restrict to the 1010 cat owners: 44 also have a dog, so 410=25\tfrac{4}{10} = \tfrac{2}{5}.

    The overlap is the same 44 in both, and the answers differ because the groups do.

  9. Translate into symbols: “If a flight is delayed, there is a 25%25\% chance the passenger misses a connection.”

    Answer

    P(missed connection∣delayed)=0.25P(\text{missed connection} \mid \text{delayed}) = 0.25

    Full solution

    The condition follows “if”, so “delayed” is the given event.

    The statement is about what fraction of delayed flights lead to a missed connection.

  10. Using the sport and band table, Kim finds P(band∣sport)P(\text{band} \mid \text{sport}) as 18200=0.09\tfrac{18}{200} = 0.09. Find her error.

    Hint

    Which students are in the running once you know the student plays a sport?

    Answer

    She divided by all 200200 students instead of the 6060 sport players. The answer is 0.300.30.

    Full solution

    18200\tfrac{18}{200} is P(band and sport)P(\text{band and sport}) — the share of all students in both.

    “Given sport” restricts the sample space to the 6060 students who play a sport. Of those, 1818 are in the band.

    P(band∣sport)=1860=0.30P(\text{band} \mid \text{sport}) = \tfrac{18}{60} = 0.30.

    The formula agrees: P(band and sport)P(sport)=0.090.30=0.30\tfrac{P(\text{band and sport})}{P(\text{sport})} = \tfrac{0.09}{0.30} = 0.30.

Frequently asked questions

What is conditional probability?

The probability of an event when you already know another event happened. It is written P(A | B) and read 'the probability of A given B'.

What is the formula?

P(A | B) = P(A and B) / P(B). In counts, it is the number of outcomes in both divided by the number in B.

Is P(A | B) the same as P(B | A)?

Usually not. They divide the same overlap by different totals, so they answer different questions.

How do I find it from a two-way table?

Go to the row or column for the given event, and divide the cell you want by that row or column's total.

What is the multiplication rule?

P(A and B) = P(B) × P(A | B). It finds the probability of both happening from one probability and one conditional probability.

What to learn next

Standards alignment

This lesson covers the following Common Core State Standards for Mathematics.

  • CCSS.MATH.CONTENT.HSS.CP.A.3Conditional Probability and the Rules of ProbabilityUnderstand the conditional probability of A given B as P(A and B)/P(B), and interpret independence of A and B as saying that the conditional probability of A given B is the same as the probability of A, and the conditional probability of B given A is the same as the probability of B.
  • CCSS.MATH.CONTENT.HSS.CP.A.4Conditional Probability and the Rules of ProbabilityConstruct and interpret two-way frequency tables of data when two categories are associated with each object being classified. Use the two-way table as a sample space to decide if events are independent and to approximate conditional probabilities.
  • CCSS.MATH.CONTENT.HSS.CP.A.5Conditional Probability and the Rules of ProbabilityRecognize and explain the concepts of conditional probability and independence in everyday language and everyday situations.
  • CCSS.MATH.CONTENT.HSS.CP.B.6Conditional Probability and the Rules of ProbabilityFind the conditional probability of A given B as the fraction of B's outcomes that also belong to A, and interpret the answer in terms of the model.
  • CCSS.MATH.CONTENT.HSS.CP.B.8Conditional Probability and the Rules of Probability(+) Apply the general Multiplication Rule in a uniform probability model, P(A and B) = P(A)P(B|A) = P(B)P(A|B), and interpret the answer in terms of the model.