Steply

Test mean1 > mean2: mean 5.2, sd 1.2, n 36 and mean 4.8, sd 0.8, n…

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

Step by step

The question

Question: group 1 has mean 5.2, SD 1.2 and size 36; group 2 has mean 4.8, SD 0.8 and size 64: at the 5% level, is the first mean more than the second?

μ1 > μ2? x̄1 = 5.2, σ1 = 1.2, n1 = 36; x̄2 = 4.8, σ2 = 0.8, n2 = 64

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 more than the second.

Ha : μ1 > μ2

More than: one tail, the right end.

one tail: the right 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

1.2 squared over 36 is 0.04.

0.8 squared over 64 is 0.01.

Together 0.05, and the square root is about 0.2236.

SE = √1.2236 + 0.8264 = √0.04 + 0.01 = √0.05 ≈ 0.2236

Careful!

Add the variances, then take the square root.

Do not add the two SDs.

Careful: not SE = 0.2 + 0.1 = 0.3 ✗

3 The test number

z is the difference of the means over the SE.

5.2 minus 4.8 is 0.4.

Divided by 0.2236: about 1.79.

z = x̄1 − x̄2SE = 5.2 − 4.80.2236 ≈ 1.79

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.79.

We shade the right end, from our z up.

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

Row 1.7, column .09.

For z = 1.79: the row 1.7 and the column .09 meet at 0.9633.

The right end is 1 minus 0.9633: 0.0367.

p-value = 1 − 0.9633 = 0.0367

5 Decide

The p-value, 0.0367, is less than alpha, 0.05.

Our sample would be rare if H zero were true.

So we reject H zero.

= p-value 0.0367 < α = 0.05 → reject H0

6 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 first mean is more than the second.

the first mean is more than the second.

7 Check

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

0.05 in the right end gives the cut-off 1.645.

0.05 in one end: cut-off 1.645

z is 1.79: past the cut-off.

The same decision.

So it is right!

z = 1.79 > 1.645: past the cut-off, 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.0367 < α = 0.05 → reject H0

Your turn

Try this one yourself, then check:

Test μ1 > μ2? x̄1 = 34, σ1 = 6, n1 = 36; x̄2 = 30, σ2 = 6, n2 = 36
Show the answer
reject H0

More from Comparing two groups

The whole lesson: Comparing two groups →