Presentation is loading. Please wait.

Presentation is loading. Please wait.

D O YOU BELIEVE IN FAIRY TALES ? Slide 1- 1 1. Yes 2. No.

Similar presentations


Presentation on theme: "D O YOU BELIEVE IN FAIRY TALES ? Slide 1- 1 1. Yes 2. No."— Presentation transcript:

1 D O YOU BELIEVE IN FAIRY TALES ? Slide Yes 2. No

2 U PCOMING WORK Part 3 of Data Project due today Quiz #5 in class this Wednesday HW #10 due Sunday

3 C HAPTER 22 Comparing Two Proportions

4 C OMPARING T WO P ROPORTIONS Comparisons between two percentages are much more common than questions about isolated percentages. And they are more interesting. We often want to know how two groups differ, a treatment is better than a placebo control, this year’s results are better than last year’s. Team A is better than Team B

5 E XAMPLES Compare the survival rate from cancer for those that use traditional medicine treatments to the survival rate from cancer for those that use alternative treatment methods. Compare the percentage of white adults that smoke to the percentage of black adults that smoke. Compare the proportion of women who have an abortion that need mental health treatment to the proportion of women who have a small infant that need mental health treatment.

6 T HE HYPOTHESIS The typical hypothesis test for the difference in two proportions is the one of no difference. In symbols, H 0 : p 1 – p 2 = 0. The alternatives: Ha: p1 –p2 > 0 Ha: p1 –p2 < 0 Ha: p1 –p2 ≠ 0 Slide 1- 6

7 T HE S AMPLING D ISTRIBUTION - T HEORY Slide 1- 7 Provided that the sampled values are independent, the samples are independent, and the samples sizes are large enough, the sampling distribution of is modeled by a Normal model with Mean: Standard deviation:

8 E STIMATES FOR THE SD Confidence Intervals Use each groups individual success rate to calculate the SE P-value and Z* testing Use pooled proportion to calculate the SE Slide 1- 8

9 SE FOR C ONFIDENCE I NTERVALS Slide 1- 9 When the conditions are met, we are ready to find the confidence interval for the difference of two proportions: The confidence interval is where The critical value z * depends on the particular confidence level, C, that you specify.

10 P ROBLEM Company X invents a new drug called NoZits that they believe cures acne problems. To see if NoZits works they run a test. They have 100 people (Group A) wash their face with NoZits, and 120 people (Group B) wash their face with the other leading brand. Group A – 45 people’s skin clears up the next day Group B – 52 people’s skin clears up the next day Create a 95% confidence interval for the difference between the two groups. Slide 1- 10

11 W HAT DOES P A REPRESENT ? 1. The proportion of people with better skin. 2. The proportion of people with better skin who used NoZits. 3. The proportion of people with better skin who used the leading brand. Slide 1- 11

12 C OMPANY X HOPES TO SHOW THAT N O Z ITS IS A BETTER DRUG THAN THE LEADING BRAND. W HAT HYPOTHESES TEST SHOULD IT RUN ? 1. Ho: pA = pB Ha: pA ≠ pB 2. Ho: pA = pB Ha: pA < pB 3. Ho: pA = pB Ha: pA > pB Slide 1- 12

13 C RITICAL Z* AND SIGNIFICANCE LEVEL TWO - SIDED α=.20  CI = 80%  z*=1.282 α=.10  CI = 90%  z*=1.645 α=.05  CI = 95%  z*=1.96 α=.02  CI = 98%  z*=2.326 α=.01  CI = 99%  z*=2.576 Slide 1- 13

14 I NTERPRETATION OF A CONFIDENCE INTERVAL We are 95% confidence that the true difference between the two test groups falls within ( , ) Or (-11.17%, 15.17%) Our data fail to reject the null hypothesis. We do NOT have enough evidence to suggest a difference between success rates.  NoZits is NOT better at getting rid of acne Slide 1- 14

15 SE FOR P - VALUE AND Z* HYPOTHESIS TESTING Slide We then put this pooled value into the formula, substituting it for both sample proportions in the standard error formula:

16 C ALCULATING THE P OOLED P ROPORTION The pooled proportion is where and If the numbers of successes are not whole numbers, round them first. (This is the only time you should round values in the middle of a calculation.)

17 SE FOR P - VALUE AND Z* HYPOTHESIS TESTING Slide We use the pooled value to estimate the standard error: Now we find the test statistic: When the conditions are met and the null hypothesis is true, this statistic follows the standard Normal model, so we can use that model to obtain a P-value.

18 H OMEWORK P ROBLEM A clinic reported the following statistics For women under the age of live births to 165 women For women over the age of 38 4 live births to 78 women Is there a difference in the effectiveness of the clinic’s methods for older women? Use a both a z* test and a 95% confidence interval to test your hypothesis Slide 1- 18

19 W HAT DOES P 1 REPRESENT ? 1. The proportion of live births 2. The proportion of women over 38 with live births 3. The proportion of women under 38 with live births Slide 1- 19

20 I S THERE EVIDENCE OF A DIFFERENCE BETWEEN THE TWO GROUPS ? 1. Ho: p1 = p2 Ha: p1 ≠ p2 2. Ho: p1 = p2 Ha: p1 < p2 3. Ho: p1 = p2 Ha: p1 > p2 Slide 1- 20

