Presentation is loading. Please wait.

Presentation is loading. Please wait.

Copyright © 2009 Pearson Education, Inc. 9.2 Hypothesis Tests for Population Means LEARNING GOAL Understand and interpret one- and two-tailed hypothesis.

Similar presentations


Presentation on theme: "Copyright © 2009 Pearson Education, Inc. 9.2 Hypothesis Tests for Population Means LEARNING GOAL Understand and interpret one- and two-tailed hypothesis."— Presentation transcript:

1 Copyright © 2009 Pearson Education, Inc. 9.2 Hypothesis Tests for Population Means LEARNING GOAL Understand and interpret one- and two-tailed hypothesis tests for claims made about population means, and learn to recognize and avoid common errors (type I and type II errors) in hypothesis tests.

2 Slide 9.2- 2 Copyright © 2009 Pearson Education, Inc. One-Tailed Hypothesis Tests Consider the following hypothetical situation. Columbia College advertises that the mean starting salary of its graduates is $39,000. An independent organization suspects that this claim is exaggerated and decides to conduct a hypothesis test to seek evidence to support its suspicion. The null and alternative hypotheses are H 0 : μ = $39,000 H a : μ < $39,000 Because the alternative hypothesis has a “less than” form, we are dealing with a left-tailed hypothesis test.

3 Slide 9.2- 3 Copyright © 2009 Pearson Education, Inc. From the four-step hypothesis test process on page 376: Step 1: The The mean starting salary has been identified as the population parameter of interest, the null and alternative hypotheses have been stated. Step 2: The sample has been drawn and measured to determine its sample size and sample mean. They select a random sample of 100 recent graduates from the college. The mean salary of the graduates in the sample turns out to be x = $37,000. ¯ x The Sampling Distribution Step 3 of the hypothesis test process is finding the likelihood of observing a sample mean as extreme as the one found, under the assumption that the null hypothesis is true.

4 Slide 9.2- 4 Copyright © 2009 Pearson Education, Inc. For the Columbia College example, the question becomes this: How likely are we to select a sample (of size n = 100) with a mean of $37,000 or less when the mean for the whole population is $39,000? To answer this question, we need a crucial observation based on our work with sampling distributions in Chapter 8: The observed sample mean (x = $37,000 ) is just one point in a distribution of sample means. Moreover, assuming the null hypothesis is true, this distribution of sample means is approximately normal with a mean of μ = $39,000. x = $37,000 ¯ x

5 Slide 9.2- 5 Copyright © 2009 Pearson Education, Inc. Figure 9.1 Graphical interpretation of the hypothesis test for the Columbia College example. If the null hypothesis is true, then the population mean is μ = $39,000. In that case, if we took many samples from the population, the distribution of sample means would be approximately normal with a mean of $39,000. Under this assumption, the distance of a single sample mean from the population mean allows us to decide whether to reject or not reject the null hypothesis.

6 Slide 9.2- 6 Copyright © 2009 Pearson Education, Inc. One-Tailed Hypothesis Tests The Sampling Distribution Finding the Standard Score Because the sampling distribution is a (nearly) normal distribution, the standard score of the sample mean represents a quantitative measure of the distance between the sample mean and the claimed population mean. Recall from Section 5.2 that the standard score (or z-score) of a data value in a normal distribution is the number of standard deviations that it lies above or below the mean of the distribution.

7 Slide 9.2- 7 Copyright © 2009 Pearson Education, Inc. From the Central Limit Theorem (Section 5.3), the standard deviation of a distribution of sample means is σ / n, where σ is the population standard deviation and n is the sample size. Putting these ideas together, we find the following formula for the standard score of a sample mean : z = = sample mean – population mean standard deviation of sampling distribution The only remaining problem is that we generally do not know the population standard deviation, σ. For now, let’s assume that we can approximate the population standard deviation with the sample standard deviation, s, and that s = $6,150 for the 100 salaries in the sample.

8 Slide 9.2- 8 Copyright © 2009 Pearson Education, Inc. z = = = -3.25 $37,000 – $39,000 $615 Using this value in the previous equation tells us that the standard score for the sample mean of in a sampling distribution with a population mean of μ = $39,000 is x = $37,000 ¯ x In other words, the sample mean of lies 3.25 standard deviations below the mean of the sampling distribution. x = $37,000 ¯ x (In Section 10.1 we’ll discuss a better way to proceed when σ is not known.) In that case, we set σ = $6,150 and the standard deviation for the distribution of sample means is z = = = $615 $6,150 1100

