Presentation is loading. Please wait.

Presentation is loading. Please wait.

© The McGraw-Hill Companies, Inc., 2000 9-1 Chapter 9 Testing the Difference between Two Means.

Similar presentations


Presentation on theme: "© The McGraw-Hill Companies, Inc., 2000 9-1 Chapter 9 Testing the Difference between Two Means."— Presentation transcript:

1 © The McGraw-Hill Companies, Inc., 2000 9-1 Chapter 9 Testing the Difference between Two Means

2 © The McGraw-Hill Companies, Inc., 2000 9-5 Objectives Test the difference between two sample means using the z-test. Test the difference between two means for independent samples using the t-test. Test the difference between two means for dependent samples.

3 © The McGraw-Hill Companies, Inc., 2000 9-7 Testing the Difference between Two Means: Testing the Difference between Two Means:  1 and  2 known Assumptions for this test: Samples are randomly sampled and independent. The populations must be normally distributed if n <30. Population standard deviations are known.

4 © The McGraw-Hill Companies, Inc., 2000 9-8 Testing the Difference between Two Means: Testing the Difference between Two Means:  1 and  2 known  1 2, 1

5 © The McGraw-Hill Companies, Inc., 2000 9-9 Formula for the z-test for Comparing Two Means from Independent Populations Usually  1 and  2 are assumed to be equal so the numerator is the difference between the sample means.

6 © The McGraw-Hill Companies, Inc., 2000 9-10 z-test for Comparing Two Means from Independent Populations – z-test for Comparing Two Means from Independent Populations – Example A survey found that the average hotel room rate in New Orleans is $88.42 and the average room rate in Phoenix is $80.61. Assume that the data were obtained from two samples of 50 hotels each and that the standard deviations were $5.62 and $4.83 respectively. At  = 0.05, can it be concluded that there is no significant difference in the rates?

7 © The McGraw-Hill Companies, Inc., 2000 9-11 Step 1: Step 1: State the hypotheses and identify the claim. H 0 :     (claim) H 1 :     Step 2: Step 2: Find the critical values. Since  = 0.05 and the test is a two-tailed test, the critical values are z =  1.96. Step 3: Step 3: Compute the test value. z-test for Comparing Two Means from Independent Populations – z-test for Comparing Two Means from Independent Populations – Example

8 © The McGraw-Hill Companies, Inc., 2000 9-12 z-test for Comparing Two Means from Independent Populations – z-test for Comparing Two Means from Independent Populations – Example

9 © The McGraw-Hill Companies, Inc., 2000 9-13 Step 4: Step 4: Make the decision. Reject the null hypothesis at  = 0.05, since 7.45 > 1.96. Step 5: Step 5: Summarize the results. There is enough evidence to reject the claim that the means are equal. Hence, there is a significant difference in the rates. z-test for Comparing Two Means from Independent Populations – z-test for Comparing Two Means from Independent Populations – Example

10 © The McGraw-Hill Companies, Inc., 2000 9-14 P-Values The P-values for the tests can be determined by looking up the area(s) in the tails of the z-value(s). The P-value for the previous example will be: P-value = 2  P(z > 7.45)  2(0) = 0. You will reject the null hypothesis since the P-value = 0 <  = 0.05.

11 © The McGraw-Hill Companies, Inc., 2000 9-32 When the the population variances are unknown, a t-test is used to test the difference between means. The two samples are assumed to be independent and the sampled populations must be normally or approximately normally distributed if n <30. Testing the Difference between Two Means: Testing the Difference between Two Means:  1 and  2 unknown

12 © The McGraw-Hill Companies, Inc., 2000 9-33 There are two options for the use of the independent-groups t-test. When the variances of the populations are equal and when they are not equal. An F test can be used to establish whether the variances are equal or not. Testing the Difference between Two Means: Testing the Difference between Two Means:  1 and  2 unknown

