1 / 34

Chapter 8 Hypothesis Testing

Chapter 8 Hypothesis Testing. Definitions 1 Sample Mean Z-test 1 Sample Mean T-test 1 Proportion Z-test 2 Independent Samples T-test 2 Related Samples Paired Data Type of Errors. Definition. Hypotheses Test Statistic P-value Decision and Conclusion. Definition.

mignon
Télécharger la présentation

Chapter 8 Hypothesis Testing

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Chapter 8Hypothesis Testing Definitions 1 Sample Mean Z-test 1 Sample Mean T-test 1 Proportion Z-test 2 Independent Samples T-test 2 Related Samples Paired Data Type of Errors

  2. Definition Hypotheses Test Statistic P-value Decision and Conclusion

  3. Definition Hypotheses – has 2 parts, the null hypothesis (H0) and alternative hypothesis (Ha) Null Hypothesis – hypothesis that we will reject if the data shows evidence that it is false. Alternative Hypothesis – hypothesis that we will fail to reject if the data shows evidence that null hypothesis is false.

  4. Definition A. Hypothesis for one-tailed tests Keyword: ‘less than’ or equivalent phrase yields the hypotheses Ho: µ ≤ µ0vs Ha: µ > µ0 where µ0 is constant Key word: ‘greater than’ or equivalent phrase yields the hypotheses Ho: µ ≥ µ0vs Ha: µ < µ0where µ0 is constant

  5. Definition B. Hypotheses for two-tailed tests Key word: ‘not equal to’ or equivalent phrase yields the hypotheses Ho: µ = µ0vs Ha: µ ≠ µ0 where µ0 is constant

  6. iClicker

  7. Definition Test Statistic The test statistic can either be a Z or a T test statistic. Z test statistic is used if the population standard deviation (σ) is known. T test statistic is used if the population standard deviation (σ) is not known.

  8. Definition p-value – probability of the point estimate occurring if the hypothesized value is true. A. One-tailed test: p-value comes from 2 distributions Normal distribution: if Z test statistic is used p-value=normalCDF(|TS|,99999) T distribution: if T test statistic is used p-value=tCDF(|TS|,99999,df)

  9. Definition B. Two-tailed test: p-value comes from 2 distributions Normal distribution: if Z test statistic is used p-value=2 * normalCDF(|TS|,99999) T distribution: if T test statistic is used p-value=2 * tCDF(|TS|,99999,df)

  10. Definition Decision and Conclusion If the p-value < α, then reject the null hypothesis (H0) and conclude the alternative hypothesis. Otherwise, do not reject the null hypothesis (H0) and state that there is no evidence that the null hypothesis is false. Note: α is the level of significance

  11. General procedure State the null hypothesis (Ho) and alternative hypothesis (Ha) Identify the test procedure Compute for the test statistic and p-value Make a statistical decision and conclusion

  12. 1 Sample Mean t-Test A bank branch located in a commercial district of a city has developed an improved process for serving customers during the 12 noon to 1 pm peak lunch period. The waiting time (operationally defined as the time the customer enters the line until he or she is served) of all customers during this hour is recorded over a period of 1 week. A random sample of 13 customers is selected, and the results are as follows: 4.21 5.55 3.02 5.13 4.77 3.54 3.20 4.50 6.10 5.12 6.46 6.19 3.79 At a 0.05 level of significance, is there evidence that the average waiting time is less than 5 minutes?

  13. 1 Sample Mean t-Test • Given: µ0 = 5 • Hypothesis • H0:  ≥ 5(Average waiting time is greater than or equal to 5 minutes) • Ha: < 5 (Average waiting time is less than 5 minutes) • 2. Test procedure : one-tailed t-test at α = 0.05 • Test statistic and p-value • Put the data into a lists and compute for sample mean and standard deviation

  14. 1 Sample Mean t-Test 3. Test statistic and p-value 4. Decision and conclusion Since p-value > α (0.2128 > 0.05), Fail to reject Ho. There is no evidence that waiting time is less than 5 minutes.

  15. iClicker

  16. 1 Sample Mean t-Test A random sample of 25 cans of infant milk each labeled “Net Weight: 10.75 oz.,” has an average net weight of 10.5 oz. with a standard deviation of 0.3 oz. Does this sample information support the claim of a consumer group that the infant cans are under filled at a 0.05 level of significance? Assume that net weight is normally distributed. Given: n=25 sample mean = 10.5 SD = 0.3 α = 0.05 µ0 = 10.75

  17. 1 Sample Mean t-Test • Hypothesis • H0:  ≥ 10.75(cans are not underfilled) • Ha: < 10.75 (cans are underfilled) • 2. Test procedure : One tailed t-test at α = 0.05

  18. 1 Sample Mean t-Test Test statistic and p-value Decision and conclusion Since p-value < α (0.000173 < 0.05), reject Ho. The cans of milk are under filled.

  19. 1 Proportion Z-test Test Statistic:

  20. 1 Proportion Z-test The marketing branch of the Mexican Tourist Bureau would like to increase the proportion of tourists who purchase silver jewelry while vacationing in Mexico from its present estimated value of 0.40. Toward this end, promotional literature describing both the beauty and value of the jewelry is prepared and distributed to all passengers on airplanes arriving at a certain seaside resort during a 1-week period. A sample of 500 passengers returning at the end of the 1-week period is randomly selected, and 228 of these passengers indicate that they purchased silver jewelry. At a 0.05 level of significance, is there evidence that the proportion has increased above the previous value of 0.40?

  21. 1 Proportion Z-test • Given: x = 228 • n = 500 • p0 = .40 • Hypothesis • H0: p ≤ .40(proportion is at most 40%) • Ha: p> .40(proportion is greater than 40%) • 2.Test procedure : One-tailed Proportion Z-test at α = 0.05

  22. 1 Proportion Z-test Test statistic and p-value 4. Decision and conclusion Since p-value < α (0.0053 < 0.05), reject Ho. The proportion of passengers who purchase the silver jewelry is greater than 40%.

  23. 1 Proportion Z-test The average mortality rate for a certain disease is 24 out of 100 attacks. A new treatment for the disease is tested on 300 patients that resulted to 54 deaths. What can we say about the efficiency of the new treatment at a 0.05 level of significance? Given: X = 54 n = 300 p0 = 24/100 = .24

  24. 1 Proportion Z-test • Hypothesis • H0: p ≥ .24(new treatment did not increase efficiency) • Ha: p< .24(new treatment increased efficiency) • 2. Test procedure : One-tailed Proportion Z-test at α = 0.05

  25. 1 Proportion Z-test Test statistic and p-value Decision and conclusion Since p-value < α (0.0075 < 0.05), reject null hypothesis. The new treatment has increased efficiency.

  26. iClicker (random sample=25) 0.4458 0.4458

  27. 2 Independent Sample t-Test A large automobile manufacturing company is trying to decide whether to purchase brand A or brand B tires for its new models. To help arrive at a decision, an experiment is conducted using 12 of each brand. The tires are run until they wear out. The results are: Test the hypothesis at a 0.05 level of significance that there is no difference in the 2 brands of tires. Assume the populations to be approximately normally distributed.

  28. 2 Independent Sample t-Test • Hypothesis • H0: µ1 - µ2 = 0 (the two brands of tires are equal) • Ha: µ1 - µ2 ≠ 0 (the two brands of tires are not equal) • Test procedure : two tailed 2 independent sample t-test • at α = 0.05

  29. 2 Independent Sample t-Test Test statistic and p-value TS = -.844 p-value = .41 Use 2-SampTTest. Decision and conclusion Since p-value > α (.41 >.05), do not reject null hypothesis. There is no evidence that brand A and brand B tires are different.

  30. 2 Dependent Sample t-Test A digital blood pressure gauge, manufactured for home use, was tested recently in the following manner. Eight individuals had their blood pressure taken, first by a highly respected physician, then by the home device. The data are shown below: Person 1 2 3 4 5 6 7 8 Phys 112 109 139 141 120 99 128 118 Dev 126 108 116 123 138 123 119 122 Diff. 14 -1 -23 -18 18 24 -9 4 Test if the measurements are not equal at 0.05 level of significance.

  31. 2 Dependent Sample t-test • Hypothesis • µdiff = 0 (physician and device have the same accuracy) • µdiff ≠ 0 (physician and device does not have the same accuracy) • Test procedure: two-tailed 2 dependent sample t-test • Test statistic and p-value • Put the data into 2 lists in TI-83/84 and compute for the differences. Conduct a 1 sample t-test on the differences.

  32. 2 Dependent Sample t-test Decision and conclusion Since p-value > α (.857 > .05), do not reject null hypothesis. There is no evidence that the physician and the device are different.

  33. Type of Errors Type I Error  error in rejecting the null hypothesis (H0) when in fact H0 is true.  the probability of committing this error is α (level of significance). Type II Error  error in not rejecting the null hypothesis when H0 is false.

  34. Example

More Related