Math 1710 Class 24 Examples Power 2-Sample CIs Dr. Allen Back - - PowerPoint PPT Presentation

math 1710 class 24
SMART_READER_LITE
LIVE PREVIEW

Math 1710 Class 24 Examples Power 2-Sample CIs Dr. Allen Back - - PowerPoint PPT Presentation

Math 1710 Class 24 V1 Sample Size for a Given MOE Math 1710 Class 24 Examples Power 2-Sample CIs Dr. Allen Back and HTs 2-Sample Examples Power Example Oct. 21, 2016 Power Properties Sample Size for a Given MOE Math 1710


slide-1
SLIDE 1

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Math 1710 Class 24

  • Dr. Allen Back
  • Oct. 21, 2016
slide-2
SLIDE 2

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Sample Size for a Given MOE

We wish to produce a 95% CI with a margin of error of .1%. What sample size should we use? MOE = z∗

  • ˆ

pˆ q n Algebra gives n = z∗ MOE 2 ˆ pˆ q

slide-3
SLIDE 3

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Sample Size for a Given MOE

Method 3. (Not in your text.) If you expect ˆ p to be in a range, use the most demanding ˆ p within that range. As long as your expectation is met, this is guaranteed to work.

slide-4
SLIDE 4

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Sample Size for a Given MOE

Method 3. (Not in your text.) If you expect ˆ p to be in a range, use the most demanding ˆ p within that range. As long as your expectation is met, this is guaranteed to work. For example if we expect .05 ≤ ˆ p ≤ .2, use ˆ p = .2 again leading to 1537.

slide-5
SLIDE 5

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Sample Size for a Given MOE

Method 3. (Not in your text.) If you expect ˆ p to be in a range, use the most demanding ˆ p within that range. As long as your expectation is met, this is guaranteed to work. How about if we expect .2 ≤ ˆ p ≤ .7?

slide-6
SLIDE 6

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Sample Size for a Given MOE

Method 3. (Not in your text.) If you expect ˆ p to be in a range, use the most demanding ˆ p within that range. As long as your expectation is met, this is guaranteed to work. How about if we expect .2 ≤ ˆ p ≤ .7? The most demanding is ˆ p = .5, so we use that and again arrive at 2401.

slide-7
SLIDE 7

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Sample Size for a Given MOE

Note the slow growth: A 100 fold increase in sample size reduces the MOE by only a factor of 10.

slide-8
SLIDE 8

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Smoking 2nd Edition Ch. 20 # 15

National data in the 1960s showed that about 44% of the adult population had never smoked cigarettes. In 1995 a national health survey interviewed a random sample of 881 adults and found that 52% had never been smokers. (a) Create a 95% CI for the proportion of adults (in 1995) who had never been smokers. (b) Does this provide evidence of a change in behavior among Americans? Using your CI, test an appropriate hypothesis and state your conclusion.

slide-9
SLIDE 9

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Smoking 2nd Edition Ch. 20 # 15

Notation: Let p denote the proportion of Americans in 1995 who had never smoked.

slide-10
SLIDE 10

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Smoking 2nd Edition Ch. 20 # 15

Hypotheses: H0: p = .44 Ha: p = .44

slide-11
SLIDE 11

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Smoking 2nd Edition Ch. 20 # 15

Random Sampling: Stated.

slide-12
SLIDE 12

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Smoking 2nd Edition Ch. 20 # 15

10% Condition: Much less than the national population.

slide-13
SLIDE 13

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Smoking 2nd Edition Ch. 20 # 15

Success/Failure: 881 · .52 ≥ 10 881 · .48 ≥ 10

slide-14
SLIDE 14

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Women Executives Ch. 20 #25

A company is criticized because only 13 of 43 people in executive-level positions are women. The company explains that although this proportion is lower than it might wish, it’s not surprising given that only 40% of all its employees are

  • women. What do you think? Test an appropriate hypothesis

and state your conclusion.

