Presentation is loading. Please wait.

Presentation is loading. Please wait.

Ch. 10 Comparing Two Populations or Groups

Similar presentations


Presentation on theme: "Ch. 10 Comparing Two Populations or Groups"β€” Presentation transcript:

1 Ch. 10 Comparing Two Populations or Groups
Ch Comparing Two Means

2 π‘₯ 1 =123.8 less decay π‘₯ 2 =116.4 more decay 123.8 116.4 7.4 Maybe, but it could be that we got this difference of means purely by chance. We need to perform a significance test.

3 𝐻 0

4

5 = # π‘œπ‘“ π‘‘π‘œπ‘‘π‘  β‰₯ 7.4 π‘‘π‘œπ‘‘π‘Žπ‘™ # π‘œπ‘“ π‘‘π‘œπ‘‘π‘  =
statistically significant? 𝑝-value Assuming there’s no difference in decay, there is a ____________ probability of obtaining a π‘₯ 1 βˆ’ π‘₯ 2 value of 7.4 or more purely by chance. This provides _____________ evidence, so we __________ conclude that the length of time in the ground does affect the breaking strength of the polyester specimen.

6 π‘₯ 1 πœ‡ 1 𝑑 𝑑𝑓 N πœ‡ 1 , 𝜎 π‘₯ 1 πœ‡ 1 𝜎 π‘₯ 1 = 𝜎 1 𝑛 1 𝑠 1 𝑛 1 πœ‡ 1 𝑧 dist
π‘₯ 1 πœ‡ 1 𝑑 𝑑𝑓 N πœ‡ 1 , 𝜎 π‘₯ 1 πœ‡ 1 𝜎 π‘₯ 1 = 𝜎 𝑛 1 𝑠 𝑛 1 πœ‡ 1 OR 𝑧 dist 𝑑 dist π‘₯ 2 πœ‡ 2 𝑑 𝑑𝑓 N πœ‡ 2 , 𝜎 π‘₯ 2 πœ‡ 2 𝜎 π‘₯ 2 = 𝜎 𝑛 2 𝑠 𝑛 2 OR πœ‡ 2 𝑧 dist 𝑑 dist

7 π‘₯ 1 βˆ’ π‘₯ 2 πœ‡ 1 βˆ’ πœ‡ 2 𝑑 π‘π‘Ÿπ‘Žπ‘§π‘¦ π‘“π‘œπ‘Ÿπ‘šπ‘’π‘™π‘Ž πœ‡ 1 βˆ’ πœ‡ 2
π‘₯ 1 βˆ’ π‘₯ 2 πœ‡ 1 βˆ’ πœ‡ 2 𝑑 π‘π‘Ÿπ‘Žπ‘§π‘¦ π‘“π‘œπ‘Ÿπ‘šπ‘’π‘™π‘Ž πœ‡ 1 βˆ’ πœ‡ 2 N πœ‡ 1 βˆ’ πœ‡ 2 , 𝜎 π‘₯ 1 βˆ’ π‘₯ 2 𝜎 π‘₯ 1 βˆ’ π‘₯ 2 = 𝜎 𝑛 𝜎 𝑛 2 πœ‡ 1 βˆ’ πœ‡ 2 𝑧 dist OR 𝑠 𝑛 𝑠 𝑛 2 𝑑 dist

8 π‘₯ 1 βˆ’ π‘₯ 2 πœ‡ 1 βˆ’ πœ‡ 2 𝑑 π‘π‘Ÿπ‘Žπ‘§π‘¦ π‘“π‘œπ‘Ÿπ‘šπ‘’π‘™π‘Ž πœ‡ 1 βˆ’ πœ‡ 2
π‘₯ 1 βˆ’ π‘₯ 2 πœ‡ 1 βˆ’ πœ‡ 2 𝑑 π‘π‘Ÿπ‘Žπ‘§π‘¦ π‘“π‘œπ‘Ÿπ‘šπ‘’π‘™π‘Ž πœ‡ 1 βˆ’ πœ‡ 2 N πœ‡ 1 βˆ’ πœ‡ 2 , 𝜎 π‘₯ 1 βˆ’ π‘₯ 2 𝜎 π‘₯ 1 βˆ’ π‘₯ 2 = 𝜎 𝑛 𝜎 𝑛 2 πœ‡ 1 βˆ’ πœ‡ 2 𝑧 dist OR 𝑠 𝑛 𝑠 𝑛 2 𝑑 dist

