Conditional Probability Examples in Math

Start with the recap, study the fully worked examples, then use the practice problems to check your understanding of Conditional Probability.

This page combines explanation, solved examples, and follow-up practice so you can move from recognition to confident problem-solving in Math.

Concept Recap

The conditional probability P(AB)P(A|B) is the probability of event AA occurring given that event BB has already occurred.

If I know BB happened, what's the chance of AA? Updates probability with new info.

Read the full concept explanation →

How to Use These Examples

  • Read the first worked example with the solution open so the structure is clear.
  • Try the practice problems before revealing each solution.
  • Use the related concepts and background knowledge badges if you feel stuck.

What to Focus On

Core idea: P(AB)P(A|B) is the chance of AA once you restrict attention to only the cases where BB already happened.

Common stuck point: The procedure for conditional probability is the easy part; the trap is dividing by the whole sample space. Asking "Has some information already been revealed that shrinks the set of possible outcomes?" first is what keeps a correct-looking calculation from being attached to the wrong concept.

Sense of Study hint: Ask: Has some information already been revealed that shrinks the set of possible outcomes?

Worked Examples

Example 1

medium
In a class of 3030 students, 1818 play soccer, 1212 play basketball, and 66 play both. If a student plays soccer, what is the probability they also play basketball?

Answer

P(BS)=13P(B \mid S) = \frac{1}{3}

First step

1
We need P(BS)=P(BS)P(S)P(B \mid S) = \frac{P(B \cap S)}{P(S)}.

See the full worked solution + why-it-works coaching

SetupKey insightWhy it worksCommon pitfallConnection

Unlock answer keys One Family plan — every worked solution, all subjects

Example 2

hard
A test for a disease is 95%95\% accurate (true positive rate) with a 3%3\% false positive rate. If 1%1\% of the population has the disease, what is the probability a person who tests positive actually has the disease?

Example 3

medium
Of 200200 surveyed, 120120 own a dog and 8080 own a cat; 5050 own both. P(catdog)=?P(\text{cat}|\text{dog})=?

Example 4

medium
Show why P(AB)P(BA)P(A|B) \ne P(B|A) in general by example: P(A)=0.5,P(B)=0.1,P(AB)=0.05P(A)=0.5,P(B)=0.1,P(A\cap B)=0.05. Find both.

Example 5

hard
Among 10001000 patients, 100100 have disease DD. A test has 90%90\% sensitivity and 80%80\% specificity. Of those testing positive, how many actually have DD?

Example 6

challenge
Monty Hall: 33 doors, 11 prize. You pick door 11. Monty reveals a goat behind door 33. If you switch to door 22, P(win)=?P(\text{win})=?

Example 7

challenge
A pair of dice is rolled until the sum is 7 or 11. Find P(the stopping sum is 11)P(\text{the stopping sum is 11}).

Practice Problems

Try these problems on your own first, then open the solution to compare your method.

Example 1

medium
Two cards are drawn without replacement from a standard deck. Given that the first card is a king, what is the probability the second card is also a king?

Example 2

hard
A jar contains 66 red marbles and 44 blue marbles. Two marbles are drawn without replacement. Given that at least one marble is blue, what is the probability both marbles are blue?

Example 3

easy
A bag has 10 marbles, 4 of which are red. P(red)=?P(\text{red})=?

Example 4

easy
Of 20 students, 12 like math and 5 like both math and art. P(artmath)=?P(\text{art}|\text{math})=?

Example 5

easy
P(AB)=0.2P(A\cap B)=0.2 and P(B)=0.5P(B)=0.5. Find P(AB)P(A|B).

Example 6

easy
A die is rolled. Given the result is even, P(it is 6)=?P(\text{it is }6)=?

Example 7

easy
A card is drawn from 52. Given it is a heart, P(it is the ace)=?P(\text{it is the ace})=?

Example 8

easy
P(B)=0.4P(B)=0.4, P(AB)=0.5P(A|B)=0.5. Find P(AB)P(A\cap B).

Example 9

easy
In a class, P(passesstudied)=0.9P(\text{passes}|\text{studied})=0.9. If 20 studied, how many are expected to pass?

Example 10

easy
P(AB)=P(AB)P(B)P(A|B)=\frac{P(A\cap B)}{P(B)}. What must be true of P(B)P(B) for this to be defined?

Example 11

medium
A box has 5 red and 3 blue. Two are drawn without replacement. P(2nd red1st red)=?P(\text{2nd red}|\text{1st red})=?

Example 12

medium
60% of emails are spam; 80% of spam contains 'free'. P(spam and ’free’)=?P(\text{spam and 'free'})=?

Example 13

medium
A test is 95% accurate. P(positivedisease)=0.95P(\text{positive}|\text{disease})=0.95, P(disease)=0.02P(\text{disease})=0.02. Find P(disease and positive)P(\text{disease and positive}).

Example 14

medium
Table: of 100 people, 30 smoke; 18 of smokers have cough. P(coughsmoke)=?P(\text{cough}|\text{smoke})=?

Example 15

medium
Two dice rolled. Given the sum is 7, P(one die shows 3)=?P(\text{one die shows }3)=?

Example 16

