Skip to main content
ScotlandStatisticsSyllabus dot point

How do you test claims about one or two population means when the standard deviation is unknown?

Carry out the one-sample, two-sample (independent) and paired t-tests for population means, stating the hypotheses, computing the test statistic, using degrees of freedom, and interpreting the result, while checking the normality assumption.

A focused answer to the SQA Advanced Higher Statistics t-test content: the one-sample t-test, the two-sample (independent) t-test and the paired t-test, with the test statistics, the degrees of freedom, the normality assumption and how to interpret the outcome.

Generated by Claude Opus 4.813 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this dot point is asking
  2. The one-sample t-test
  3. The two-sample (independent) t-test
  4. The paired t-test
  5. Checking the assumption
  6. Try this

What this dot point is asking

The t-tests are the standard tools for claims about means when the population standard deviation is unknown, which is almost always. The SQA wants you to run three versions: a one-sample test (does a single mean differ from a stated value?), a two-sample test (do two independent groups have different means?), and a paired test (does a before-and-after change differ from zero?), each time stating hypotheses, computing the statistic, using the right degrees of freedom, and checking the normality assumption.

The one-sample t-test

This tests whether a single population mean equals a claimed value.

The two-sample (independent) t-test

This compares the means of two independent groups.

The key requirement is independence of the two samples: the groups must be separate, with no natural pairing between an observation in one and an observation in the other. If there is a pairing, the paired test is correct instead.

The paired t-test

When each observation in one group is naturally matched with one in the other (the same individual before and after, or matched pairs), the paired test exploits that link.

Checking the assumption

All t-tests assume the underlying data (or, for the paired test, the differences) come from an approximately normal population. For small samples this matters; for larger samples the central limit theorem makes the test robust. If normality is clearly violated and the sample is small, a non-parametric test is the safer choice.

Try this

Q1. A one-sample t-test has n=25n = 25, xˉ=12\bar{x} = 12, s=5s = 5, testing H0:μ=10H_0: \mu = 10. Find the test statistic and its degrees of freedom. [2 marks]

  • Cue. t=12105/25=21=2t = \dfrac{12 - 10}{5/\sqrt{25}} = \dfrac{2}{1} = 2 on 2424 degrees of freedom.

Q2. State the assumption all t-tests share and what to do for a small, skewed sample. [1 mark]

  • Cue. They assume the data (or differences) are approximately normal; for a small, clearly skewed sample use a non-parametric test instead.

Exam-style practice questions

Practice questions written in the style of SQA exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

AH style: one-sample t4 marksA sample of n=16n = 16 items has mean xˉ=52\bar{x} = 52 and sample standard deviation s=8s = 8. Test at the 5%5\% level whether the population mean exceeds 5050. (Use t0.05,15=1.753t_{0.05, 15} = 1.753.)
Show worked answer →

Hypotheses: H0:μ=50H_0: \mu = 50 against H1:μ>50H_1: \mu > 50 (one-tailed) (1 mark).

Test statistic: t=xˉμ0s/n=52508/16=22=1t = \dfrac{\bar{x} - \mu_0}{s/\sqrt{n}} = \dfrac{52 - 50}{8/\sqrt{16}} = \dfrac{2}{2} = 1 on n1=15n - 1 = 15 degrees of freedom (2 marks).

Compare with the critical value: 1<1.7531 < 1.753, so the statistic is not in the critical region; do not reject H0H_0. There is insufficient evidence at the 5%5\% level that the mean exceeds 5050 (1 mark). Markers reward the hypotheses, the test statistic with degrees of freedom, and the contextual conclusion.

AH style: paired t3 marksEight people have their blood pressure measured before and after a programme. Explain why a paired t-test is appropriate and state its hypotheses in terms of the mean difference.
Show worked answer →

The two measurements come from the same individuals, so the observations are paired, not independent; pairing removes the large person-to-person variation and tests the within-pair change (1 mark).

Work with the differences d=beforeafterd = \text{before} - \text{after} for each person, treating them as a single sample (1 mark).

Hypotheses on the mean difference μd\mu_d: H0:μd=0H_0: \mu_d = 0 (no change) against H1:μd0H_1: \mu_d \neq 0 (or one-sided if a direction is expected), tested with t=dˉsd/nt = \dfrac{\bar{d}}{s_d/\sqrt{n}} on n1n - 1 degrees of freedom (1 mark). Markers reward the justification for pairing, the use of differences and the hypotheses on μd\mu_d.

Related dot points

Sources & how we know this