9 π‘₯ 1 =96 𝑛 1 =38 𝑠 1 =3.5 π‘₯ 2 =94 𝑛 2 =40 𝑠 2 =2.5 πœ‡ 1 β†’ true mean lap time for old tires (in seconds) πœ‡ 2 β†’ true mean lap time for new tires (in seconds) We want to estimate the true difference πœ‡ 1 βˆ’ πœ‡ 2 at a 95% confidence level.

10 Two-sample 𝑑 interval for πœ‡ 1 βˆ’ πœ‡ 2
Random: β€œSRS of 38 laps” and β€œSRS of 40 laps” Normal: 𝑛 1 β‰₯30 and 𝑛 2 β‰₯30, so by CLT the sampling distribution of π‘₯ 1 βˆ’ π‘₯ 2 is approximately normal. Independent: Two things to check: The two samples need to be independent of each other. Individual observations in each sample have to be independent. When sampling without replacement for both samples, must check 10% condition for both. We must assume the old lap times are independent from new lap times. We must also assume that Mr. Hussey has driven more than =380 laps with the old tires and =400 laps with the new tires.

11 π‘₯ 1 =96 𝑛 1 =38 𝑠 1 =3.5 π‘₯ 2 =94 𝑛 2 =40 𝑠 2 =2.5 Estimate Β± Margin of Error 𝑠 𝑛 𝑠 𝑛 2 π‘₯ 1 βˆ’ π‘₯ 2 Β± 𝑑 βˆ— Standard Error Calculating degrees of freedom for two sample means: Option 1: Use calculator (2-SampTInt). Actual 𝑑𝑓 formula is: Option 2: (conservative approach) Use the smaller 𝑑𝑓 of 𝑛 1 βˆ’1 and 𝑛 2 βˆ’1. 𝑑𝑓= 𝑠 𝑛 𝑠 𝑛 𝑛 1 βˆ’1 𝑠 𝑛 𝑛 2 βˆ’1 𝑠 𝑛

12 π‘₯ 1 =96 𝑛 1 =38 𝑠 1 =3.5 π‘₯ 2 =94 𝑛 2 =40 𝑠 2 =2.5 Estimate Β± Margin of Error 𝑠 𝑛 𝑠 𝑛 2 π‘₯ 1 βˆ’ π‘₯ 2 Β± 𝑑 βˆ— smaller 𝑑𝑓 Option 1 Option 2 With calculator: 𝑑𝑓= 𝑛 1 βˆ’1=37 STAT οƒ  TESTS οƒ  2-SampTInt (0) 𝑑 βˆ— =invT .975, 37 =2.026 or use 𝑑-table 𝑑𝑓=30, 𝑑 βˆ— =2.042 Inpt: Data Stats x1: Sx1: n1: x2: Sx2: n2: C-Level: Pooled: No Yes 96 3.5 0.619, 3.381 38 96βˆ’94Β± 94 𝑑𝑓=66.695 2.5 2Β±1.402 40 0.95 0.598, 3.402 ALWAYS do no pooled for 𝑑 procedures

13 We are 95% confident that the interval from 0. 619 to 3
We are 95% confident that the interval from to captures the true difference in means πœ‡ 1 βˆ’ πœ‡ 2 of mean lap times between the old and new tires. This suggests that the mean lap time with the old tires is between and seconds longer than the mean lap time with the new tires. Yes, because 0 is NOT captured in the interval.

14 two-sample No, this is not a matched pairs design. Use 1 Var-Stats on each list to find π‘₯ and 𝑠 π‘₯ . π‘₯ 1 =23.2 𝑛 1 =10 𝑠 1 =3.52 π‘₯ 2 =22.125 𝑛 2 =8 𝑠 2 =3.76 πœ‡ 1 β†’ true mean ACT score for students who take β€œsmart pill” πœ‡ 2 β†’ true mean ACT score for students who take placebo We want to estimate the true difference πœ‡ 1 βˆ’ πœ‡ 2 at a 90% confidence level.

