Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 24 Comparing Means.

Slides:



Advertisements
Similar presentations
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 22 Comparing Two Proportions.
Advertisements

Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 25 Paired Samples and Blocks.
1-1 Copyright © 2015, 2010, 2007 Pearson Education, Inc. Chapter 21, Slide 1 Chapter 21 Comparing Two Proportions.
Objective: To test claims about inferences for two sample means from matched-pair tests or blocked samples, under specific conditions.
One sample T Interval Example: speeding 90% confidence interval n=23 Check conditions Model: t n-1 Confidence interval: 31.0±1.52 = (29.48, 32.52) STAT.
Comparing Two Proportions
Confidence Interval and Hypothesis Testing for:
Copyright © 2010 Pearson Education, Inc. Chapter 25 Paired Samples and Blocks.
Copyright © 2010 Pearson Education, Inc. Chapter 19 Confidence Intervals for Proportions.
Copyright © 2010 Pearson Education, Inc. Chapter 24 Comparing Means.
Comparing Means.  Comparing two means is not very different from comparing two proportions.  This time the parameter of interest is the difference between.
Objective: To test claims about inferences for two sample means, under specific conditions.
Chapter 24: Comparing Means.
Copyright © 2010 Pearson Education, Inc. Chapter 22 Comparing Two Proportions.
Copyright © 2010 Pearson Education, Inc. Chapter 23 Inference About Means.
Copyright © 2009 Pearson Education, Inc. Chapter 23 Inferences About Means.
Slide 23-1 Copyright © 2004 Pearson Education, Inc.
Copyright © 2010 Pearson Education, Inc. Slide
1-1 Copyright © 2015, 2010, 2007 Pearson Education, Inc. Chapter 23, Slide 1 Chapter 23 Comparing Means.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 25 Paired Samples and Blocks.
Comparing Two Proportions
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 24 Comparing Means.
Copyright © 2009 Pearson Education, Inc. Chapter 23 Inferences About Means.
1-1 Copyright © 2015, 2010, 2007 Pearson Education, Inc. Chapter 24, Slide 1 Chapter 24 Paired Samples and Blocks.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 24 Comparing Means.
Chapter 22: Comparing Two Proportions
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 25 Paired Samples and Blocks.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 20 Testing Hypotheses About Proportions.
Copyright © 2010 Pearson Education, Inc. Slide Beware: Lots of hidden slides!
Copyright © 2010 Pearson Education, Inc. Chapter 22 Comparing Two Proportions.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 22 Comparing Two Proportions.
STA 2023 Module 11 Inferences for Two Population Means.
Copyright © 2010 Pearson Education, Inc. Slide
AP Statistics Chapter 24 Comparing Means.
Chapter 12 Confidence Intervals and Hypothesis Tests for Means © 2010 Pearson Education 1.
Copyright © 2009 Pearson Education, Inc. Chapter 19 Confidence Intervals for Proportions.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 25 Paired Samples and Blocks.
Paired Samples and Blocks
1-1 Copyright © 2015, 2010, 2007 Pearson Education, Inc. Chapter 24, Slide 1 Chapter 25 Paired Samples and Blocks.
Comparing Means Chapter 24. Plot the Data The natural display for comparing two groups is boxplots of the data for the two groups, placed side-by-side.
Chapter 22 Comparing Two Proportions.  Comparisons between two percentages are much more common than questions about isolated percentages.  We often.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide Next Time: Make sure to cover only pooling in TI-84 and note.
1-1 Copyright © 2015, 2010, 2007 Pearson Education, Inc. Chapter 23, Slide 1 Chapter 24 Comparing Means.
Statistics 25 Paired Samples. Paired Data Data are paired when the observations are collected in pairs or the observations in one group are naturally.
Statistics 24 Comparing Means. Plot the Data The natural display for comparing two groups is boxplots of the data for the two groups, placed side-by-side.
Statistics 22 Comparing Two Proportions. Comparisons between two percentages are much more common than questions about isolated percentages. And they.
AP Statistics Chapter 25 Paired Samples and Blocks.
AP Statistics Chapter 24 Comparing Means. Objectives: Two-sample t methods Two-Sample t Interval for the Difference Between Means Two-Sample t Test for.
Copyright © 2009 Pearson Education, Inc. Chapter 25 Paired Samples and Blocks.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide
Copyright © 2009 Pearson Education, Inc. Chapter 24 Comparing Means.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide
Chapters 22, 24, 25 Inference for Two-Samples. Confidence Intervals for 2 Proportions.
Chapter 24 Comparing Means Copyright © 2009 Pearson Education, Inc.
Comparing Two Proportions
Chapter 24 Comparing Means.
AP Statistics Chapter 24 Comparing Means.
Chapter 23 Comparing Means.
Chapter 23 Comparing Means.
Paired Samples and Blocks
Comparing Two Populations or Treatments
Comparing Two Proportions
Chapter 23 Comparing Means.
Comparing Two Proportions
Chapter 24 Comparing Means Copyright © 2009 Pearson Education, Inc.
Presentation transcript:

Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 24 Comparing Means

