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.
Reviewed by: AI editorial process; not yet individually human-reviewed
Have a quick question? Jump to the Q&A page
Jump to a section
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 , , , testing . Find the test statistic and its degrees of freedom. [2 marks]
- Cue. on 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 items has mean and sample standard deviation . Test at the level whether the population mean exceeds . (Use .)Show worked answer →
Hypotheses: against (one-tailed) (1 mark).
Test statistic: on degrees of freedom (2 marks).
Compare with the critical value: , so the statistic is not in the critical region; do not reject . There is insufficient evidence at the level that the mean exceeds (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 for each person, treating them as a single sample (1 mark).
Hypotheses on the mean difference : (no change) against (or one-sided if a direction is expected), tested with on degrees of freedom (1 mark). Markers reward the justification for pairing, the use of differences and the hypotheses on .
Related dot points
- Set up null and alternative hypotheses, choose a significance level, compute and use a test statistic and p-value, decide between one- and two-tailed tests, identify the critical region, and distinguish Type I and Type II errors.
A focused answer to the SQA Advanced Higher Statistics hypothesis testing framework: forming null and alternative hypotheses, the significance level, the test statistic, the p-value and critical region, one- and two-tailed tests, and Type I and Type II errors.
- Calculate point estimates of a population mean and variance, construct and interpret confidence intervals for a population mean using the normal and Student's t-distributions, and construct a confidence interval for a population proportion.
A focused answer to the SQA Advanced Higher Statistics estimation content: point estimates of the population mean and variance, confidence intervals for a mean using the normal distribution and Student's t-distribution, the role of degrees of freedom, and confidence intervals for a population proportion.
- Carry out the main non-parametric tests, including the Mann-Whitney U test for two independent samples and the Wilcoxon signed-rank test for paired or single samples, explaining when a non-parametric test is preferred over a t-test.
A focused answer to the SQA Advanced Higher Statistics non-parametric test content: the Mann-Whitney U test for two independent samples and the Wilcoxon signed-rank test for paired data, how each ranks the data, the assumptions they relax, and when to prefer them over a t-test.
- Carry out hypothesis tests for a single population proportion and for the difference between two proportions, using the normal approximation, stating the hypotheses, computing the test statistic and interpreting the result.
A focused answer to the SQA Advanced Higher Statistics proportion test content: testing a single population proportion and the difference between two proportions using the normal approximation, with the test statistics, the pooled estimate for two samples, and how to interpret the outcome.
Sources & how we know this
- SQA Advanced Higher Statistics Course Specification (C803 77) — SQA (2023)
- SQA Advanced Higher Statistics Data Booklet — SQA (2019)