courses › Probability & Statistics

Conditional probability

level 29 course

Chances that change once you know something.

Pen and paper is fine · no calculator needed why?

Learn first (about 3 minutes)

Opens at level 29.

Sign in to start

Builds on: Combined events (not open yet)

the lesson

The idea, the techniques and a tip for each skill, right here. The Learn page adds worked examples for every skill and untimed practice.

Read the lesson · about 3 minutes

The idea

A conditional probability is a chance once you know something. "Given they bought online" shrinks the world to the online buyers, and the answer is a share of that smaller group. Direction matters: "returned, given online" and "online, given returned" are different questions.

A test that catches 90% of a rare condition can still give mostly false alarms, because the healthy group is so much bigger.

Techniques

Shrink to the given group

Counts in a table, and the question says "given".

  1. The group named after "given" is your new total.
  2. Count the ones in it who also have the outcome.
  3. Divide and reduce.
worked example

Example: Of 100 shoppers, 30 bought online and returned something, 20 bought online and returned nothing, and 50 bought in store. What is the probability a shopper returned something, given they bought online?

  1. Online buyers: 30 + 20 = 50.
  2. Of those, 30 returned something: 30/50 = 3/5.

Answer: 3/5

Weight each branch

First a box is picked, then a ball is drawn from it.

  1. Each box: the chance of picking it × the chance of the outcome from it.
  2. Add the results for the boxes.
worked example

Example: You pick Box A or Box B with equal chance and draw one ball. A holds 1 red of 2 balls; B holds 3 red of 4. What is the probability it is red?

  1. Box A: 1/2 × 1/2 = 1/4.
  2. Box B: 1/2 × 3/4 = 3/8.
  3. 1/4 + 3/8 = 2/8 + 3/8 = 5/8.

Answer: 5/8

Picture 1,000 people

A positive test, flag or inspection result.

  1. Split the crowd by the base rate.
  2. Apply the hit rate to those who have it and the false-alarm rate to the rest.
  3. Divide the real positives by all the positives.
worked example

Example: 2% of people have a condition. A test catches 90% of people who have it, and wrongly flags 10% of people who don’t. You test positive. What is the probability you have it? Answer as a fraction.

  1. Of 1,000 people, 20 have it and 18 of those test positive.
  2. Of the other 980, 98 test positive.
  3. 18 real out of 116 positives: 18/116 = 9/58.

Answer: 9/58

Tips by skill

  • TipFrom a table: Find the group after "given". Its total goes on the bottom; the ones in it with the outcome go on top.
  • TipTwo-stage chance: Multiply along each branch, box chance × outcome chance, then add the branches.
  • TipTest results (Bayes): Picture 1,000 or 10,000 people. Count real positives and false alarms, then real ÷ all positives.

Watch out for

  • Dividing by everyone instead of the given group.
  • Pooling the balls from two boxes as if they were in one box.
  • Reading "catches 90% of people who have it" as "a positive is 90% likely to be real".

skills · practice stats

From rounds of this course only: box, review and test-out answers are left out. Once a skill has 40 tries, it compares your first 20 tries with your last 20.

rest ladder

Win 3 of your last 4 rounds and the course rests. A win is 90% right, within 2× the round's par. Pass the review when it comes back and the next rest is longer.

  1. 1 day
  2. 3 days
  3. 7 days
  4. 14 days
  5. 30 days
  6. 60 days
  7. mastered · every 90 days

your rounds

No rounds yet.