13 © The McGraw-Hill Companies, Inc., 2000 9-34    t XX s n s n dfsmallerofnorn     1212 1 2 1 2 2 2 12 11 .. Testing the Difference between Two Means: Testing the Difference between Two Means: Independent Samples - Test Value Formula Unequal Variances

14 © The McGraw-Hill Companies, Inc., 2000 9-35 Testing the Difference between Two Means: Testing the Difference between Two Means: Independent Samples - Test Value Formula Equal Variances    t XX nsns nnnn d fnn       1212 11 2 22 2 1212 12 11 2 11 2  ()()...

15 © The McGraw-Hill Companies, Inc., 2000 9-36 The average size of a farm in Greene County, PA, is 199 acres, and the average size of a farm in Indiana County, PA, is 191 acres. Assume the data were obtained from two samples with standard deviations of 12 acres and 38 acres, respectively, and the sample sizes are 10 farms from Greene County and 8 farms in Indiana County. Can it be concluded at  = 0.05 that the average size of the farms in the two counties is different? Difference between Two Means: Independent Samples - Difference between Two Means: Independent Samples - Example

16 © The McGraw-Hill Companies, Inc., 2000 9-37 Assume the populations are normally distributed. First use an F test to determine whether or not the variances are equal. The critical value for the F test for  = 0.05 is 4.20. The test value = 38 2 /12 2 = 10.03. Difference between Two Means: Independent Samples - Difference between Two Means: Independent Samples - Example

17 © The McGraw-Hill Companies, Inc., 2000 9-38 Since 10.03 > 4.20, the decision is to reject the null hypothesis and conclude the variances are not equal. Step 1: Step 1: State the hypotheses and identify the claim for the means. H 0 :     H 1 :    (claim) Difference between Two Means: Independent Samples - Difference between Two Means: Independent Samples - Example

18 © The McGraw-Hill Companies, Inc., 2000 9-39 Step 2: Step 2: Find the critical values. Since  = 0.05 and the test is a two-tailed test, the critical values are t = –2.365 and +2.365 with d.f. = 8 – 1 = 7. Step 3: Step 3: Compute the test value. Substituting in the formula for the test value when the variances are not equal gives t = 0.57. Difference between Two Means: Independent Samples - Difference between Two Means: Independent Samples - Example

19 © The McGraw-Hill Companies, Inc., 2000 9-40 Step 4: Step 4: Make the decision. Do not reject the null hypothesis, since 0.57 < 2.365. Step 5: Step 5: Summarize the results. There is not enough evidence to support the claim that the average size of the farms is different. Note: Note: If the the variances were equal - use the other test value formula. Difference between Two Means: Independent Samples - Difference between Two Means: Independent Samples - Example

20 © The McGraw-Hill Companies, Inc., 2000 9-42 When the values are dependent, employ a t-test on paired differences. Denote the differences with the symbol D, the mean of the population of differences with  D, and the sample standard deviation of the differences with s D. Testing the Difference between Two Means: Testing the Difference between Two Means: Dependent Samples

21 © The McGraw-Hill Companies, Inc., 2000 9-43 Samples may be dependent because the same subjects are used twice – called a repeated-measures test – or the subjects are paired by some important factor, e.g., identical twins, same height, same percent body fat, same grade. Using twins or same subjects is best. Testing the Difference between Two Means: Testing the Difference between Two Means: Dependent Samples

22 © The McGraw-Hill Companies, Inc., 2000 9-44 Testing the Difference between Two Means: Testing the Difference between Two Means: Dependent Samples - Formula for the test value.

23 © The McGraw-Hill Companies, Inc., 2000 9-45 Note: Note: This test is similar to a one sample t-test, except it is done on the differences when the samples are dependent. Testing the Difference between Two Means: Testing the Difference between Two Means: Dependent Samples - Formula for the test value.


Download ppt "© The McGraw-Hill Companies, Inc., 2000 9-1 Chapter 9 Testing the Difference between Two Means."

Similar presentations


Ads by Google