9 Slide 9.2- 9 Copyright © 2009 Pearson Education, Inc. Computing the Standard Score for the Sample Mean in a Hypothesis Test When we draw a random sample for a hypothesis test, we can consider it to be one of many possible samples in the sampling distribution. Given the sample size (n), the sample mean the population standard deviation (σ), and the claimed population mean (μ), we make the following computations: standard deviation for the distribution of sample means = standard score for the sample mean, z = Note: In reality, it is rare that we know the population standard deviation σ ; see Section 10.1 about how to deal with such cases. ( ), x ¯

10 Slide 9.2- 10 Copyright © 2009 Pearson Education, Inc. One-Tailed Hypothesis Tests The Sampling Distribution Finding the Standard Score Critical Values for Statistical Significance Recall that the hypothesis test is significant at the 0.05 level if the probability of finding a result as extreme as the one actually observed is 0.05 or less (assuming the null hypothesis is true). For a left-tailed test, then, we are looking for a standard score that is at or below the 5 th percentile of the sampling distribution. From Appendix A, the 5th percentile has a standard score of z = -1.645.

11 Slide 9.2- 11 Copyright © 2009 Pearson Education, Inc. Therefore, a left-tailed hypothesis test is significant at the 0.05 level if the standard score of the sample mean is less than or equal to z = -1.645. This standard score represents the critical value for significance at the 0.05 level in a left-tailed hypothesis test.

12 Slide 9.2- 12 Copyright © 2009 Pearson Education, Inc.

13 Slide 9.2- 13 Copyright © 2009 Pearson Education, Inc. Decisions Based on Statistical Significance for One-Tailed Hypothesis Tests We decide whether to reject or not reject the null hypothesis by comparing the standard score (z) for a sample mean to critical values for significance at a given level. Table 9.1 (next slide) summarizes the decisions for one-tailed hypothesis tests at the 0.05 and 0.01 levels of significance.

14 Slide 9.2- 14 Copyright © 2009 Pearson Education, Inc.

15 Slide 9.2- 15 Copyright © 2009 Pearson Education, Inc. TIME OUT TO THINK Suppose that, in right-tailed tests, one study finds a sample mean with z = 3 and another study finds a sample mean with z = 10. Both are significant at the 0.01 level, but which result provides stronger evidence for rejecting the null hypothesis? Explain.

16 Slide 9.2- 16 Copyright © 2009 Pearson Education, Inc. Assuming that the null hypothesis is true and the mean starting salary for Columbia College graduates is $39,000, is it statistically significant to find a sample in which the mean is only $37,000? Based on your answer, should we reject or not reject the null hypothesis? Solution: Recall that the hypothesis test is left-tailed (because the alternative hypothesis has the “less than” form of μ < $39,000) and we already found that a sample mean of x = $37,000 has a standard score of -3.25. This result is significant at the 0.05 level because the standard score is less than the critical value of z = -1.645. EXAMPLE 1 Columbia College Test Significance x =x = ¯ x

17 Slide 9.2- 17 Copyright © 2009 Pearson Education, Inc. Solution: (cont.) In fact, it is also significant at the 0.01 level, because the standard score is less than -2.33. We therefore have strong reason to reject the null hypothesis and conclude that Columbia College officials did indeed exaggerate the mean starting salary of its graduates. EXAMPLE 1 Columbia College Test Significance

18 Slide 9.2- 18 Copyright © 2009 Pearson Education, Inc. One-Tailed Hypothesis Tests The Sampling Distribution Finding the Standard Score Critical Values for Statistical Significance Finding the P-Value Recall that the P-value is the probability of finding a sample mean as extreme as the one found, under the assumption that the null hypothesis is true. For a left-tailed test, the probability of finding a sample mean less than or equal to some particular value is simply the area under the curve to the left of the sample mean.

19 Slide 9.2- 19 Copyright © 2009 Pearson Education, Inc. Figure 9.4 The P-value for one-tailed hypothesis tests corresponds to an area under the sampling distribution curve. Once we compute the standard score for a particular sample mean, we can find the corresponding area from standard score tables like those in Appendix A. (Note: Appendix A lists areas to the left of each standard score; therefore, for right-tailed tests, finding the area to the right of the sample mean requires subtracting the value given in the table from 1.)

20 Slide 9.2- 20 Copyright © 2009 Pearson Education, Inc. One-Tailed Hypothesis Tests The Sampling Distribution Finding the Standard Score Critical Values for Statistical Significance Finding the P-Value Summary of One-Tailed Tests for Population Means