15 Two-sample 𝑑 interval for πœ‡ 1 βˆ’ πœ‡ 2
Random: β€œ10 student chosen at random are given the β€˜smart pill’” and β€œ8 students chosen at random are given a placebo” Normal: Both population distributions are normal so the sampling distribution of π‘₯ 1 βˆ’ π‘₯ 2 is approximately normal. Independent: Two things to check: The two groups need to be independent of each other. Individual observations in each group have to be independent. When sampling without replacement for both samples, must check 10% condition for both. Due to random assignment, these two groups can be viewed as independent. No 10% condition since there was no sampling. Individual observations in each group should also be independent: knowing one subject’s ACT score gives no information about another subject’s ACT score.

16 Estimate Β± Margin of Error
π‘₯ 1 =23.2 𝑛 1 =10 𝑠 1 =3.52 π‘₯ 2 =22.125 𝑛 2 =8 𝑠 2 =3.76 Estimate Β± Margin of Error 𝑠 𝑛 𝑠 𝑛 2 π‘₯ 1 βˆ’ π‘₯ 2 Β± 𝑑 βˆ— smaller 𝑑𝑓 Option 1 Option 2 We can use the β€œdata” option now since our data is in lists. 𝑑𝑓=8βˆ’1=7 𝑑 βˆ— =invT .95, 7 =1.895 or use 𝑑-table 𝑑𝑓=7, 𝑑 βˆ— =1.895 With calculator: STAT οƒ  TESTS οƒ  2-SampTInt (0) Inpt: Data Stats List1: List2: Freq1: Freq2: C-Level: Pooled: No Yes 𝐿 1 23.2βˆ’22.125Β± 𝐿 2 βˆ’1.969, 1 1.075Β±3.286 1 𝑑𝑓=14.66 0.90 βˆ’2.211, 4.361 ALWAYS do no pooled for 𝑑 procedures

17 Answer key will use conservative approach for degrees of freedom.
We are 90% confident that the interval from βˆ’1.969 to captures the true difference in means πœ‡ 1 βˆ’ πœ‡ 2 for ACT scores between kids given a smart pill and kids given a placebo. This suggests that the β€œsmart pill” may improve scores by up points or the placebo may improve scores by up points. βˆ’0.756, βˆ’0.564 Answer key will use conservative approach for degrees of freedom.

18 πœ‡ 1 β†’ true mean ACT score for students who take β€œsmart pill”
one sided π‘₯ 1 =23.2 𝑛 1 =10 𝑠 1 =3.52 π‘₯ 2 =22.125 𝑛 2 =8 𝑠 2 =3.76 State: πœ‡ 1 β†’ true mean ACT score for students who take β€œsmart pill” πœ‡ 2 β†’ true mean ACT score for students who take placebo 𝐻 0 : 𝐻 π‘Ž : πœ‡ 1 βˆ’ πœ‡ 2 =0 πœ‡ 1 = πœ‡ 2 π‘₯ 1 βˆ’ π‘₯ 2 =23.2βˆ’22.125=1.075 OR πœ‡ 1 βˆ’ πœ‡ 2 >0 πœ‡ 1 > πœ‡ 2 𝛼=0.05 OR

19 Plan: Two sample 𝑑 test for πœ‡ 1 βˆ’ πœ‡ 2 Random: β€œ10 student chosen at random are given the β€˜smart pill’” and β€œ8 students chosen at random are given a placebo” Normal: Both population distributions are normal so the sampling distribution of π‘₯ 1 βˆ’ π‘₯ 2 is approximately normal. Independent: Two things to check: The two groups need to be independent of each other. Individual observations in each group have to be independent. When sampling without replacement for both samples, must check 10% condition for both. Due to random assignment, these two groups can be viewed as independent. No 10% condition since there was no sampling. Individual observations in each group should also be independent: knowing one subject’s ACT score gives no information about another subject’s ACT score.

