1 / 16

Chapter 22 Two-Sample Proportions Inference

Chapter 22 Two-Sample Proportions Inference. Steps for doing a confidence interval:. State the parameter Assumptions – 1) The samples are chosen randomly and were chosen independently of each other. OR Treatments were assigned randomly to individuals or objects (or vice-versa)

hashim-reed
Download Presentation

Chapter 22 Two-Sample Proportions Inference

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 22Two-Sample Proportions Inference

  2. Steps for doing a confidence interval: • State the parameter • Assumptions – 1) The samples are chosen randomly and were chosen independently of each other. OR Treatments were assigned randomly to individuals or objects (or vice-versa) 2) Both samples need to be large. n1p1 10 and n1(1-p1)  10 and n2p2 10 and n2(1-p2)  10 3) 10% rule – Both samples are less than 10% of the population. 3) Calculate the interval 4) Write a statement about the interval in the context of the problem.

  3. Formula for confidence interval: Margin of error! Standard error! Note: use p-hat when p is not known

  4. Example 1: At Community Hospital, the burn center is experimenting with a new plasma compress treatment. A random sample of 316 patients with minor burns received the plasma compress treatment. Of these patients, it was found that 259 had no visible scars after treatment. Another random sample of 419 patients with minor burns received no plasma compress treatment. For this group, it was found that 94 had no visible scars after treatment. What is a 95% confidence interval of the difference in proportion of people who had no visible scars between the plasma compress treatment & control group?

  5. State the parameters p1 = the true proportion of patients who had no visible scars with the plasma compress treatment p2 = the true proportion of patients who had no visible scars without the plasma compress treatment p1 - p2 = the true difference in proportion of patients who had no visible scars between the two treatments Justify the confidence interval needed (state assumptions) 1) The treatments were assigned randomly to individuals which is stated in the problem. 2) Both samples should be large. So both samples are large. 3) The samples should be less than 10% of the population. The population should be at least 7350 burn patients which I will assume. Since the conditions are met a CI for the difference of proportions is appropriate. Since the conditions are satisfied a CI for proportions is appropriate.

  6. Calculate the confidence interval. 95% CI Explain the interval in the context of the problem. We are 95% confident that the true difference in proportion of people who had no visible scars between the plasma compress treatment & control group is between 53.7% and 65.4%

  7. Steps for a hypothesis test for the difference of two proportions: • Define the parameter • Hypothesis statements • Assumptions • Calculations (Find the p-value) • Conclusion, in context

  8. Hypotheses Statements Null hypothesis H0: p1 = p2 or p1 - p2=0 Alternative hypothesis Ha: p1 > p2 Ha: p1 < p2 Ha: p1≠ p2

  9. Assumptions • The samples are chosen randomly and were chosen independently of each other. OR Treatments were assigned randomly to individuals or objects (or vice-versa) • 2) Both samples need to be large. • n1p1 10 and n1(1-p1)  10 and n2p2 10 and n2(1-p2)  10 • 3) 10% rule – Both samples are less than 10% of the population.

  10. Formula for Hypothesis test: where

  11. A forest in Oregon has an infestation of spruce moths. In an effort to control the moth, one area has been regularly sprayed from airplanes. In this area, a random sample of 495 spruce trees showed that 81 had been killed by moths. A second nearby area receives no treatment. In this area, a random sample of 518 spruce trees showed that 92 had been killed by the moth. Do these data indicate that the proportion of spruce trees killed by the moth is different for these areas?

  12. Parameters and Hypotheses p1 = the true proportion of trees killed by moths in the treated area p2 = the true proportion of trees killed by moths in the untreated area p1 – p2 = the true difference in proportion of trees killed by moths in the two areas. H0: p1 = p2 Ha: p1 ≠ p2 Assumptions (Conditions) 1) Both samples must be random which is stated in the problem. 2) Both samples should be large. So both samples are large. 3) The samples should be less than 10% of the population. The population should be at least 10130 spruce trees which I will assume. Since the conditions are met, a z-test for the difference of proportions is appropriate.

  13. Calculations

  14. Decision: Since the p-value > , I fail to reject the null hypothesis at the .05 level. Conclusion: There is not sufficient evidence to suggest that the proportion of spruce trees killed by the moth is different for these areas

  15. Using the Calculator to find a 2 proportion Z-interval • Go to STAT, curser over to TESTS, scroll down to B:2-PropZInt • Enter the observed numbers (sometimes you may have to multiply np for each x value.) • Specify the desired confidence level, and calculate the result. • Example: • X1 = .28 * 506 (p-hat = 28% and n = 506) [Round whole] • N1 = 506 • X2 = .14 * 520 (p-hat of second proportion and n of second) [Round] • N2 = 520 • C-level = .95 (95% confidence level) • Calculate • Answer: (.09101, .18948) • P1 = .281 • P2 = .14 • N1 = 506 Now explain what you see. We are 95% confident that the • N2 = 520 (relate back to problem)…is between 9.1% and 18.9%.

  16. Using the Calculator to find a 2 Proportion Z-Test • Go to STAT, curser to TESTS, select 6: 2-PropZTest • Enter the observed numbers and sample sizes for both groups. (You may have to enter data by using np here also.) • Remember to indicate which inequality your alternative hypothesis test is using, then calculate. • Example: • X1 = 318 • N1 = 811 • X2 = 48 • N2 = 184 • P1 =≠p2 • Calculate • Answer: p1 ≠ p2 We interpret the result and state a conclusion. • z = 3.333 We see a z-score of 3.333 and the p-value of • p = .0008594 .00086. Such a small p-value indicates that the • p1 = .3921 observed difference is unlikely to be sampling • p2 = .2609 error.

More Related