slide-15
SLIDE 15

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Women Executives Ch. 20 #25

Notation: Let p denote the proportion of executives (in companies like this one, perhaps) who are women.

slide-16
SLIDE 16

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Women Executives Ch. 20 #25

Hypotheses: If potentially proving the company is wrong: H0: p = .4 (or p ≥ .4) Ha: p < .4 If potentially proving the company is right: H0: p = .4 (or p ≤ .4) Ha: p > .4

slide-17
SLIDE 17

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Women Executives Ch. 20 #25

Random Sampling: Hopefully representative of a much larger population.

slide-18
SLIDE 18

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Women Executives Ch. 20 #25

10% Condition: Depends on definition of the population. Hopefully much less than 10% of population.

slide-19
SLIDE 19

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Women Executives Ch. 20 #25

Success/Failure: 43 13 43

  • ≥ 10

43 30 43

  • ≥ 10
slide-20
SLIDE 20

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Dropouts Ch. 20 #27

Some people are concerned that new tougher standards and high-stakes tests adopted in many states have driven up the high school dropout rate. The National Center for Education Statistics reported that the high school dropout rate for the year 2004 was 10.3%. One school district whose dropout rate has always been very close to the national average reports that 210 of their 1782 high school students dropped out last year. Is this evidence that their dropout rate may be increasing? Explain.

slide-21
SLIDE 21

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Dropouts Ch. 20 #27

Notation: Let p denote the proportion of students in districts like this one who drop out.

slide-22
SLIDE 22

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Dropouts Ch. 20 #27

Hypotheses: H0: p = 10.3 (or p ≤ 10.3) Ha: p > 10.3

slide-23
SLIDE 23

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Dropouts Ch. 20 #27

Random Sampling: Hopefully representative of a much larger population.

slide-24
SLIDE 24

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Dropouts Ch. 20 #27

10% Condition: Depends on definition of the population. Hopefully much less than 10% of population. Certainly much less than the national population.

slide-25
SLIDE 25

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Dropouts Ch. 20 #27

Success/Failure: 1782 210 1782

  • ≥ 10

1782 1572 1782

  • ≥ 10
slide-26
SLIDE 26

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Lost Luggage Ch. 20 #29

An airline’s public relations department says that the airline rarely loses passengers’ luggage. It further claims that on those

  • ccasions when luggage is lost, 90% is recovered and delivered

to its owner within 24 hours. A consumer group that surveyed a large number of air travelers found that only 103 of 122 people who lost luggage on that airline were reunited with the missing items by the next day. Does this cast doubt on the airline’s claim? Explain.

slide-27
SLIDE 27

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Lost Luggage Ch. 20 #29

Notation: Let p denote the proportion of lost luggage that is returned within 24 hours.

slide-28
SLIDE 28

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Lost Luggage Ch. 20 #29

Hypotheses: H0: p = .9 (or p ≥ .9) Ha: p < .9

slide-29
SLIDE 29

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Lost Luggage Ch. 20 #29

Random Sampling: Hopefully.

slide-30
SLIDE 30

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Lost Luggage Ch. 20 #29

10% Condition: Depends on definition of the population. Hopefully much less than 10% of population. Certainly much less than total volume of luggage.

slide-31
SLIDE 31

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Lost Luggage Ch. 20 #29

Success/Failure: 122 103 122

  • ≥ 10

122 19 122

  • ≥ 10
slide-32
SLIDE 32

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Power, Type I/II Errors, α, and β

Given H0 : p = p0, there are two ways an HT can report an inaccurate result:

slide-33
SLIDE 33

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Power, Type I/II Errors, α, and β

Given H0 : p = p0, there are two ways an HT can report an inaccurate result: H0 true H0 false Retain H0 Good Type II Error probability = β depends on value of p Reject H0 Type I Error Good probability = α probability = 1-β = power

slide-34
SLIDE 34

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Power, Type I/II Errors, α, and β

