Chapter 9: Inferences for Two –Samples

Slides:



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

Section 9.3 Inferences About Two Means (Independent)
STATISTICS ELEMENTARY MARIO F. TRIOLA
Confidence Interval and Hypothesis Testing for:
Copyright ©2011 Brooks/Cole, Cengage Learning Testing Hypotheses about Means Chapter 13.
Copyright ©2011 Brooks/Cole, Cengage Learning Testing Hypotheses about Means Chapter 13.
Copyright ©2006 Brooks/Cole, a division of Thomson Learning, Inc. More About Significance Tests Chapter 13.
Comparing Two Population Means The Two-Sample T-Test and T-Interval.
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.
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
6.4 One and Two-Sample Inference for Variances. Example - Problem 26 – Page 435  D. Kim did some crude tensile strength testing on pieces of some nominally.
Chap 11-1 Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chapter 11 Hypothesis Testing II Statistics for Business and Economics.
Chapter Goals After completing this chapter, you should be able to:
1/45 Chapter 11 Hypothesis Testing II EF 507 QUANTITATIVE METHODS FOR ECONOMICS AND FINANCE FALL 2008.
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 10-1 Business Statistics: A Decision-Making Approach 7 th Edition Chapter.
© 2004 Prentice-Hall, Inc.Chap 10-1 Basic Business Statistics (9 th Edition) Chapter 10 Two-Sample Tests with Numerical Data.
Inferences About Process Quality
1 Chapter 9 Inferences from Two Samples In this chapter we will deal with two samples from two populations. The general goal is to compare the parameters.
Slide 1 Copyright © 2004 Pearson Education, Inc..
Slide 1 Copyright © 2004 Pearson Education, Inc..
Two Sample Tests Ho Ho Ha Ha TEST FOR EQUAL VARIANCES
Hypothesis Testing with Two Samples
1/2555 สมศักดิ์ ศิวดำรงพงศ์
More About Significance Tests
Dependent Samples: Hypothesis Test For Hypothesis tests for dependent samples, we 1.list the pairs of data in 2 columns (or rows), 2.take the difference.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Statistical Inferences Based on Two Samples Chapter 9.
1 Design of Engineering Experiments Part 2 – Basic Statistical Concepts Simple comparative experiments –The hypothesis testing framework –The two-sample.
Chapter 9 Hypothesis Testing and Estimation for Two Population Parameters.
Chapter 9 Testing the Difference Between Two Means, Two Proportions, and Two Variances Copyright © 2012 The McGraw-Hill Companies, Inc. Permission required.
One Sample Inf-1 If sample came from a normal distribution, t has a t-distribution with n-1 degrees of freedom. 1)Symmetric about 0. 2)Looks like a standard.
1 Objective Compare of two matched-paired means using two samples from each population. Hypothesis Tests and Confidence Intervals of two dependent means.
Chapter 9 Section 2 Testing the Difference Between Two Means: t Test 1.
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 9 Inferences Based on Two Samples.
Chapter 10 Inferences from Two Samples
A Broad Overview of Key Statistical Concepts. An Overview of Our Review Populations and samples Parameters and statistics Confidence intervals Hypothesis.
STATISTICAL INFERENCE PART VIII HYPOTHESIS TESTING - APPLICATIONS – TWO POPULATION TESTS 1.
A Course In Business Statistics 4th © 2006 Prentice-Hall, Inc. Chap 9-1 A Course In Business Statistics 4 th Edition Chapter 9 Estimation and Hypothesis.
1 Chapter 9 Inferences from Two Samples 9.2 Inferences About Two Proportions 9.3 Inferences About Two Means (Independent) 9.4 Inferences About Two Means.
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 8 th Edition Chapter 10 Hypothesis Testing:
Testing Differences in Population Variances
Week111 The t distribution Suppose that a SRS of size n is drawn from a N(μ, σ) population. Then the one sample t statistic has a t distribution with n.
9.2 Testing the Difference Between Two Means: Using the t Test
Week121 Robustness of the two-sample procedures The two sample t-procedures are more robust against nonnormality than one-sample t-procedures. When the.
to accompany Introduction to Business Statistics
Copyright © 2013 Pearson Education, Inc. All rights reserved Chapter 9 Inferences Based on Two Samples Confidence Intervals and Tests of Hypotheses.
Inferences Concerning Variances
Business Statistics, 4e, by Ken Black. © 2003 John Wiley & Sons Business Statistics, 4e by Ken Black Chapter 10 Statistical Inferences about Two.
ISMT253a Tutorial 1 By Kris PAN Skewness:  a measure of the asymmetry of the probability distribution of a real-valued random variable 
STATISTICAL INFERENCE PART VI HYPOTHESIS TESTING 1.
MATB344 Applied Statistics I. Experimental Designs for Small Samples II. Statistical Tests of Significance III. Small Sample Test Statistics Chapter 10.
1 Pertemuan 09 & 10 Pengujian Hipotesis Mata kuliah : A Statistik Ekonomi Tahun: 2010.
Copyright ©2011 Brooks/Cole, Cengage Learning Testing Hypotheses about Difference Between Two Means.
Lecture 8 Estimation and Hypothesis Testing for Two Population Parameters.
Chapter 9 Lecture 3 Section: 9.3. We will now consider methods for using sample data from two independent samples to test hypotheses made about two population.
Chapter 7 Inference Concerning Populations (Numeric Responses)
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved.Copyright © 2010 Pearson Education Section 9-3 Inferences About Two Means:
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.
The Differences in Ticket Prices for Broadway Shows By Courtney Snow I wanted to find out whether there was a significant difference in the price of musicals,
Testing the Difference between Means, Variances, and Proportions
Introduction For inference on the difference between the means of two populations, we need samples from both populations. The basic assumptions.
Testing the Difference Between Two Means
Exercises #8.74, 8.78 on page 403 #8.110, on page 416
Math 4030 – 10b Inferences Concerning Variances: Hypothesis Testing
Math 4030 – 10a Tests for Population Mean(s)
Inferences on Two Samples Summary
Elementary Statistics
Chapter 8 Inferences from Two Samples
Chapter 8 Inferences from Two Samples
Presentation transcript:

