Two-sample Tests of Hypothesis

Slides:



Advertisements
Similar presentations
BUS 220: ELEMENTARY STATISTICS
Advertisements

Two-sample Tests of Hypothesis Chapter 11 McGraw-Hill/Irwin Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved.
Two-sample Tests of Hypothesis Chapter 11 McGraw-Hill/Irwin Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved.
Two-sample Tests of Hypothesis
One Sample Tests of Hypothesis
CHAPTER 23: Two Categorical Variables The Chi-Square Test ESSENTIAL STATISTICS Second Edition David S. Moore, William I. Notz, and Michael A. Fligner Lecture.
Chapter 14 Comparing two groups Dr Richard Bußmann.
Two-Sample Tests of Hypothesis. Comparing two populations – Some Examples 1. Is there a difference in the mean value of residential real estate sold by.
BCOR 1020 Business Statistics Lecture 22 – April 10, 2008.
BCOR 1020 Business Statistics
HYPOTHESIS TESTS ABOUT THE MEAN AND PROPORTION
BCOR 1020 Business Statistics Lecture 20 – April 3, 2008.
Irwin/McGraw-Hill © The McGraw-Hill Companies, Inc., 2000 LIND MASON MARCHAL 1-1 Chapter Eight Tests of Hypothesis Large Samples GOALS When you have completed.
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.
Week 9 Chapter 9 - Hypothesis Testing II: The Two-Sample Case.
Hypothesis Testing II The Two-Sample Case.
Hypothesis testing – mean differences between populations
Copyright © 2015 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
Inference for Distributions
© 2012 McGraw-Hill Ryerson Limited1 © 2009 McGraw-Hill Ryerson Limited.
Chapter Eleven McGraw-Hill/Irwin © 2006 The McGraw-Hill Companies, Inc., All Rights Reserved. Two-Sample Tests of Hypothesis Pages &
Two-Sample Tests of Hypothesis Chapter 11 Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin.
Statistics Are Fun! Two-Sample Tests of Hypothesis
Ka-fu Wong © 2003 Chap Dr. Ka-fu Wong ECON1003 Analysis of Economic Data.
-Test for one and two means -Test for one and two proportions
One-Sample Tests of Hypothesis Chapter 10 McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved.
STEP BY STEP Critical Value Approach to Hypothesis Testing 1- State H o and H 1 2- Choose level of significance, α Choose the sample size, n 3- Determine.
11- 1 Chapter Eleven McGraw-Hill/Irwin © 2005 The McGraw-Hill Companies, Inc., All Rights Reserved.
©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin One Sample Tests of Hypothesis Chapter 10.
One-Sample Tests of Hypothesis. Hypothesis and Hypothesis Testing HYPOTHESIS A statement about the value of a population parameter developed for the purpose.
Analysis of Variance Chapter 12 McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved.
Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Two-Sample Tests of Hypothesis Chapter 11.
Lecture 9 Chap 9-1 Chapter 2b Fundamentals of Hypothesis Testing: One-Sample Tests.
©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Two-sample Tests of Hypothesis Chapter 11.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 14 Comparing Groups: Analysis of Variance Methods Section 14.1 One-Way ANOVA: Comparing.
© The McGraw-Hill Companies, Inc., Chapter 13 Analysis of Variance (ANOVA)
Exercise - 1 A package-filling process at a Cement company fills bags of cement to an average weight of µ but µ changes from time to time. The standard.
One-Sample Tests of Hypothesis Chapter 10 McGraw-Hill/Irwin Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved.
Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved.
Two-Sample Tests of Hypothesis Chapter 11 McGraw-Hill/Irwin Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved.
Two-Sample Tests of Hypothesis Chapter 11 McGraw-Hill/Irwin Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved.
© The McGraw-Hill Companies, Inc., Chapter 12 Analysis of Variance (ANOVA)
 What is Hypothesis Testing?  Testing for the population mean  One-tailed testing  Two-tailed testing  Tests Concerning Proportions  Types of Errors.
Analysis of Variance. The F Distribution Uses of the F Distribution – test whether two samples are from populations having equal variances – to compare.
SECTION 1 TEST OF A SINGLE PROPORTION
Copyright © 2015 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
Two-sample Tests of Hypothesis Chapter 11 McGraw-Hill/Irwin Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved.
©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Two-sample Tests of Hypothesis Chapter 11.
Irwin/McGraw-Hill © Andrew F. Siegel, 1997 and l Chapter 7 l Hypothesis Tests 7.1 Developing Null and Alternative Hypotheses 7.2 Type I & Type.
Comparing Two Proportions Chapter 21. In a two-sample problem, we want to compare two populations or the responses to two treatments based on two independent.
Chapter 10 One-Sample Test of Hypothesis. Example The Jamestown steel company manufactures and assembles desks and other office equipment at several plants.
Hypothesis Tests l Chapter 7 l 7.1 Developing Null and Alternative
Two-Sample Tests of Hypothesis
Nonparametric Methods: Nominal Level Hypothesis Tests
Two-Sample Tests of Hypothesis
One-Sample Tests of Hypothesis
Chapter 10 Created by Bethany Stubbe and Stephan Kogitz.
Two-sample Tests of Hypothesis
Two-Sample Tests of Hypothesis
One-Sample Tests of Hypothesis
Introduction to Statistics for Business Application
Two-Sample Tests of Hypothesis
Two-sample Tests of Hypothesis
Hypothesis tests for the difference between two proportions
Virtual University of Pakistan
HYPOTHESIS TESTS ABOUT THE MEAN AND PROPORTION
Two-sample Tests of Hypothesis
Chapter 9 Hypothesis Testing: Single Population
Presentation transcript:

