Probability and conditional probability · Lesson 2

Two-way tables: and, or

A two-way table sorts one group by two questions at once. In the table below, each row is an age group and each column is a preferred trail. A cell, such as 22, counts the members who fit both its row and its column: under 30 and prefer the long trail. The Total row and column add up the cells, and the corner, 80, is everyone in the club.

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

And means one cell. If a member is chosen at random from the whole club, the probability that the member is under 30 and prefers the long trail is 2280=1140\frac{22}{80} = \frac{11}{40}.

One category uses a total. The probability that a member is 30 or over is 4480=1120\frac{44}{80} = \frac{11}{20}, from the end of that row.

Or means anyone in either category, each counted once. For under 30 or prefers the long trail, add the under-30 row total and the long-trail column total, then subtract the cell they share: 36+35−22=4936 + 35 - 22 = 49. The 22 members who fit both are inside both totals, so without the subtraction they count twice. You can also add the separate cells: 14+22+13=4914 + 22 + 13 = 49. The probability is 4980\frac{49}{80}. Two rows, or two columns, share no cell, so for an or between them you just add their totals.

In math, or includes the people who fit both. A question that wants only one of the two says so, for example but not both.

If a table has no totals, add them yourself first. Check that the row totals and the column totals add up to the same grand total.

Worked example Easy

The table shows the 105 students in a school's band and choir, by grade. Each student is in exactly one of the two groups.

GradeBandChoirTotal
10th182745
11th322860
Total5055105

If one of these students is selected at random, what is the probability that the student is in 11th grade and in the choir?

  1. 415\frac{4}{15}Answer
  2. 715\frac{7}{15}
  3. 2855\frac{28}{55}
  4. 2935\frac{29}{35}

How to solve it

  1. And means one cell: the 11th-grade row and the choir column. That cell is 28.
  2. The student is chosen from all the students, so the total is the corner, 105.
  3. Probability =28105=415= \frac{28}{105} = \frac{4}{15}.

Why each choice is right or wrong

  • A. Correct. 28 students are in 11th grade and in the choir, out of 105 students, and 28105=415\frac{28}{105} = \frac{4}{15}.
  • B. Incorrect. This divides 28 by 60, the 11th-grade total: 2860=715\frac{28}{60} = \frac{7}{15}. That would be the answer for a student chosen only from the 11th graders, but this student is chosen from all 105.
  • C. Incorrect. This divides 28 by 55, the choir total: 2855\frac{28}{55}. That would be the answer for a student chosen only from the choir.
  • D. Incorrect. This is the probability of 11th grade or choir: 60+55−28=8760 + 55 - 28 = 87, and 87105=2935\frac{87}{105} = \frac{29}{35}. And needs both at once, which is the single cell.

Worked example Medium

A survey asked 160 adults whether they own a bike and whether they own a car. The results are shown.

Survey answerOwns a carNo carTotal
Owns a bike264470
No bike306090
Total56104160

If one of these adults is selected at random, what is the probability that the adult owns a bike or owns a car (or both)?

  1. 1380\frac{13}{80}
  2. 3780\frac{37}{80}
  3. 58\frac{5}{8}Answer
  4. 6380\frac{63}{80}

How to solve it

  1. Bike owners: the row total, 70. Car owners: the column total, 56.
  2. The 26 adults who own both are in both totals. Add the totals and subtract them once: 70+56−26=10070 + 56 - 26 = 100.
  3. Check by adding the separate cells, 26+44+30=10026 + 44 + 30 = 100, or by removing the 60 adults who own neither: 160−60=100160 - 60 = 100.
  4. Probability =100160=58= \frac{100}{160} = \frac{5}{8}.

Why each choice is right or wrong

  • A. Incorrect. 26160=1380\frac{26}{160} = \frac{13}{80} is the probability of owning a bike and a car. Or includes everyone who owns either one.
  • B. Incorrect. This counts only the adults who own exactly one of the two: 44+30=7444 + 30 = 74, and 74160=3780\frac{74}{160} = \frac{37}{80}. The question says or both, so the 26 adults who own both count too.
  • C. Correct. 70+56−26=10070 + 56 - 26 = 100 adults own a bike, a car or both, and 100160=58\frac{100}{160} = \frac{5}{8}.
  • D. Incorrect. This adds the bike total and the car total, 70+56=12670 + 56 = 126, without subtracting the 26 adults who are in both. They are counted twice, which gives 126160=6380\frac{126}{160} = \frac{63}{80}.

Trap Counting the overlap twice

Adding a row total and a column total counts their shared cell twice. Subtract it once, or add the separate cells instead. The double-counted answer is often one of the choices, and it can still be less than 1, so it won't always look wrong.

Trap Using a row or column total for and

When the choice is from everyone, and is a single cell over the grand total. Dividing that cell by its row or column total answers a different question, one with given that, which Lesson 3 covers.

Desmos When Desmos isn’t faster

There is nothing to graph. Finding the right cells and totals is the whole question, and that happens on the table.

Desmos can still do the adding. Type a line such as 70 + 56 − 26 to check an or count, or type the final fraction to see its decimal value when the choices are decimals.