Steply

Two-way table: boys 5 yes 15 no, girls 10 yes 10 no; P(girl and yes)

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: yes or no?

Boys: 5 yes, 15 no.

Girls: 10 yes, 10 no.

One person is picked at random.

Find P(girl and yes).

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: 5 plus 15 is 20.

10 plus 10 is 20.

Column totals: 15 and 25.

And 40 people in all.

The totals sit at the edges, in the margins.

totals: at the edges (the margins)

2 One cell over all

Girl and yes: both at once.

That is one cell, 10.

Out of everyone, 40.

So P of girl and yes is 10/40.

P(girl and yes) = 1040

Careful!

And means out of everyone: 40.

Over 15 would be given yes.

Careful: not 1015 ✗

Both 10 and 40 can be divided by 10.

That makes it simpler.

P(girl and yes) = 10 ÷ 1040 ÷ 10

So it is 1/4.

P(girl and yes) = 14

3 Check

Let's check.

The four cells add up to 40, everyone.

The table is right.

5 + 15 + 10 + 10 = 40 ✓

And the and rule: P of girl, 20/40, times P of yes given girl, 10/20.

The 20s cancel: 10/40.

So the answer is right!

P(girl) × P(yes | girl) = 2040 × 1020 = 1040

Let's look back.

First: make the table.

Then: one cell over all.

Last: check.

Answer
P(girl and yes) = 14

Your turn

Try this one yourself, then check:

Show the answer
P(girl and yes) = 27

More from Two-way tables

The whole lesson: Two-way tables →