medium
P(A)=0.3P(A)=0.3, P(B)=0.5P(B)=0.5, P(AB)=0.15P(A\cap B)=0.15. Find P(AB)P(A|B) and state if A,BA,B independent.

Example 17

medium
A jar: 7 green, 3 yellow. Draw two without replacement. P(both green)=?P(\text{both green})=?

Example 18

medium
In a deck, P(kingface card)=?P(\text{king}|\text{face card})=? (face cards: J, Q, K).

Example 19

medium
P(rain)=0.3P(\text{rain})=0.3, P(trafficrain)=0.7P(\text{traffic}|\text{rain})=0.7, P(trafficno rain)=0.2P(\text{traffic}|\text{no rain})=0.2. Find P(traffic)P(\text{traffic}).

Example 20

challenge
A test: P(+D)=0.9P(+|D)=0.9, P(+D)=0.1P(+|D')=0.1, P(D)=0.05P(D)=0.05. Find P(D+)P(D|+) (Bayes).

Example 21

challenge
Three urns equally likely. Urn contents: P(red)=0.2,0.5,0.8P(\text{red})=0.2,0.5,0.8. A red is drawn. P(urn 3red)=?P(\text{urn 3}|\text{red})=?

Example 22

challenge
Family has two children. Given at least one is a boy, P(both boys)=?P(\text{both boys})=?

Example 23

easy
P(AB)=0.12P(A \cap B) = 0.12 and P(B)=0.3P(B) = 0.3. Find P(AB)P(A|B).

Example 24

easy
A die is rolled. Given the result is odd, what is P(it is 3)P(\text{it is }3)?

Example 25

easy
A card is drawn from 5252. Given it is a face card (J, Q, K), what is P(queen)P(\text{queen})?

Example 26

easy
A coin is flipped twice. Given the first flip is heads, what is P(second is heads)P(\text{second is heads})?

Example 27

easy
A class has 2525 students; 1010 play soccer and 44 of those also play tennis. P(tennissoccer)=?P(\text{tennis}|\text{soccer})=?

Example 28

easy
P(B)=0.5P(B) = 0.5 and P(AB)=0.6P(A|B) = 0.6. Find P(AB)P(A \cap B).

Example 29

medium
Two dice are rolled. Given the sum is 88, what is P(a die shows 5)P(\text{a die shows }5)?

Example 30

medium
A box has 44 red and 66 blue balls. Two are drawn without replacement. Given the first is blue, P(second is blue)=?P(\text{second is blue})=?

Example 31

medium
70%70\% of customers want coffee; among them, 30%30\% also want pastry. P(coffee and pastry)=?P(\text{coffee and pastry})=?

Example 32

medium
A two-way table: 4040 students total. 2424 took the bus, 1616 walked. Among bus riders, 1818 ate breakfast. P(breakfastbus)=?P(\text{breakfast}|\text{bus})=?

Example 33

medium
P(A)=0.6P(A)=0.6, P(B)=0.5P(B)=0.5, P(AB)=0.3P(A\cap B)=0.3. Are A,BA,B independent? Answer 11 for yes.

Example 34

medium
A bag has 55 red, 33 green, 22 yellow. Two drawn without replacement. P(second is redfirst is green)=?P(\text{second is red}|\text{first is green})=?

Example 35

medium
P(snow)=0.2P(\text{snow})=0.2, P(accidentsnow)=0.4P(\text{accident}|\text{snow})=0.4, P(accidentno snow)=0.05P(\text{accident}|\text{no snow})=0.05. P(accident)=?P(\text{accident})=?

Example 36

medium
A family has 33 children. Given the eldest is a girl, P(all three are girls)=?P(\text{all three are girls})=? Assume independent and equally likely.

Example 37

hard
P(rare)=0.01P(\text{rare})=0.01, P(+rare)=0.99P(+|\text{rare})=0.99, P(+not rare)=0.05P(+|\text{not rare})=0.05. By Bayes' rule, P(rare+)=?P(\text{rare}|+)=? Round to 33 decimals.

Example 38

hard
Three coins flipped. Given at least two heads, P(all three heads)=?P(\text{all three heads})=?

Example 39

hard
Two dice rolled. Given at least one die shows 66, P(sum is 10)=?P(\text{sum is }10)=?

Example 40

hard
Two urns: Urn 1 has 33 red, 11 blue; Urn 2 has 11 red, 33 blue. An urn is chosen at random, then a ball. Given the ball is red, P(Urn 1)=?P(\text{Urn 1})=?

Example 41

challenge
A family has 22 children. Given that one of them is a boy born on a Tuesday, P(both are boys)=?P(\text{both are boys})=? (Independent, equally likely days and sexes.)

Example 42

hard
A die is rolled twice. Given the sum is at least 9, find P(first roll is 6)P(\text{first roll is 6}).

Example 43

challenge
A family has three children. Given at least one boy, find P(at least two boys)P(\text{at least two boys}). Assume each child independently is a boy with probability 1/21/2.

Example 44

challenge
A randomly chosen integer from 1 to 1000 is divisible by 5. Find P(also divisible by 6divisible by 5)P(\text{also divisible by 6}\mid\text{divisible by 5}).

Background Knowledge

These ideas may be useful before you work through the harder examples.

probabilityindependent events