Two-sample Tests of Hypothesis Chapter 11

GOALS Conduct a test of a hypothesis about the difference between two independent population means. Conduct a test of a hypothesis about the difference between two population proportions. Conduct a test of a hypothesis about the mean difference between paired or dependent observations. Understand the difference between dependent and independent samples.

Comparing two populations – Some Examples Is there a difference in the mean value of residential real estate sold by male agents and female agents in south Florida? Is there a difference in the mean number of defects produced on the day and the afternoon shifts at Kimble Products? Is there a difference in the mean number of days absent between young workers (under 21 years of age) and older workers (more than 60 years of age) in the fast-food industry?

Comparing two populations – Some Examples (continued) 4. Is there is a difference in the proportion of Ohio State University graduates and University of Cincinnati graduates who pass the state Certified Public Accountant Examination on their first attempt? 5. Is there an increase in the production rate if music is piped into the production area?

Z-test in SPSS There is no (direct) Z-test in SPSS.  Just use T-test, instead.  We don’t need to use Z-test because the T approaches Z as n approaches infinity. (That is, the T=Z for large n).  Is your sample size enough?  The rule of thumb for sample size is 10 to 20 cases per variable. 

Comparing Two Population Means of Independent Samples The samples are from independent populations. The standard deviations for both populations are known The formula for computing the value of z is: Note: The z-test above may also be used if the sample sizes are both at least 30 even when the population standard deviations are not known

Comparing Two Population Means of Independent Samples – Example The U-Scan facility was recently installed at the Byrne Road Food-Town location. The store manager would like to know if the mean checkout time using the standard checkout method is longer than using the U-Scan. She gathered the following sample information. The time is measured from when the customer enters the line until their bags are in the cart. Hence the time includes both waiting in line and checking out.

EXAMPLE continued Step 1: State the null and alternate hypotheses. H0: µS ≤ µU H1: µS > µU Step 2: State the level of significance. Test using .01 significance level. Step 3: Find the appropriate test statistic. Because both population standard deviations are given (or both samples are more than 30), we use z-distribution as the test statistic.

Example continued Step 4: State the decision rule. Reject H0 if Z > Z Z > 2.33

Example continued Step 5: Compute the value of z and make a decision The computed value of 3.13 is larger than the critical value of 2.33. Our decision is to reject the null hypothesis. The difference of .20 minutes between the mean checkout time using the standard method is too large to have occurred by chance. We conclude the U-Scan method is faster.

Two-Sample Tests about Proportions Here are several examples. The vice president of human resources wishes to know whether there is a difference in the proportion of hourly employees who miss more than 5 days of work per year at the Atlanta and the Houston plants. General Motors is considering a new design for the Pontiac Grand Am. The design is shown to a group of potential buyers under 30 years of age and another group over 60 years of age. Pontiac wishes to know whether there is a difference in the proportion of the two groups who like the new design. A consultant to the airline industry is investigating the fear of flying among adults. Specifically, the company wishes to know whether there is a difference in the proportion of men versus women who are fearful of flying.

Two Sample Tests of Proportions We investigate whether two samples came from populations with an equal proportion of successes. The two samples are pooled using the following formula.

Two Sample Tests of Proportions continued The value of the test statistic is computed from the following formula.

Two Sample Tests of Proportions - Example Manelli Perfume Company recently developed a new fragrance that it plans to market under the name Heavenly. A number of market studies indicate that Heavenly has very good market potential. The Sales Department at Manelli is particularly interested in whether there is a difference in the proportions of younger and older women who would purchase Heavenly if it were marketed. Two independent populations, a population consisting of the younger women and a population consisting of the older women, were surveyed. Each sampled woman was asked to smell Heavenly and indicate whether she likes the fragrance well enough to purchase a bottle. Of 100 young women, 19 liked the Heavenly fragrance well enough to purchase Similarly, a sample of 200 older women, 62 liked the fragrance well enough to make a purchase.

Two Sample Tests of Proportions - Example Step 1: State the null and alternate hypotheses. H0: 1 = 2 H1: 1 ≠ 2 note: keyword “there is a difference in the proportion” We designate 1 as the proportion of young women who would purchase Heavenly and 2 as the proportion of older women who would purchase Step 2: State the level of significance. The .05 significance level is chosen. Step 3: Find the appropriate test statistic. We will use the z-distribution