21 W HAT IS OUR TEST ‘ RULE ’? 1. If z > critical z*, then reject null hypothesis. 2. If z > critical z*, then accept null hypothesis. 3. If z < critical z*, then reject null hypothesis. 4. If z > critical z*, then accept null hypothesis. Slide 1- 21

22 C RITICAL Z* AND SIGNIFICANCE LEVEL α=.20  z*=1.282 α=.10  z*=1.645 α=.05  z*=1.96 α=.02  z*=2.326 α=.01  z*=2.576 Slide 1- 22

23 W HAT IS THE RESULT OF THIS HYPOTHESIS TEST AT A SIGNIFICANCE LEVEL OF 0.05? 1. Do not reject the null hypothesis b/c there IS NOT sufficient evidence to make the claim of a difference 2. Accept the alternative hypothesis b/c there IS sufficient evidence to support claim of a difference 3. Reject the null hypothesis b/c there IS sufficient evidence to support the claim of a difference Slide 1- 23

24 W OULD WE GET A DIFFERENT RESULT WITH A CI? Let’s calculate the CI at 95% Slide 1- 24

25 O UR CI (14.9%, 31.7%). H OW WOULD WE INTERPRET THIS CI? 1. There is 95% confidence the prop. of live births for clients of this clinic is greater for women under There is 95% confidence the prop. of live births is greater for women under There is 95% confidence the prop. of live births for a sample of clients of this clinic is greater for women under 38 Slide 1- 25

26 H OMEWORK P ROBLEM A survey of older Americans reveals, 420 out of 1002 men suffer from arthritis 543 out of 1070 women suffer from arthritis Create a 95% CI to test the hypothesis that the proportion of adults suffering from arthritis is greater for women than for men. Slide 1- 26

27 D OES THIS SUGGEST THAT ARTHRITIS IS MORE LIKELY TO AFFLICT WOMEN THAN MEN ? 1. H 0 : p w -p m =0 H a : p w -p m >0 2. H 0 : p w -p m =0 H a : p w -p m <0 3. H 0 : p w -p m =0 H a : p w -p m ≠0

28 D OES THIS SUGGEST THAT ARTHRITIS IS MORE LIKELY TO AFFLICT WOMEN THAN MEN ? Slide No. No conclusion can be made based on the confidence interval. 2. No. The interval is too close to Yes. The entire interval lies above Yes, we are 95% confident, based on these samples, that about 13.1% of senior women suffer from arthritis, while only 4.6% of senior men suffer from arthritis.

29 HW - P ROBLEM 8 One country reported 84 out of 3157 white women had multiple births 20 out of 625 black women had multiple births Does this indicate any racial difference of the likelihood of multiple births? Slide 1- 29

30 D EFINING THE PROPORTIONS AFFECTS THE HYPOTHESIS P1 = proportion of multiple births from white women P2 = proportion of multiple births from black women Slide 1- 30

31 D OES THIS INDICATE ANY RACIAL DIFFERENCE ? 1. Ho: p1 – p2 =0 Ha: p1 – p2>0 2. Ho: p1 – p2 =0 Ha: p1 – p2<0 3. Ho: p1 – p2 =0 Ha: p1 – p2≠0 Slide 1- 31

32 D O WHITE WOMEN TYPICALLY HAVE MORE MULTIPLE BIRTHS ? 1. Ho: p1 – p2 =0 Ha: p1 – p2>0 2. Ho: p1 – p2 =0 Ha: p1 – p2<0 3. Ho: p1 – p2 =0 Ha: p1 – p2≠0 Slide 1- 32

33 D O BLACK WOMEN TYPICALLY HAVE MORE MULTIPLE BIRTHS ? 1. Ho: p1 – p2 =0 Ha: p1 – p2>0 2. Ho: p1 – p2 =0 Ha: p1 – p2<0 3. Ho: p1 – p2 =0 Ha: p1 – p2≠0 Slide 1- 33

34 S UPPOSE OUR QUESTION IS ‘ IS THERE A DIFFERENCE BETWEEN BLACK VS WHITE ?’ W HAT IS OUR TEST ‘ RULE ’? 1. If z > critical z*, then reject null hypothesis. 2. If z > critical z*, then accept null hypothesis. 3. If z < critical z*, then reject null hypothesis. 4. If z > critical z*, then accept null hypothesis. Slide 1- 34

35 C RITICAL Z* AND SIGNIFICANCE LEVEL α=.20  z*=1.282 α=.10  z*=1.645 α=.05  z*=1.96 α=.02  z*=2.326 α=.01  z*=2.576 Slide 1- 35

36 W HAT IS THE RESULT OF THE HYPOTHESIS TEST ? 1. Reject the null hypothesis b/c there is sufficient evidence to support the claim of a difference. 2. Do not reject the null hypothesis b/c there is NOT sufficient evidence to support the claim of a difference 3. Accept the null hypothesis b/c there is NOT sufficient evidence to support the claim of a difference Slide 1- 36

37 E RRORS Type 1 Error – Rejecting when Null is True Type 2 Error - Failing to Reject when the Null is False Slide 1- 37

38 S UPPOSE OUR LAST TEST WAS INCORRECT, WHAT TYPE OF ERROR DID WE MAKE ? 1. Type 1 2. Type 2 3. This cannot be determined Slide 1- 38

39 C OMING U P … Quiz #5 on Wednesday.


Download ppt "D O YOU BELIEVE IN FAIRY TALES ? Slide 1- 1 1. Yes 2. No."

Similar presentations


Ads by Google