21 Slide 9.2- 21 Copyright © 2009 Pearson Education, Inc. To summarize: Because we are dealing with population means, the null hypothesis has the form μ = claimed value. To decide whether to reject or not reject the null hypothesis, we must determine whether a sample as extreme as the one found in the hypothesis test is likely or unlikely to occur if the null hypothesis is true. We determine this likelihood from the standard score (z) of the sample mean, which we compute from the formula where n is the sample size, x is the sample mean, μ is the population mean claimed by the null hypothesis, and σ is the population standard deviation. (In this section, we generally approximate σ with the sample standard deviation, s; a better approach is described in Section 10.1.) z = ¯ x

22 Slide 9.2- 22 Copyright © 2009 Pearson Education, Inc. To summarize: (cont.) We can then assess the standard score in two ways: 1. We can assess its level of statistical significance by comparing it to the critical values given in Table 9.1 (page 383). 2. We can determine its P-value with standard score tables like those in Appendix A. For a left-tailed test, the P-value is the area under the normal curve to the left of the standard score; for a right-tailed test, it is the area under the normal curve to the right of the standard score. If the result is statistically significant at the chosen level (usually either the 0.05 or the 0.01significance level), we reject the null hypothesis. If it is not statistically significant, we do not reject the null hypothesis.

23 Slide 9.2- 23 Copyright © 2009 Pearson Education, Inc. Recall the case of the rental car fleet owner (Example 5 of Section 9.1) who suspects that the mean annual mileage of his cars is greater than the national mean of 12,000 miles. He selects a random sample of n = 225 cars and calculates the sample mean to be x = 12,375 miles and the sample standard deviation to be s = 2,415 miles. Determine the level of statistical significance and P-value for this hypothesis test, and interpret your findings. Solution: To determine the significance and P-value we must first calculate the standard score for the sample mean of = 12,375 miles. We are given the claimed population mean (μ = 12,000 miles) and the sample size (n = 225); we do not know the population standard deviation, σ, but we will assume it is the same as the sample standard deviation and set s = 2,415 miles. EXAMPLE 2 Mean Rental Car Mileage (Revisited) x = 12,375 x ¯ x ¯

24 Slide 9.2- 24 Copyright © 2009 Pearson Education, Inc. Solution: (cont.) We find This standard score is greater than the critical value of z = 1.645 for significance at the 0.05 level and equal to the value of z = 2.33 for significance at the 0.01 level, giving us strong reason to reject the null hypothesis and conclude that the rental car fleet average really is greater than the national average. We can find the P-value from Appendix A, which shows that the area to the left of a standard score of z = 2.33 is 0.9901; because this is a right-tailed test, the probability is the area to the right (see Figure 9.4b in slide 19), which is 1 – 0.9901 = 0.0099. Therefore, the P-value is 0.0099, which is very close to 0.01. EXAMPLE 2 Mean Rental Car Mileage (Revisited) z = = = 2.33 12,375 – 12,000 2,415/ 225

25 Slide 9.2- 25 Copyright © 2009 Pearson Education, Inc. Two-Tailed Tests The same basic ideas apply to two-tailed hypothesis tests in which the alternative hypothesis has the “not equal to” form of H a : μ = claimed value. For two-tailed tests a value “as extreme as the one actually found” can lie either on the left or on the right of the sampling distribution (Figure 9.5 in the next slide). A probability of 0.05, or 5%, therefore corresponds to standard scores either in the first 2.5% of the sampling distribution on the left or in the last 2.5% on the right. From Appendix A, the 2.5 th percentile corresponds to a standard score of -1.96 and the 97.5 th percentile corresponds to a standard score of 1.96. These standard scores become the critical values for two-tailed tests to be significant at the 0.05 level.

26 Slide 9.2- 26 Copyright © 2009 Pearson Education, Inc. Figure 9.5 For two-tailed tests, the critical values for significance at the 0.05 level correspond to the 2.5th and 97.5th percentiles (as opposed to the 5th or 95th percentiles for one-tailed tests).

27 Slide 9.2- 27 Copyright © 2009 Pearson Education, Inc. Two-Tailed Test (H a : μ ≠ claimed value) Statistical significance: A two-tailed test is significant at the 0.05 level if the standard score of the sample mean is at or below a critical value of -1.96 or at or above a critical value of 1.96. For significance at the 0.01 level, the critical values are -2.575 and 2.575. P-values: To find the P-value for a sample mean in a two- tailed test, first use the standard score of the sample mean to find the P-value assuming the test is one-tailed; then double this value to find the P–value for the two- tailed test.

