Skip to content
One hour with George, then a written plan the next working day. Book yours.

Conditional probability problems

Conditional probability answers one question: if you already know that one thing happened, how likely is another? The knowledge shrinks the set of outcomes you must consider, and the answer is the share of that smaller set where the second event also holds. Nearly every problem on the topic is a version of that single move, so learn the move before the formulas.

For students and parents planning test prep or coursework: one hour with George Li, one to one by video, is $180, $200 or $160, by subject. You leave with a written plan within one working day.

Book your first session
Our own practice item
A verbal problem: percentages in, a conditional out

At a school, 45% of students take Spanish, and 18% of all students take both Spanish and music. What is the probability that a student takes music, given that the student takes Spanish?

  1. Name the events: S is "takes Spanish" and M is "takes music."
  2. Write what you know: P(S) = 0.45 and P(S and M) = 0.18.
  3. Apply the formula, with S as the condition: P(M | S) = 0.18 divided by 0.45.
  4. Divide: 0.18 divided by 0.45 is 0.40.

Answer 0.40, or 40%. Among Spanish students, two in five take music.

Original problem by George Li Tutoring; the arithmetic is shown

What does "given" do?

Write P(A | B) for the chance that A happens once B is known. Read the bar as "given." Everything after the bar is the new universe: once B is known, outcomes outside B are gone. Inside B, you ask what fraction also belongs to A.

Work it as a fraction. On top goes the overlap of the two events, and underneath goes P(B), the whole new universe, which must be above zero.

Two facts follow at once. Turning the fraction around gives the multiplication rule, P(A and B) = P(B) times P(A | B), which gives the chance of two things happening in sequence. And the order matters: comparing P(A | B) against P(B | A) usually shows two different numbers, because the same overlap is divided by different totals.

Two events are independent when learning one tells you nothing about the other, which means P(A | B) equals P(A). When that holds, the product rule collapses, and the chance of both is simply P(A) times P(B). Check independence by testing it before you use the shortcut.

What forms do the problems take?

Information arrives in three shapes, and the skill is translating each into the same formula.

  • Words and percentages. Name the events, write what each number means in symbols, and decide which event follows the bar.
  • A two-way table. Pick the row or the column named by the condition and ignore the rest. The answer is a count in that row divided by the row's total.
  • A tree or a sequence of draws. Each branch is a conditional probability, and you multiply along a path to get the chance of that whole path. When draws are made without replacement, the counts change after each pull.

Worked example: A two-way table, and why the order matters. A survey of 300 commuters recorded how each person travels and whether they arrived on time.

What forms do the problems take?
Travel modeOn timeLateTotal
Train10218120
Bus7030100
Bike76480
Total24852300

Find the probability that a bus rider was late, and the probability that a late commuter rode the bus.

  1. Late, given bus: restrict to the bus row. 30 of its 100 riders were late, so the probability is 30 divided by 100, which is 0.30.
  2. Bus, given late: restrict to the late column. 30 of its 52 commuters rode the bus, so the probability is 30 divided by 52, which is about 0.577.

Answer: 0.30 and about 0.577. The same count, 30, sits on top both times. The bottoms differ, because the conditions differ.

Source: Original problem by George Li Tutoring; the table is made up for this page.

Worked example: Draws without replacement. A bag holds 5 red marbles and 3 blue marbles. Two are drawn one after the other without putting the first back. What is the chance both are red, and what is the chance the second is blue once you know the first was red?

  1. First draw red: 5 of 8 marbles, so 5/8.
  2. Second red, given the first was red: 4 red remain among 7, so 4/7.
  3. Both red: multiply, 5/8 times 4/7 is 20/56, which simplifies to 5/14, about 0.357.
  4. Second blue, given first red: 3 blue remain among 7, so 3/7, about 0.429.

Answer: 5/14 for both red, and 3/7 for blue second given red first. Notice that the second answer uses the changed bag, not the original one.

Source: Original problem by George Li Tutoring; the arithmetic is shown.

How do you combine branches?