20 Do: π‘₯ 1 =23.2 𝑛 1 =10 𝑠 1 =3.52 π‘₯ 2 =22.125 𝑛 2 =8 𝑠 2 =3.76 Sampling Distribution of π‘₯ 1 βˆ’ π‘₯ 2 conservative approach: N 0, ________ 1.734 𝑑𝑓=8βˆ’1=7 smaller 𝑑𝑓 1.075 𝜎 π‘₯ 1 βˆ’ π‘₯ 2 = 𝑠 𝑛 𝑠 𝑛 2 = =1.734 𝑑= π‘₯ 1 βˆ’ π‘₯ 2 βˆ’ πœ‡ 1 βˆ’ πœ‡ 𝜎 π‘₯ 1 βˆ’ π‘₯ 2 = 23.2βˆ’ βˆ’ =0.62 𝑑cdf 0.62, 99999, 7 =0.277 𝑝-value

21 Conclude: Assuming 𝐻 0 is true πœ‡ 1 = πœ‡ 2 , there is a .277 probability of obtaining a π‘₯ 1 βˆ’ π‘₯ 2 value of or more purely by chance. This provides weak evidence against 𝐻 0 and is not statistically significant at 𝛼=.05 level .277>.05 . Therefore, we fail to reject 𝐻 0 and cannot conclude that the smart pill increases ACT scores. With calculator: 𝑑=0.62 𝑝=0.272 𝑑𝑓=14.66 π‘₯ 1 =23.2 π‘₯ 2 =22.125 𝑆 π‘₯ 1 =3.52 𝑆 π‘₯ 2 =3.76 𝑛 1 =10 𝑛 2 =8 STAT οƒ  TESTS οƒ  2-SampTTest (4) 𝑝-value Inpt: Data Stats List1: List2: Freq1: Freq2: πœ‡: β‰ πœ‡ <πœ‡ >πœ‡ Pooled: No Yes 𝐿 1 𝐿 2 1 1 ALWAYS do no pooled for 𝑑 procedures

22 What population can we target?
experiment Yes Not a random sample, so conclusion only holds for the people in the experiment What population can we target?

23 matched pairs Yes, since it’s a matched pairs design. Very important to know when you use a matched pairs 𝑑 test for πœ‡ 𝑑 or a two sample 𝑑 test for πœ‡ 1 βˆ’ πœ‡ 2 If groups were formed using a completely randomized design: β‡’ two-sample 𝑑 test for πœ‡ 1 βˆ’ πœ‡ 2 If subjects were paired, then split at random into two treatments or if each subject receives both treatments: β‡’ matched pairs 𝑑 test for πœ‡ 𝑑

24 We will do (smart – placebo) so that + values represent pill worked
Differences 2 9 βˆ’3 βˆ’2 10 6 5 4 12 Use 1 Var-Stats π‘₯ 𝑑 =4.3 𝑠 𝑑 =5.10 State: 𝐻 0 : 𝐻 π‘Ž : πœ‡ 𝑑 =0 πœ‡ 𝑑 β†’ true mean difference (smart pill – placebo) in test scores πœ‡ 𝑑 >0 𝛼=0.05 Plan: Matched pairs T test for πœ‡ 𝑑 Random: Treatments were randomized Normal: Population distribution is normal so the sampling distribution of π‘₯ 𝑑 is approximately normal. Independent: There are more than =100 students at ECRCHS.

25 Do: π‘₯ 𝑑 = 𝑠 𝑑 =5.10 Sampling Distribution of π‘₯ 𝑑 𝜎 π‘₯ 𝑑 = 𝑠 𝑑 𝑛 = =1.613 N 0, ________ 1.613 𝑑𝑓=π‘›βˆ’1=10βˆ’1=9 4.3 𝑑= π‘₯ 𝑑 βˆ’ πœ‡ 𝑑 𝜎 π‘₯ 𝑑 = 4.3βˆ’ =2.67 area = tcdf 2.67, 99999, 9 =.013 𝑝-value

26 Conclude: Assuming 𝐻 0 is true πœ‡ 𝑑 =0 , there is a .013 probability of obtaining a π‘₯ 𝑑 value of 4.3 or higher purely by chance. This provides strong evidence against 𝐻 0 and is statistically significant at 𝛼=0.05 level (.013<.05). Therefore, we reject 𝐻 0 and can conclude that the smart pills work. experiment Yes All ECRCHS students

27 Two sample 𝑧 test for 𝑝 1 βˆ’ 𝑝 2
Matched pairs 𝑑 test for πœ‡ 𝑑 more less Equal


Download ppt "Ch. 10 Comparing Two Populations or Groups"

Similar presentations


Ads by Google