One-sample t Statistic Explained with Worked Examples

To test a mean when is unknown, use with degrees of freedom.

Write 2x or 2*x to multiply, ^ for powers, and ; between simultaneous equations. You can also type factor, expand, derivative of, integrate … from a to b, limit … as x->0 or 15% of 80.

Try an example

Before you start

What One-sample t statistic means

The one-sample test compares a sample mean with a hypothesised mean , using the sample standard deviation as an estimate of .

Under , the statistic follows a -distribution with degrees of freedom. Compare it with the critical value from -tables.

The test assumes the data is approximately normal. The spread is the sample variance, the test is the hypothesis test for the mean of a normal, and the interval is the confidence interval for a mean.

This page is part of Hypothesis tests and confidence intervals in Statistics. Topics that work alongside it: Confidence interval for a mean (σ unknown), Hypothesis test for the mean of a normal, Sample (unbiased) variance, Hypothesis test for correlation, Hypothesis test for a binomial proportion and Pie chart angle.

What is it used for?

The one-sample t statistic is t = (x̄ − μ₀) ÷ (s/√n). It compares a sample mean to a claimed value, taking the sample’s spread into account.

How to use one-sample t statistic

  1. State the hypotheses.
  2. Calculate .
  3. Find the critical value for degrees of freedom.
  4. Compare and conclude.

Graph

The t-distribution (5 degrees of freedom) against the normal curve-5-4-3-2-101234500.10.20.30.4The t-distribution (5 degrees of freedom) against the normal curvexyt, 5 d.f.normalGraph with x from -5 to 5 and y from -0.02 to 0.45. Shows the curve t, 5 d.f.; the curve normal.

The t-distribution has fatter tails than the normal curve, which allows for the extra uncertainty of estimating σ from a small sample.

Worked examples

These examples are worked by hand, step by step, so you can compare your own working.

Example 1: calculate t

A sample of 25 has mean 53 and standard deviation 10. Test . Find .

Worked example
Answer
t=1.5t=1.5
  1. Standard error
  2. Test statistic

Example 2: conclude

For a two-tailed 5% test with 24 degrees of freedom the critical value is 2.064. Conclude.

Worked example
Answer
Do not reject H0\text{Do not reject }H_{0}
  1. Compare
    Since , do not reject .
  2. Conclude
    There is not enough evidence that the mean differs from 50.

Example 3: n = 16

A sample of 16 has mean 20 and standard deviation 4. Test .

Worked example
Answer
t=2t = 2
  1. Use t = (x̄ − μ₀)/(s/√n)
  2. Result

Special cases

A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.

x̄ = 52, μ₀ = 50, s = 8, n = 16

t

1.

x̄ = 53, μ₀ = 50, s = 5, n = 25

t

3.

n = 16

degrees of freedom

15.

x̄ = 48, s = 4, n = 16

t

−2.

Word problems

t = (x̄ − μ₀)/(s/√n) with n − 1 degrees of freedom. Compare with the critical value from t-tables.

t

SE = 8/4 = 2.

  1. 2/2
  2. Check: ✓1

Larger t

SE = 1.

  1. 3/1
  2. Check: ✓3

d.f. Higher

n = 16.

  1. 16 − 1
  2. Check: ✓15

Negative t Higher

x̄ below μ₀.

  1. −2/1
  2. Check: ✓-2

Common mistakes

Using σ

σ ✗

s ✓

Unknown σ.

d.f. = n

n ✗

n − 1 ✓

Degrees of freedom.

Dividing by s

s ✗

s/√n ✓

Standard error.

Using z tables

z ✗

t tables ✓

Small n.

Exam tips

  1. t = (x̄ − μ₀)/(s/√n).
  2. d.f. = n − 1.
  3. Use t tables.
  4. Two-tailed: α/2.
  5. State the conclusion.

Practice questions

Try each one on paper, then open the answer. Use the solver above to see the full working.

1. t: x̄ = 105, μ₀ = 100, s = 10, n = 25 Foundation

2.5

2. t: x̄ = 9, μ₀ = 10, s = 2, n = 16 Foundation

-2

3. d.f. for n = 30 Foundation

29

4. t: x̄ = 22, μ₀ = 20, s = 6, n = 9 Higher

1

5. t: x̄ = 71, μ₀ = 70, s = 3, n = 36 Higher

2

6. t: x̄ = 14.5, μ₀ = 15, s = 1, n = 4 Higher

-1

Practice generator

Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.

Solve: …

Key terms

t statistic
Standardised mean difference.
Degrees of freedom
n − 1.
Null value (μ₀)
Hypothesised mean.
Standard error
s/√n.
Critical value
From t-tables.
Sample SD
s.

Frequently asked questions

What is the one-sample t statistic?

t = (x̄ − μ₀)/(s/√n).

How many degrees of freedom?

n − 1.

When do I use it?

When σ is unknown.

How do I decide?

Compare |t| with the critical value.

Which page covers the z-test?

test for the mean of a normal.

Which page covers confidence intervals?

confidence interval, σ unknown.

More in Statistics and the formula sheets.