Copyright © 2010, 2007, 2004 Pearson Education, Inc. Slide Plot the Data The natural display for comparing two groups is boxplots of the data for the two groups, placed side-by-side. For example:

Copyright © 2010, 2007, 2004 Pearson Education, Inc. Slide Comparing Two Means Once we have examined the side-by-side boxplots, we can turn to the comparison of two means. Comparing two means is not very different from comparing two proportions. This time the parameter of interest is the difference between the two means,  1 –  2.

Copyright © 2010, 2007, 2004 Pearson Education, Inc. Slide Comparing Two Means (cont.) Remember that, for independent random quantities, variances add. So, the standard deviation of the difference between two sample means is We still don’t know the true standard deviations of the two groups, so we need to estimate and use the standard error

Copyright © 2010, 2007, 2004 Pearson Education, Inc. Slide Comparing Two Means (cont.) Because we are working with means and estimating the standard error of their difference using the data, we shouldn’t be surprised that the sampling model is a Student’s t. The confidence interval we build is called a two-sample t-interval (for the difference in means). The corresponding hypothesis test is called a two-sample t-test.

Copyright © 2010, 2007, 2004 Pearson Education, Inc. Slide Sampling Distribution for the Difference Between Two Means When the conditions are met, the standardized sample difference between the means of two independent groups can be modeled by a Student’s t-model with a number of degrees of freedom found with a special formula. We estimate the standard error with

Copyright © 2010, 2007, 2004 Pearson Education, Inc. Slide Assumptions and Conditions Independence Assumption (Each condition needs to be checked for both groups.): Randomization Condition: Were the data collected with suitable randomization (representative random samples or a randomized experiment)? 10% Condition: We don’t usually check this condition for differences of means. We will check it for means only if we have a very small population or an extremely large sample.

Copyright © 2010, 2007, 2004 Pearson Education, Inc. Slide Assumptions and Conditions (cont.) Normal Population Assumption: Nearly Normal Condition: This must be checked for both groups. A violation by either one violates the condition. Independent Groups Assumption: The two groups we are comparing must be independent of each other. (See Chapter 25 if the groups are not independent of one another…)

Copyright © 2010, 2007, 2004 Pearson Education, Inc. Slide Two-Sample t-Interval When the conditions are met, we are ready to find the confidence interval for the difference between means of two independent groups,  1 –  2. The confidence interval is where the standard error of the difference of the means is The critical value t* df depends on the particular confidence level, C, that you specify and on the number of degrees of freedom, which we get from the sample sizes and a special formula.

Copyright © 2010, 2007, 2004 Pearson Education, Inc. Slide Degrees of Freedom The special formula for the degrees of freedom for our t critical value is a bear: Because of this, we will let technology calculate degrees of freedom for us!

Copyright © 2010, 2007, 2004 Pearson Education, Inc. Just Checking… Carpal tunnel syndrome (CTS) causes pain and tingling in the hand, sometimes bad enough to keep sufferers awake at night and restrict their daily activities. Researchers studied the effectiveness of two alternative surgical treatments for CTS. Patients were randomly assigned to have endoscopic or open-incision surgery. Four weeks later the endoscopic surgery patients demonstrated a mean pinch strength of 9.1 kg compared to 7.6 for open-incision patients. 1. Why is the randomization of the patients into the two treatments important? 2. A 95% confidence interval for the difference in mean strength is about (0.04 kg, 2.96 kg). Explain what this interval means. 3. Why might we want to examine such a confidence interval in deciding between those two surgical procedures? 4. Why might you want to see the data before trusting the confidence interval? Slide

Copyright © 2010, 2007, 2004 Pearson Education, Inc. Slide Testing the Difference Between Two Means The hypothesis test we use is the two-sample t- test for means. The conditions for the two-sample t-test for the difference between the means of two independent groups are the same as for the two- sample t-interval.

