All courses › Mathematics S2 › A test of a mean

A test of a mean

When you test a mean and know the standard deviation, the test statistic is the deviation from the null hypothesis mean, divided by the standard error. The standard error is the standard deviation divided by the square root of the number of observations. A large sample gives a small standard error, so the same deviation becomes more surprising. The sign shows whether the sample lies above or below the null hypothesis. A one-sided test upwards is used when the alternative is that the mean is higher.

Z=xˉ−μ0σ/nZ = \frac{\bar x - \mu_0}{\sigma/\sqrt{n}}test of a mean

Symbols

μ0\mu_0mean in the null hypothesis
σ\sigmastandard deviation
nnsample size

Example

H0:μ=100H_0: \mu = 100, σ=10\sigma = 10, n=25n = 25 and xˉ=104\bar x = 104.

Z=104−10010/25=42=2Z = \dfrac{104 - 100}{10/\sqrt{25}} = \dfrac{4}{2} = 2.

Divide by the standard error, not by the standard deviation alone.
Practise hypothesis testing for free →

← A test of a proportion · A two-sided test →

Part of Mathematics S2: Hypothesis testing.