Given H0 : p = p0, there are two ways an HT can report an inaccurate result: Type I Error Examples: a: False Positive in a diagnosis; i.e. deciding a person is sick when they really are not. (H0 : The person is well.) b: Convicting an innocent person. (H0 : The person is innocent.) c: Producer Risk; the chance that a good good shipment erroneously fails a a test for quality. (H0 : A product meets a specification.)

slide-35
SLIDE 35

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Power, Type I/II Errors, α, and β

Given H0 : p = p0, there are two ways an HT can report an inaccurate result: Type I Error Examples: a: False Positive in a diagnosis; i.e. deciding a person is sick when they really are not. (H0 : The person is well.) b: Convicting an innocent person. (H0 : The person is innocent.) c: Producer Risk; the chance that a good good shipment erroneously fails a a test for quality. (H0 : A product meets a specification.) Type II Error Examples: a: False Negative; missing a sick person. b: Letting a guilty person go free. c: Consumer Risk; the chance that a bad shipment erroneously passes a a test for quality.

slide-36
SLIDE 36

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

300 stdnts, 60% approve; 200 faclty, 65%

A significant difference? CI for difference in rates of approval?

slide-37
SLIDE 37

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

300 stdnts, 60% approve; 200 faclty, 65%

A significant difference? CI for difference in rates of approval? Let p1 and p2 denote the true proportions of students and faculty that approve.

slide-38
SLIDE 38

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

300 stdnts, 60% approve; 200 faclty, 65%

A significant difference? CI for difference in rates of approval? 2-sample inference based on the sampling distribution of ˆ p1 − ˆ p2

slide-39
SLIDE 39

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

300 stdnts, 60% approve; 200 faclty, 65%

A significant difference? CI for difference in rates of approval? 2-sample inference based on the sampling distribution of ˆ p1 − ˆ p2 µ = p1 − p2 Var( ˆ p1 − ˆ p2) = Var( ˆ p1) + Var( ˆ p2) = p1q1 n1 + p2q2 n2 SD( ˆ p1 − ˆ p2) = p1q1 n1 + p2q2 n2

slide-40
SLIDE 40

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

300 stdnts, 60% approve; 200 faclty, 65%

A significant difference? CI for difference in rates of approval? 2-sample inference based on the sampling distribution of ˆ p1 − ˆ p2

  • Samp. Dist. of ˆ

p1 − ˆ p2: N(p1 − p2, SD( ˆ p1 − ˆ p2))

slide-41
SLIDE 41

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

300 stdnts, 60% approve; 200 faclty, 65%

2-sample inference based on the sampling distribution of ˆ p1 − ˆ p2 Find a CI for p1 − p2:

slide-42
SLIDE 42

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

300 stdnts, 60% approve; 200 faclty, 65%

2-sample inference based on the sampling distribution of ˆ p1 − ˆ p2 Find a CI for p1 − p2: Since we don’t know p1 and p2, we can’t directly compute SD( ˆ p1 − ˆ p2). So we use SE( ˆ p1 − ˆ p2) instead.

slide-43
SLIDE 43

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

300 stdnts, 60% approve; 200 faclty, 65%

2-sample inference based on the sampling distribution of ˆ p1 − ˆ p2 Find a CI for p1 − p2: SE( ˆ p1 − ˆ p2) =

  • ˆ

p1 ˆ q1 n1 + ˆ p2 ˆ q2 n2

slide-44
SLIDE 44

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

300 stdnts, 60% approve; 200 faclty, 65%

2-sample inference based on the sampling distribution of ˆ p1 − ˆ p2 Find a CI for p1 − p2: SE( ˆ p1 − ˆ p2) =

  • ˆ

p1 ˆ q1 n1 + ˆ p2 ˆ q2 n2 Same argument as in the 1-sample case gives a CI for p1 − p2 of ˆ p1 − ˆ p2 ± z∗SE( ˆ p1 − ˆ p2).