Copyright © 2010, 2007, 2004 Pearson Education, Inc. Slide A Test for the Difference Between Two Means We test the hypothesis H 0 :  1 –  2 =  0, where the hypothesized difference,  0, is almost always 0, using the statistic The standard error is When the conditions are met and the null hypothesis is true, this statistic can be closely modeled by a Student’s t-model with a number of degrees of freedom given by a special formula. We use that model to obtain a P-value.

Copyright © 2010, 2007, 2004 Pearson Education, Inc. Just Checking Recall the experiment comparing patients 4 weeks after surgery for carpal tunnel syndrome. The patients who had endoscopic surgery demonstrated a mean pitch strength of 9.1 kg compared to 7.6 kg for the open-incision patients. 5. What hypothesis would you test? 6. The P-value is less than State a brief conclusion. 7. The study reports work on 36 “hands,” but there were only 26 patients. In fact, 7 of the endoscopic surgery patients had both hands operated on, as did 3 of the open-inclusion group. Does this alter your thinking about any of the assumptions? Explain. Slide

Copyright © 2010, 2007, 2004 Pearson Education, Inc. Slide Back Into the Pool Remember that when we know a proportion, we know its standard deviation. Thus, when testing the null hypothesis that two proportions were equal, we could assume their variances were equal as well. This led us to pool our data for the hypothesis test.

Copyright © 2010, 2007, 2004 Pearson Education, Inc. Slide Back Into the Pool (cont.) For means, there is also a pooled t-test. Like the two-proportions z-test, this test assumes that the variances in the two groups are equal. But, be careful, there is no link between a mean and its standard deviation…

Copyright © 2010, 2007, 2004 Pearson Education, Inc. Slide Back Into the Pool (cont.) If we are willing to assume that the variances of two means are equal, we can pool the data from two groups to estimate the common variance and make the degrees of freedom formula much simpler. We are still estimating the pooled standard deviation from the data, so we use Student’s t- model, and the test is called a pooled t-test (for the difference between means).

Copyright © 2010, 2007, 2004 Pearson Education, Inc. Slide *The Pooled t-Test If we assume that the variances are equal, we can estimate the common variance from the numbers we already have: Substituting into our standard error formula, we get: Our degrees of freedom are now df = n 1 + n 2 – 2.

Copyright © 2010, 2007, 2004 Pearson Education, Inc. Slide *The Pooled t-Test and Confidence Interval for Means The conditions for the pooled t-test and corresponding confidence interval are the same as for our earlier two- sample t procedures, with the additional assumption that the variances of the two groups are the same. For the hypothesis test, our test statistic is which has df = n 1 + n 2 – 2. Our confidence interval is

Copyright © 2010, 2007, 2004 Pearson Education, Inc. Slide Is the Pool All Wet? So, when should you use pooled-t methods rather than two-sample t methods? Never. (Well, hardly ever.) Because the advantages of pooling are small, and you are allowed to pool only rarely (when the equal variance assumption is met), don’t. It’s never wrong not to pool.

Copyright © 2010, 2007, 2004 Pearson Education, Inc. Slide Why Not Test the Assumption That the Variances Are Equal? There is a hypothesis test that would do this. But, it is very sensitive to failures of the assumptions and works poorly for small sample sizes—just the situation in which we might care about a difference in the methods. So, the test does not work when we would need it to.

Copyright © 2010, 2007, 2004 Pearson Education, Inc. Slide Is There Ever a Time When Assuming Equal Variances Makes Sense? Yes. In a randomized comparative experiment, we start by assigning our experimental units to treatments at random. Each treatment group therefore begins with the same population variance. In this case assuming the variances are equal is still an assumption, and there are conditions that need to be checked, but at least it’s a plausible assumption.

Copyright © 2010, 2007, 2004 Pearson Education, Inc. Slide What Can Go Wrong? Watch out for paired data. The Independent Groups Assumption deserves special attention. If the samples are not independent, you can’t use two-sample methods. Look at the plots. Check for outliers and non-normal distributions by making and examining boxplots.

Copyright © 2010, 2007, 2004 Pearson Education, Inc. Slide What have we learned? We’ve learned to use statistical inference to compare the means of two independent groups. We use t-models for the methods in this chapter. It is still important to check conditions to see if our assumptions are reasonable. The standard error for the difference in sample means depends on believing that our data come from independent groups, but pooling is not the best choice here. Once again, we’ve see new can add variances. The reasoning of statistical inference remains the same; only the mechanics change.