Conditional probability

Lessons and exercises follow the school system and stay in its language.Les leçons et les exercices suivent le système scolaire et restent dans sa langue.Lektionen und Übungen folgen dem Schulsystem und bleiben in seiner Sprache.

About this lesson

Geometry › Conditional probability

To save a PDF, choose “Save as PDF” in the print dialog.

Sources and credits

Written with this source as a starting point:

sedifier rewrote the text and added its own examples and exercises.

Written with AI assistance; every answer is checked by our math engine. Not yet reviewed by a teacher.

This lesson: CC BY-SA 4.0, © sedifier · All credits

Conditional probability

Conditional probability. probability, two-way tables, independent events, conditional probability

Warm-up

Three quick questions from earlier lessons.

  1. In a class of 35 students, 12 are girls, 12 play soccer and 2 girls play soccer. A student is chosen at random. Find P(girl or soccer player).
  2. Events A and B are mutually exclusive, with P(A) = 0.31 and P(B) = 0.24. Find P(A and B).
  3. A spinner lands on red with probability 0.20 and on blue with probability 0.10. Find P(red or blue).

Discover

Of 100 students, 40 take French; 10 of those also take Spanish. Among the French students, what is the probability of taking Spanish?

  1. 1040\tfrac{10}{40}
  2. 10100\tfrac{10}{100}

Key idea

Conditioning shrinks the sample space.

P(A∣B)=P(A and B)P(B)P(A \mid B) = \dfrac{P(A \text{ and } B)}{P(B)}: the probability of AA among the outcomes in BB. In general P(A∣B)≠P(B∣A)P(A \mid B) \ne P(B \mid A).

Worked example

P(rain) = 0.3, P(late) = 0.2, P(rain and late) = 0.12.

P(late∣rain)=0.120.3=0.4P(\text{late} \mid \text{rain}) = \tfrac{0.12}{0.3} = 0.4
Divide by P(rain).
P(rain∣late)=0.120.2=0.6P(\text{rain} \mid \text{late}) = \tfrac{0.12}{0.2} = 0.6
Divide by P(late).
Two different numbers
Different conditions.

Your turn, guided

Your turn: P(A and B) = 0.1, P(B) = 0.4. Find P(A | B).

0.250.25
0.1 ÷ 0.4.

Practice ★

  1. P(A) = 0.60, P(B) = 0.22 and P(A and B) = 0.5. Find P(A | B).
  2. P(A) = 0.55, P(B) = 0.33 and P(A and B) = 0.13. Find P(A | B).
  1. A screening test was given to 316 people: 47 had the disease and tested positive, 8 had the disease and tested negative, 34 did not have it and tested positive, 227 did not have it and tested negative. Find P(disease | positive).
  2. A screening test was given to 256 people: 33 had the disease and tested positive, 7 had the disease and tested negative, 21 did not have it and tested positive, 195 did not have it and tested negative. Find P(disease | positive).

Watch out!

Practice ★★

  1. A test detects a disease in 87% of people who have it. Which statement says the same thing?
    1. P(positive | disease) = 0.87
    2. P(disease | positive) = 0.87
    3. P(disease and positive) = 0.87

Exit ticket

Three questions to check you have got it.

  1. A screening test was given to 316 people: 47 had the disease and tested positive, 8 had the disease and tested negative, 34 did not have it and tested positive, 227 did not have it and tested negative. Find P(disease | positive).
  2. A screening test was given to 256 people: 33 had the disease and tested positive, 7 had the disease and tested negative, 21 did not have it and tested positive, 195 did not have it and tested negative. Find P(disease | positive).
  3. A screening test was given to 239 people: 57 had the disease and tested positive, 3 had the disease and tested negative, 29 did not have it and tested positive, 150 did not have it and tested negative. Find P(disease | positive).

Summary card

Conditional probability

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

Watch out: P(A∣B)P(A \mid B) and P(B∣A)P(B \mid A) are different.

One more step is optional: a challenge. Try it, or finish the lesson now.

Challenge ★★★

  1. P(A)=0.5P(A) = 0.5, P(B∣A)=0.8P(B \mid A) = 0.8 and P(B)=0.6P(B) = 0.6. Find P(A∣B)P(A \mid B).
Sources and credits

Written with this source as a starting point:

sedifier rewrote the text and added its own examples and exercises.

Written with AI assistance; every answer is checked by our math engine. Not yet reviewed by a teacher.

This lesson: CC BY-SA 4.0, © sedifier · All credits