In this Concept, you will learn how to test a hypothesis about a mean.
Watch This
For an step by step example of testing a mean hypothesis (4.0) , see MuchoMath, Z Test for the Mean (9:34).
Guidance
Evaluating Hypotheses for Population Means using Large Samples
When testing a hypothesis for the mean of a normal distribution, we follow a series of four basic steps:
 State the null and alternative hypotheses.
 Choose an level
 Set the criterion (critical values) for rejecting the null hypothesis.
 Compute the test statistic.
 Make a decision (reject or fail to reject the null hypothesis)
 Interpret the result
If we reject the null hypothesis we are saying that the difference between the observed sample mean and the hypothesized population mean is too great to be attributed to chance. When we fail to reject the null hypothesis, we are saying that the difference between the observed sample mean and the hypothesized population mean is probable if the null hypothesis is true. Essentially, we are willing to attribute this difference to sampling error.
Example A
The school nurse was wondering if the average height of 7th graders has been increasing. Over the last 5 years, the average height of a 7th grader was 145 cm with a standard deviation of 20 cm. The school nurse takes a random sample of 200 students and finds that the average height this year is 147 cm. Conduct a singletailed hypothesis test using a .05 significance level to evaluate the null and alternative hypotheses.
Solution:
First, we develop our null and alternative hypotheses:
Choose . The critical value for this one tailed test is 1.64. Any test statistic greater than 1.64 will be in the rejection region.
Next, we calculate the test statistic for the sample of graders.
Since the calculated score of 1.414 is smaller than 1.64 and thus does not fall in the critical region. Our decision is to fail to reject the null hypothesis and conclude that the probability of obtaining a sample mean equal to 147 if the mean of the population is 145 is likely to have been due to chance.
When testing a hypothesis for the mean of a distribution, we follow a series of six basic steps:
 State the null and alternative hypotheses.
 Choose
 Set the criterion (critical values) for rejecting the null hypothesis.
 Compute the test statistic.
 Decide about the null hypothesis
 Interpret our results.
