Ka-fu Wong © 2003 Chap 11- 1 Dr. Ka-fu Wong ECON1003 Analysis of Economic Data.

Slides:



Advertisements
Similar presentations
Two-sample Tests of Hypothesis
Advertisements

10- 1 Chapter Ten McGraw-Hill/Irwin © 2005 The McGraw-Hill Companies, Inc., All Rights Reserved.
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.
Irwin/McGraw-Hill © The McGraw-Hill Companies, Inc., 2000 LIND MASON MARCHAL 1-1 Chapter Nine Tests of Hypothesis Small Samples GOALS When you have completed.
Two Sample Hypothesis Testing for Proportions
1/71 Statistics Inferences About Population Variances.
Tests of Hypotheses: Small Samples Chapter Rejection region.
Tests of Hypotheses: Large Samples Chapter Rejection region Acceptance
Statistics for Business and Economics Chapter 7 Inferences Based on Two Samples: Confidence Intervals & Tests of Hypotheses.
Ka-fu Wong © 2007 ECON1003: Analysis of Economic Data Lesson8-1 Lesson 8: One-Sample Tests of Hypothesis.
BCOR 1020 Business Statistics Lecture 22 – April 10, 2008.
Aaker, Kumar, Day Ninth Edition Instructor’s Presentation Slides
Ka-fu Wong © 2004 ECON1003: Analysis of Economic Data Lesson9-1 Lesson 9: Two Sample Tests of Hypothesis.
BCOR 1020 Business Statistics
Ka-fu Wong © 2003 Chap 8- 1 Dr. Ka-fu Wong ECON1003 Analysis of Economic Data.
BCOR 1020 Business Statistics Lecture 21 – April 8, 2008.
Ka-fu Wong © 2007 ECON1003: Analysis of Economic Data Lesson9-1 Lesson 9: Confidence Intervals and Tests of Hypothesis Two or more samples.
T-Tests Lecture: Nov. 6, 2002.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 7 th Edition Chapter 9 Hypothesis Testing: Single.
BCOR 1020 Business Statistics Lecture 20 – April 3, 2008.
Chapter 9 Hypothesis Testing II. Chapter Outline  Introduction  Hypothesis Testing with Sample Means (Large Samples)  Hypothesis Testing with Sample.
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 9 Hypothesis Testing II. Chapter Outline  Introduction  Hypothesis Testing with Sample Means (Large Samples)  Hypothesis Testing with Sample.
AM Recitation 2/10/11.
Experimental Statistics - week 2
Two Sample Tests Ho Ho Ha Ha TEST FOR EQUAL VARIANCES
Hypothesis Testing with Two Samples
Chapter 13 – 1 Chapter 12: Testing Hypotheses Overview Research and null hypotheses One and two-tailed tests Errors Testing the difference between two.
Copyright © 2015 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
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.
Chapter 9.3 (323) A Test of the Mean of a Normal Distribution: Population Variance Unknown Given a random sample of n observations from a normal population.
Ch7 Inference concerning means II Dr. Deshi Ye
Chapter 9 Hypothesis Testing and Estimation for Two Population Parameters.
Chapter 9 Hypothesis Testing II: two samples Test of significance for sample means (large samples) The difference between “statistical significance” and.
Chapter 9: Testing Hypotheses
Statistics Are Fun! Two-Sample Tests of Hypothesis
COURSE: JUST 3900 TIPS FOR APLIA Developed By: Ethan Cooper (Lead Tutor) John Lohman Michael Mattocks Aubrey Urwick Chapter : 10 Independent Samples t.
11- 1 Chapter Eleven McGraw-Hill/Irwin © 2005 The McGraw-Hill Companies, Inc., All Rights Reserved.
1 Chapter 9 Hypothesis Testing. 2 Chapter Outline  Developing Null and Alternative Hypothesis  Type I and Type II Errors  Population Mean: Known 
Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Two-Sample Tests of Hypothesis Chapter 11.
Marketing Research Aaker, Kumar, Day Ninth Edition Instructor’s Presentation Slides 1.
Chapter 10 Statistical Inferences Based on Two Samples Statistics for Business (Env) 1.
Chapter 9: Testing Hypotheses Overview Research and null hypotheses One and two-tailed tests Type I and II Errors Testing the difference between two means.
CD-ROM Chap 16-1 A Course In Business Statistics, 4th © 2006 Prentice-Hall, Inc. A Course In Business Statistics 4 th Edition CD-ROM Chapter 16 Introduction.
© Copyright McGraw-Hill 2004
Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved.
Econ 3790: Business and Economic Statistics Instructor: Yogesh Uppal
Chapter 10 Section 5 Chi-squared Test for a Variance or Standard Deviation.
Week 5 Dr. Jenne Meyer.  Article review 5-Step Hypothesis Testing Procedure Step 1: Set up the null and alternative hypotheses. Step 2: Pick the level.
8 - 1 © 1998 Prentice-Hall, Inc. Statistics for Managers Using Microsoft Excel, 1/e Statistics for Managers Using Microsoft Excel Two-Sample & c-Sample.
CHAPTER 7: TESTING HYPOTHESES Leon-Guerrero and Frankfort-Nachmias, Essentials of Statistics for a Diverse Society.
EXAMPLE 1 with a standard deviation of $7,000 for a sample of 35 households. At the.01 significance level can we conclude the mean income in Bradford is.
 What is Hypothesis Testing?  Testing for the population mean  One-tailed testing  Two-tailed testing  Tests Concerning Proportions  Types of Errors.
