Download presentation
Presentation is loading. Please wait.
1
Chapter 20 Comparing Groups
In this chapter we look at hypothesis testing and confidence intervals used for comparing two populations – both means and proportions.
2
Combining Random Variables
Suppose A and B are random variables with means μA and μB and standard deviations σA and σB. The variable (A – B) has mean and standard deviation: Combining Random Variables
3
Hypothesis Tests for p1-p2
Hypotheses Hypothesis Tests for p1-p2
4
Hypothesis Tests for p1-p2
Test Statistic Hypothesis Tests for p1-p2
5
Hypothesis Tests for p1-p2
P - value Depends on the alternative hypothesis: (a) (upper tail test) (b) (lower tail test) (c) (two-tailed test) Hypothesis Tests for p1-p2
6
Hypothesis Tests for p1-p2
Validity/Assumptions We have properly collected, independent, random samples from each population. We have a large enough samples (at least 10 “Y” and at least 10 “N” are in both samples) The sample sizes are not more than 10% of the total populations from which they are drawn. Hypothesis Tests for p1-p2
7
Hypothesis Tests for p1-p2
Technology We will not do this by hand with the formulas. Rather we can use the 2-PropZTest command in the calculator. Whichever group is written first in our hypotheses must be considered “group 1” in the calculator. Hypothesis Tests for p1-p2
8
In October 2000, the results of a large survey showed that 84
In October 2000, the results of a large survey showed that 84.9% of males and 88.1% of females had graduated from high school. Does this study support that claim that females were more likely to graduate from high school than males in 2000? Test the relevant hypotheses at the = 0.05 level. Example 1
9
On April 12, 1955, Dr. Jonas Salk released the results of clinical trials for his polio vaccine. In these trials, children were randomly divided into 2 groups of each. One group was given the vaccine, the other a placebo. Of those given the vaccine, 33 developed polio. Of those given the placebo, 115 developed polio. Test at the = 0.01 level whether receiving the vaccine lowers the chance of getting polio. Example 2
10
Confidence Interval for p1-p2
Assumptions/Requirements We have properly collected, independent, random samples from each population. We have a large enough samples (at least 10 “Y” and at least 10 “N” are in both samples) The sample sizes are not more than 10% of the total populations from which they are drawn. Confidence Interval for p1-p2
11
Confidence Interval for p1-p2
Formula p1 – p2 is in the interval: • z* = for 90% confidence • z* = 1.96 for 95% confidence • z* = 2.33 for 98% confidence Confidence Interval for p1-p2
12
Confidence Interval for p1-p2
We will not construct these by hand, however we can construct them using the TI – 83/84 by pressing , choosing “TESTS”, then choosing 2-PropZInt… Enter the number of successes and sample sizes for each group, the confidence level, then Calculate. Confidence Interval for p1-p2
13
Hypothesis Tests for p1-p2 Confidence Interval Approach
We can replace the test statistic and P-value with a confidence interval for p1 – p2 calculated from the samples. If 0 is not in the interval, then we reject H0 If 0 is in the interval, then we fail to reject H0 All other “pieces” of the hypothesis test are the same. Hypothesis Tests for p1-p2 Confidence Interval Approach
14
A study was conducted to see if putting duct tape over a wart worked better than traditional treatments. Of 104 subjects that used duct tape, 84.6% were “healed”. Of 100 subjects using traditional treatments, 60% were “healed”. Do these samples significantly support that duct tape works better? Test the relevant hypotheses using a 96% confidence interval. Example 3
15
Hypothesis Tests for μ1-μ2
Hypotheses Hypothesis Tests for μ1-μ2
16
Hypothesis Tests for μ1-μ2
Test Statistic where: Hypothesis Tests for μ1-μ2
17
Hypothesis Tests for μ1-μ2
P – value Depends on the alternative hypothesis: (a) (upper tail test) (b) (lower tail test) (c) (two-tailed test) where df = nasty formula on last slide Hypothesis Tests for μ1-μ2
18
Hypothesis Tests for μ1-μ2
Validity/Assumptions We have independent, properly collected, random samples (one from each population) Sample sizes are not more than 10% of the populations One of the following for each: • population known to be normal • large sample size (C.L.T.): n ≥ 30 or • approximately linear normal plot of sample data Hypothesis Tests for μ1-μ2
19
Hypothesis Tests for μ1-μ2
We will NOT do this by hand. We can use the 2-SampTTest in the TI calculator to do this. Go into the STAT menu, choose TESTS, then choose 2-SampTTest… If you have the actual sample data in L1 and L2, choose “Data”, if you have the summary statistics for the sample, choose “Stats”. Hypothesis Tests for μ1-μ2
20
Are the prices charged for a used camera higher on average when buying from a stranger than when buying from a friend? Test the sample data below. Stranger 275 300 260 255 290 Friend 250 175 130 200 225 240 Example 4
21
Ann thinks that there is a difference in quality of life between rural and urban living. She collects information from obituaries in newspapers from urban and rural towns in Idaho to see if there is a difference in life expectancy. A sample of 4 people from rural towns give a life expectancy of years with a standard deviation of sr = 6.44 years. A sample of 10 people from larger, urban towns give years and su = 6.14 years. Does this provide evidence that people living in rural Idaho communities have different life expectancy than those in more urban communities? Use a 1% level of significance. Example 5
22
Confidence Interval for μ1 - μ2
Assumptions/Requirements We have properly collected, independent, random samples from each population. One of the following for each: • population known to be normal • large sample size (C.L.T.): n ≥ 30 or • approximately linear normal plot of sample data The sample sizes are not more than 10% of the total populations from which they are drawn. Confidence Interval for μ1 - μ2
23
Confidence Interval for μ1 - μ2
Formula μ1 – μ2 is in the interval: where df is the same as for hypothesis testing Confidence Interval for μ1 - μ2
24
Confidence Interval for μ1 - μ2
We will not construct these by hand, however we can construct them using the TI – 83/84 by pressing , choosing “TESTS”, then choosing 2-SampTInt… If you have the actual sample data in L1 and L2, choose “Data”, if you have the summary statistics for the sample, choose “Stats”. Confidence Interval for μ1 - μ2
25
Hypothesis Tests for μ1-μ2 Confidence Interval Approach
We can replace the test statistic and P-value with a confidence interval for μ1 – μ2 calculated from the samples. If 0 is not in the interval, then we reject H0 If 0 is in the interval, then we fail to reject H0 All other “pieces” of the hypothesis test are the same. Hypothesis Tests for μ1-μ2 Confidence Interval Approach
26
Are the average lifespans of name brand batteries and generic batteries the same when used in portable CD players. The data below is in hours. Test the relevant hypotheses using a 95% confidence interval. Name Brand 190.7 203.5 206.5 222.5 209.5 Generic 194 205.5 199.2 172.4 184.0 169.5 Example 6
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.