Testing a Mean Hypothesis Using Pvalues
We can also test a mean hypothesis using pvalues. The following examples show how to do this.
Example B
A sample of size 157 is taken from a normal distribution, with a standard deviation of 9. The sample mean is 65.12. Use the 0.01 significance level to test the claim that the population mean is greater than 65.
Solution:
We always put equality in the null hypothesis, so our claim will be in the alternative hypothesis.
The test statistic is:
Now we will find the probability of observing a test statistic at least this extreme when assuming the null hypothesis. Since our alternative hypothesis is that the mean is greater, we want to find the probability of z scores that are greater than our test statistics. The pvalue we are looking for is:
pvalue
Using a zscore table:
pvalue
The probability of observing a test statistic at least as big as the is 0.3936. Since this is greater than our significance level, 0.01, we fail to reject the null hypothesis. This means that the data does not support the claim that the mean is greater than 65.
Testing a Mean Hypothesis When the Population Standard Deviation is Known
We can also use the standard normal distribution, or zscores, to test a mean hypothesis when the population standard deviation is known. The next two examples, though they have a smaller sample size, have a known population standard deviation.
Example C
A sample of size 50 is taken from a normal distribution, with a known population standard deviation of 26 . The sample mean is 167.02. Use the 0.05 significance level to test the claim that the population mean is greater than 170.
Solution:
We always put equality in the null hypothesis, so our claim will be in the alternative hypothesis.
The test statistic is:
Now we will find the probability of observing a test statistic at least this extreme when assuming the null hypothesis. Since our alternative hypothesis is that the mean is greater, we want to find the probability of z scores that are greater than our test statistics. The pvalue we are looking for is:
pvalue
The probability of observing a test statistic at least as big as the is 0.209. Since this is greater than our significance level, 0.05, we fail to reject the null hypothesis. This means that the data does not support the claim that the mean is greater than 170.
Example D
A sample of size 20 is taken from a normal distribution, with a known population standard deviation of 0.01 . The sample mean is 0.194. Use the 0.01 significance level to test the claim that the population mean is equal to 0.22.
Solution:
We always put equality in the null hypothesis, so our claim will be in the null hypothesis. There is no reason to do a left or right tailed test, so we will do a two tailed test:
The test statistic is:
Now we will find the probability of observing a test statistic at least this extreme when assuming the null hypothesis. Since our alternative hypothesis is that the mean is not equal to 0.22, we need to find the probability of being less than 2.91, and we also need to find the probability of being greater than positive 2.91. However, since the normal distribution is symmetric, these probabilities will be the same, so we can find one and multiply it by 2:
pvalue
The probability of observing a test statistic at least as extreme as is 0.0036. Since this is less than our significance level, 0.01, we reject the null hypothesis. This means that the data does not support the claim that the mean is equal to 0.22.
Vocabulary
A pvalue is the probability of observing a test statistic at least as extreme as the one calculated from the data, assuming that the null hypothesis contains the correct distribution parameter (proportion, mean, etc).
Guided Practice
A sample of size 36 is taken from a normal distribution, with a known population standard deviation of 57. The sample mean is 988.93. Use the 0.05 significance level to test the claim that the population mean is less than 1000.
Solution:
We always put equality in the null hypothesis, so our claim will be in the alternative hypothesis:
The test statistic is:
Now we will find the probability of observing a test statistic at least this extreme when assuming the null hypothesis. Since our alternative hypothesis is that the mean is less than 1000, we need to find the probability of z scores less than 1.17:
pvalue
The probability of observing a test statistic at least as extreme as is 0.1210. Since this is greater than our significance level, 0.05, we fail to reject the null hypothesis. This means that the data does not support the claim that the mean is less than 1000.
Practice
 True or False: When we fail to reject the null hypothesis, we are saying that the difference between the observed sample mean and the hypothesized population mean is probable if the null hypothesis is true.

The dean from UCLA is concerned that the student’s grade point averages have changed dramatically in recent years. The graduating seniors’ mean GPA over the last five years is 2.75. The dean randomly samples 256 seniors from the last graduating class and finds that their mean GPA is 2.85, with a sample standard deviation of 0.65.
 What would the null and alternative hypotheses be for this scenario?
 What would the standard error be for this particular scenario?
 Describe in your own words how you would set the critical regions and what they would be at an alpha level of .05.
 Test the null hypothesis and explain your decision

For each of the following scenarios, state which one is more likely to lead to the rejection of the null hypothesis?
 A onetailed or twotailed test
 .05 or .01 level of significance
 A sample size of or
 A coal miner claims that the mean number of coal mined per day is more than 30,000 pounds. A random sample of 150 days finds that the mean number of pounds of coal mined is 20,000 pounds with a standard deviation of 1,000. Test the claim at the 5% level of significance.
 A high school teacher claims that the average time a student spends on math homework is less than one hour. A random sample of 250 students is drawn and the mean time spent on math homework in this sample was 45 minutes with a standard deviation of 10. Test the teacher’s claim at the 1% level of significance.
 A student claims that the average time spent studying for a statistics exam is 1.5 hours. A random sample of 200 students is drawn and the sample mean is 150 minutes with a standard deviation of 15. Test the claim at the 10% level of significance.
For problems 714 , IQ tests are designed to have a standard deviation of 15 points. They are intended to have a mean of 100 points. For the following data on scores for the new IQ tests, test the claim that their mean is equal to 100. Use 0.05 significance level.
For 1516, find the pvalue. Explain whether you will reject or fail to reject based on the pvalue.
 Test the claim that the mean is greater than 27, if
 Test the claim that the mean is less than 10,000, if
Keywords
Null hypothesis
Alternative hypothesis
Onetailed test
Twotailed test
value
Level of significance
Critical region