Probability and conditional probability · Lesson 3

Conditional probability: given that

Some questions choose from only part of the group. Phrases such as given that the member is under 30, if a member who prefers the long trail is selected at random and of the members under 30 all work the same way: the random choice happens inside the smaller group they name, so that group's total becomes the denominator. This is conditional probability. A phrase such as one of these members names no smaller group, so it means everyone, and the grand total stays the denominator.

Work in three steps. 1. Find the group the condition names. 2. Its total, usually a row total or a column total, is the denominator. 3. Inside that group, find the cell the question asks about. That cell is the numerator.

If the condition covers more than one row or column, such as not under 30 in a table with three age groups, add those rows' totals for the denominator and add the matching cells for the numerator.

Here is the hiking club table from Lesson 2 again.

Members of a hiking club, by age group and preferred trail
Age groupShort trailLong trailTotal
Under 30142236
30 and over311344
Total453580

Given that a member is under 30, the probability that the member prefers the long trail is 2236=1118\frac{22}{36} = \frac{11}{18}. The condition picks the under-30 row, whose total is 36.

Swap the condition and the answer changes. Given that a member prefers the long trail, the probability that the member is under 30 is 2235\frac{22}{35}. Now the condition picks the long-trail column, whose total is 35.

With no condition, the choice is from the whole club: the probability that a member is under 30 and prefers the long trail is 2280\frac{22}{80}. Three questions, one cell, three different totals. The words around the cell decide which total you use.

Worked example Easy

The table shows how the 150 visitors to a museum on one day bought their tickets.

VisitorOnlineAt the doorTotal
Adult563490
Student411960
Total9753150

If one of the student visitors is selected at random, what is the probability that the student bought a ticket online?

  1. 41150\frac{41}{150}
  2. 4197\frac{41}{97}
  3. 4160\frac{41}{60}Answer
  4. 1960\frac{19}{60}

How to solve it

  1. The visitor is chosen from the students only, so the total is the Student row total, 60.
  2. Inside that row, the students who bought online: 41.
  3. Probability =4160= \frac{41}{60}.

Why each choice is right or wrong

  • A. Incorrect. This uses the grand total, 150: 41150\frac{41}{150}. That is the probability that a visitor chosen from everyone is a student who bought online. This visitor is chosen from the 60 students.
  • B. Incorrect. This divides by 97, the Online column total: 4197\frac{41}{97}. That is the probability that an online buyer is a student, which reverses the condition.
  • C. Correct. The choice is from the 60 students, and 41 of them bought online, so the probability is 4160\frac{41}{60}.
  • D. Incorrect. 19 students bought at the door, so 1960\frac{19}{60} is the probability that the student did not buy online.

Worked example Hard

A clinic tried a new screening test on 400 patients and then checked which patients actually have a certain allergy. The results are shown.

Screening resultHas the allergyDoes not have the allergyTotal
Positive6337100
Negative7293300
Total70330400

If one of the patients who have the allergy is selected at random, what is the probability that the patient's screening result was positive?

  1. 63400\frac{63}{400}
  2. 63100\frac{63}{100}
  3. 110\frac{1}{10}
  4. 910\frac{9}{10}Answer

How to solve it

  1. The condition is has the allergy. That is a column, so the total is the column total, 70.
  2. Inside that column, the positive results: 63.
  3. Probability =6370=910= \frac{63}{70} = \frac{9}{10}.
  4. The Positive row total, 100, answers the reverse question: given a positive result, the probability of having the allergy is 63100\frac{63}{100}. This question's condition is the allergy, so use its column.

Why each choice is right or wrong

  • A. Incorrect. This uses the grand total, 400: 63400\frac{63}{400}. That is the probability that a patient chosen from everyone has the allergy and tested positive. This patient is chosen from the 70 with the allergy.
  • B. Incorrect. This divides by 100, the Positive row total: 63100\frac{63}{100}. That is the probability that a patient with a positive result has the allergy, the condition reversed. The patient here is chosen from those who have the allergy, so the total is 70.
  • C. Incorrect. 7 of the 70 patients with the allergy tested negative, so 770=110\frac{7}{70} = \frac{1}{10} is the probability of a negative result.
  • D. Correct. 63 of the 70 patients who have the allergy tested positive, and 6370=910\frac{63}{70} = \frac{9}{10}.

Trap Using the grand total after a condition

Once the question names a smaller group (given that the student is in the band, of the seniors, if one of the bus riders is selected), the grand total is the wrong denominator. The cell over the grand total is often one of the choices.

Trap Reading the row when the condition is the column

Every cell sits in a row and a column, so it has two possible conditional totals. Ask which group the person is chosen from. In the clinic example, a patient who has the allergy names a column. Dividing by the Positive row total answers the reverse question. The two answers match only when the row total and the column total happen to be equal.

Desmos When Desmos isn’t faster

No graph helps here. The skill is choosing the right total, and that comes from reading the question's wording against the table.

Once you have the fraction, simplifying it by hand is quick. If the answer choices are decimals, type the fraction in Desmos to see its decimal value.