slide-45
SLIDE 45

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

300 stdnts, 60% approve; 200 faclty, 65%

2-sample inference based on the sampling distribution of ˆ p1 − ˆ p2 Find a CI for p1 − p2: SE( ˆ p1 − ˆ p2) =

  • ˆ

p1 ˆ q1 n1 + ˆ p2 ˆ q2 n2 Same argument as in the 1-sample case gives a CI for p1 − p2 of ˆ p1 − ˆ p2 ± z∗SE( ˆ p1 − ˆ p2). Here we have SE( ˆ p1 − ˆ p2) =

  • .6 · .4

300 + .65 · .35 200 = .0440.

slide-46
SLIDE 46

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

300 stdnts, 60% approve; 200 faclty, 65%

2-sample inference based on the sampling distribution of ˆ p1 − ˆ p2 Find a CI for p1 − p2: Same argument as in the 1-sample case gives a CI for p1 − p2 of ˆ p1 − ˆ p2 ± z∗SE( ˆ p1 − ˆ p2). Here we have SE( ˆ p1 − ˆ p2) =

  • .6 · .4

300 + .65 · .35 200 = .0440. A 95% CI for p1 − p2 is: (.6 − .65) ± 1.96 · .0440 = −.05 ± .0863 = (−.1363, .0363).

slide-47
SLIDE 47

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

300 stdnts, 60% approve; 200 faclty, 65%

Carry out an HT at a sig level of α = .05 of whether faculty and student approval rates are different. Calculate the P-value as well.

slide-48
SLIDE 48

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

300 stdnts, 60% approve; 200 faclty, 65%

Carry out an HT at a sig level of α = .05 of whether faculty and student approval rates are different. Calculate the P-value as well. Without the request for P-value, we could use the CI above. But for the P-value we need to use “Method 1.”

slide-49
SLIDE 49

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

300 stdnts, 60% approve; 200 faclty, 65%

Carry out an HT at a sig level of α = .05 of whether faculty and student approval rates are different. Calculate the P-value as well. Our hypotheses are: H0: p1 = p2 Ha: p1 = p2

slide-50
SLIDE 50

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

300 stdnts, 60% approve; 200 faclty, 65%

Carry out an HT at a sig level of α = .05 of whether faculty and student approval rates are different. Calculate the P-value as well. Our hypotheses are: H0: p1 = p2 Ha: p1 = p2 A twist enters. We are only interested in the reasonableness of

  • ur observed ˆ

p1 − ˆ p2 with respect to the sampling dist if H0 is

  • true. There are many such distributions (since we don’t know

the common value of p1 = p2 to use.) In particular what we did with SE( ˆ p1 − ˆ p2) above does not fit the p1 = p2 situation.

slide-51
SLIDE 51

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

300 stdnts, 60% approve; 200 faclty, 65%

Carry out an HT at a sig level of α = .05 of whether faculty and student approval rates are different. Calculate the P-value as well. Our hypotheses are: H0: p1 = p2 Ha: p1 = p2 We resolve this conflict by making our best estimate of the common value of p1 and p2, namely the weighted average ˆ ppooled = n1 ˆ p1 + n2 ˆ p2 n1 + n2 and then SEpooled( ˆ p1 − ˆ p2) =

  • ppooled

qpooled n1 + ppooled qpooled n2 .

slide-52
SLIDE 52

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

300 stdnts, 60% approve; 200 faclty, 65%

Carry out an HT at a sig level of α = .05 of whether faculty and student approval rates are different. Calculate the P-value as well. Here the weighted average is ˆ ppooled = 300 · .60 + 200 · .65 200 + 300 = .6 · 300 + .4 · .65 = .62 and then SEpooled( ˆ p1 − ˆ p2) =

  • .62 · .38

300 + .62 · .38 200 = .0443.

slide-53
SLIDE 53

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

300 stdnts, 60% approve; 200 faclty, 65%

