Steply

Hypothesis test with t

University Statistics · 21 problems, easy to harder

▶ Watch the first one solved

How we do it

  1. Write the hypotheses
  2. The test number
  3. The cut-off
  4. Decide
  5. Say it in words
  6. Check

The steps for Test the claim mean < 30: sample mean 28, sample sd 4, n 16, alpha…. Every solution names its steps, so you always know what comes next.

Worked examples

Test the claim mean < 30: sample mean 28, sample sd 4, n 16, alpha… Easy

The question

Question: a sample of 16 has mean 28 and SD 4: at the 5% level, is the true mean less than 30?

μ < 30? x̄ = 28, s = 4, n = 16, α = 0.05

We only know s, the SD of the sample.

So we use t, not z.

σ not known: we use s and t

1 Write the hypotheses

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

Here: the mean is 30.

H0 : μ = 30

Hₐ is what we want to show.

Here: the mean is less than 30.

Ha : μ < 30

Less than means only the left end counts.

One tail.

one tail: the left end

2 The test number

First the SD of the sample means: s over the square root of n.

The square root of 16 is 4.

4/4 is 1.

s√n = 4√16 = 44 = 1

t is the sample mean minus 30, over 1.

28 minus 30 is −2.

Divided by 1: −2.

t = x̄ − μ0SD = 28 − 301 = −21 = −2

3 The cut-off

The t-table needs df: n minus 1, 15.

df = n − 1 = 16 − 1 = 15

Careful!

df is 16 minus 1: 15.

Careful: not df = 16 ✗

One tail: 0.05 in one end.

Row 15, column 0.05.

Row 15, column .05: t* = 1.753.

The t curve, with the cut-off and our t.

Past the cut-off is the reject part: the rare samples.

4 Decide

Our t, −2, is past the cut-off: in the reject part.

So we reject H zero.

= t = −2 < −1.753 → reject H0

5 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 mean is less than 30.

the mean is less than 30.

6 Check

Let's check with the sample mean itself.

The cut-off for it is 30 minus 1.753 times 1: 28.247.

cut-off for the sample mean: 30 − 1.753 × 1 = 28.247

The sample mean, 28, is past it.

The same decision.

So it is right!

28: past it, reject

Let's look back.

First: write the hypotheses.

Then: the test number.

Then: the cut-off.

Then: decide.

Then: say it in words.

Last: check.

Answer
= t = −2 < −1.753 → reject H0

▶ Watch it solved

Test the claim mean != 40: sample mean 43, sample sd 5, n 25, alpha… Medium

The question

Question: a sample of 25 has mean 43 and SD 5: at the 5% level, is the true mean different from 40?

μ ≠ 40? x̄ = 43, s = 5, n = 25, α = 0.05

We only know s, the SD of the sample.

So we use t, not z.

σ not known: we use s and t

1 Write the hypotheses

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

Here: the mean is 40.

H0 : μ = 40

Hₐ is what we want to show.

Here: the mean is different from 40.

Ha : μ ≠ 40

Different from means too big or too small: both ends of the bell count.

Two tails.

two tails: far on either side counts

2 The test number

First the SD of the sample means: s over the square root of n.

The square root of 25 is 5.

5/5 is 1.

s√n = 5√25 = 55 = 1

t is the sample mean minus 40, over 1.

43 minus 40 is 3.

Divided by 1: 3.

t = x̄ − μ0SD = 43 − 401 = 31 = 3

3 The cut-off

The t-table needs df: n minus 1, 24.

df = n − 1 = 25 − 1 = 24

Careful!

df is 25 minus 1: 24.

Careful: not df = 25 ✗

Two tails: 0.05 is split, 0.025 in each end.

Row 24, column 0.025.

Row 24, column .025: t* = 2.064.

The t curve, with the cut-offs and our t.

Past the cut-offs is the reject part: the rare samples.

4 Decide

Our t, 3, is past the cut-off: in the reject part.

So we reject H zero.

= |t| = 3 > 2.064 → reject H0

5 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 mean is different from 40.

the mean is different from 40.

6 Check

Let's check with the sample mean itself.

The cut-off for it is 40 plus or minus 2.064 times 1: 37.936 and 42.064.

cut-off for the sample mean: 40 ± 2.064 × 1: 37.936 and 42.064

The sample mean, 43, is past it.

The same decision.

So it is right!

43: past it, reject

Let's look back.

First: write the hypotheses.

Then: the test number.

Then: the cut-off.

Then: decide.

Then: say it in words.

Last: check.

Answer
= |t| = 3 > 2.064 → reject H0

▶ Watch it solved

Test the claim mean > 65: sample mean 67, sample sd 4, n 12, alpha… Harder

The question

Question: a sample of 12 has mean 67 and SD 4: at the 5% level, is the true mean more than 65?

μ > 65? x̄ = 67, s = 4, n = 12, α = 0.05

We only know s, the SD of the sample.

So we use t, not z.

σ not known: we use s and t

1 Write the hypotheses

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

Here: the mean is 65.

H0 : μ = 65

Hₐ is what we want to show.

Here: the mean is more than 65.

Ha : μ > 65

More than means only the right end counts.

One tail.

one tail: the right end

2 The test number