28 Slide 9.2- 28 Copyright © 2009 Pearson Education, Inc. An example: Consider a drug company that seeks to be sure that its “500- milligram” aspirin tablets really contain 500 milligrams of aspirin. The null hypothesis says that the population mean of the aspirin content is 500 milligrams: H 0 : μ = 500 milligrams The drug company is interested in the possibility that the mean weight is either less than or greater than 500 milligrams. Because the company is interested in possibilities on both sides of the claimed mean of 500 milligrams, we have a two-tailed test in which the alternative hypothesis is H a : μ ≠ 500 milligrams

29 Slide 9.2- 29 Copyright © 2009 Pearson Education, Inc. An example: (cont.) Suppose the company selects a random sample of n = 100 tablets and finds that they have a mean weight of x = 12,375milligrams; further suppose that the population standard deviation is σ = 7.0 milligrams. Then the standard score (z) for this sample mean is This standard score is above the critical value of 1.96 for a two- tailed test, so it is significant at the 0.05 level. (It is not significant at the 0.01 level, because it is not above the critical value of 2.575.) This gives us good reason to reject the null hypothesis and conclude that the mean weight of the “500-milligram” aspirin tablets is different from 500 milligrams. x = 501.5 x ¯ z = = = 2.33 501.5 – 5000 7/ 100

30 Slide 9.2- 30 Copyright © 2009 Pearson Education, Inc. An example: (cont.) We find the P-value by using Appendix A, which shows that the area to the left of a standard score of z = 2.14 is 0.9838. Therefore, if this were a one-tailed test, the P-value would be the area to the right, or 1 – 0.9838 = 0.0162. But because this is a two-tailed test, we double this number to find that the P-value is 2 × 0.0162 = 0.0324. In other words, if the null hypothesis is true, the probability of drawing a sample as extreme as the one found is 0.0324.

31 Slide 9.2- 31 Copyright © 2009 Pearson Education, Inc. Common Errors in Hypothesis Testing Two common types of error may affect the conclusions. Recall the legal analogy at the end of Section 9.1, in which the null hypothesis is H 0 : The defendant is innocent. One type of error occurs if we conclude that the defendant is guilty when, in reality, he or she is innocent. The other type of error occurs if we find the defendant not guilty when he or she actually is guilty. In this case, we have wrongly failed to reject the null hypothesis.

32 Slide 9.2- 32 Copyright © 2009 Pearson Education, Inc. Type I and Type II errors An error in which H 0 is wrongly rejected, is called a type I error. An error in which we wrongly fail to reject H 0, is called a type II error.

33 Slide 9.2- 33 Copyright © 2009 Pearson Education, Inc. Common Errors in Hypothesis Testing Bias in Choosing Hypotheses Consider a situation in which a factory is investigated for releasing pollutants into a nearby stream at a level that may (or may not) exceed the maximum level allowed by the government. The logical choice for the null hypothesis is that the actual mean level of pollutants equals the maximum allowed level: H 0 : mean level of pollutants = maximum level allowed

34 Slide 9.2- 34 Copyright © 2009 Pearson Education, Inc. However, this leaves us with two reasonable choices for the alternative hypothesis, each of which introduces some bias into the ultimate conclusions. If factory officials conducted the test, they would be inclined to claim that the mean level of pollutants is less than the maximum allowed level. H 0 : mean level of pollutants < maximum level allowed With this alternative hypothesis, the two possible outcomes are Reject H 0, in which case we conclude that the mean level of pollutants is less than the allowed maximum. This outcome would please the factory officials. Not reject H 0, in which case the test is inconclusive.

35 Slide 9.2- 35 Copyright © 2009 Pearson Education, Inc. Now suppose an environmental group conducts the test. Because the group suspects that the factory is violating the government standards, its choice for the alternative hypothesis would be that the mean level of pollutants is greater than the maximum allowed level, or H a : mean level of pollutants > maximum level allowed With this choice of alternative hypothesis, rejection of H 0 implies that the factory has violated the standards, while not rejecting H 0 is again inconclusive. In other words, choosing the right-tailed (“greater than”) test creates a situation in which the factory may be found in violation but cannot be proved to be in compliance.

36 Slide 9.2- 36 Copyright © 2009 Pearson Education, Inc. The End


Download ppt "Copyright © 2009 Pearson Education, Inc. 9.2 Hypothesis Tests for Population Means LEARNING GOAL Understand and interpret one- and two-tailed hypothesis."

Similar presentations


Ads by Google