Testing means, part III The two-sample t-test. Sample Null hypothesis The population mean is equal to  o One-sample t-test Test statistic Null distribution.

Slides:



Advertisements
Similar presentations
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 9 Inferences Based on Two Samples.
Advertisements

Confidence Interval and Hypothesis Testing for:
Comparing Two Population Means The Two-Sample T-Test and T-Interval.
Chapter 9: Inferences for Two –Samples
Nonparametric tests and ANOVAs: What you need to know.
Midterm Review Session
Statistics for Managers Using Microsoft Excel, 5e © 2008 Prentice-Hall, Inc.Chap 10-1 Statistics for Managers Using Microsoft® Excel 5th Edition Chapter.
Chapter 10 Two-Sample Tests
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 7 th Edition Chapter 10 Hypothesis Testing:
PSY 307 – Statistics for the Behavioral Sciences
10-1 Introduction 10-2 Inference for a Difference in Means of Two Normal Distributions, Variances Known Figure 10-1 Two independent populations.
The Normal Distribution. n = 20,290  =  = Population.
Statistics Are Fun! Analysis of Variance
Chap 11-1 Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chapter 11 Hypothesis Testing II Statistics for Business and Economics.
BCOR 1020 Business Statistics
Homework Chapter 11: 13 Chapter 12: 1, 2, 14, 16.
Final Review Session.
1/45 Chapter 11 Hypothesis Testing II EF 507 QUANTITATIVE METHODS FOR ECONOMICS AND FINANCE FALL 2008.
IEEM 3201 Two-Sample Estimation: Paired Observation, Difference.
Statistics 101 Class 9. Overview Last class Last class Our FAVORATE 3 distributions Our FAVORATE 3 distributions The one sample Z-test The one sample.
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 10-1 Business Statistics: A Decision-Making Approach 7 th Edition Chapter.
Testing the Difference Between Means (Small Independent Samples)
Copyright © 2014 by McGraw-Hill Higher Education. All rights reserved.
Copyright © 2010 Pearson Education, Inc. Chapter 24 Comparing Means.
Chapter 10, sections 1 and 4 Two-sample Hypothesis Testing Test hypotheses for the difference between two independent population means ( standard deviations.
5-3 Inference on the Means of Two Populations, Variances Unknown
Hypothesis Testing Using The One-Sample t-Test
Objective: To test claims about inferences for two sample means, under specific conditions.
Basic Business Statistics, 10e © 2006 Prentice-Hall, Inc. Chap 10-1 Chapter 10 Two-Sample Tests Basic Business Statistics 10 th Edition.
Hypothesis Testing and T-Tests. Hypothesis Tests Related to Differences Copyright © 2009 Pearson Education, Inc. Chapter Tests of Differences One.
Chapter 24: Comparing Means.
AM Recitation 2/10/11.
Two Sample Tests Ho Ho Ha Ha TEST FOR EQUAL VARIANCES
Education 793 Class Notes T-tests 29 October 2003.
Sullivan – Fundamentals of Statistics – 2 nd Edition – Chapter 11 Section 2 – Slide 1 of 25 Chapter 11 Section 2 Inference about Two Means: Independent.
T-distribution & comparison of means Z as test statistic Use a Z-statistic only if you know the population standard deviation (σ). Z-statistic converts.
- Interfering factors in the comparison of two sample means using unpaired samples may inflate the pooled estimate of variance of test results. - It is.
Comparing Two Proportions
Chapter 9 Hypothesis Testing and Estimation for Two Population Parameters.
Hypothesis Testing CSCE 587.
Chapter 10 Comparing Two Means Target Goal: I can use two-sample t procedures to compare two means. 10.2a h.w: pg. 626: 29 – 32, pg. 652: 35, 37, 57.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 24 Comparing Means.
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 9 Inferences Based on Two Samples.
Hypothesis Testing Using the Two-Sample t-Test
Testing means, part II The paired t-test. Outline of lecture Options in statistics –sometimes there is more than one option One-sample t-test: review.
Industrial Statistics 2
Chap 9-1 Two-Sample Tests. Chap 9-2 Two Sample Tests Population Means, Independent Samples Means, Related Samples Population Variances Group 1 vs. independent.
Chapter 23 Inference for One- Sample Means. Steps for doing a confidence interval: 1)State the parameter 2)Conditions 1) The sample should be chosen randomly.
Testing Differences in Population Variances
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 9-1 Chapter 9 Two-Sample Tests Statistics for Managers Using Microsoft.
© Copyright McGraw-Hill 2000
I271B The t distribution and the independent sample t-test.
STA 2023 Module 11 Inferences for Two Population Means.
Chapter Twelve The Two-Sample t-Test. Copyright © Houghton Mifflin Company. All rights reserved.Chapter is the mean of the first sample is the.
to accompany Introduction to Business Statistics
8.2 Testing the Difference Between Means (Independent Samples,  1 and  2 Unknown) Key Concepts: –Sampling Distribution of the Difference of the Sample.
Hypothesis Testing Errors. Hypothesis Testing Suppose we believe the average systolic blood pressure of healthy adults is normally distributed with mean.
- We have samples for each of two conditions. We provide an answer for “Are the two sample means significantly different from each other, or could both.
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.
Statistics for Managers Using Microsoft Excel, 5e © 2008 Prentice-Hall, Inc.Chap 10-1 Statistics for Managers Using Microsoft® Excel 5th Edition Chapter.
Comparing Two Means Ch. 13. Two-Sample t Interval for a Difference Between Two Means.
Lecture 8 Estimation and Hypothesis Testing for Two Population Parameters.
Chapters 22, 24, 25 Inference for Two-Samples. Confidence Intervals for 2 Proportions.
Hypothesis Testing – Two Means(Small, Independent Samples)
Introduction For inference on the difference between the means of two populations, we need samples from both populations. The basic assumptions.
Math 4030 – 10b Inferences Concerning Variances: Hypothesis Testing
Math 4030 – 10a Tests for Population Mean(s)
Psychology 202a Advanced Psychological Statistics
Independent Samples: Comparing Means
Summary of Tests Confidence Limits
Presentation transcript:

