Chapter 10 Comparing Two Treatments Statistics, 5/E by Johnson and Bhattacharyya Copyright © 2006 by John Wiley & Sons, Inc. All rights reserved.

Slides:



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

Copyright © 2014 by McGraw-Hill Higher Education. All rights reserved.
Business Statistics: Communicating with Numbers
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.
10-1 Introduction 10-2 Inference for a Difference in Means of Two Normal Distributions, Variances Known Figure 10-1 Two independent populations.
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap 9-1 Introduction to Statistics Chapter 10 Estimation and Hypothesis.
SIMPLE LINEAR REGRESSION
ESTIMATION AND HYPOTHESIS TESTING: TWO POPULATIONS
CHAPTER 10 ESTIMATION AND HYPOTHESIS TESTING: TWO POPULATIONS Prem Mann, Introductory Statistics, 7/E Copyright © 2010 John Wiley & Sons. All right reserved.
Hypothesis Testing and T-Tests. Hypothesis Tests Related to Differences Copyright © 2009 Pearson Education, Inc. Chapter Tests of Differences One.
SIMPLE LINEAR REGRESSION
Copyright © 2012 by Nelson Education Limited. Chapter 8 Hypothesis Testing II: The Two-Sample Case 8-1.
Ch 10 Comparing Two Proportions Target Goal: I can determine the significance of a two sample proportion. 10.1b h.w: pg 623: 15, 17, 21, 23.
Statistics Pooled Examples.
Copyright © Cengage Learning. All rights reserved. 13 Linear Correlation and Regression Analysis.
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Chapter Inference on the Least-Squares Regression Model and Multiple Regression 14.
AP STATISTICS LESSON 11 – 2 (DAY 1) Comparing Two Means.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Statistical Inferences Based on Two Samples Chapter 9.
EDRS 6208: Fundamentals of Educational Research 1
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.
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 (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 9 Inferences Based on Two Samples.
Copyright (C) 2002 Houghton Mifflin Company. All rights reserved. 1 Understandable Statistics S eventh Edition By Brase and Brase Prepared by: Lynn Smith.
Chapter 12 Tests of a Single Mean When σ is Unknown.
1 10 Statistical Inference for Two Samples 10-1 Inference on the Difference in Means of Two Normal Distributions, Variances Known Hypothesis tests.
Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc Chapter 12 Inference About A Population.
Large sample CI for μ Small sample CI for μ Large sample CI for p
Chapter 12 Analysis of Variance. An Overview We know how to test a hypothesis about two population means, but what if we have more than two? Example:
Copyright © Cengage Learning. All rights reserved. 13 Linear Correlation and Regression Analysis.
© Copyright McGraw-Hill 2000
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. Section 9-1 Review and Preview.
Hypothesis Testing Errors. Hypothesis Testing Suppose we believe the average systolic blood pressure of healthy adults is normally distributed with mean.
© Copyright McGraw-Hill 2004
CHAPTER 12 ANALYSIS OF VARIANCE Prem Mann, Introductory Statistics, 7/E Copyright © 2010 John Wiley & Sons. All right reserved.
Understanding Basic Statistics Fourth Edition By Brase and Brase Prepared by: Lynn Smith Gloucester County College Chapter Nine Hypothesis Testing.
MATB344 Applied Statistics I. Experimental Designs for Small Samples II. Statistical Tests of Significance III. Small Sample Test Statistics Chapter 10.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved.Copyright © 2010 Pearson Education Section 9-3 Inferences About Two Means:
Hypothesis Testing Involving One Population Chapter 11.4, 11.5, 11.2.
 List the characteristics of the F distribution.  Conduct a test of hypothesis to determine whether the variances of two populations are equal.  Discuss.
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
Hypothesis Testing – Two Means(Small, Independent Samples)
Chapter Nine Hypothesis Testing.
Statistical Inferences for Population Variances
Hypothesis Testing – Two Population Variances
Testing the Difference Between Two Means
Hypothesis Testing for Means (Small Samples)
Statistical Quality Control, 7th Edition by Douglas C. Montgomery.
Inferential Statistics Inferences from Two Samples
Lecture Slides Elementary Statistics Twelfth Edition
STAT 312 Chapter 7 - Statistical Intervals Based on a Single Sample
Math 4030 – 10b Inferences Concerning Variances: Hypothesis Testing
Comparing Two Populations or Treatments
Lecture Slides Elementary Statistics Twelfth Edition
Math 4030 – 10a Tests for Population Mean(s)
CHAPTER 12 ANALYSIS OF VARIANCE
Elementary Statistics
Elementary Statistics
Elementary Statistics
Independent Samples: Comparing Means
WARM - UP The following represents snowfall amounts for 8 random winters in Detroit. 78” 130” 140” 120” 108” 120” 156” 101” 1. Fill in all four.
HYPOTHESIS TESTS ABOUT THE MEAN AND PROPORTION
Elementary Statistics: Picturing The World
SIMPLE LINEAR REGRESSION
ESTIMATION AND HYPOTHESIS TESTING: TWO POPULATIONS
What are their purposes? What kinds?
Lecture Slides Elementary Statistics Twelfth Edition
Statistical Inference for the Mean: t-test
Inferences from Matched Pairs
Presentation transcript:

Chapter 10 Comparing Two Treatments Statistics, 5/E by Johnson and Bhattacharyya Copyright © 2006 by John Wiley & Sons, Inc. All rights reserved.

Experimental Design Matched Paired Samples –Subjects are chosen in “pairs” that are alike. In each pair, one subject gets one treatment, the other gets the second treatment Independent Samples –Groups are randomly divided, given two different treatments Statistics, 5/E by Johnson and Bhattacharyya Copyright © 2006 by John Wiley & Sons, Inc. All rights reserved.

Figure 10.1a (p. 377) Independent samples, each of size 4.

Statistics, 5/E by Johnson and Bhattacharyya Copyright © 2006 by John Wiley & Sons, Inc. All rights reserved. Figure 10.1b (p. 377) Matched pairs design with four pairs of subjects. Separate random assignment of Drug 1 each pair.

Statistics, 5/E by Johnson and Bhattacharyya Copyright © 2006 by John Wiley & Sons, Inc. All rights reserved. Box 2 on Page 379 Statistical Model: Independent Random Samples

We know look to compare the means of these two treatments or population. When the sample sizes are large, we do not need to make additional assumptions. When both sample sizes are large, the sample means are both approximately normal, and their difference is approximately normal. Statistics, 5/E by Johnson and Bhattacharyya Copyright © 2006 by John Wiley & Sons, Inc. All rights reserved.

10.5 Introduction When comparing two populations, we’ll be considering the parameter  1 –  2. When we have two independent randomly-chosen large samples, we’ll use the two means and two standard deviations (or variances) in our point estimates of expected value and standard error.

Confidence Interval As we did before, we can construct a confidence interval: Estimate of parameter +/- (z-value)*estimated standard of error Statistics, 5/E by Johnson and Bhattacharyya Copyright © 2006 by John Wiley & Sons, Inc. All rights reserved.

Box on Page 381 Large Samples Confidence Interval for  1 -  2

Example A – confidence interval In doing a survey of textbook costs, Rodney found that at Whatsammatta U., in a sample of 42, the mean cost was $63.42 with s = $8.13. At Matriarch College (affectionately known as U. Mama) the mean textbook cost was $67.19 in a sample of 35 with s = $7.29. Construct a 95% confidence interval.

Example A – confidence interval In doing a survey of textbook costs, Rodney found that at Whatsammatta U., in a sample of 42, the mean cost was $63.42 with s = $8.13. At Matriarch College (affectionately known as U. Mama) the mean textbook cost was $67.19 in a sample of 35 with s = $7.29. Construct a 95% confidence interval. IMPORTANT! Note that we are given the standard deviation s. We’ll need the variance s 2 for the various formulae.

Example A – confidence interval | ← 1 –  →| |←  1 –  2 →| z  / 2 – z  / 2 group 1: Whatsammatta U., n = 42, mean = $63.42, s = $8.13 ; group 2: U. Mama, n = 35, mean = $67.19, s = $7.29 ; 95% confidence interval.

Example A – confidence interval | ← 1 –  →| |←  1 –  2 →| z  / 2 – z  / 2 group 1: Whatsammatta U., n = 42, mean = $63.42, s = $8.13 ; group 2: U. Mama, n = 35, mean = $67.19, s = $7.29 ; 95% confidence interval.

Example A – confidence interval | ← 1 –  →| |←  1 –  2 →| z  / 2 – z  / 2 group 1: Whatsammatta U., n = 42, mean = $63.42, s = $8.13 ; group 2: U. Mama, n = 35, mean = $67.19, s = $7.29 ; 95% confidence interval.

Example A – confidence interval | ← 1 –  →| |←  1 –  2 →| z  / 2 – z  / 2 group 1: Whatsammatta U., n = 42, mean = $63.42, s = $8.13 ; group 2: U. Mama, n = 35, mean = $67.19, s = $7.29 ; 95% confidence interval.

Example A – hypothesis test In doing a survey of textbook costs, Rodney found that at Whatsammatta U., in a sample of 42, the mean cost was $63.42 with s = $8.13. At Matriarch College (affectionately known as U. Mama) the mean textbook cost was $67.19 in a sample of 35 with s = $7.29. Test the hypothesis (  = 0.05 ) that textbooks cost less at Whatsammatta U. than they do at U. Mama.

Example A – hypothesis test In doing a survey of textbook costs, Rodney found that at Whatsammatta U., in a sample of 42, the mean cost was $63.42 with s = $8.13. At Matriarch College (affectionately known as U. Mama) the mean textbook cost was $67.19 in a sample of 35 with s = $7.29. Test the hypothesis (  = 0.05 ) that textbooks cost less at Whatsammatta U. than they do at U. Mama. IMPORTANT! Note that we are given the standard deviation s. We’ll need the variance s 2 for the various formulae.

Example A – hypothesis test (1) Set null hypothesis (“status quo”) and alternate hypothesis (“challenge”). group 1: Whatsammatta U., n = 42, mean = $63.42, s = $8.13 ; group 2: U. Mama, n = 35, mean = $67.19, s = $7.29 ;  = 0.05, test  1 <  2, that is  1 –  2 < 0

Example A – hypothesis test (1) Set null hypothesis (“status quo”) and alternate hypothesis (“challenge”). (2) Since n 1 = 42 and n 2 = 35 are both greater than 30, we can treat this as a large-sample case and use the normal distribution table to approximate probabilities. group 1: Whatsammatta U., n = 42, mean = $63.42, s = $8.13 ; group 2: U. Mama, n = 35, mean = $67.19, s = $7.29 ;  = 0.05, test  1 <  2, that is  1 –  2 < 0

Example A – hypothesis test (3) For  = 0.05, the boundary value for the rejection region is – z 0.05 = – group 1: Whatsammatta U., n = 42, mean = $63.42, s = $8.13 ; group 2: U. Mama, n = 35, mean = $67.19, s = $7.29 ;  = 0.05, test  1 <  2, that is  1 –  2 < 0

Example A – hypothesis test (4) Compute the test statistic. – z 0.05 = – group 1: Whatsammatta U., n = 42, mean = $63.42, s = $8.13 ; group 2: U. Mama, n = 35, mean = $67.19, s = $7.29 ;  = 0.05, test  1 <  2, that is  1 –  2 < 0

Example A – hypothesis test (4) Compute the test statistic. – z 0.05 = – group 1: Whatsammatta U., n = 42, mean = $63.42, s = $8.13 ; group 2: U. Mama, n = 35, mean = $67.19, s = $7.29 ;  = 0.05, test  1 <  2, that is  1 –  2 < 0

Example A – hypothesis test (4) Compute the test statistic. – z 0.05 = – group 1: Whatsammatta U., n = 42, mean = $63.42, s = $8.13 ; group 2: U. Mama, n = 35, mean = $67.19, s = $7.29 ;  = 0.05, test  1 <  2, that is  1 –  2 < 0

Example A – hypothesis test (5) Draw a conclusion. Since z falls in the rejection region, reject H 0. Based on this sample, there is evidence to say that text books cost less at Whatsammatta U. – z 0.05 = – group 1: Whatsammatta U., n = 42, mean = $63.42, s = $8.13 ; group 2: U. Mama, n = 35, mean = $67.19, s = $7.29 ;  = 0.05, test  1 <  2, that is  1 –  2 < 0

Example A – hypothesis test (5) Draw a conclusion using the P- value. P- value = P(z < – 2.14) = group 1: Whatsammatta U., n = 42, mean = $63.42, s = $8.13 ; group 2: U. Mama, n = 35, mean = $67.19, s = $7.29 ;  = 0.05, test  1 <  2, that is  1 –  2 < 0

Example A – hypothesis test group 1: Whatsammatta U., n = 42, mean = $63.42, s = $8.13 ; group 2: U. Mama, n = 35, mean = $67.19, s = $7.29 ;  = 0.05, test  1 <  2, that is  1 –  2 < 0 (5) Draw a conclusion using the P- value. P- value = P(z < – 2.14) = For  = 0.05 we reject H 0 ; This is a fairly strong conclusion. We’d have needed  = 0.01 to conclude “fail to reject H 0 ”.

Example B – hypothesis test In doing a survey of hours spent watching educational television per month, Regina found that in Pleasantville, in a sample of 40 households, the mean was 60 hours with a sample variance of 64. In Nicetown the mean was 63 hours in a sample of 50 households with a sample variance of 81. Is there a statistically significant difference between the two towns’ educational television viewing habits? (  = 0.05 )

Example B – hypothesis test In doing a survey of hours spent watching educational television per month, Regina found that in Pleasantville, in a sample of 40 households, the mean was 60 hours with a sample variance of 64. In Nicetown the mean was 63 hours in a sample of 50 households with a sample variance of 81. Is there a statistically significant difference between the two towns’ educational television viewing habits? (  = 0.05 ) IMPORTANT! Note that we are given the variance s 2, which is what we’ll need the for the various formulae. A second “squaring” would be wrong!

Example B – hypothesis test (1) Set null hypothesis (“status quo”) and alternate hypothesis (“challenge”). group 1: Pleasantville, n = 40, mean = 60, s 2 = 64 ; group 2: Nicetown, n = 50, mean = 63, s 2 = 81 ;  = 0.05, test  1 ≠  2, that is  1 –  2 ≠ 0

Example B – hypothesis test (1) Set null hypothesis (“status quo”) and alternate hypothesis (“challenge”). (2) Since n 1 = 40 and n 2 = 50 are both greater than 30, we can treat this as a large-sample case and use the normal distribution table to approximate probabilities. group 1: Pleasantville, n = 40, mean = 60, s 2 = 64 ; group 2: Nicetown, n = 50, mean = 63, s 2 = 81 ;  = 0.05, test  1 ≠  2, that is  1 –  2 ≠ 0

Example B – hypothesis test (3) For  = 0.05,  /2= 0.025, the boundary value for the rejection region is z = group 1: Pleasantville, n = 40, mean = 60, s 2 = 64 ; group 2: Nicetown, n = 50, mean = 63, s 2 = 81 ;  = 0.05, test  1 ≠  2, that is  1 –  2 ≠ 0

Example B – hypothesis test (4) Compute the test statistic. z = group 1: Pleasantville, n = 40, mean = 60, s 2 = 64 ; group 2: Nicetown, n = 50, mean = 63, s 2 = 81 ;  = 0.05, test  1 ≠  2, that is  1 –  2 ≠ 0

Example B – hypothesis test (4) Compute the test statistic. z = group 1: Pleasantville, n = 40, mean = 60, s 2 = 64 ; group 2: Nicetown, n = 50, mean = 63, s 2 = 81 ;  = 0.05, test  1 ≠  2, that is  1 –  2 ≠ 0

Example B – hypothesis test (4) Compute the test statistic. z = group 1: Pleasantville, n = 40, mean = 60, s 2 = 64 ; group 2: Nicetown, n = 50, mean = 63, s 2 = 81 ;  = 0.05, test  1 ≠  2, that is  1 –  2 ≠ 0

Example B – hypothesis test (5) Draw a conclusion. Since z does not fall in the rejection region, fail to reject H 0. Based on this sample, there is not enough evidence to say that the two towns view different amounts of educational television. z = group 1: Pleasantville, n = 40, mean = 60, s 2 = 64 ; group 2: Nicetown, n = 50, mean = 63, s 2 = 81 ;  = 0.05, test  1 ≠  2, that is  1 –  2 ≠ 0

Example B – hypothesis test (5) Draw a conclusion using the P- value. group 1: Pleasantville, n = 40, mean = 60, s 2 = 64 ; group 2: Nicetown, n = 50, mean = 63, s 2 = 81 ;  = 0.05, test  1 ≠  2, that is  1 –  2 ≠ 0

Example B – hypothesis test (5) Draw a conclusion using the P- value. P- value = P(z 1.67) group 1: Pleasantville, n = 40, mean = 60, s 2 = 64 ; group 2: Nicetown, n = 50, mean = 63, s 2 = 81 ;  = 0.05, test  1 ≠  2, that is  1 –  2 ≠ 0

Example B – hypothesis test (5) Draw a conclusion using the P- value. P- value = P(z 1.67) = 2 (0.0475) group 1: Pleasantville, n = 40, mean = 60, s 2 = 64 ; group 2: Nicetown, n = 50, mean = 63, s 2 = 81 ;  = 0.05, test  1 ≠  2, that is  1 –  2 ≠ 0

Example B – hypothesis test (5) Draw a conclusion using the P- value. P- value = P(z 1.67) = 2 (0.0475) = group 1: Pleasantville, n = 40, mean = 60, s 2 = 64 ; group 2: Nicetown, n = 50, mean = 63, s 2 = 81 ;  = 0.05, test  1 ≠  2, that is  1 –  2 ≠ 0

Example B – hypothesis test (5) Draw a conclusion using the P- value. P- value = P(z 1.67) = 2 (0.0475) = For  = 0.05 we fail to reject H 0 ; Note that for  = 0.10 we would have concluded “reject H 0 ”. group 1: Pleasantville, n = 40, mean = 60, s 2 = 64 ; group 2: Nicetown, n = 50, mean = 63, s 2 = 81 ;  = 0.05, test  1 ≠  2, that is  1 –  2 ≠ 0

10.5 Example A In doing a survey of textbook costs, Rodney found that at Whatsammatta U., in a sample of 19, the mean cost was $63.42 with s = $8.13. At Matriarch College (affectionately known as U. Mama) the mean textbook cost was $67.19 in a sample of 23 with s = $7.29. Using the conservative approach determine the 95% confidence interval for the difference of means. Calculate the confidence interval in the same way as before, but now use t instead of z. The degrees of freedom will be the smaller of n 1 -1 and n 2 -1.

10.5 Example A – confidence interval group 1: Whatsammatta U., n = 19, mean = $63.42, s = $8.13 ; group 2: U. Mama, n = 23, mean = $67.19, s = $7.29 ; 95% confidence interval. d.f=19-1=18