©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Two-sample Tests of Hypothesis Chapter 11.
Two-Sample Tests of Hypothesis
St. Edward’s University
Chapter 10 Created by Bethany Stubbe and Stephan Kogitz.
Two-Sample Tests of Hypothesis
Hypothesis Testing: Hypotheses
Statistics for Business and Economics
STATISTICS INFORMED DECISIONS USING DATA
Reasoning in Psychology Using Statistics
Two-Sample Tests of Hypothesis
Inferential Statistics and Probability a Holistic Approach
What are their purposes? What kinds?
Reasoning in Psychology Using Statistics
Reasoning in Psychology Using Statistics
Chapter 10 – Part II Analysis of Variance
Presentation transcript:

Ka-fu Wong © 2003 Chap Dr. Ka-fu Wong ECON1003 Analysis of Economic Data

Ka-fu Wong © 2003 Chap Control Group Experimental Group Sample 1 Sample 2 To test the effect of an herbal treatment on improvement of memory you randomly select two samples, one to receive the treatment and one to receive a placebo. Results of a memory test taken one month later are given. The resulting test statistic is = 4. Is this difference significant or is it due to chance (sampling error)? Treatment Placebo Overview

Ka-fu Wong © 2003 Chap l GOALS 1.Understand the difference between dependent and independent samples. 2.Conduct a test of hypothesis about the difference between two independent population means when both samples have 30 or more observations. 3.Conduct a test of hypothesis about the difference between two independent population means when at least one sample has less than 30 observations. 4.Conduct a test of hypothesis about the mean difference between paired or dependent observations. 5.Conduct a test of hypothesis regarding the difference in two population proportions. Chapter Eleven Two Sample Tests of Hypothesis

Ka-fu Wong © 2003 Chap Two Sample Tests TEST FOR EQUAL VARIANCES TEST FOR EQUAL MEANS HHoHHo HH1HH1 Population 1 Population 2 Population 1 Population 2 HHoHHo HH1HH1 Population 1 Population 2 Population 1Population 2

Ka-fu Wong © 2003 Chap The formula of general test statistic Suppose we are interested in testing the population parameter (  ) is equal to k. H 0 :  = k H 1 :   k First, we need to get a sample estimate (q) of the population parameter (  ). Second, we know in most cases, the test statistics will be in the following form: t=(q-k)/  q The form of  q depends on what q is. Sample size and the null at hand determine the distribution of the statistic. If  is population mean, and the sample size is larger than 30, t is approximately normal.

Ka-fu Wong © 2003 Chap Comparing two populations We wish to know whether the distribution of the differences in sample means has a mean of 0. If both samples contain at least 30 observations we use the z distribution as the test statistic.

Ka-fu Wong © 2003 Chap Hypothesis Tests for Two Population Means Format 1 Two-Tailed Test Upper One- Tailed Test Lower One- Tailed Test Format 2 Preferred