Carry out an HT at a sig level of α = .05 of whether faculty and student approval rates are different. Calculate the P-value as well. Our z-statistic is z = ˆ p1 − ˆ p2 SEpooled( ˆ p1 − ˆ p2) = −.05 .0443 = −1.12.

slide-54
SLIDE 54

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

300 stdnts, 60% approve; 200 faclty, 65%

Carry out an HT at a sig level of α = .05 of whether faculty and student approval rates are different. Calculate the P-value as well. Approx Samp. Dist. of ˆ p1 − ˆ p2: N(0, .0443) if H0 is true.

slide-55
SLIDE 55

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

300 stdnts, 60% approve; 200 faclty, 65%

Carry out an HT at a sig level of α = .05 of whether faculty and student approval rates are different. Calculate the P-value as well. Tail Prob. is P(Z < −1.12) = .1314.

slide-56
SLIDE 56

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

300 stdnts, 60% approve; 200 faclty, 65%

Carry out an HT at a sig level of α = .05 of whether faculty and student approval rates are different. Calculate the P-value as well. P-value=2(Tail Prob.) = 2(.1314) = .2628

slide-57
SLIDE 57

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

300 stdnts, 60% approve; 200 faclty, 65%

Carry out an HT at a sig level of α = .05 of whether faculty and student approval rates are different. Calculate the P-value as well. Our P-value is larger than α = .05, so we retain H0.

slide-58
SLIDE 58

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Chicken Contamination

Suppose:

1 33% of 75 Perdue chickens contaminated. 2 45% of 75 Store Brand chickens contaminated. 3 56% of 75 Tyson chickens contaminated.

slide-59
SLIDE 59

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Chicken Contamination

1 33% of 75 Perdue chickens contaminated. 2 45% of 75 Store Brand chickens contaminated. 3 56% of 75 Tyson chickens contaminated.

Questions:

1 Purdue safer than Store Brand? 2 Tyson safer than Store Brand? 3 Tyson different in safety than Store Brand? 4 Confidence interval for difference in safety between Store

Brand and Tyson?

slide-60
SLIDE 60

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Chicken Contamination

1 33% of 75 Perdue chickens contaminated. 2 45% of 75 Store Brand chickens contaminated. 3 56% of 75 Tyson chickens contaminated.

Question: Purdue safer than Store Brand?

slide-61
SLIDE 61

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Chicken Contamination

1 33% of 75 Perdue chickens contaminated. 2 45% of 75 Store Brand chickens contaminated. 3 56% of 75 Tyson chickens contaminated.

Question: Purdue safer than Store Brand? Notation: Let p1 denote the proportion of Purdue which are contaminated and p2 the proportion for Store Brand.

slide-62
SLIDE 62

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Chicken Contamination

1 33% of 75 Perdue chickens contaminated. 2 45% of 75 Store Brand chickens contaminated. 3 56% of 75 Tyson chickens contaminated.

Question: Purdue safer than Store Brand? Notation: Let p1 denote the proportion of Purdue which are contaminated and p2 the proportion for Store Brand. Hypotheses: H0: p1 = p2 (or p1 ≥ p2) Ha: p1 < p2

slide-63
SLIDE 63

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Chicken Contamination

1 33% of 75 Perdue chickens contaminated. 2 45% of 75 Store Brand chickens contaminated. 3 56% of 75 Tyson chickens contaminated.

Hypotheses: H0: p1 = p2 (or p1 ≥ p2) Ha: p1 < p2 ˆ ppooled = .33 · 75 + .45 · 75 75 + 75 = .39

slide-64
SLIDE 64

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Chicken Contamination

1 33% of 75 Perdue chickens contaminated. 2 45% of 75 Store Brand chickens contaminated. 3 56% of 75 Tyson chickens contaminated.

Hypotheses: H0: p1 = p2 (or p1 ≥ p2) Ha: p1 < p2 ˆ ppooled = .33 · 75 + .45 · 75 75 + 75 = .39 SEpooled( ˆ p1 − ˆ p2) =

  • .39 · .61

