Steply

Test mean1 < mean2: mean 7.4, sd 2, n 64 and mean 8, sd 2.4, n 36…

Step by step, with the reason for every step · Comparing two groups · University Statistics

Step by step

The question

Question: group 1 has mean 7.4, SD 2 and size 64; group 2 has mean 8, SD 2.4 and size 36: at the 5% level, is the first mean less than the second?

μ1 < μ2? x̄1 = 7.4, σ1 = 2, n1 = 64; x̄2 = 8, σ2 = 2.4, n2 = 36

The SDs of all the numbers in each group are known.

σ1, σ2: the SDs of all the numbers, known

1 Write the hypotheses

H₀ is the "nothing new" idea: it has the equal sign.

Here: the two means are the same, so the difference is 0.

H0 : μ1 = μ2

Hₐ is what we want to show.

Here: the first mean is less than the second.

Ha : μ1 < μ2

Less than: one tail, the left end.

one tail: the left end

2 Standard error

The standard error of the difference: add the two variances, sigma squared over n, then the square root.

SE = √σ12n1 + σ22n2

2 squared over 64 is 0.0625.

2.4 squared over 36 is 0.16.

Together 0.2225, and the square root is about 0.4717.

SE = √2264 + 2.4236 = √0.0625 + 0.16 = √0.2225 ≈ 0.4717

Careful!

Add the variances, then take the square root.

Do not add the two SDs.

Careful: not SE = 0.25 + 0.4 = 0.65 ✗

3 The test number

z is the difference of the means over the SE.

7.4 minus 8 is −0.6.

Divided by 0.4717: about −1.27.

z = x̄1 − x̄2SE = 7.4 − 80.4717 ≈ −1.27

4 The p-value

The p-value is the chance of getting a sample this far out, if H zero is true.

p-value: the chance of a sample this far out, if H0 is true

On the bell of H zero: 0 in the middle, our sample at z = −1.27.

We shade the left end, from our z down.

The z-table gives the area to the left of z.

Row −1.2, column .07.

For z = −1.27: the row −1.2 and the column .07 meet at 0.1020.

The left end is the table number itself: 0.1020.

p-value = 0.1020

5 Decide

The p-value, 0.1020, is more than alpha, 0.05.

Our sample is not rare enough.

So we do not reject H zero.

= p-value 0.1020 > α = 0.05 → do not reject H0

6 Say it in words

At the 5% level, there is not enough evidence that

In words: at the 5% level, there is not enough evidence that the first mean is less than the second.

the first mean is less than the second.

This does not prove H zero is true.

We just cannot rule it out.

not rejecting H0 does not prove H0

7 Check

Let's check the other way, with the cut-off.

0.05 in the left end gives the cut-off −1.645.

0.05 in one end: cut-off −1.645

z is −1.27: not past the cut-off.

The same decision.

So it is right!

z = −1.27 > −1.645: not past it, do not reject

Let's look back.

First: write the hypotheses.

Then: standard error.

Then: the test number.

Then: the p-value.

Then: decide.

Then: say it in words.

Last: check.

Answer
= p-value 0.1020 > α = 0.05 → do not reject H0

Your turn

Try this one yourself, then check:

Test μ1 < μ2? x̄1 = 68, σ1 = 5, n1 = 25; x̄2 = 70, σ2 = 6, n2 = 36
Show the answer
do not reject H0

More from Comparing two groups

The whole lesson: Comparing two groups →