Chapter 9: Inferences for Two –Samples Yunming Mu Department of Statistics Texas A&M University Chapter9

Outline 1 Overview 2 Inferences about Two Means: Independent      and Small Samples 3 Inferences about Two Means: Independent and Large Samples 4 Inferences about Two Proportions 5 Inferences about Two Means: Matched Pairs

Overview There are many important and meaningful situations in which it becomes necessary to compare two sets of sample data. page 438 of text Examples in the discussion

Two Samples: Independent Definitions Two Samples: Independent The sample values selected from one population are not related or somehow paired with the sample values selected from the other population. If the values in one sample are related to the values in the other sample, the samples are dependent. Such samples are often referred to as matched pairs or paired samples. Text will use the wording ‘matched pairs’. Example at bottom of page 438- 439

Example Do male and female college students differ with respect to their fastest reported driving speed? Population of all male college students Population of all female college students Sample of n1 = 17 males report average of 102.1 mph Sample of n2 = 21 females report average of 85.7 mph

Graphical summary of sample data

Numerical summary of sample data Gender N Mean Median TrMean StDev female 21 85.71 85.00 85.26 9.39 male 17 102.06 100.00 101.00 17.05 Gender SE Mean Minimum Maximum Q1 Q3 female 2.05 75.00 105.00 77.50 92.50 male 4.14 75.00 145.00 90.00 115.00 The difference in the sample means is 102.06 - 85.71 = 16.35 mph

The Question in Statistical Notation Let M = the average fastest speed of all male students. and F = the average fastest speed of all female students. Then we want to know whether M  F. This is equivalent to knowing whether M - F  0

All possible questions in statistical notation In general, we can always compare two averages by seeing how their difference compares to 0:

Set up hypotheses Null hypothesis: Alternative hypothesis: H0: M = F [equivalent to M - F = 0] Alternative hypothesis: Ha: M  F [equivalent to M - F  0]

Inferences about Two Means: Independent and Small Samples

Pooled Two-Sample T Test and T Interval Assumptions: 1. The two samples are independent. 2. Both samples are normal or the two sample sizes are small, n1 < 30 and n2 < 30 3. Both variances are unknown but equal. Assume variances are equal only if neither sample standard deviation is more than twice that of the other sample standard deviation. page 439