1 75 + 1 75

  • = .0796.
slide-65
SLIDE 65

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Chicken Contamination

1 33% of 75 Perdue chickens contaminated. 2 45% of 75 Store Brand chickens contaminated. 3 56% of 75 Tyson chickens contaminated.

Hypotheses: H0: p1 = p2 (or p1 ≥ p2) Ha: p1 < p2 z = ˆ p1 − ˆ p2 SEpooled = −.12 .0796 = −1.51.

slide-66
SLIDE 66

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Chicken Contamination

1 33% of 75 Perdue chickens contaminated. 2 45% of 75 Store Brand chickens contaminated. 3 56% of 75 Tyson chickens contaminated.

z = ˆ p1 − ˆ p2 SEpooled = −.12 .0796 = −1.51. N(0,1)

slide-67
SLIDE 67

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Chicken Contamination

1 33% of 75 Perdue chickens contaminated. 2 45% of 75 Store Brand chickens contaminated. 3 56% of 75 Tyson chickens contaminated.

Hypotheses: H0: p1 = p2 (or p1 ≥ p2) Ha: p1 < p2 z = ˆ p1 − ˆ p2 SEpooled = −.12 .0796 = −1.51. P-value = tail probability = P(Z < −1.51) = .0655. At a level of α = .05, we’d retain H0. Purdue might not be safer.

slide-68
SLIDE 68

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Chicken Contamination

1 33% of 75 Perdue chickens contaminated. 2 45% of 75 Store Brand chickens contaminated. 3 56% of 75 Tyson chickens contaminated.

Question: Tyson safer than Store Brand?

slide-69
SLIDE 69

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Chicken Contamination

1 33% of 75 Perdue chickens contaminated. 2 45% of 75 Store Brand chickens contaminated. 3 56% of 75 Tyson chickens contaminated.

Question: Tyson safer than Store Brand? Notation: Let p2 denote the proportion of Store Brand which are contaminated and p3 the proportion for Tyson.

slide-70
SLIDE 70

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Chicken Contamination

1 33% of 75 Perdue chickens contaminated. 2 45% of 75 Store Brand chickens contaminated. 3 56% of 75 Tyson chickens contaminated.

Question: Tyson safer than Store Brand? Notation: Let p2 denote the proportion of Store Brand which are contaminated and p3 the proportion for Tyson. Hypotheses: H0: p3 = p2 (or p3 ≥ p2) Ha: p3 < p2

slide-71
SLIDE 71

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Chicken Contamination

1 33% of 75 Perdue chickens contaminated. 2 45% of 75 Store Brand chickens contaminated. 3 56% of 75 Tyson chickens contaminated.

ˆ ppooled = .45 · 75 + .56 · 75 75 + 75 = .505

slide-72
SLIDE 72

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Chicken Contamination

1 33% of 75 Perdue chickens contaminated. 2 45% of 75 Store Brand chickens contaminated. 3 56% of 75 Tyson chickens contaminated.

ˆ ppooled = .45 · 75 + .56 · 75 75 + 75 = .505 SEpooled( ˆ p2 − ˆ p3) =

  • .505 · .495

1 75 + 1 75

  • = .0816.
slide-73
SLIDE 73

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Chicken Contamination

1 33% of 75 Perdue chickens contaminated. 2 45% of 75 Store Brand chickens contaminated. 3 56% of 75 Tyson chickens contaminated.

z = ˆ p2 − ˆ p3 SEpooled = −.11 .0816 = −1.35.

slide-74
SLIDE 74

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Chicken Contamination

1 33% of 75 Perdue chickens contaminated. 2 45% of 75 Store Brand chickens contaminated. 3 56% of 75 Tyson chickens contaminated.

z = ˆ p2 − ˆ p3 SEpooled = −.11 .0816 = −1.35. Which side provides as much or more support for Ha of p3 < p2?

