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 X∼N(μ,σ2), the sample mean of X is denoted by X, and is given by:
X∼N(μ,nσ2)
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 500g worth of coffee beans, with a standard deviation of 5g. A regular customer claims that the company is overstating the mass of coffee beans per packet. The customer takes a sample of 20 packets, and finds that the mean mass of coffee is 497g. Is there evidence, at the 5% level, that the customer's claim is correct?
First, define the variable:
Let X be the mass of coffee in a packet.
X∼N(μ,52)
State the null and alternative hypotheses:
H0:μ=500,H1:μ<500
Assume the null hypothesis to be true:
μ=500→X∼N(500,52)
Calculate the sample mean distribution:
X∼N(μ,nσ2)∼N(500,2052)∼N500,(25)2
Calculate the relevant probability:
P(X<497)=0.0036
Compare this to the significance level, and decide whether or not to reject H0:
0.0036<0.05, so reject H0.
Conclude in context:
There is sufficient evidence, at the 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:
X∼N(μ,202)H0:μ=50,H1:μ=50
Find the critical region(s) for this test, assuming a 10% level of significance and a sample value of 25.
Because H1 is in the form μ=..., this is a two-tailed test. Therefore, this will have two critical values: call these c1 and c2 with critical regions X<c1 and X>c2 respectively.
Assume the null hypothesis to be true:
μ=50→X∼N(50,202)
Calculate the sample mean distribution:
X∼N(50,25202)∼N(50,42)
Use the inverse normal distribution to calculate c1 and c2, remembering to halve the significance level at each end:
Want c1 such that P(X<c1)=0.05.
c1=43.4206
Want c2 such that P(X>c2)=0.05.
Rearranging to get in the form P(X<...):
P(X>c2)1−P(X<c2)P(X<c2)=0.05=0.05=0.95
c2=56.5794
The critical region is therefore X<43.4206 or X>56.5794.
Read more
Learn with Basics
Learn the basics with theory units and practise what you learned with exercise sets!
Length:
Unit 1
The scientific method
Unit 2
Hypothesis testing
Jump Ahead
Score 80% to jump directly to the final unit.
Optional
Unit 3
Hypothesis testing with the normal distribution
Final Test
Test reviewing all units to claim a reward planet.
Create an account to complete the exercises
FAQs - Frequently Asked Questions
How do you decide whether or not to reject the null hypothesis?
If the relevant probability is less than the significance level (or half the significance level in the case of a two-tailed test), reject the null hypothesis.
What are hypothesis tests with the normal distribution used for?
Hypothesis tests with the normal distribution are used to test whether or not the mean of a sample is equal to that of the whole population.
How do you calculate the variance of the sample mean?
The variance of the sample mean is (σ^2)/n, where n is the number of items sampled.