Two-sample problems for population means BPS chapter 19 © 2006 W.H. Freeman and Company.

Slides:



Advertisements
Similar presentations
BPS - 5th Ed. Chapter 241 One-Way Analysis of Variance: Comparing Several Means.
Advertisements

CHAPTER 25: One-Way Analysis of Variance Comparing Several Means
Objectives 7.1, 7.2Inference for comparing means of two populations  Matched pairs t confidence interval  Matched pairs t hypothesis test  Two-sample.
Objectives (BPS chapter 18) Inference about a Population Mean  Conditions for inference  The t distribution  The one-sample t confidence interval 
Inference for a population mean BPS chapter 18 © 2006 W. H. Freeman and Company.
Lecture 11/7. Inference for Proportions 8.2 Comparing Two Proportions © 2012 W.H. Freeman and Company.
Copyright ©2011 Brooks/Cole, Cengage Learning Testing Hypotheses about Means Chapter 13.
Inference for distributions: - Comparing two means IPS chapter 7.2 © 2006 W.H. Freeman and Company.
PSY 307 – Statistics for the Behavioral Sciences
Inference for Distributions - for the Mean of a Population IPS Chapter 7.1 © 2009 W.H Freeman and Company.
6/18/2015Two Sample Problems1 Chapter 18 Two Sample Problems.
6/22/2015Two Sample Problems1 Chapter 19 Two Sample Problems.
Inference for Distributions - for the Mean of a Population
Two Population Means Hypothesis Testing and Confidence Intervals With Unknown Standard Deviations.
Chapter 11: Inference for Distributions
Hypothesis Testing Using The One-Sample t-Test
CHAPTER 19: Two-Sample Problems
Week 9 October Four Mini-Lectures QMM 510 Fall 2014.
7.1 Lecture 10/29.
Inference for regression - Simple linear regression
Week 9 Chapter 9 - Hypothesis Testing II: The Two-Sample Case.
Inferences Based on Two Samples
Education 793 Class Notes T-tests 29 October 2003.
Copyright © Cengage Learning. All rights reserved. 10 Inferences Involving Two Populations.
Ch 11 – Inference for Distributions YMS Inference for the Mean of a Population.
AP STATISTICS LESSON 11 – 2 (DAY 1) Comparing Two Means.
More About Significance Tests
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Statistical Inferences Based on Two Samples Chapter 9.
Confidence Intervals and Hypothesis Tests for the Difference between Two Population Means µ 1 - µ 2 : Independent Samples Inference for  1  2 1.
Confidence Intervals and Hypothesis Tests for the Difference between Two Population Means µ 1 - µ 2 Inference for  1  Independent Samples.
IPS Chapter 7 © 2012 W.H. Freeman and Company  7.1: Inference for the Mean of a Population  7.2: Comparing Two Means  7.3: Optional Topics in Comparing.
Inference for distributions: - Comparing two means IPS chapter 7.2 © 2006 W.H. Freeman and Company.
Lecture 5 Two population tests of Means and Proportions.
Business Statistics for Managerial Decision Comparing two Population Means.
The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers CHAPTER 10 Comparing Two Populations or Groups 10.2.
Copyright © Cengage Learning. All rights reserved. 10 Inferences Involving Two Populations.
Inference for a population mean BPS chapter 16 © 2006 W.H. Freeman and Company.
Inference for Regression Simple Linear Regression IPS Chapter 10.1 © 2009 W.H. Freeman and Company.
Two sample problems:  compare the responses in two groups  each group is a sample from a distinct population  responses in each group are independent.
Objectives (BPS chapter 19) Comparing two population means  Two-sample t procedures  Examples of two-sample t procedures  Using technology  Robustness.
November 15. In Chapter 12: 12.1 Paired and Independent Samples 12.2 Exploratory and Descriptive Statistics 12.3 Inference About the Mean Difference 12.4.
Comparing Means: Confidence Intervals and Hypotheses Tests for the Difference between Two Population Means µ 1 - µ 2 1.
Introduction to Inferece BPS chapter 14 © 2010 W.H. Freeman and Company.
Inference for Distributions - for the Mean of a Population IPS Chapter 7.1 © 2009 W.H Freeman and Company.
CHAPTER 27: One-Way Analysis of Variance: Comparing Several Means
Chapter 7 Inference for Distributions. Inference for the mean of a population  So far, we have assumed that  was known.  If  is unknown, we can use.
Comparing Means: Confidence Intervals and Hypotheses Tests for the Difference between Two Population Means µ 1 - µ 2 Chapter 24 Independent Samples Chapter.
+ Unit 6: Comparing Two Populations or Groups Section 10.2 Comparing Two Means.
Learning Objectives After this section, you should be able to: The Practice of Statistics, 5 th Edition1 DESCRIBE the shape, center, and spread of the.
Inference for Distributions 7.2 Comparing Two Means © 2012 W.H. Freeman and Company.
Comparing Two Means Ch. 13. Two-Sample t Interval for a Difference Between Two Means.
Inference for distributions: - Comparing two means.
Comparing Means: Confidence Intervals and Hypotheses Tests for the Difference between Two Population Means µ 1 - µ 2 Inference for the difference Between.
Inference for a population mean BPS chapter 16 © 2006 W.H. Freeman and Company.
When  is unknown  The sample standard deviation s provides an estimate of the population standard deviation .  Larger samples give more reliable estimates.
S519: Evaluation of Information Systems Social Statistics Inferential Statistics Chapter 9: t test.
Objectives (PSLS Chapter 18) Comparing two means (σ unknown)  Two-sample situations  t-distribution for two independent samples  Two-sample t test 
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.
Chapter 10: The t Test For Two Independent Samples.
16/23/2016Inference about µ1 Chapter 17 Inference about a Population Mean.
Analysis of Financial Data Spring 2012 Lecture 2: Statistical Inference 2 Priyantha Wijayatunga, Department of Statistics, Umeå University
Class Six Turn In: Chapter 15: 30, 32, 38, 44, 48, 50 Chapter 17: 28, 38, 44 For Class Seven: Chapter 18: 32, 34, 36 Chapter 19: 26, 34, 44 Quiz 3 Read.
Comparing Means: Confidence Intervals and Hypotheses Tests for the Difference between Two Population Means µ 1 - µ 2 Chapter 22 Part 2 CI HT for m 1 -
10/31/ Comparing Two Means. Does smoking damage the lungs of children exposed to parental smoking? Forced vital capacity (FVC) is the volume (in.
Statistics for Business and Economics Module 1:Probability Theory and Statistical Inference Spring 2010 Lecture 7: Tests of significance and confidence.
Objectives (PSLS Chapter 18)
18. Two-sample problems for population means (σ unknown)
Inference for distributions: - Optional topics in comparing distributions IPS chapter 7.3 © 2006 W.H. Freeman and Company.
Inference for Distributions 7.2 Comparing Two Means
Objectives (Section 7.2) Two sample problems:
Presentation transcript:

Two-sample problems for population means BPS chapter 19 © 2006 W.H. Freeman and Company

Objectives (BPS chapter 19) Comparing two population means  Two-sample t procedures  Examples of two-sample t procedures  Using technology  Robustness again  Details of the t approximation  Avoid the pooled two-sample t procedures  Avoid inference about standard deviations  The F test for comparing two standard deviations

Conditions for inference comparing two means We have two independent SRSs (simple random samples) coming from two distinct populations (like men vs. women) with (     ) and (     ) unknown. Both populations should be Normally distributed. However, in practice, it is enough that the two distributions have similar shapes and that the sample data contain no strong outliers.

df 1−21−2 The two-sample t statistic follows approximately the t distribution with a standard error SE (spread) reflecting variation from both samples: Conservatively, the degrees of freedom is equal to the smallest of (n 1 −1, n 2 −1).

Two-sample t-test The null hypothesis is that both population means   and   are equal, thus their difference is equal to zero. H 0 :   =     −    with either a one-sided or a two-sided alternative hypothesis. We find how many standard errors (SE) away from (   −   ) is ( 1 − 2 ) by standardizing with t: Because in a two-sample test H 0 poses (   -    0, we simply use with df = smallest(n 1 − 1,n 2 − 1)

Does smoking damage the lungs of children exposed to parental smoking? Forced Vital Capacity (FVC) is the volume (in milliliters) of air that an individual can exhale in 6 seconds. FVC was obtained for a sample of children not exposed to parental smoking and a group of children exposed to parental smoking. We want to know whether parental smoking decreases children’s lung capacity as measured by the FVC test. Is the mean FVC lower in the population of children exposed to parental smoking? Parental smokingFVCsn Yes No

Parental smokingFVCsn Yes No The difference in sample averages follows approximately the t distribution: We calculate the t statistic: In Table C, for df 29 we find: |t| > => p < (one-sided) It’s a very significant difference, we reject H 0. H 0 :  smoke =  no (  smoke −  no ) = 0 H a :  smoke (  smoke −  no ) < 0 (one sided) Lung capacity is significantly impaired in children of smoking parents.

Two sample t-confidence interval Because we have two independent samples we use the difference between both sample averages ( 1 − 2 ) to estimate (   −   ). C t*t*−t*−t* m Practical use of t: t*  C is the area between −t* and t*.  We find t* in the line of Table C for df = smallest (n 1 −1; n 2 −1) and the column for confidence level C.  The margin of error m is:

Common mistake!!! A common mistake is to calculate a one-sample confidence interval for   and then check whether   falls within that confidence interval, or vice versa. This is WRONG because the variability in the sampling distribution for two independent samples is more complex and must take into account variability coming from both samples—hence the more complex formula for the standard error.

Can directed reading activities in the classroom help improve reading ability? A class of 21 third-graders participates in these activities for 8 weeks while a control classroom of 23 third-graders follows the same curriculum without the activities. After the 8 weeks, all children take a reading test (scores in table). 95% confidence interval for (µ 1 − µ 2 ), with df = 20 conservatively  t* = 2.086: With 95% confidence, (mu1 – mu2) falls within 9.96 ± 8.99 or 1.0 to 18.9.

Robustness The two-sample statistic is the most robust when both sample sizes are equal and both sample distributions are similar. But even when we deviate from this, two-sample tests tend to remain quite robust. As a guideline, a combined sample size (n 1 + n 2 ) of 40 or more will allow you to work even with the most skewed distributions.

Details of the two-sample t procedures The true value of the degrees of freedom for a two-sample t- distribution is quite lengthy to calculate. That’s why we use an approximate value, df = smallest(n 1 − 1, n 2 − 1), which errs on the conservative side (often smaller than the exact). Computer software, though, gives the exact degrees of freedom — or the rounded value — for your sample data.

SPSS Excel Table C 95% confidence interval for the reading ability study using the more precise degrees of freedom: t*

Excel menu/tools/data_analysis  or =TTEST(array1,array2,tails,type)  Array1 is the first data set.  Array2 is the second data set.  Tails specifies the nature of the alternative hypothesis (1: one-tailed; 2: two-tailed).  Type is the kind of t-test to perform (1: paired; 2: two-sample equal variance; 3: two-sample unequal variance).

Two-sample test assuming equal variance There are two versions of the two-sample t-test: one assuming equal variance (“pooled two-sample test”) and one not assuming equal variance (“unequal” variance) for the two populations. You may have noticed slightly different formulas and degrees of freedom. Two normally distributed populations with unequal variances The pooled (equal variance) two- sample t-test was often used before computers because it has exactly the t distribution for degrees of freedom n 1 + n 2 − 2. However, the assumption of equal variance is hard to check, and thus the unequal variance test is safer.

Which type of test? One sample, paired samples, two samples?  Comparing vitamin content of bread, immediately after baking versus 3 days later (the same loaves are used on day one and 3 days later).  Comparing vitamin content of bread, immediately after baking versus 3 days later (tests made on independent loaves).  Average fuel efficiency for 2005 vehicles is 21 miles per gallon. Is average fuel efficiency higher in the new generation “green vehicles?”  Is blood pressure altered by use of an oral contraceptive? Comparing a group of women not using an oral contraceptive with a group taking it.  Review insurance records for dollar amount paid after fire damage in houses equipped with a fire extinguisher versus houses without one. Was there a difference in the average dollar amount paid?

Comparing two standard deviations It is also possible to compare two population standard deviations σ 1 and σ 2 by comparing the standard deviations of two SRSs. However, the procedures are not robust at all against deviations from normality. When s 1 2 and s 2 2 are sample variances from independent SRSs of sizes n1 and n2 drawn from normal populations, the F-statistic F = s 1 2 / s 2 2 has the F distribution with n 1 − 1 and n 2 − 1 degrees of freedom when H 0 : σ 1 = σ 2 is true. The F-value is then compared with critical values from Table D for the P-value with a one-sided alternative; this P-value is doubled for a two-sided alternative.