Ka-fu Wong © 2003 Chap Two Independent Populations: Examples 1.An economist wishes to determine whether there is a difference in mean family income for households in two socioeconomic groups. Do HKU students come from families with higher income than CUHK students? 2.An admissions officer of a small liberal arts college wants to compare the mean SAT scores of applicants educated in rural high schools & in urban high schools. Do students from rural high schools have lower A-level exam score than from urban high schools?

Ka-fu Wong © 2003 Chap Two Dependent Populations: Examples 1.An analyst for Educational Testing Service wants to compare the mean GMAT scores of students before & after taking a GMAT review course. Get HKU graduates to take A-Level English and Chinese exam again. Do they get a higher A-Level English and Chinese exam score than at the time they enter HKU? 2.Nike wants to see if there is a difference in durability of 2 sole materials. One type is placed on one shoe, the other type on the other shoe of the same pair.

Ka-fu Wong © 2003 Chap Thinking Challenge 1.Miles per gallon ratings of cars before & after mounting radial tires 2.The life expectancies of light bulbs made in two different factories 3.Difference in hardness between 2 metals: one contains an alloy, one doesn ’ t 4.Tread life of two different motorcycle tires: one on the front, the other on the back Are they independent or dependent? independent dependent

Ka-fu Wong © 2003 Chap Comparing two populations No assumptions about the shape of the populations are required. The samples are from independent populations. Values in one sample have no influence on the values in the other sample(s). Variance formula for independent random variables A and B: V(A-B) = V(A) + V(B) The formula for computing the value of z is:

Ka-fu Wong © 2003 Chap EXAMPLE 1 Two cities, Bradford and Kane are separated only by the Conewango River. There is competition between the two cities. The local paper recently reported that the mean household income in Bradford is $38,000 with a standard deviation of $6,000 for a sample of 40 households. The same article reported the mean income in Kane is $35,000 with a standard deviation of $7,000 for a sample of 35 households. At the.01 significance level can we conclude the mean income in Bradford is more?

Ka-fu Wong © 2003 Chap EXAMPLE 1 continued Step 1: State the null and alternate hypotheses. H 0 : µ B ≤ µ K ; H 1 : µ B > µ K Step 2: State the level of significance. The.01 significance level is stated in the problem. Step 3: Find the appropriate test statistic. Because both samples are more than 30, we can use z as the test statistic.

Ka-fu Wong © 2003 Chap Example 1 continued Step 4: State the decision rule. The null hypothesis is rejected if z is greater than Rejection Region  = 0.01 H 0 : µ B ≤ µ K ; H 1 : µ B > µ K Probability density of z statistic : N(0,1) Acceptance Region  = 0.01

Ka-fu Wong © 2003 Chap Example 1 continued Step 5: Compute the value of z and make a decision. H 0 : µ B ≤ µ K ; H 1 : µ B > µ K 1.98 Rejection Region  = 0.01 Acceptance Region  = 0.01

Ka-fu Wong © 2003 Chap Example 1 continued The decision is to not reject the null hypothesis. We cannot conclude that the mean household income in Bradford is larger.

Ka-fu Wong © 2003 Chap Example 1 continued The p-value is: P(z > 1.98) = =.0239 Rejection Region  = 0.01 H 0 : µ B ≤ µ K ; H 1 : µ B > µ K 1.98 P-value =

Ka-fu Wong © 2003 Chap Small Sample Tests of Means 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.

Ka-fu Wong © 2003 Chap Small sample test of means continued Finding the value of the test statistic requires two steps. Step 1: Pool the sample standard deviations. Step 2: Determine the value of t from the following formula.

Ka-fu Wong © 2003 Chap EXAMPLE 2 A recent EPA study compared the highway fuel economy of domestic and imported passenger cars. A sample of 15 domestic cars revealed a mean of 33.7 mpg with a standard deviation of 2.4 mpg. A sample of 12 imported cars revealed a mean of 35.7 mpg with a standard deviation of 3.9. At the.05 significance level can the EPA conclude that the mpg is higher on the imported cars?

