Download presentation
Presentation is loading. Please wait.
Published by΀ιΟάνια ΞΞΟΞ²Ξ±Ο Modified over 6 years ago
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
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
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.