First the SD of the sample means: s over the square root of n.

4 over the square root of 12 is about 1.1547.

s√n = 4√12 = ≈ 1.1547

t is the sample mean minus 65, over 1.1547.

67 minus 65 is 2.

Divided by 1.1547: about 1.732.

t = x̄ − μ0SD = 67 − 651.1547 = 21.1547 ≈ 1.732

3 The cut-off

The t-table needs df: n minus 1, 11.

df = n − 1 = 12 − 1 = 11

Careful!

df is 12 minus 1: 11.

Careful: not df = 12 ✗

One tail: 0.05 in one end.

Row 11, column 0.05.

Row 11, column .05: t* = 1.796.

The t curve, with the cut-off and our t.

Past the cut-off is the reject part: the rare samples.

4 Decide

Our t, 1.732, is not past the cut-off.

So we do not reject H zero.

= t = 1.732 < 1.796 → do not reject H0

5 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 mean is more than 65.

the mean is more than 65.

This does not prove H zero is true.

We just cannot rule it out.

not rejecting H0 does not prove H0

6 Check

Let's check with the sample mean itself.

The cut-off for it is 65 plus 1.796 times 1.1547: 67.0738.

cut-off for the sample mean: 65 + 1.796 × 1.1547 = 67.0738

The sample mean, 67, is not past it.

The same decision.

So it is right!

67: not past it, do not reject

Let's look back.

First: write the hypotheses.

Then: the test number.

Then: the cut-off.

Then: decide.

Then: say it in words.

Last: check.

Answer
= t = 1.732 < 1.796 → do not reject H0

▶ Watch it solved

Practice

Try each one, then open the answer. Stuck? Open the problem to watch every step.

Easy

  1. test the claim mean < 30: sample mean 28, sample sd 4, n 16, alpha 0.05
    Answer
    = t = −2 < −1.753 → reject H0
  2. test the claim mean > 50: sample mean 53, sample sd 6, n 9, alpha 0.05
    Answer
    = t = 1.5 < 1.860 → do not reject H0
  3. test the claim mean > 20: sample mean 22, sample sd 3, n 9, alpha 0.05
    Answer
    = t = 2 > 1.860 → reject H0
  4. test the claim mean != 100: sample mean 104, sample sd 10, n 25, alpha 0.05
    Answer
    = |t| = 2 < 2.064 → do not reject H0
  5. test the claim mean < 60: sample mean 57, sample sd 8, n 16, alpha 0.05
    Answer
    = t = −1.5 > −1.753 → do not reject H0
  6. test the claim mean > 10: sample mean 11, sample sd 2, n 16, alpha 0.05
    Answer
    = t = 2 > 1.753 → reject H0
  7. test the claim mean != 50: sample mean 47, sample sd 6, n 9, alpha 0.05
    Answer
    = |t| = 1.5 < 2.306 → do not reject H0

Medium

  1. test the claim mean != 40: sample mean 43, sample sd 5, n 25, alpha 0.05
    Answer
    = |t| = 3 > 2.064 → reject H0
  2. test the claim mean < 80: sample mean 77, sample sd 6, n 16, alpha 0.01
    Answer
    = t = −2 > −2.602 → do not reject H0
  3. test the claim mean > 7: sample mean 7.6, sample sd 1.2, n 16, alpha 0.05
    Answer
    = t = 2 > 1.753 → reject H0
  4. test the claim mean > 150: sample mean 156, sample sd 12, n 9, alpha 0.10
    Answer
    = t = 1.5 > 1.397 → reject H0
  5. test the claim mean != 12: sample mean 11.2, sample sd 2, n 25, alpha 0.05
    Answer
    = |t| = 2 < 2.064 → do not reject H0
  6. test the claim mean < 5: sample mean 4.4, sample sd 1, n 9, alpha 0.05
    Answer
    = t = −1.8 > −1.860 → do not reject H0
  7. test the claim mean > 35: sample mean 36.5, sample sd 3, n 16, alpha 0.01
    Answer
    = t = 2 < 2.602 → do not reject H0

Harder

  1. test the claim mean > 65: sample mean 67, sample sd 4, n 12, alpha 0.05
    Answer
    = t = 1.732 < 1.796 → do not reject H0
  2. test the claim mean < 2.5: sample mean 2.3, sample sd 0.4, n 20, alpha 0.05
    Answer
    = t = −2.237 < −1.729 → reject H0
  3. test the claim mean != 18: sample mean 19.5, sample sd 3, n 15, alpha 0.01
    Answer
    = |t| = 1.936 < 2.977 → do not reject H0
  4. test the claim mean > 300: sample mean 318, sample sd 30, n 10, alpha 0.05
    Answer
    = t = 1.897 > 1.833 → reject H0
  5. test the claim mean < 45: sample mean 43.8, sample sd 2.4, n 25, alpha 0.01
    Answer
    = t = −2.5 < −2.492 → reject H0
  6. test the claim mean != 8: sample mean 8.6, sample sd 1.1, n 30, alpha 0.10
    Answer
    = |t| = 2.988 > 1.699 → reject H0
  7. test the claim mean < 100: sample mean 96, sample sd 9, n 18, alpha 0.05
    Answer
    = t = −1.886 < −1.740 → reject H0