Ka-fu Wong © 2003 Chap Example 2 continued Step 1: State the null and alternate hypotheses. H 0 : µ D ≥ µ I ; H 1 : µ D < µ I Step 2: State the level of significance. The.05 significance level is stated in the problem. Step 3: Find the appropriate test statistic. Both samples are less than 30, so we use the t distribution.

Ka-fu Wong © 2003 Chap EXAMPLE 2 continued Step 4: The decision rule is to reject H 0 if t< There are 25 degrees of freedom. Rejection Region  = 0.05 Probability density of t statistic : t (df=25)

Ka-fu Wong © 2003 Chap EXAMPLE 2 continued Step 5: We compute the pooled variance:

Ka-fu Wong © 2003 Chap Example 2 continued We compute the value of t as follows.

Ka-fu Wong © 2003 Chap Example 2 continued Rejection Region  = H 0 is not rejected. There is insufficient sample evidence to claim a higher mpg on the imported cars.

Ka-fu Wong © 2003 Chap Hypothesis Testing Involving Paired Observations Independent samples are samples that are not related in any way. 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.

Ka-fu Wong © 2003 Chap Hypothesis Testing Involving Paired Observations Use the following test when the samples are dependent: where is the mean of the differences is the standard deviation of the differences n is the number of pairs (differences)

Ka-fu Wong © 2003 Chap EXAMPLE 3 An independent testing agency is comparing the daily rental cost for renting a compact car from Hertz and Avis. A random sample of eight cities revealed the following information. At the.05 significance level can the testing agency conclude that there is a difference in the rental charged?

Ka-fu Wong © 2003 Chap EXAMPLE 3 continued CityHertz ($)Avis ($) Atlanta4240 Chicago5652 Cleveland4543 Denver48 Honolulu3732 Kansas City4548 Miami4139 Seattle4650

Ka-fu Wong © 2003 Chap EXAMPLE 3 continued Step 1: State the null and alternate hypotheses. H 0 : µ d = 0 ; H 1 : µ 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 can use t as the test statistic.

Ka-fu Wong © 2003 Chap EXAMPLE 3 continued Step 4: State the decision rule. H 0 is rejected if t We use the t distribution with 7 degrees of freedom. H 0 : µ B ≤ µ K ; H 1 : µ B > µ K Rejection Region II probability=0.025 Acceptance Region  = 0.01 Rejection Region I Probability =0.025 Probability density of t statistic : t (df=7)

Ka-fu Wong © 2003 Chap Example 3 continued CityHertz ($)Avis ($)dd2d2 Atlanta Chicago Cleveland Denver48 00 Honolulu Kansas City Miami Seattle

Ka-fu Wong © 2003 Chap Example 3 continued

Ka-fu Wong © 2003 Chap Example 3 continued Step 5: Because is less than the critical value, do not reject the null hypothesis. There is no difference in the mean amount charged by Hertz and Avis. H 0 : µ B ≤ µ K ; H 1 : µ B > µ K Rejection Region II probability=0.025 Acceptance Region  = 0.01 Rejection Region I Probability =

Ka-fu Wong © 2003 Chap 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. where X 1 and X 2 refer to the number of successes in the respective samples of n 1 and n 2.

Ka-fu Wong © 2003 Chap Two Sample Tests of Proportions continued The value of the test statistic is computed from the following formula.

Ka-fu Wong © 2003 Chap Example 4 Are unmarried workers more likely to be absent from work than married workers? A sample of 250 married workers showed 22 missed more than 5 days last year, while a sample of 300 unmarried workers showed 35 missed more than five days. Use a.05 significance level.

Ka-fu Wong © 2003 Chap Example 4 continued The null and the alternate hypothesis are: H 0 :  U ≤  M H 1 :  U >  M The null hypothesis is rejected if the computed value of z is greater than 1.65.

Ka-fu Wong © 2003 Chap Example 4 continued The pooled proportion is The value of the test statistic is

Ka-fu Wong © 2003 Chap Example 4 continued The null hypothesis is not rejected. We cannot conclude that a higher proportion of unmarried workers miss more days in a year than the married workers. The p-value is: P(z > 1.10) = =.1457

Ka-fu Wong © 2003 Chap END - Chapter Eleven Two Sample Tests of Hypothesis