430 likes | 738 Vues
Hypothesis Testing. Chapter 9 BA 201. Hypothesis Testing. The null hypothesis , denoted by H 0 , is a tentative assumption about a population parameter. The alternative hypothesis , denoted by H a , is the opposite of what is stated in the null hypothesis.
E N D
Hypothesis Testing Chapter 9 BA 201
Hypothesis Testing • The null hypothesis, denoted by H0 , is a tentative • assumption about a population parameter. • The alternative hypothesis, denoted by Ha, is the • opposite of what is stated in the null hypothesis.
Summary of Forms for Null and Alternative Hypotheses about a Population Mean • Three Scenarios: One-tailed (lower-tail) One-tailed (upper-tail) Two-tailed
Type I and Type II Errors Population Condition H0 True (m< 12) H0 False (m > 12) Conclusion AcceptH0 (Concludem< 12) Correct Decision Type II Error Type I Error Correct Decision RejectH0 (Conclude m > 12)
Two Scenarios • Known z Score • Unknown t Value
p-Value Approach • The p-value is the probability, computed using the test statistic, that measures the support (or lack of support) provided by the sample for the null hypothesis. • Reject H0 if the p-value <.
Tests About a Population Mean:sKnown • Rejection Rule: p -Value Approach Reject H0 if p–value <a • Rejection Rule: Critical Value Approach H0: Ha: Reject H0 if z <-z H0: Ha: > Reject H0 if z> z H0: Ha: Reject H0 if z<-zor z > z
Lower-Tailed Test About a Population Mean a = 0.10 p-value 072 z z = -1.46 -za = -1.28 0
Upper-Tailed Test About a Population Mean a = 0.04 p-Value 011 z za = 1.75 z = 2.29 0
Two-Tailed Tests About a Population Mean 1/2 p -value = .0031 1/2 p -value = .0031 a/2 = .015 a/2 = .015 z z = -2.74 0 z = 2.74 -za/2 = -2.17 za/2 = 2.17
z Statistics for s Known Where 0 is the mean under H0 is the population standard deviation n is the sample size
One-Tailed Tests About a Population Mean: s Known Metro EMS The response times for a random sample of 40 medical emergencies were tabulated. The sample mean is 13.25 minutes. The population standard deviation is believed to be 3.2 minutes. The EMS director wants to perform a hypothesis test, with a .05 level of significance, to determine whether the service goal of 12 minutes or less is being achieved.
One-Tailed Tests About a Population Mean: s Known • p -Value and Critical Value Approaches 1. Develop the hypotheses. H0: Ha: a = 0.05 2. Specify the level of significance. 3. Compute the value of the test statistic.
One-Tailed Tests About a Population Mean: s Known • p –Value Approach 4. Compute the p –value. For z = 2.47, cumulative probability = 0.9932. p–value = 1 -0.9932 = 0.0068 5. Determine whether to reject H0. Because p–value = 0.0068 <a = .05, we reject H0. There is sufficient statistical evidence to infer that Metro EMS is not meeting the response goal of 12 minutes.
Sampling distribution of One-Tailed Tests About a Population Mean: s Known • p –Value Approach a = .05 p-value z za = 1.645 z = 2.47 0
One-Tailed Tests About a Population Mean: s Known • Critical Value Approach 4. Determine the critical value and rejection rule. For a = 0.05, z0.05= 1.645 Reject H0 if z> 1.645 5. Determine whether to reject H0. Because 2.47 > 1.645, we reject H0. There is sufficient statistical evidence to infer that Metro EMS is not meeting the response goal of 12 minutes.
p-Value Approach to Two-Tailed Hypothesis Testing • Compute the p-value using the following three steps: 1. Compute the value of the test statistic z. 2. If z is in the upper tail (z > 0), find the area under the standard normal curve to the right of z. If z is in the lower tail (z < 0), find the area under the standard normal curve to the left of z. 3. Double the tail area obtained in step 2 to obtain the p–value. Reject H0 if the p-value <.
Two-Tailed Tests About a Population Mean: s Known Glow Toothpaste The production line for Glow toothpaste is designed to fill tubes with a mean weight of 6 oz. Periodically, a sample of 30 tubes will be selected in order to check the filling process. Quality assurance procedures call for the continuation of the filling process if the sample results are consistent with the assumption that the mean filling weight for the population of toothpaste tubes is 6 oz.; otherwise the process will be adjusted.
Two-Tailed Tests About a Population Mean: s Known Glow Toothpaste Assume that a sample of 30 toothpaste tubes provides a sample mean of 6.1 oz. The population standard deviation is believed to be 0.2 oz. Perform a hypothesis test, at the 0.03 level of significance, to help determine whether the filling process should continue operating or be stopped and corrected.
H0: = 6 Ha: Two-Tailed Tests About a Population Mean: s Known • p –Value and Critical Value Approaches 1. Determine the hypotheses. a = .03 2. Specify the level of significance. 3. Compute the value of the test statistic.
Two-Tailed Tests About a Population Mean: s Known • p –Value Approach 4. Compute the p –value. For z = 2.74, cumulative probability = 0.9969 p–value = 2(1 -0.9969) = 0.0062 5. Determine whether to reject H0. Because p–value = 0.0062 <a = 0.03, we reject H0. There is sufficient statistical evidence to infer that the alternative hypothesis is true (i.e. the mean filling weight is not 6 ounces).
Two-Tailed Tests About a Population Mean 1/2 p -value = .0031 1/2 p -value = .0031 a/2 = .015 a/2 = .015 z z = -2.74 0 z = 2.74 -za/2 = -2.17 za/2 = 2.17
Two-Tailed Tests About a Population Mean: s Known • Critical Value Approach 4. Determine the critical value and rejection rule. For a/2 = .03/2 = .015, z.015 = 2.17 Reject H0 if z< -2.17 or z> 2.17 5. Determine whether to reject H0. Because 2.74 > 2.17, we reject H0. There is sufficient statistical evidence to infer that the alternative hypothesis is true (i.e. the mean filling weight is not 6 ounces).
Two-Tailed Tests About a Population Mean: s Known • Critical Value Approach 1/2 p -value = .0031 1/2 p -value = .0031 Reject H0 Reject H0 Do Not Reject H0 z = -2.74 z = 2.74 z 0 2.17 -2.17
Tests About a Population Mean:s Unknown Where 0 is the mean under H0 s is the sample standard deviation n is the sample size This test statistic has a t distribution with n - 1 degrees of freedom.
Tests About a Population Mean:s Unknown • Rejection Rule: p -Value Approach Reject H0 if p –value <a • Rejection Rule: Critical Value Approach H0: Ha: Reject H0 if t < -t H0: Ha: > Reject H0 if t > t H0: Ha: Reject H0 if t < - t or t > t
p -Values and the t Distribution • The format of the t distribution table provided in most • statistics textbooks does not have sufficient detail • to determine the exact p-value for a hypothesis test. • However, we can still use the t distribution table to identify a range for the p-value. • An advantage of computer software packages is that the computer output will provide the p-value for the t distribution.
Example: Highway Patrol • One-Tailed Test About a Population Mean: s Unknown A State Highway Patrol periodically samples vehicle speeds at various locations on a particular roadway. The sample of vehicle speeds is used to test the hypothesis H0: m< 65. The locations where H0 is rejected are deemed the best locations for radar traps. At Location F, a sample of 64 vehicles shows a mean speed of 66.2 mph with a standard deviation of 4.2 mph. Use a = .05 to test the hypothesis.
One-Tailed Test About a Population Mean:s Unknown • p –Value and Critical Value Approaches 1. Determine the hypotheses. H0: < 65 Ha: m > 65 a = .05 2. Specify the level of significance. 3. Compute the value of the test statistic.
One-Tailed Test About a Population Mean:s Unknown • p –Value Approach 4. Compute the p –value. For t = 2.286, the p–value must be less than .025 (for t = 1.998) and greater than .01 (for t = 2.387). .01 < p–value < .025 5. Determine whether to reject H0. Because p–value <a = .05, we reject H0. We are at least 95% confident that the mean speed of vehicles at Location F is greater than 65 mph.
One-Tailed Test About a Population Mean:s Unknown • Critical Value Approach 4. Determine the critical value and rejection rule. For a = .05 and d.f. = 64 – 1 = 63, t.05 = 1.669 Reject H0 if t> 1.669 5. Determine whether to reject H0. Because 2.286 > 1.669, we reject H0. We are at least 95% confident that the mean speed of vehicles at Location F is greater than 65 mph. Location F is a good candidate for a radar trap.
One-Tailed Test About a Population Mean:s Unknown Reject H0 Do Not Reject H0 0 t ta = 1.669 0
9.30 (C.L. = 95%)