Steply

Young people: 26 drink tea and 24 drink coffee; older people: 15…

Step by step, with the reason for every step · AP Statistics Practice Exam 2 · AP Statistics

Step by step

The question

Question: young: 26 tea, 24 coffee; old: 15 tea, 35 coffee: at the 5% level, is the answer linked to the group?

young: 26 tea, 24 coffee; old: 15 tea, 35 coffee; α = 0.05

There are four choices.

First we solve it, the normal way.

Then we pick.

1 Write the hypotheses

H₀ is the "nothing new" idea.

Here: the group and the answer are independent.

H0 : the group and the answer are independent

Hₐ is what we want to show.

Here: the group and the answer are linked.

Ha : the group and the answer are linked

Independent means no link: the answer does not depend on the group.

independent: no link, the answer does not depend on the group

2 Totals

The counts in a table.

Each row's total: young, 50; old, 50.

Each column's total: tea, 41; coffee, 59.

And everyone: 100.

3 Expected counts

If there is no link, every row has the same share of each column as everyone does.

The column total over the grand total is that share.

Times the row total: the row total times the column total, over the grand total.

E = row total × column totaltotal

Young, tea: 50 times 41, over 100, is 20.5.

young, tea: 50 × 41 ÷ 100 = 20.5

Young, coffee: 50 times 59, over 100, is 29.5.

young, coffee: 50 × 59 ÷ 100 = 29.5

Old, tea: 50 times 41, over 100, is 20.5.

old, tea: 50 × 41 ÷ 100 = 20.5

Old, coffee: 50 times 59, over 100, is 29.5.

old, coffee: 50 × 59 ÷ 100 = 29.5

4 Each part

Chi-square adds up, for each cell, the observed minus the expected, squared, over the expected.

Squared, so misses up and down do not cancel.

Over the expected, so a miss counts more when we expected only a few.

χ2 = add up all (O − E)2E

A table: each cell, what we saw, O, and what we expected, E.

26 minus 20.5 is 5.5.

Squared, 30.25.

Over 20.5: 1.4756.

24 minus 29.5 is −5.5.

Squared, 30.25.

Over 29.5: 1.0254.

15 minus 20.5 is −5.5.

Squared, 30.25.

Over 20.5: 1.4756.

35 minus 29.5 is 5.5.

Squared, 30.25.

Over 29.5: 1.0254.

5 Add them

1.4756 plus 1.0254 plus 1.4756 plus 1.0254 is 5.002.

χ2 = 1.4756 + 1.0254 + 1.4756 + 1.0254 = 5.002

6 The cut-off

df is rows minus 1, times columns minus 1: with the totals known, only that many cells can be filled freely.

1 times 1 is 1.

df = (rows − 1)(columns − 1) = (2 − 1)(2 − 1) = 1

Careful!

Not the number of cells minus 1.

Rows minus 1, times columns minus 1: 1.

The right way: df = (rows − 1)(columns − 1) = (2 − 1)(2 − 1) = 1.

Careful: not df = 3 ✗
right: df = (rows − 1)(columns − 1) = (2 − 1)(2 − 1) = 1 ✓

Chi-square is always a right-tail test: big means far from what we expected.

Row 1, column 0.05.

Row 1, column .05: the cut-off is 3.841.

7 Decide

The chi-square curve for df 1.

Past the cut-off, 3.841, is the reject part.

5.002 is past the cut-off.

So we reject H zero.

χ2 = 5.002 > 3.841 → reject H0

8 Say it in words

At the 5% level, there is enough evidence that

In words: at the 5% level, there is enough evidence that the group and the answer are linked.

the group and the answer are linked.

9 Check

Let's check: the expected counts give the same row totals.

Young: 20.5 plus 29.5 is 50.

young: E 20.5 + 29.5 = 50 = 50

Old: 20.5 plus 29.5 is 50.

So it is right!

old: E 20.5 + 29.5 = 50 = 50

10 Pick the choice

Our answer is reject H₀.

That is choice C.

C) Reject H0

11 Why not the others

A is Do not reject H0.

Wrong: χ² ≈ 5.00 is more than 3.841.

A) Do not reject H0 ✗ χ² ≈ 5.00 is more than 3.841

B is Accept H0.

Wrong: a test never shows H0 is true.

B) Accept H0 ✗ a test never shows H0 is true

D is Accept Ha because more older people drink coffee.

Wrong: the test decides, not the look of the counts.

D) Accept Ha because more older people drink coffee ✗ the test decides, not the look of the counts

Let's look back.

First: write the hypotheses.

Then: totals.

Then: expected counts.

Then: each part.

Then: add them.

Then: the cut-off.

Then: decide.

Then: say it in words.

Then: check.

Then: pick the choice.

Last: why not the others.

Answer
χ2 = 5.002 > 3.841 → reject H0

Your turn

Try this one yourself, then check your answer:

young: 48 tea, 52 coffee; old: 70 tea, 30 coffee; α = 0.05
Show the answer
reject H0

More from AP Statistics Practice Exam 2

The whole lesson: AP Statistics Practice Exam 2 →