Everything to learn better...

Home

Maths

Normal distribution

Hypothesis testing with the normal distribution

Hypothesis testing with the normal distribution

Select Lesson

Exam Board

Select an option

Explainer Video

Loading...
Tutor: Bilal

Summary

​Hypothesis testing with the normal distribution

​​In a nutshell

It is possible to use hypothesis testing to make a conclusion on whether or not the mean of a sample is equal to that of the population.



Sample mean distribution

Given a random variable XN(μ,σ2)X \sim N(\mu ,\sigma^2)​, the sample mean of XX​ is denoted by X\overline X​, and is given by:


XN(μ,σ2n)\boxed{\overline X \sim N \left(\mu, \dfrac{\sigma^2}{n} \right)}​​



Conducting a hypothesis test

To conduct a hypothesis test with a normal distribution, follow this procedure:


procedure

1.

Define the random variable.

2.

Write down the null and alternative hypotheses.

3.

Assume the null hypothesis to be true.

4.

Define the sample mean.

5.

Calculate the relevant probability.

6.

Make a conclusion on whether or not the null hypothesis is to be accepted by comparing the relevant probability against the significance level.


Example 1

A certain company sells coffee beans. The company claims each packet has 500g500g worth of coffee beans, with a standard deviation of 5g5g​. A regular customer claims that the company is overstating the mass of coffee beans per packet. The customer takes a sample of 2020 packets, and finds that the mean mass of coffee is 497g497g. Is there evidence, at the 5%5\% level, that the customer's claim is correct?


First, define the variable:

Let XX be the mass of coffee in a packet.

XN(μ,52)X \sim N(\mu, 5^2)​​


State the null and alternative hypotheses:

H0:μ=500,H1:μ<500H_0: \mu =500, H_1: \mu \lt 500​​


Assume the null hypothesis to be true:

μ=500XN(500,52)\mu = 500 \rightarrow X \sim N(500,5^2)​​


Calculate the sample mean distribution:

XN(μ,σ2n)N(500,5220)N(500,(52)2)\begin{aligned}\overline X &\sim N\left(\mu, \dfrac{\sigma^2}{n}\right) \\& \sim N\left(500, \dfrac{5^2}{20}\right)\\ &\sim N\left(500, \left(\dfrac{\sqrt{5}}{2}\right)^2\right) \end{aligned}​​


Calculate the relevant probability:

P(X<497)=0.0036P(\overline X \lt 497) = 0.0036​​


Compare this to the significance level, and decide whether or not to reject H0H_0:

0.0036<0.050.0036 \lt 0.05​, so reject H0H_0.


Conclude in context:

There is sufficient evidence, at the 5%5\% level, that the company is overstating the mass of coffee in their packets.



​​Finding critical values

To find critical values and critical regions, use the inverse normal distribution.


Example 2

A hypothesis test has the following information:

XN(μ,202)H0:μ=50,H1:μ50X \sim N(\mu, 20^2)\\H_0: \mu = 50, H_1: \mu \neq 50​​


Find the critical region(s) for this test, assuming a 10%10\% level of significance and a sample value of 2525.


Because H1H_1 is in the form μ...\mu \neq ..., this is a two-tailed test. Therefore, this will have two critical values: call these c1c_1 and c2c_2 with critical regions X<c1\overline X \lt c_1 and X>c2\overline X \gt c_2​ respectively.

Assume the null hypothesis to be true:

μ=50XN(50,202)\mu =50 \rightarrow X\sim N(50,20^2)​​


Calculate the sample mean distribution:

XN(50,20225)N(50,42)\begin{aligned}\overline X &\sim N\left(50, \dfrac{20^2}{25}\right)\\&\sim N(50, 4^2) \end{aligned}​​


Use the inverse normal distribution to calculate c1c_1 and c2c_2, remembering to halve the significance level at each end:


Want c1c_1 such that P(X<c1)=0.05P(\overline X \lt c_1 )= 0.05.


c1=43.4206c_1 = 43.4206




​​

Want c2c_2 such that P(X>c2)=0.05P(\overline X \gt c_2 )= 0.05.

Rearranging to get in the form P(X<...)P(\overline X\lt ...):


P(X>c2)=0.051P(X<c2)=0.05P(X<c2)=0.95\begin{aligned} P(\overline X \gt c_2) &= 0.05\\1 - P(\overline X \lt c_2)&=0.05\\P(\overline X \lt c_2)&=0.95 \end{aligned}​​


c2=56.5794c_2 = 56.5794​​


The critical region is therefore X<43.4206\underline{\overline X \lt 43.4206} or X>56.5794\underline{\overline X \gt 56.5794}.



Create an account to read the summary

Exercises

Create an account to complete the exercises

FAQs - Frequently Asked Questions

How do you decide whether or not to reject the null hypothesis?

What are hypothesis tests with the normal distribution used for?

How do you calculate the variance of the sample mean?

Beta

I'm Vulpy, your AI study buddy! Let's study together.