230 likes | 588 Views
Section 7-2 Hypothesis Testing for the Mean ( n 30). Objective: SWBAT Find a p value and use them to test a mean ц . How to use P values for a z test. How to find critical values and rejection regions in a normal distribution. How to use rejection regions for a z test.
E N D
Section 7-2 Hypothesis Testing for the Mean (n 30) Objective: SWBAT Find a p value and use them to test a mean ц. How to use P values for a z test. How to find critical values and rejection regions in a normal distribution. How to use rejection regions for a z test.
Example 1 Interpreting a P- value The P-value for a hypothesis test is P = 0.0237. What is your decision if the Level of significance is (1) α =0.05 and (2) α = 0.01? Solution Because 0.0237 < 0.05 you should reject the null hypothesis. 2. Because 0.0237 > 0.01 you should fail to reject the null hypothesis. Try it yourself The P – value for a hypothesis test is P = 0.0347. What is your decision if the Level of significance is (1) α = 0.01 and (2) α = 0.05 Compare the P-value with the level of significance. b. Make your decision.
Example 2 Finding a P - Value for the left tailed test Find the P – value for a left tail hypothesis test with a test statistic of z = -2.23. Decide whether to reject Ho if the level of significance is α = 0.01 Solution: From table 4 in the front of your book the area corresponding to Z= -2.23 is 0.0129 which is the area in the left tail. So the P-value for a left tailed hypothesis test with a test statistic of z=-2.23 is P=0.0129. Because 0.0129 > 0.01. You should fail to reject Ho . Try it Yourself: Find the P-value for a left tailed hypothesis test with a test statistic of z = -1.62. Decide whether to reject Ho if the level of significance is α = 0.05
Example 3 Finding a P - Value for a Two tailed test Find the P – value for a two tailed hypothesis test with a test statistic of z = 2.14. Decide whether to reject Ho if the level of significance is α = 0.05 Solution: From table 4 in the front of your book the area corresponding to Z= 2.14 is 0.9838 which is the area in the right tail. The area in the right tail is 1- .9838 = 0.0162. So the P-value for a two tailed hypothesis test with a test statistic of z=2.14 is P= 2(0.0162)= 0.0324 . Because 0.0324 < 0.05. You should reject Ho . Try it Yourself: Find the P – value for a two tailed hypothesis test with a test statistic of z = 2.31. Decide whether to reject Ho if the level of significance is α = 0.01
The z-Test for a Mean The z-test is a statistical test for a population mean. The z-test can be used: (1) if the population is normal and s is known or (2) when the sample size, n, is at least 30. The test statistic is the sample mean and the standardized test statistic is z. When n 30, use s in place of .
The z-Test for a Mean (P-value) A cereal company claims the mean sodium content in one serving of its cereal is no more than 230 mg. You work for a national health service and are asked to test this claim. You find that a random sample of 52 servings has a mean sodium content of 232 mg and a standard deviation of 10 mg. At = 0.05, do you have enough evidence to reject the company’s claim? 1. Write the null and alternative hypothesis. 2. State the level of significance. = 0.05 3. Determine the sampling distribution. Since the sample size is at least 30, the sampling distribution is normal.
σ= 10 4. Find the test statistic and standardize it. n = 52 s = 10 Test statistic 5. Calculate the P-value for the test statistic. Since this is a right-tail test, the P-value is the area found to the right of z = 1.44 in the normal distribution. From the table P = 1 – 0.9251 Area in right tail P = 0.0749. z = 1.44
6. Make your decision. Compare the P-value to . Since 0.0749 > 0.05, fail to reject H0. In other words we ACCEPT the Ho (Null hypothesis) 7. Interpret your decision. There is not enough evidence to reject the claim that the mean sodium content of one serving of its cereal is no more than 230 mg.
Example 4: Hypothesis Testing Using P- Values In an advertisement a pizza shop claims that its mean delivery time is less than 30 minutes. A random selection of 36 delivery times has a sample mean of 28.5 minutes and a standard deviation of 3.5 minutes. I s there enough evidence to support the claim at α = 0.01? Use a P value. Ho : ц> 30 minutes Ha: : ц < 30 min. the level of significance. α = 0.01
Rejection Area -2.57 From Table 4 the P - value = .0051 Since the Alternative hypothesis indicates this Is a left tailed test. So P = .0051 and .0051 < .01 You should decide to reject the Ho (The null hypothesis). Interpretation: At the 1% level of significance you have sufficient evidence to conclude that the mean delivery time is less than 30 min.
Rejection Regions The rejection region is the range of values for which the null hypothesis is not probable. It is always in the direction of the alternative hypothesis. Its area is equal to . Sampling distribution for Rejection Region z z0 Critical Value z0 A critical value separates the rejection region from the non-rejection region.
Critical Values Find z0 for a right-tail test with = .05. Find z0 for a left-tail test with = .01. The critical value z0 separates the rejection region from the non-rejection region. The area of the rejection region is . Rejection region Rejection region z0 z0 z0 = 1.645 Rejection region Rejection region z0 = –2.33 –z0 = –2.575 and z0 = 2.575 z0 z0 Find –z0 and z0 for a two-tail test with = .01.
Using the Critical Value to Make Test Decisions 1. Write the null and alternative hypothesis. Write H0 and Ha as mathematical statements. Remember H0 always contains the = symbol. 2. State the level of significance. This is the maximum probability of rejecting the null hypothesis when it is actually true. (Making a type I error.) 3. Identify the sampling distribution. The sampling distribution is the distribution for the test statistic assuming that the equality condition in H0 is true and that the experiment is repeated an infinite number of times.
5. Find the rejection region. 4. Find the critical value. The critical value separates the rejection region of the sampling distribution from the non-rejection region. The area of the critical region is equal to the level of significance of the test. Rejection Region z0 6. Find the test statistic. Perform the calculations to standardize your sample statistic.
7. Make your decision. If the test statistic falls in the critical region, reject H0. Otherwise, fail to reject H0. 8. Interpret your decision. If the claim is the null hypothesis, you will either reject the claim or determine there is not enough evidence to reject the claim. If the claim is the alternative hypothesis, you will either support the claim or determine there is not enough evidence to support the claim.
The z-Test for a Mean A cereal company claims the mean sodium content in one serving of its cereal is no more than 230 mg. You work for a national health service and are asked to test this claim. You find that a random sample of 52 servings has a mean sodium content of 232 mg and a standard deviation of 10 mg. At = 0.05, do you have enough evidence to reject the company’s claim? 1. Write the null and alternative hypothesis. 2. State the level of significance. = 0.05 3. Determine the sampling distribution. Since the sample size is at least 30, the sampling distribution is normal.
Rejection region Since Ha contains the > symbol, this is a right-tail test. 4. Find the critical value. 5. Find the rejection region. z0 1.645 6. Find the test statistic and standardize it. n = 52 = 232 s = 10 7. Make your decision. z = 1.44 does not fall in the rejection region, so fail to reject H0 8. Interpret your decision. There is not enough evidence to reject the company’s claim that there is at most 230 mg of sodium in one serving of its cereal.
Using the P-value of a Test to Compare Areas For a P-value decision, compare areas. If reject H0. If fail to reject H0. = 0.05 Area to the left of z 0.1093 z0 = –1.645 Rejection area 0.05 z = –1.23 P = 0.1093 z0 z For a critical value decision, decide if z is in the rejection region If z is in the rejection region, reject H0. If z is not in the rejection region, fail to reject H0.
Homework 1-20 pgs. 357-358 Day2: 21-33 all pgs.358-359 35-45 all pg.360-361