Skills › Data & Probability

Two-Way Tables & Conditional Probability

On the test: GED MathHiSET MathACCUPLACER Math

Answer by: typing · multiple choice

Product bought by age group (number of customers)
Age groupPhoneTabletLaptopTotal
Under 3027716
30–4968822
50 and over1011324
Total18261862
Two different customers are chosen at random from the table, without replacement. What is the probability that both bought a laptop?
Choose an answer

Show the solution

Answer:

  1. First pick: 18 of the 62 customers qualify, so .
  2. Without replacement, one qualifying customer is gone: 17 left out of 61, so .
  3. Multiply: × = = .
Next problem →

Tip: press 1–4 to choose, Enter to check, N for the next problem.

Report a problem with this question

How it works

A two-way table sorts the same group two ways at once: rows for one question, columns for another, with totals at the edges.

  • P(A): the A total ÷ the grand total.
  • P(A and B): the one cell where A and B meet ÷ the grand total.
  • P(A | B), read "the probability of A given B": you already know B happened, so only the B row or column counts. Divide the cell by the B total, not the grand total.

Example: 40 of 100 people are adults, and 10 of those adults own a bike. P(bike | adult) = = , but P(adult and bike) = = .

Independent events: A and B are independent when P(A | B) = P(A): knowing B tells you nothing about A.

Multiplication rule: P(A and B) = P(A) × P(B | A). Picking twice with replacement, the second pick has the same chances as the first; without replacement, one fewer item is left, so subtract 1 from the count and from the total.

Worked example

Class format preference by grade (number of students)
GradeOnlineIn personTotal
9th grade29534
10th grade31536
11th grade235578
Total8365148
To the nearest whole percent, what percent of the students who prefer online classes are in 9th grade?

  1. The group is the students who prefer online classes: 83 in all, and 29 of them are in 9th grade.
  2. 29 ÷ 83 = 0.3494.
  3. As a percent: 34.94%, which rounds to 35%.

Answer: 35

Common mistakes

  • Dividing by the grand total after "given". 200 people, 60 women, 15 women walk to work. P(walks | woman) = 15/60 = 1/4. "Given" shrinks the group to the row total, not 200.
  • Using the column total instead of the row. If 40 people walk, 15/40 is P(woman | walks), a different question. Check which group the word "given" or "of the" names.
  • Using a row total for "and". "Woman and walks" is one cell out of everyone: 15/200 = 3/40. Only "given" changes the denominator.
  • Counting the overlap twice for "or". P(woman or walks) = (60 + 40 − 15) ÷ 200 = 85/200 = 17/40. Adding 60 + 40 counts the 15 walking women twice.

Two-Way Tables & Conditional Probability practice problems with answers

One problem at each level. Try it, then open the solution. For unlimited new problems, use the practice box above.

Basic

Patient outcomes by treatment (number of patients)
TreatmentImprovedNo changeGot worseTotal
New drug36615
Placebo13211448
Total16272063

One of the 63 patients in the table is chosen at random.

What is the probability that the patient received the placebo and got worse?
  1. A
  2. B
  3. C
  4. D
Show the answer and solution

Answer: A,

  1. "And" means both at once: the cell where the Placebo row meets the Got worse column, 14.
  2. Divide by everyone in the table, 63: P = = .

Standard

Preferred morning drink by home location (number of adults)
LocationCoffeeTeaNeitherTotal
City482648122
Suburbs552160136
Rural area344825107
Total13795133365
An adult is chosen at random from the table. What is the probability that the adult lives in the city or prefers tea (or both)?
  1. A
  2. B
  3. C
  4. D
Show the answer and solution

Answer: C,

  1. City row total: 122. Tea column total: 95.
  2. The 26 adults in both are counted in each total, so subtract them once: 122 + 95 − 26 = 191.
  3. P = .

Challenge

At a factory, of the parts come from Machine A. Of the parts from Machine A, are defective. What fraction of all the parts are defective parts from Machine A?
  1. A
  2. B
  3. C
  4. D
Show the answer and solution

Answer: B,

  1. This is "A and B" with B given A, so use the multiplication rule: P(A and B) = P(A) × P(B | A).
  2. × = .
  3. Adding the fractions would be wrong: the second fraction is only a part of the first group, not of everyone.