Testing means, part III The two-sample t-test

Sample Null hypothesis The population mean is equal to  o One-sample t-test Test statistic Null distribution t with n-1 df compare How unusual is this test statistic? P < 0.05 P > 0.05 Reject H o Fail to reject H o

Sample Null hypothesis The mean difference is equal to  o Paired t-test Test statistic Null distribution t with n-1 df *n is the number of pairs compare How unusual is this test statistic? P < 0.05 P > 0.05 Reject H o Fail to reject H o

4 Comparing means Tests with one categorical and one numerical variable Goal: to compare the mean of a numerical variable for different groups.

5 Paired vs. 2 sample comparisons

6 2 Sample Design Each of the two samples is a random sample from its population

7 2 Sample Design Each of the two samples is a random sample from its population The data cannot be paired

8 2 Sample Design - assumptions Each of the two samples is a random sample In each population, the numerical variable being studied is normally distributed The standard deviation of the numerical variable in the first population is equal to the standard deviation in the second population

9 Estimation: Difference between two means Normal distribution Standard deviation s 1 =s 2 =s Since both Y 1 and Y 2 are normally distributed, their difference will also follow a normal distribution

10 Estimation: Difference between two means Confidence interval:

11 Standard error of difference in means = pooled sample variance = size of sample 1 = size of sample 2

12 Standard error of difference in means Pooled variance:

13 Standard error of difference in means df 1 = degrees of freedom for sample 1 = n 1 -1 df 2 = degrees of freedom for sample 2 = n 2 -1 s 1 2 = sample variance of sample 1 s 2 2 = sample variance of sample 2 Pooled variance:

14 Estimation: Difference between two means Confidence interval:

15 Estimation: Difference between two means Confidence interval: df = df 1 + df 2 = n 1 +n 2 -2

16 Costs of resistance to disease 2 genotypes of lettuce: Susceptible and Resistant Do these differ in fitness in the absence of disease?

17 Data, summarized Both distributions are approximately normal.

18 Calculating the standard error df 1 =15 -1=14; df 2 = 16-1=15

19 Calculating the standard error df 1 =15 -1=14; df 2 = 16-1=15

20 Calculating the standard error df 1 =15 -1=14; df 2 = 16-1=15

21 Finding t df = df 1 + df 2 = n 1 +n 2 -2 = =29

22 Finding t df = df 1 + df 2 = n 1 +n 2 -2 = =29

23 The 95% confidence interval of the difference in the means

24 Testing hypotheses about the difference in two means 2-sample t-test

25 2-sample t-test Test statistic:

26 Hypotheses

27 Null distribution df = df 1 + df 2 = n 1 +n 2 -2

28 Calculating t

29 Drawing conclusions... t 0.05(2),29 =2.05 t <2.05, so we cannot reject the null hypothesis. These data are not sufficient to say that there is a cost of resistance. Critical value:

30 Assumptions of two-sample t - tests Both samples are random samples. Both populations have normal distributions The variance of both populations is equal.

Sample Null hypothesis The two populations have the same mean  1  2 Two-sample t-test Test statistic Null distribution t with n 1 +n 2 -2 df compare How unusual is this test statistic? P < 0.05 P > 0.05 Reject H o Fail to reject H o

Quick reference summary: Two-sample t-test What is it for? Tests whether two groups have the same mean What does it assume? Both samples are random samples. The numerical variable is normally distributed within both populations. The variance of the distribution is the same in the two populations Test statistic: t Distribution under H o : t-distribution with n 1 +n 2 -2 degrees of freedom. Formulae:

33 Comparing means when variances are not equal Welch’s t test

34 Burrowing owls and dung traps

35 Dung beetles

36 Experimental design 20 randomly chosen burrowing owl nests Randomly divided into two groups of 10 nests One group was given extra dung; the other not Measured the number of dung beetles on the owls’ diets

37 Number of beetles caught Dung added: No dung added:

38 Hypotheses H 0 : Owls catch the same number of dung beetles with or without extra dung (  1 =  2 ) H A : Owls do not catch the same number of dung beetles with or without extra dung (  1   2 )

39 Welch’s t Round down df to nearest integer

40 Owls and dung beetles

41 Degrees of freedom Which we round down to df= 10

42 Reaching a conclusion t 0.05(2), 10 = 2.23 t=4.01 > 2.23 So we can reject the null hypothesis with P<0.05. Extra dung near burrowing owl nests increases the number of dung beetles eaten.

Quick reference summary: Welch’s approximate t-test What is it for? Testing the difference between means of two groups when the standard deviations are unequal What does it assume? Both samples are random samples. The numerical variable is normally distributed within both populations Test statistic: t Distribution under H o : t-distribution with adjusted degrees of freedom Formulae:

44 The wrong way to make a comparison of two groups “Group 1 is significantly different from a constant, but Group 2 is not. Therefore Group 1 and Group 2 are different from each other.”

45 A more extreme case...