Skip to content

Normal hypothesis tests for a population mean

A Normal hypothesis test for a mean uses an observation or sample mean to assess a claim about an unknown population mean μ\mu. The calculation asks how unusual the observed result would be if the null hypothesis were true.

The key model for a random sample of size nn is

XN(μ,σ2)XˉN(μ,σ2n).X\sim\operatorname N(\mu,\sigma^2) \quad\Longrightarrow\quad \bar X\sim\operatorname N\left(\mu,\frac{\sigma^2}{n}\right).

Therefore the standard deviation of Xˉ\bar X, called its standard error, is

sd(Xˉ)=σn.\boxed{\operatorname{sd}(\bar X)=\frac{\sigma}{\sqrt n}}.

This lesson concerns A level questions in which the population variance σ2\sigma^2 is known. It does not cover the tt test used when σ2\sigma^2 must be estimated.

You should be able to:

  • standardise a Normal random variable using Z=(Xμ)/σZ=(X-\mu)/\sigma;
  • use inverse Normal probabilities and calculator distribution functions;
  • distinguish a population mean μ\mu from a sample mean xˉ\bar x;
  • write null and alternative hypotheses and interpret a significance level.

Review the Normal distribution and hypothesis testing language where needed.

Suppose the null hypothesis is H0:μ=μ0H_0:\mu=\mu_0. Under H0H_0,

XˉN(μ0,σ2n),\bar X\sim\operatorname N\left(\mu_0,\frac{\sigma^2}{n}\right),

so an observed sample mean xˉ\bar x can be standardised as

z=xˉμ0σ/n.\boxed{z=\frac{\bar x-\mu_0}{\sigma/\sqrt n}}.

The sign and magnitude of zz both matter:

  • z>0z>0 means that xˉ\bar x is above the null mean;
  • z<0z<0 means that xˉ\bar x is below the null mean;
  • z|z| measures the distance from the null mean in standard errors.

For one observation, n=1n=1, so the denominator is simply σ\sigma.

Packet masses are modelled by XN(200,62)X\sim\operatorname N(200,6^2) grams. A random sample of 3636 packets is taken. Under the claim that the population mean remains 200200 g,

XˉN(200,6236)=N(200,1).\bar X\sim\operatorname N\left(200,\frac{6^2}{36}\right) =\operatorname N(200,1).

Thus sd(Xˉ)=1\operatorname{sd}(\bar X)=1 g. Sample means vary much less than individual packet masses.

If the sample mean is 197.8197.8 g, then

z=197.82001=2.2.z=\frac{197.8-200}{1}=-2.2.

The sample mean is 2.22.2 standard errors below the claimed mean.

Let μ\mu be the population mean and let μ0\mu_0 be the value claimed under H0H_0.

InvestigationHypothesesRelevant evidence
Has the mean increased?H0:μ=μ0H_0:\mu=\mu_0, H1:μ>μ0H_1:\mu>\mu_0upper tail
Has the mean decreased?H0:μ=μ0H_0:\mu=\mu_0, H1:μ<μ0H_1:\mu<\mu_0lower tail
Has the mean changed?H0:μ=μ0H_0:\mu=\mu_0, H1:μμ0H_1:\mu\neq\mu_0both tails

Hypotheses concern the population parameter μ\mu, not the observed statistic xˉ\bar x. Decide whether the test has one tail or two from the question, before inspecting the data.

A filling machine is set to deliver a mean of 500500 ml. An engineer investigates whether it is overfilling. A sample has mean xˉ=503.1\bar x=503.1 ml. Write the hypotheses.

Answer

Let μ\mu be the population mean fill volume. Since overfilling means a larger mean,

H0:μ=500,H1:μ>500.H_0:\mu=500, \qquad H_1:\mu>500.

Writing a hypothesis about xˉ\bar x is incorrect because 503.1503.1 ml is already observed.

The p value is the probability, assuming H0H_0, of obtaining the observed result or one more extreme in the direction specified by H1H_1.

For an observed standardised value zz:

H1p valueμ>μ0P(Zz)μ<μ0P(Zz)μμ02P(Zz)\begin{array}{c|c} H_1 & \text{p value} \\ \hline \mu>\mu_0 & P(Z\geq z) \\ \mu<\mu_0 & P(Z\leq z) \\ \mu\neq\mu_0 & 2P(Z\geq |z|) \end{array}

Then

reject H0 if the p valueα.\boxed{\text{reject }H_0\text{ if the p value}\leq\alpha.}

For a two tailed test, doubling the smaller tail probability counts equally extreme results on the opposite side of μ0\mu_0. This works because the Normal distribution is symmetric.

A manufacturer states that the lifetime of a component is Normally distributed with standard deviation 120120 hours and mean 15001500 hours. A random sample of 3636 components has mean lifetime 14641464 hours. Test at the 5%5\% level whether the population mean lifetime has decreased.

Let μ\mu be the population mean lifetime. The hypotheses are

