Testing the Difference between Means and Variances

Slides:



Advertisements
Similar presentations
McGraw-Hill, Bluman, 7th ed., Chapter 9
Advertisements

Please enter data on page 477 in your calculator.
© The McGraw-Hill Companies, Inc., Chapter 10 Testing the Difference between Means and Variances.
8.3 T- TEST FOR A MEAN. T- TEST The t test is a statistical test for the mean of a population and is used when the population is normally or approximately.
Statistics Are Fun! Analysis of Variance
© McGraw-Hill, Bluman, 5th ed., Chapter 9
Testing the Difference Between Means (Small Independent Samples)
Chapter 10, sections 1 and 4 Two-sample Hypothesis Testing Test hypotheses for the difference between two independent population means ( standard deviations.
Hypothesis Testing :The Difference between two population mean :
Chi-Square and Analysis of Variance (ANOVA)
Aim: How do we test a comparison group? Exam Tomorrow.
Copyright © Cengage Learning. All rights reserved. 10 Inferences Involving Two Populations.
Section 9.5 Testing the Difference Between Two Variances Bluman, Chapter 91.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Statistical Inferences Based on Two Samples Chapter 9.
Section 10.3 Comparing Two Variances Larson/Farber 4th ed1.
Chapter 9 Testing the Difference Between Two Means, Two Proportions, and Two Variances Copyright © 2012 The McGraw-Hill Companies, Inc. Permission required.
Chapter 9 Section 2 Testing the Difference Between Two Means: t Test 1.
Hypothesis Testing for Variance and Standard Deviation
1 Chapter 13 Analysis of Variance. 2 Chapter Outline  An introduction to experimental design and analysis of variance  Analysis of Variance and the.
Comparing Two Variances
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Section Inference about Two Means: Independent Samples 11.3.
Other Chi-Square Tests
© Copyright McGraw-Hill 2000
Aim: How do we test hypotheses that compare means of two groups? HW: complete last two questions on homework slides.
Other Chi-Square Tests
9.2 Testing the Difference Between Two Means: Using the t Test
11.5 Testing the Difference Between Two Variances
© The McGraw-Hill Companies, Inc., Chapter 13 Analysis of Variance (ANOVA)
Aim: How do we use a t-test?
Copyright (C) 2002 Houghton Mifflin Company. All rights reserved. 1 Understandable Statistics S eventh Edition By Brase and Brase Prepared by: Lynn Smith.
11.2 Tests Using Contingency Tables When data can be tabulated in table form in terms of frequencies, several types of hypotheses can be tested by using.
© The McGraw-Hill Companies, Inc., Chapter 10 Testing the Difference between Means, Variances, and Proportions.
Sec 8.5 Test for a Variance or a Standard Deviation Bluman, Chapter 81.
Econ 3790: Business and Economic Statistics Instructor: Yogesh Uppal
McGraw-Hill, Bluman, 7th ed., Chapter 12
McGraw-Hill, Bluman, 7th ed., Chapter 12
CHAPTER 12 ANALYSIS OF VARIANCE Prem Mann, Introductory Statistics, 7/E Copyright © 2010 John Wiley & Sons. All right reserved.
Aim: How do we test the difference between two means? HW#14: complete slide.
© The McGraw-Hill Companies, Inc., Chapter 9 Testing the Difference between Two Means.
© The McGraw-Hill Companies, Inc., Chapter 12 Analysis of Variance (ANOVA)
While you wait: Enter the following in your calculator. Find the mean and sample variation of each group. Bluman, Chapter 121.
Chapter 10 Section 5 Chi-squared Test for a Variance or Standard Deviation.
Aim: How do we test the difference between two variances?
Hypothesis Testing – Two Means(Small, Independent Samples)
Chapter 9 Hypothesis Testing
Other Chi-Square Tests
10 Chapter Chi-Square Tests and the F-Distribution Chapter 10
Testing the Difference between Means, Variances, and Proportions
Testing Difference among Mean, Variances, and Proportions. Chapter 10
Unit 8 Section 7.5.
Testing the Difference Between Two Means
Chapter 7 Hypothesis Testing with One Sample.
Chapter 9 Testing the Difference Between Two Means, Two Proportions, and Two Variances.
Math 4030 – 10a Tests for Population Mean(s)
Chapter 7 Hypothesis Testing with One Sample.
10 Chapter Chi-Square Tests and the F-Distribution Chapter 10
Chapter 8 Hypothesis Testing with Two Samples.
CHAPTER 12 ANALYSIS OF VARIANCE
Hypothesis Testing: Two Sample Test for Means and Proportions
Econ 3790: Business and Economic Statistics
Chapter 9 Hypothesis Testing.
Elementary Statistics: Picturing The World
Testing the Difference Between Two Variances
Hypothesis Tests for Two Population Standard Deviations
Elementary Statistics: Picturing The World
Hypothesis Tests for a Standard Deviation
Hypothesis Testing: The Difference Between Two Population Means
Chapter 10 – Part II Analysis of Variance
Chapter 9 Testing the Difference Between Two Means, Two Proportions, and Two Variances Copyright © 2012 The McGraw-Hill Companies, Inc. Permission required.
Presentation transcript:

Testing the Difference between Means and Variances 10-1 Testing the Difference between Means and Variances 1 1

Outline 10-2 10-1 Introduction 10-2 Testing the Difference between Two Means: Large Samples 10-3 Testing the Difference between Two Variances 2 2 2

Outline 10-3 10-4 Testing the Difference between Two Means: Small Independent Samples 10-5 Testing the Difference between Two Means: Small Dependent Samples 2 3 3

Objectives 10-5 Test the difference between two large sample means using the z- test. Test the difference between two variances or standard deviations. Test the difference between two means for small independent samples. 5 5

Objectives 10-6 Test the difference between two means for small dependent samples. 6 6

10-2 Testing the Difference between Two Means: Large Samples 10-7 Assumptions for this test: Samples are independent. The sampling populations must be normally distributed. Standard deviations are known or samples must be at least 30. 7 7

10-2 Testing the Difference between Two Means: Large Samples 10-8   1 2 , 8 8

10-2 Formula for the z Test for Comparing Two Means from Independent Populations 10-9 9 9

10-2 z Test for Comparing Two Means from Independent Populations -Example 10-10 A survey found that the average hotel room rate in Toronto was $88.42 and the average room rate in Ottawa was $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 was no significant difference in the rates? 10 10

10-2 z Test for Comparing Two Means from Independent Populations - Example 10-11 Step 1: State the hypotheses and identify the claim. H0:  (claim) H1:  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: Compute the test value. 11 11

10-2 z Test for Comparing Two Means from Independent Populations - Example 10-12 12 12

10-2 z Test for Comparing Two Means from Independent Populations - Example 10-13 Step 4: Make the decision. Reject the null hypothesis at  = 0.05, since 7.45 > 1.96. 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 hotel rates between Toronto and Ottawa. 13 13

10-2 P-Values 10-14 The P-values for the tests can be determined using the same procedure as shown in Section 9-3. 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.0005 which is <  = 0.05. 14 14

10-3 Testing the Difference Between Two Variances 10-17 For the comparison of two variances or standard deviations, an F-test is used. The sampling distribution of the variances is called the F distribution. 17 17

10-3 Characteristics of the F Distribution 10-18 The values of F cannot be negative. The distribution is positively skewed. The mean value of F is approximately equal to 1. The F distribution is a family of curves based on the degrees of freedom of the variance of the numerator and denominator. 18 18

10-3 Curves for the F Distribution 10-19 19 19

10-3 Formula for the F -Test 10-20 20 20

10-3 Assumptions for Testing the Difference between Two Variances 10-21 The populations from which the samples were obtained must be normally distributed. The samples must be independent of each other. 21 21

10-3 Testing the Difference between Two Variances - Example 10-22 A researcher wishes to see whether the variances of the heart rates (in beats per minute) of smokers are different from the variances of heart rates of people who do not smoke. Two samples are selected, and the data are given on the next slide. Using = 0.05, is there enough evidence to support the claim? 22 22

10-3 Testing the Difference between Two Variances - Example 10-23 For smokers n1 = 26 and = 36; for nonsmokers n2 = 18 and = 10. Step 1: State the hypotheses and identify the claim. H0:  H1:   (claim) 2 s 1 s 2  2 1  2  2 1  2 23 23

10-3 Testing the Difference between Two Variances - Example 10-24 Step 2: Find the critical value. Since  = 0.05 and the test is a two-tailed test, use the 0.025 table. Here d.f. N. = 26 – 1 = 25, and d.f.D. = 18 – 1 = 17. The critical value is F = 2.56. Step 3: Compute the test value. F = / = 36/10 = 3.6. s 2 1 s 2 24 24

10-3 Testing the Difference between Two Variances - Example 10-25 Step 4: Make the decision. Reject the null hypothesis, since 3.6 > 2.56. Step 5: Summarize the results. There is enough evidence to support the claim that the variances are different. 25 25

10-3 Testing the Difference between Two Variances - Example 10-26   26 26

10-3 Testing the Difference between Two Variances - Example 10-27 An instructor hypothesizes that the standard deviation of the final exam grades in her statistics class is larger for the male students than it is for the female students. The data from the final exam for the last semester are: males n1 = 16 and s1 = 4.2; females n2 = 18 and s2 = 2.3. 27 27

10-3 Testing the Difference between Two Variances - Example 10-28 Is there enough evidence to support her claim, using  = 0.01? Step 1: State the hypotheses and identify the claim. H0:   H1:  (claim)  2 1  2  2 1  2 28 28

10-3 Testing the Difference between Two Variances - Example 10-29 Step 2: Find the critical value. Here, d.f.N. = 16 –1 = 15, and d.f.D. = 18 –1 = 17. For  = 0.01 table, the critical value is F = 3.31. Step 3: Compute the test value. F = (4.2)2/(2.3)2 = 3.33. 29 29

10-3 Testing the Difference between Two Variances - Example 10-30 Step 4: Make the decision. Reject the null hypothesis, since 3.33 > 3.31. Step 5: Summarize the results. There is enough evidence to support the claim that the standard deviation of the final exam grades for the male students is larger than that for the female students. 30 30

10-3 Testing the Difference between Two Variances - Example 10-31   31 31

10-4 Testing the Difference between 10-4 Testing the Difference between Two Means: Small Independent Samples 10-32 When the sample sizes are small (< 30) and 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 sampling populations are normally or approximately normally distributed. 32 32

10-4 Testing the Difference between 10-4 Testing the Difference between Two Means: Small Independent Samples 10-33 There are two options for the use of the t-test. When the variances of the populations are equal and when they are not equal. The F-test can be used to establish whether the variances are equal or not. 33 33

    X  X      t s s  n n d . f .  smaller of n  1 or n  10-4 Testing the Difference between Two Means: Small Independent Samples - Test Value Formula 10-34 Unequal Variances     X  X      t 1 2 1 2 s 2 s 2  1 2 n n 1 2 d . f .  smaller of n  1 or n  1 1 2 34 34

    X  X     t  ( n  1 ) s  ( n  1 ) s 1 1  n  n  2 n 10-4 Testing the Difference between Two Means: Small Independent Samples - Test Value Formula 10-35 Equal Variances     X  X     t  1 2 1 2 ( n  1 ) s  2 ( n  1 ) s 2 1 1  1 1 2 2 n  n  2 n n 1 2 1 2    d . f . n n 2 . 1 2 35 35

10-4 Difference between Two Means: Small Independent Samples - Example 10-36 The average size of a farm in Waterloo County is 199 acres, and the average size of a farm in Perth County 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 Waterloo County and 8 farms in Perth County. Can it be concluded at  = 0.05 that the average size of the farms in the two counties is different? 36 36

10-4 Difference between Two Means: Small Independent Samples - Example 10-37 Assume the populations are normally distributed. First we need to use the 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 = 382/122 = 10.03. 37 37

10-4 Difference between Two Means: Small Independent Samples - Example 10-38 Since 10.03 > 4.20, the decision is to reject the null hypothesis and conclude the variances are not equal. Step 1: State the hypotheses and identify the claim for the means. H0:  H1:  (claim) 38 38

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

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

10-5 Testing the Difference between Two Means: Small Dependent Samples 10-43 When the values are dependent, employ a t-test on the 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 sD. 43 43

10-5 Testing the Difference between Two 10-5 Testing the Difference between Two Means: Small Dependent Samples - Formula for the test value. 10-44 44 44

10-5 Testing the Difference between Two 10-5 Testing the Difference between Two Means: Small Dependent Samples - Formula for the test value. 10-45 Note: This test is similar to a one sample t-test, except it is done on the differences when the samples are dependent. 45 45