Steply

Two-way table: boys 12 cat 8 dog, girls 10 cat 20 dog; P(dog)

Step by step, with the reason for every step · Two-way tables · Probability

Step by step

The question

Question: A survey asked boys and girls: cat or dog?

Boys: 12 cat, 8 dog.

Girls: 10 cat, 20 dog.

One person is picked at random.

Find P(dog).

1 Make the table

One row for each group, one column for each answer, and a total for each.

The four counts go inside.

Row totals: 12 plus 8 is 20.

10 plus 20 is 30.

Column totals: 22 and 28.

And 50 people in all.

The totals sit at the edges, in the margins.

totals: at the edges (the margins)

2 A total over all

All the dog: 28.

Everyone: 50.

So P of dog is 28/50.

P(dog) = 2850

Careful!

The bottom is everyone, 50.

Not only the other 22.

Careful: not 2822 ✗

Both 28 and 50 can be divided by 2.

That makes it simpler.

P(dog) = 28 ÷ 250 ÷ 2

So it is 14/25.

P(dog) = 1425

3 Check

Let's check.

The four cells add up to 50, everyone.

The table is right.

12 + 8 + 10 + 20 = 50 ✓

And the two cells of dog add up to its total: 8 plus 20 is 28.

So the answer is right!

850 + 2050 = 2850 = P(dog)

Let's look back.

First: make the table.

Then: a total over all.

Last: check.

Answer
P(dog) = 1425

Your turn

Try this one yourself, then check:

Show the answer
P(dog) = 12

More from Two-way tables

The whole lesson: Two-way tables →