Confidence Intervals Normal Samples w/ Unknown Equal Variance (x1 - x2) - E < (µ1 - µ2) < (x1 - x2) + E where

Leaded vs Unleaded Each of the cars selected for the EPA study was tested and the number of miles per gallon for each was obtained and recorded (Leaded=1 and Unleaded=2). Leaded (1) Unleaded(2) n 11 10 x 17.2 19.9 S 2.1 2

95% Confidence Interval

Pooled Two-Sample T Tests Normal Samples w/ unknown Variance P-value: Use t distribution with n1+n2-2 degrees of freedom and find the P-value by following the same procedure for t tests summarized in Ch 8. Critical values: Based on the significance level , use for upper tail tests, use for lower tail tests and use for two tailed tests.

Leaded vs Unleaded Claim: 1 < 2 Ho : 1 = 2 H1 : 1 < 2  = 0.01 Reject H0 Fail to reject H0 Further explanation of interpretation is given in text. The magnitude of the difference is the weights is not anything that consumers would notice. Also this test simply indicates the Coke ingredients weigh less which does not indicate that there is less volume of the product. -1.729

Pooled Two-Sample T Test Leaded vs Unleaded Pooled Two-Sample T Test Claim: 1 < 2 Ho : 1 = 2 H1 : 1 < 2  = 0.05

Leaded vs Unleaded Claim: 1 < 2 Ho : 1 = 2 H1 : 1 < 2 There is significant evidence to support the claim that the leaded cars have a lower mean mpg than unleaded cars Claim: 1 < 2 Ho : 1 = 2 H1 : 1 < 2  = 0.01 Reject H0 Fail to reject H0 Further explanation of interpretation is given in text. The magnitude of the difference is the weights is not anything that consumers would notice. Also this test simply indicates the Coke ingredients weigh less which does not indicate that there is less volume of the product. Reject Null -1.729 sample data: t = - 3.01 P-value=0.0077(=area of red region)

Two-Sample T Test and T Interval Assumptions: 1. The two samples are independent. 2. Both samples are normal or the two sample sizes are small, n1 < 30 and n2 < 30 3. Both variances are unknown but unequal page 439

Confidence Intervals Normal Samples w/ Unknown Unequal Variance (x1 - x2) - E < (µ1 - µ2) < (x1 - x2) + E where (round v down to the nearest integer)

Unpooled Two Sample T-Test Normal Samples w/ Unknown Variance P-value: Use t distribution with v degrees of freedom and find the P-value by following the same procedure for t tests summarized in Ch 8. Critical values: Based on the significance level , use for upper tail tests, use for lower tail tests and use for two tailed tests.

Example We compare the density of two different types of brick. Assuming normality of the two densities distributions and unequal unknown variances, test if there is a difference in the mean densities of two different types of brick. Type I brick Type 2 brick n 6 5 x 22.73 21.95 S 0.10 0.24

Unpooled Two-Sample T-Test Ho : 1 = 2 H1 : 1  2  = 0.05 P-Value = 0.001; Reject the null and conclude that there is significant difference in the mean densities of the two types of brick

Two-sample t-test in Minitab Select Stat. Select Basic Statistics. Select 2-sample t to get a Pop-Up window. Click on the radio button before Samples in one Column. Put the measurement variable in Samples box, and put the grouping variable in Subscripts box. Specify your alternative hypothesis. If appropriate, select Assume Equal Variances. Select OK.

Pooled two-sample t-test Two sample T for Fastest Gender N Mean StDev SE Mean female 21 85.71 9.39 2.0 male 17 102.1 17.1 4.1 95% CI for mu (female) - mu (male ): ( -25.2, -7.5) T-Test mu (female) = mu (male ) (vs not =): T = -3.75 P = 0.0006 DF = 36 Both use Pooled StDev = 13.4

(Unpooled) two-sample t-test Two sample T for Fastest Gender N Mean StDev SE Mean female 21 85.71 9.39 2.0 male 17 102.1 17.1 4.1 95% CI for mu (female) - mu (male ): ( -25.9, -6.8) T-Test mu (female) = mu (male ) (vs not =): T = -3.54 P = 0.0017 DF = 23