10/31/13 7.2 Comparing Two Means. Does smoking damage the lungs of children exposed to parental smoking? Forced vital capacity (FVC) is the volume (in.

Slides:



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

Objectives 7.1, 7.2Inference for comparing means of two populations  Matched pairs t confidence interval  Matched pairs t hypothesis test  Two-sample.
AP STATISTICS LESSON 11 – 1 (DAY 3) Matched Pairs t Procedures.
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.
Inference for distributions: - for the mean of a population IPS chapter 7.1 © 2006 W.H Freeman and Company.
Lecture 11/7. Inference for Proportions 8.2 Comparing Two Proportions © 2012 W.H. Freeman and Company.
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.
Independent Samples and Paired Samples t-tests PSY440 June 24, 2008.
6/22/2015Two Sample Problems1 Chapter 19 Two Sample Problems.
Inference for Distributions - for the Mean of a Population
Chapter 11: Inference for Distributions
Two-sample problems for population means BPS chapter 19 © 2006 W.H. Freeman and Company.
CHAPTER 19: Two-Sample Problems
AP Statistics Section 13.1 A. Which of two popular drugs, Lipitor or Pravachol, helps lower bad cholesterol more? 4000 people with heart disease were.
Inference for Distributions
Inferences Based on Two Samples
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.
Inference for a population mean BPS chapter 18 © 2006 W.H. Freeman and Company.
AP Statistics Section 13.1 A. Which of two popular drugs, Lipitor or Pravachol, helps lower bad cholesterol more? 4000 people with heart disease were.
Last Time Today we will learn how to do t-tests using excel, and we will review for Monday’s exam.
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.
Comparing Means: Confidence Intervals and Hypotheses Tests for the Difference between Two Population Means µ 1 - µ 2 1.
Inference for Distributions - for the Mean of a Population IPS Chapter 7.1 © 2009 W.H Freeman and Company.
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.
Inference for Distributions 7.2 Comparing Two Means © 2012 W.H. Freeman and Company.
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.
Objectives (PSLS Chapter 18) Comparing two means (σ unknown)  Two-sample situations  t-distribution for two independent samples  Two-sample t test 
Analysis of Financial Data Spring 2012 Lecture 2: Statistical Inference 2 Priyantha Wijayatunga, Department of Statistics, Umeå University
10.2 ESTIMATING A POPULATION MEAN. QUESTION: How do we construct a confidence interval for an unknown population mean when we don’t know the population.
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 -
T-tests Comparing the means of 2 independent similar populations.
The Practice of Statistics, 5 th Edition1 Check your pulse! Count your pulse for 15 seconds. Multiply by 4 to get your pulse rate for a minute. Write that.
The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers CHAPTER 10 Comparing Two Populations or Groups 10.2.
Inference for Distributions Inference for the Mean of a Population PBS Chapter 7.1 © 2009 W.H Freeman and Company.
Statistics for Business and Economics Module 1:Probability Theory and Statistical Inference Spring 2010 Lecture 7: Tests of significance and confidence.
Inference for distributions: - for the mean of a population IPS chapter 7.1 © 2006 W.H Freeman and Company.
Objectives (PSLS Chapter 18)
Basic Practice of Statistics - 5th Edition
Chapter 23 CI HT for m1 - m2: Paired Samples
18. Two-sample problems for population means (σ unknown)
The Practice of Statistics in the Life Sciences Fourth Edition
Inference for distributions: - Optional topics in comparing distributions IPS chapter 7.3 © 2006 W.H. Freeman and Company.
Inference for Distributions
Comparing Populations
Warmup To check the accuracy of a scale, a weight is weighed repeatedly. The scale readings are normally distributed with a standard deviation of
CHAPTER 10 Comparing Two Populations or Groups
Inference for Distributions 7.2 Comparing Two Means
CHAPTER 10 Comparing Two Populations or Groups
What are their purposes? What kinds?
Objectives (Section 7.2) Two sample problems:
CHAPTER 10 Comparing Two Populations or Groups
Basic Practice of Statistics - 3rd Edition
Objectives 7.1 Inference for the mean of a population
Section 10.2 Comparing Two Means.
CHAPTER 10 Comparing Two Populations or Groups
Essential Statistics Inference about a Population Mean
Presentation transcript:

10/31/ Comparing Two Means

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 D, 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.

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 8 weeks, all children take a reading test (scores in table). 95% confidence interval for (µ 1 − µ 2 ): Does the directed reading activity improve reading ability? Take the significance level to be 5%?

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 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, (µ 1 − µ 2 ), falls within 9.96 ± 8.99 or 1.0 to 18.9.

Robustness The t procedures are exactly correct when the population is distributed exactly normally. However, most real data are not exactly normal. The t procedures are robust to small deviations from normality – the results will not be affected too much. Factors that strongly matter:  Random sampling. The sample must be an SRS from the population.  Outliers and skewness. They strongly influence the mean and therefore the t procedures. However, their impact diminishes as the sample size gets larger because of the Central Limit Theorem. Specifically:  When n < 15, the data must be close to normal and without outliers.  When 15 > n > 40, mild skewness is acceptable but not outliers.  When n > 40, the t-statistic will be valid even with strong skewness.

Robustness The two-sample t procedures are more robust than the one-sample t procedures. They are 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.  When planning a two-sample study, choose equal sample sizes if you can. As a guideline, a combined sample size (n 1 + n 2 ) of 40 or more will allow you to work with even 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.

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).