H0:μ=1500,H1:μ<1500.H_0:\mu=1500, \qquad H_1:\mu<1500.

Under H0H_0,

XˉN(1500,120236),\bar X\sim\operatorname N\left(1500,\frac{120^2}{36}\right),

so the standard error is

12036=20.\frac{120}{\sqrt{36}}=20.

The observed test statistic is

z=1464150020=1.8.z=\frac{1464-1500}{20}=-1.8.

This is a lower tailed test, so

p=P(Z1.8)0.0359.p=P(Z\leq-1.8)\approx0.0359.

Since 0.0359<0.050.0359<0.05, reject H0H_0. There is sufficient evidence at the 5%5\% significance level to suggest that the population mean lifetime has decreased.

Worked example 3: upper tailed test with no rejection

Section titled “Worked example 3: upper tailed test with no rejection”

The mass of produce in a container is modelled as Normal with known standard deviation 88 g. Historically its mean is 250250 g. After a process adjustment, a random sample of 1616 containers has mean mass 252.6252.6 g. Test at the 5%5\% level whether the mean has increased.

H0:μ=250,H1:μ>250.H_0:\mu=250, \qquad H_1:\mu>250.

Under H0H_0, the standard error is

816=2.\frac{8}{\sqrt{16}}=2.

Therefore

z=252.62502=1.3z=\frac{252.6-250}{2}=1.3

and the upper tail probability is

p=P(Z1.3)0.0968.p=P(Z\geq1.3)\approx0.0968.

Since 0.0968>0.050.0968>0.05, do not reject H0H_0. There is insufficient evidence at the 5%5\% level to suggest that the population mean mass has increased.

The sample mean is above 250250 g, but the difference is not large relative to ordinary sampling variation.

A two tailed alternative H1:μμ0H_1:\mu\neq\mu_0 treats a result equally far below or above μ0\mu_0 as evidence against H0H_0. At overall significance level α\alpha, each tail contains probability α/2\alpha/2.

Worked example 4: calculate and double one tail

Section titled “Worked example 4: calculate and double one tail”

A machine produces rods whose lengths are Normally distributed with known standard deviation 0.80.8 mm. It is set to a mean of 5050 mm. A random sample of 2525 rods has mean 50.3450.34 mm. Test at the 5%5\% level whether the mean length has changed.

H0:μ=50,H1:μ50.H_0:\mu=50, \qquad H_1:\mu\neq50.

The standard error is

0.825=0.16,\frac{0.8}{\sqrt{25}}=0.16,

giving

z=50.34500.16=2.125.z=\frac{50.34-50}{0.16}=2.125.

The upper tail probability is approximately

P(Z2.125)=0.0168.P(Z\geq2.125)=0.0168.

Hence the two tailed p value is

p=2(0.0168)=0.0336.p=2(0.0168)=0.0336.

Since 0.0336<0.050.0336<0.05, reject H0H_0. There is sufficient evidence at the 5%5\% level to suggest that the population mean rod length has changed.

A two tailed test gives z=1.72z=-1.72. Find the p value and state the decision at the 5%5\% level.

Answer

By symmetry,

p=2P(Z1.72)2(0.0427)=0.0854.p=2P(Z\leq-1.72)\approx2(0.0427)=0.0854.

Since 0.0854>0.050.0854>0.05, do not reject H0H_0.

A critical value separates results that lead to rejection from those that do not. Common standard Normal boundaries are:

TestSignificance levelReject H0H_0 when
upper tailed5%5\%z1.645z\geq1.645
lower tailed5%5\%z1.645z\leq-1.645
two tailed5%5\%$
upper tailed1%1\%z2.326z\geq2.326
lower tailed1%1\%z2.326z\leq-2.326
two tailed1%1\%$

You may instead convert a zz boundary into a critical sample mean. For an upper tailed test,

xˉc=μ0+z1ασn.\bar x_{\mathrm c}=\mu_0+z_{1-\alpha}\frac{\sigma}{\sqrt n}.

For a lower tailed test, use the negative boundary. For a two tailed test, use z1α/2z_{1-\alpha/2} in both directions.

Because the Normal model is continuous, whether a single boundary point is written with << or \leq does not alter its probability. The usual decision convention includes equality in the critical region.

Weekly demand is Normally distributed with known standard deviation 2424 units. A supplier tests

H0:μ=400againstH1:μ>400H_0:\mu=400 \qquad\text{against}\qquad H_1:\mu>400

using the mean of 6464 weeks at the 5%5\% level. Find the critical value of Xˉ\bar X.

Under H0H_0, the standard error is

2464=3.\frac{24}{\sqrt{64}}=3.

The upper 5%5\% standard Normal boundary is 1.6451.645, so

xˉc=400+1.645(3)=404.935.\bar x_{\mathrm c}=400+1.645(3)=404.935.

Thus the critical region is approximately

Xˉ404.94.\boxed{\bar X\geq404.94}.