slide-75
SLIDE 75

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Chicken Contamination

1 33% of 75 Perdue chickens contaminated. 2 45% of 75 Store Brand chickens contaminated. 3 56% of 75 Tyson chickens contaminated.

z = ˆ p2 − ˆ p3 SEpooled = −.11 .0816 = −1.35. Which side provides as much or more support for p3 < p2?

slide-76
SLIDE 76

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Chicken Contamination

1 33% of 75 Perdue chickens contaminated. 2 45% of 75 Store Brand chickens contaminated. 3 56% of 75 Tyson chickens contaminated.

Our statistic provides no support for Ha so we immediately retain H0. It is a matter of convention whether we’d view the p-value as .5 or even larger.

slide-77
SLIDE 77

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Chicken Contamination

1 33% of 75 Perdue chickens contaminated. 2 45% of 75 Store Brand chickens contaminated. 3 56% of 75 Tyson chickens contaminated.

Question: Tyson different in safety than Store Brand?

slide-78
SLIDE 78

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Chicken Contamination

1 33% of 75 Perdue chickens contaminated. 2 45% of 75 Store Brand chickens contaminated. 3 56% of 75 Tyson chickens contaminated.

Question: Tyson different in safety than Store Brand? Notation: Let p2 denote the proportion of Store Brand which are contaminated and p3 the proportion for Yson.

slide-79
SLIDE 79

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Chicken Contamination

1 33% of 75 Perdue chickens contaminated. 2 45% of 75 Store Brand chickens contaminated. 3 56% of 75 Tyson chickens contaminated.

Question: Tyson different in safety than Store Brand? Notation: Let p2 denote the proportion of Store Brand which are contaminated and p3 the proportion for Yson. Hypotheses: H0: p2 = p3 Ha: p2 = p3

slide-80
SLIDE 80

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Chicken Contamination

1 33% of 75 Perdue chickens contaminated. 2 45% of 75 Store Brand chickens contaminated. 3 56% of 75 Tyson chickens contaminated.

Question: Tyson different in safety than Store Brand? Still ˆ ppooled = .505, SEpooled( ˆ p2 − ˆ p3) = .0816, z = −1.35.

slide-81
SLIDE 81

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Chicken Contamination

1 33% of 75 Perdue chickens contaminated. 2 45% of 75 Store Brand chickens contaminated. 3 56% of 75 Tyson chickens contaminated.

Question: Tyson different in safety than Store Brand?

slide-82
SLIDE 82

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Chicken Contamination

1 33% of 75 Perdue chickens contaminated. 2 45% of 75 Store Brand chickens contaminated. 3 56% of 75 Tyson chickens contaminated.

tail probability = P(Z < −1.35) = .0885. P-value = 2(tail probability)=2(.0885)=.177 At a level of α = .05, we’d retain H0. Tyson might not have a different level of safety than Store Brand.

slide-83
SLIDE 83

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Chicken Contamination

1 33% of 75 Perdue chickens contaminated. 2 45% of 75 Store Brand chickens contaminated. 3 56% of 75 Tyson chickens contaminated.

Confidence interval for difference in safety between Store Brand and Tyson?

slide-84
SLIDE 84

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Chicken Contamination

1 33% of 75 Perdue chickens contaminated. 2 45% of 75 Store Brand chickens contaminated. 3 56% of 75 Tyson chickens contaminated.

Confidence interval for difference in safety between Store Brand and Tyson? SEpooled =

  • .45 · .55

75 + .56 · .44 75 = .0812

slide-85
SLIDE 85

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Chicken Contamination

1 33% of 75 Perdue chickens contaminated. 2 45% of 75 Store Brand chickens contaminated. 3 56% of 75 Tyson chickens contaminated.

Confidence interval for difference in safety between Store Brand and Tyson? SEpooled =

  • .45 · .55

75 + .56 · .44 75 = .0812 A 95% CI for p2 − p3 would be −.11 ± 1.96 · .0812 = −.11 ± .159 = (−.269, .049)