Which type of test? One sample, paired samples, two samples?  Comparing vitamin content of bread immediately after baking vs. 3 days later (the same loaves are used on day one and 3 days later).  Comparing vitamin content of bread immediately after baking vs. 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 vs. houses without one. Was there a difference in the average dollar amount paid?

Matched pairs t procedures Sometimes we want to compare treatments or conditions at the individual level. These situations produce two samples that are not independent — they are related to each other. The members of one sample are identical to, or matched (paired) with, the members of the other sample.  Example: Pre-test and post-test studies look at data collected on the same sample elements before and after some experiment is performed.  Example: Twin studies often try to sort out the influence of genetic factors by comparing a variable between sets of twins.  Example: Using people matched for age, sex, and education in social studies allows canceling out the effect of these potential lurking variables.

In these cases, we use the paired data to test the difference in the two population means. The variable studied becomes X difference = (X 1 − X 2 ), and H 0 : µ difference = 0 ; H a : µ difference >0 (or <0, or ≠0) Conceptually, this is not different from tests on one population.

Sweetening colas (revisited) The sweetness loss due to storage was evaluated by 10 professional tasters (comparing the sweetness before and after storage): Taster Sweetness loss      5 −0.4   7 −1.3    We want to test if storage results in a loss of sweetness, thus: H 0 :  = 0 versus H a :  > 0 Although the text didn’t mention it explicitly, this is a pre-/post-test design and the variable is the difference in cola sweetness before minus after storage. A matched pairs test of significance is indeed just like a one-sample test.

Does lack of caffeine increase depression? Individuals diagnosed as caffeine-dependent are deprived of caffeine-rich foods and assigned to receive daily pills. Sometimes, the pills contain caffeine and other times they contain a placebo. Depression was assessed.  There are 2 data points for each subject, but we’ll only look at the difference.  The sample distribution appears appropriate for a t-test. 11 “difference” data points.

Does lack of caffeine increase depression? For each individual in the sample, we have calculated a difference in depression score (placebo minus caffeine). There were 11 “difference” points, thus df = n − 1 = 10. We calculate that = 7.36; s = 6.92 H 0 :  difference = 0 ; H 0 :  difference > 0 For df = 10, p > Caffeine deprivation causes a significant increase in depression.

SPSS statistical output for the caffeine study: a)Conducting a paired sample t-test on the raw data (caffeine and placebo) b)Conducting a one-sample t-test on difference (caffeine – placebo) Our alternative hypothesis was one-sided, thus our p-value is half of the two-tailed p-value provided in the software output (half of = ).