Two Sample Tests of Proportions - Example Step 4: State the decision rule. Reject H0 if Z > Z/2 or Z < - Z/2 Z > 1.96 or Z < -1.96

Two Sample Tests of Proportions - Example Step 5: Compute the value of z and make a decision The computed value of -2.21 is in the area of rejection. Therefore, the null hypothesis is rejected at the .05 significance level. To put it another way, we reject the null hypothesis that the proportion of young women who would purchase Heavenly is equal to the proportion of older women who would purchase Heavenly.

Comparing Population Means with Unknown Population Standard Deviations (the Pooled t-test) The t distribution is used as the test statistic if one or more of the samples have less than 30 observations. The required assumptions are: 1. Both populations must follow the normal distribution. 2. The populations must have equal standard deviations. 3. The samples are from independent populations.

Small sample test of means continued Finding the value of the test statistic requires two steps. Pool the sample standard deviations. Use the pooled standard deviation in the formula.

Comparing Population Means with Unknown Population Standard Deviations (the Pooled t-test) Owens Lawn Care, Inc., manufactures and assembles lawnmowers that are shipped to dealers throughout the United States and Canada. Two different procedures have been proposed for mounting the engine on the frame of the lawnmower. The question is: Is there a difference in the mean time to mount the engines on the frames of the lawnmowers? The first procedure was developed by longtime Owens employee Herb Welles (designated as procedure 1), and the other procedure was developed by Owens Vice President of Engineering William Atkins (designated as procedure 2). To evaluate the two methods, it was decided to conduct a time and motion study. A sample of five employees was timed using the Welles method and six using the Atkins method. The results, in minutes, are shown on the right. Is there a difference in the mean mounting times? Use the .10 significance level.

Comparing Population Means with Unknown Population Standard Deviations (the Pooled t-test) - Example Step 1: State the null and alternate hypotheses. H0: µ1 = µ2 H1: µ1 ≠ µ2 Step 2: State the level of significance. The .10 significance level is stated in the problem. Step 3: Find the appropriate test statistic. Because the population standard deviations are not known but are assumed to be equal, we use the pooled t-test.

Comparing Population Means with Unknown Population Standard Deviations (the Pooled t-test) - Example Step 4: State the decision rule. Reject H0 if t > t/2,n1+n2-2 or t < - t/2,n1+n2-2 t > t.05,9 or t < - t.05,9 t > 1.833 or t < - 1.833

Step 5: Compute the value of t and make a decision Comparing Population Means with Unknown Population Standard Deviations (the Pooled t-test) - Example Step 5: Compute the value of t and make a decision (a) Calculate the sample standard deviations

Step 5: Compute the value of t and make a decision Comparing Population Means with Unknown Population Standard Deviations (the Pooled t-test) - Example Step 5: Compute the value of t and make a decision The decision is not to reject the null hypothesis, because -0.662 falls in the region between -1.833 and 1.833. We conclude that there is no difference in the mean times to mount the engine on the frame using the two methods. -0.662

Practice Use employee data.sav Analyze Compare means independent sample t- test Do male and female respondents have different average current salaries?

Two-Sample Tests of Hypothesis: Dependent Samples Dependent samples are samples that are paired or related in some fashion. For example: If you wished to buy a car you would look at the same car at two (or more) different dealerships and compare the prices. If you wished to measure the effectiveness of a new diet you would weigh the dieters at the start and at the finish of the program.

Hypothesis Testing Involving Paired Observations Use the following test when the samples are dependent: Where is the mean of the differences sd is the standard deviation of the differences n is the number of pairs (differences)

Hypothesis Testing Involving Paired Observations - Example Nickel Savings and Loan wishes to compare the two companies it uses to appraise the value of residential homes. Nickel Savings selected a sample of 10 residential properties and scheduled both firms for an appraisal. The results, reported in $000, are shown on the table (right). At the .05 significance level, can we conclude there is a difference in the mean appraised values of the homes?

Hypothesis Testing Involving Paired Observations - Example Step 1: State the null and alternate hypotheses. H0: d = 0 H1: d ≠ 0 Step 2: State the level of significance. The .05 significance level is stated in the problem. Step 3: Find the appropriate test statistic. We will use the t-test

Hypothesis Testing Involving Paired Observations - Example Step 4: State the decision rule. Reject H0 if t > t/2, n-1 or t < - t/2,n-1 t > t.025,9 or t < - t.025, 9 t > 2.262 or t < -2.262

Hypothesis Testing Involving Paired Observations - Example Step 5: Compute the value of t and make a decision The computed value of t is greater than the higher critical value, so our decision is to reject the null hypothesis. We conclude that there is a difference in the mean appraised values of the homes.

Practice Use employee data.sav Analyze Compare means Paired sample t- test Beginning salary Current salary

Group assignment (Analyze and interpret) Use one sample mean From employee data.sav Do all employees have previous working experience of the average of 80 months since hired? From 1991 US general social survey.sav Independent t-test Do male and female respondents have average age difference? Do male and female respondents have equal number of Brothers and Sisters on average in their family? Do male and female respondents have equal umber of Children on average in their family?

End of Chapter 11