slide-86
SLIDE 86

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Chicken Contamination

1 33% of 75 Perdue chickens contaminated. 2 45% of 75 Store Brand chickens contaminated. 3 56% of 75 Tyson chickens contaminated.

Confidence interval for difference in safety between Store Brand and Tyson? SEpooled =

  • .45 · .55

75 + .56 · .44 75 = .0812 A 95% CI for p2 − p3 would be −.11 ± 1.96 · .0812 = −.11 ± .159 = (−.269, .049) The fact that this CI contains 0 is another way of doing the last 2 HT’s.

slide-87
SLIDE 87

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Power Example

40% of employees are women. Woman under-represented as executives? What would it take in ˆ p for the company to prove that women are as well represented among executives?

slide-88
SLIDE 88

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Power Example

40% of employees are women. Woman under-represented as executives? What would it take in ˆ p for the company to prove that women are as well represented among executives? H0 : p = .4 Ha : p > .4

slide-89
SLIDE 89

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Power Example

40% of employees are women. Woman under-represented as executives? What would it take in ˆ p for the company to prove that women are as well represented among executives? H0 : p = .4 Ha : p > .4 One could also do a HT to see if a given ˆ p demonstrates women are under represented. Then Ha would be p < .4.

slide-90
SLIDE 90

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Power Example

H0 : p = .4 Ha : p > .4 n = 420,SD(ˆ p) = .0239. z = ˆ p − .4 .0239 z > z∗ means ˆ p > .0239z∗ + .4. α = .05 ⇒ z∗ = 1.645; rejection means ˆ p > .439. α = .01 ⇒ z∗ = 2.326; rejection means ˆ p > .456.

slide-91
SLIDE 91

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Power Example

How a ˆ p will be dealt with in the HT

slide-92
SLIDE 92

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Power Example

How does the power depend on the effect size? i.e. on the actual value of p

slide-93
SLIDE 93

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Power Example

How does the power depend on the effect size? Sampling Dist of ˆ p when effect size is large. Power nearly 1

slide-94
SLIDE 94

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Power Example

How does the power depend on the effect size? Sampling Dist of ˆ p when effect size is small. Power nearly α

slide-95
SLIDE 95

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Power Example

How does the power depend on the effect size? Sampling Dist of ˆ p when effect size is middle size. Power in middle between 0 and 1; you could calulate it, but we won’t ask you to.

slide-96
SLIDE 96

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Power Example

How does the power depend on the effect size? α = .05 case: p β power .4001 .95 .05 .41 .89 .11 .45 .33 .67 .5 .01 .99

slide-97
SLIDE 97

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Power Example

How does the power depend on the effect size? α = .01 case: p β power .4001 .99 .01 .41 .97 .03 .45 .59 .41 .5 .04 .96

slide-98
SLIDE 98

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Power Example

How does the power depend on the effect size? Power vs. alternative value of p in 2-sided case. A Power Curve

slide-99
SLIDE 99

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Power Poperties

Prob of type I error = α . (H0 1-sides, α = .05 below)

slide-100
SLIDE 100

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Power Poperties

Power = 1 - β always.

slide-101
SLIDE 101

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Power Poperties

Power depends on effect size. (i.e actual alternative value for p.)

slide-102
SLIDE 102

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Power Poperties

Power is approx. α when actual p is near p0 but not exactly p0.

slide-103
SLIDE 103

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Power Poperties

Power goes to 1 as effect size grows, assuming in the 1 sided case that the alternative value supports Ha.

slide-104
SLIDE 104

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Power Poperties

Power increases as sample size increases.

slide-105
SLIDE 105

Math 1710 Class 24 V1 Sample Size for a Given MOE Examples Power 2-Sample CI’s and HT’s 2-Sample Examples Power Example Power Properties

Power Poperties

Increasing α decreases β . (Easier to reject H0.)