When a problem has several routes to one result, add the routes, and when it asks you to run the logic backward, divide one route by the total. This is the law of total probability followed by Bayes' rule.

Worked example: Running a tree backward. Machine A makes 60% of a factory's items and machine B makes 40%. Two percent of A's items are defective and 5% of B's are. An item is picked at random and found defective. What is the probability that B made it?

  1. Chance an item is defective and from A: 0.60 times 0.02 is 0.012.
  2. Chance an item is defective and from B: 0.40 times 0.05 is 0.020.
  3. Add the two routes to a defect: 0.012 plus 0.020 is 0.032.
  4. Divide B's route by the total: 0.020 divided by 0.032 is 0.625.

Answer: 0.625. B makes only 40% of the items but accounts for 62.5% of the defects, because its defect rate is higher.

Source: Original problem by George Li Tutoring; the defect rates are made up for this page.

Which mistakes cost the most points?

Common errors in conditional probability and the fix for each
ErrorWhat it looks likeFix
Swapping the conditionDividing by the wrong total, as when 30/52 was used for the bus-rider questionCircle what comes after "given" and divide by that
Using the original totalUsing 5/8 again for the second drawUpdate the counts after each draw without replacement
Assuming independenceMultiplying P(A) and P(B) without a testCheck whether P(A given B) equals P(A) first
Adding when you should multiplyAdding along a path of a treeMultiply along a path, add across paths
Reporting a bare numberWriting 0.625 and stoppingSay in a sentence what the number is a probability of

Source: Our own list, from the problems on this page and common student errors. The first row is the most frequent: it trades one of those two conditionals for the other.

Can you try some on your own?

Work these first, then compare. The numbers in the last item are made up.

  1. Sixty percent of customers buy coffee, and 24% buy coffee and a muffin. Find the probability that a customer buys a muffin, given that the customer buys coffee.
  2. In item 1, suppose 40% of all customers buy a muffin. Are coffee and muffin purchases independent?
  3. Two cards are dealt from an ordinary deck of 52 and are not put back. How likely is it that both are aces?
  4. A class of 200 has 120 girls and 80 boys. In the choir are 66 girls and 24 boys. Find the probability that a choir member is a girl, and the probability that a girl is in the choir.
  5. 1 in 100 people have a condition. A test is positive for 95% of people who have it and for 4% of people who do not. Find the probability that a person with a positive test has the condition.
Answers to the five practice items
ItemAnswerKey step
10.400.24 divided by 0.60
2YesThe answer to item 1, 0.40, equals the 40% for all customers
31/221, about 0.00454/52 times 3/51
466/90, about 0.733, and 66/120, which is 0.55The first divides by the choir, the second by the girls
5About 0.1930.0095 divided by 0.0095 plus 0.0396, which is 0.0491

Source: Computed by George Li Tutoring and checked by hand. Item 5 uses made-up rates. A small base rate keeps the answer low even for an accurate test.

Item 5 is why the topic matters outside the classroom. A test that is right 95 percent of the time can still produce mostly false alarms when the condition is rare, because the rare group is small. Reading a statistic means asking which total it divides by.

If your course is AP® Statistics, free-response answers also need the events named, the rule stated and the result interpreted in context. See the high school and AP® course tutoring page for how sessions work, or the calculus and statistics practice problems for more sets.

When does a tutor help?

A tutor helps when you set up problems wrongly twice in a row, or when you can follow a solution and still cannot start one. A session starts from a missed problem and ends with similar ones for the week. See the packages page for prices, or book a first session. The study-hour planner places the practice in your weeks.

Common questions

What does P(A | B) mean?

The chance that A occurs when you already know B has occurred. Only outcomes inside B count.

Does swapping the two events leave the answer unchanged?

No. Both use the same overlap but divide it by different totals, so the results usually differ.

How do I know two events are independent?

Check whether P(A | B) equals P(A). If it does, knowing B tells you nothing about A.

When do I use a tree diagram?

When the problem gives probabilities in stages, or asks you to work backward from a result to its cause.

Sources