A sample mean of 405.2405.2 lies in this region, so H0H_0 would be rejected. A sample mean of 404.8404.8 does not.

The fill mass of a product is Normal with known standard deviation 55 g. A sample of 100100 items is used to test H0:μ=80H_0:\mu=80 against H1:μ80H_1:\mu\neq80 at the 1%1\% level.

The standard error is

5100=0.5.\frac{5}{\sqrt{100}}=0.5.

For a 1%1\% two tailed test, the boundary is z=±2.576z=\pm2.576. Therefore

80±2.576(0.5)=80±1.288.80\pm2.576(0.5)=80\pm1.288.

The critical regions are

Xˉ78.712orXˉ81.288.\boxed{\bar X\leq78.712\quad\text{or}\quad\bar X\geq81.288}.

Notice that 0.5%0.5\% is placed in each tail, giving 1%1\% in total.

Some questions give one observation from a Normal population rather than a sample mean. Then use n=1n=1:

z=xμ0σ.z=\frac{x-\mu_0}{\sigma}.

Under a stated model, journey time XX is Normal with standard deviation 44 minutes and mean 3030 minutes. One randomly selected journey takes 38.538.5 minutes. Test at the 5%5\% level whether journey times are longer than the model claims.

H0:μ=30,H1:μ>30.H_0:\mu=30, \qquad H_1:\mu>30.

For one observation,

z=38.5304=2.125.z=\frac{38.5-30}{4}=2.125.

Thus

p=P(Z2.125)0.0168<0.05.p=P(Z\geq2.125)\approx0.0168<0.05.

Reject H0H_0. There is sufficient evidence at the 5%5\% level to suggest that the population mean journey time is greater than 3030 minutes.

Do not divide 44 by another square root: the observation is not a sample mean based on an unstated sample size.

  1. Define μ\mu in context.
  2. Write H0H_0 and H1H_1, choosing the tail from the question.
  3. Under H0H_0, write the distribution of XX or Xˉ\bar X.
  4. Calculate the correct standard deviation, using σ/n\sigma/\sqrt n for a sample mean.
  5. Find a p value or critical region.
  6. Compare with the significance level and state reject or do not reject H0H_0.
  7. Give a contextual conclusion using the direction in H1H_1.

Worked example 8: full test from start to finish

Section titled “Worked example 8: full test from start to finish”

The breaking strength of a cable is Normally distributed with standard deviation 1818 N. The manufacturer claims a mean strength of 320320 N. A regulator suspects the true mean is lower. A random sample of 4949 cables has mean strength 315.5315.5 N. Test the regulator’s suspicion at the 1%1\% level.

Let μ\mu be the population mean breaking strength in newtons.

H0:μ=320,H1:μ<320.H_0:\mu=320, \qquad H_1:\mu<320.

Under H0H_0,

XˉN(320,18249),\bar X\sim\operatorname N\left(320,\frac{18^2}{49}\right),

with standard error

1872.5714.\frac{18}{7}\approx2.5714.

Hence

z=315.532018/7=1.75.z=\frac{315.5-320}{18/7}=-1.75.

The lower tail p value is

P(Z1.75)0.0401.P(Z\leq-1.75)\approx0.0401.

Since 0.0401>0.010.0401>0.01, do not reject H0H_0. There is insufficient evidence at the 1%1\% significance level to suggest that the population mean breaking strength is below 320320 N.

The result would be significant at 5%5\%, but the question demands the stricter 1%1\% standard.

  • Using σ\sigma instead of σ/n\sigma/\sqrt n. A sample mean has less variation than an individual value.
  • Using variance in the denominator. Standardisation always divides by a standard deviation.
  • Writing hypotheses about xˉ\bar x. The hypotheses concern the unknown population mean μ\mu.
  • Choosing the tail from the data. The wording of the investigation determines H1H_1.
  • Forgetting the second tail. For H1:μμ0H_1:\mu\neq\mu_0, double the smaller one tail probability.
  • Saying that H0H_0 is proved. A non-significant result means only that the evidence was insufficient to reject H0H_0.
  • Ignoring context. Finish with a statement about the population mean, not only a calculator probability.

A process produces values that are Normally distributed with known variance 144144. A random sample of 3636 values has mean 74.574.5. Test H0:μ=78H_0:\mu=78 against H1:μ<78H_1:\mu<78 at the 5%5\% level.

Answer

Since σ=144=12\sigma=\sqrt{144}=12, the standard error is

1236=2.\frac{12}{\sqrt{36}}=2.

Therefore

z=74.5782=1.75z=\frac{74.5-78}{2}=-1.75

and

p=P(Z1.75)0.0401.p=P(Z\leq-1.75)\approx0.0401.

Since 0.0401<0.050.0401<0.05, reject H0H_0. There is sufficient evidence at the 5%5\% level to suggest that the population mean is less than 7878.

Using the critical value method gives the same decision because 1.75<1.645-1.75<-1.645.