Download presentation
Presentation is loading. Please wait.
Published byAvice Rich Modified over 9 years ago
1
11 - 1 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved.
2
11 - 2 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. 1. Explain the the difference between dependent and independent samples. 2. Conduct a test of hypothesis and obtain a confidence interval estimate for the difference between … When you have completed this chapter, you will be able to: … two population means using matched pair sample. … two population proportions. … two population means using independent samples.
3
11 - 3 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. State the null and alternate hypotheses Step 1 Select the level of significance Step 2 Identify the test statistic Step 3 State the decision rule Step 4 Step 5 Hypothesis Testing Do not reject H 0 Reject H 0 and accept H 1 Compute the value of the test statistic and make a decision
4
11 - 4 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. If both samples contain at least 30 observations we use the z distribution as the test statistic. We wish to know whether the the distribution of the differences in sample means has a mean of 0.
5
11 - 5 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. The samples are from independent populations. The formula for computing the value of z is: No assumptions about the of the populations are required. z 2 2 2 1 n2n2 s n1n1 s 1 X 2 X
6
11 - 6 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Two colleges are located in York Region. The local paper recently reported that the mean starting salary of a graduate from College 1 is $38,000 with a standard deviation of $6,000 for a sample of 40 graduates. The same article reported the mean starting salary of a graduate from College 2 is $35,000 with a standard deviation of $7,000 for a sample of 35 graduates. At the.01 significance level can we conclude the mean salary of College 1 is more?
7
11 - 7 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Hypothesis Test State the null and alternate hypotheses Step 1 Select the level of significance Step 2 Identify the test statistic Step 3 State the decision rule Step 4 Compute the test statistic and make a decision Step 5 H 0 : µ 1 = µ 2 H 1 : µ 1 > µ 2 = 0.01 Because both samples are more than 30, the test statistic is Z Reject H 0 if z > 2.33 Do not reject the null hypothesis; insufficient evidence. 2 2 2 1 2 1 21 n s n s XX z = 1.98 $38,000 - $35,000 35 )000,7($ 40 000),6($ 22 z
8
11 - 8 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. State the decision rule Step 4 The p-value is: p(z > 1.98) p(z > 1.98) = =.0239.4761.5000 - Look up in Table Since p of.0239 is greater than the chosen alpha of 0.01, there is insufficient evidence to reject H 0 1.98 0
9
11 - 9 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Small Sample Tests of Means If one or more of the samples contain less than 30 observations we use the t distribution as the test statistic. Required Assumptions: Both populations must follow the normal distribution. The populations must have equal standard deviations. The samples are from independent populations.
10
11 - 10 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Pool the sample variances Determine the value of T from the formula Finding the value of the test statistic Two steps needed: Small Sample Tests of Means 2 11 2 n 1 n s 1 X T p 2 X 2 )1()1( 21 2 22 2 1 1 nn snsn 2 s p
11
11 - 11 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. 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?
12
11 - 12 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Hypothesis Test State the null and alternate hypotheses Step 1 Select the level of significance Step 2 Identify the test statistic Step 3 State the decision rule Step 4 Compute the test statistic and make a decision Step 5 H 0 : µ d = µ 1 H 1 : µ d < µ 1 = 0.05 Because both samples are less than 30, the test statistic is t Reject H 0 if t < 1.708 There are 25 d.f. Pooled Variances 2 )1()1( 21 2 22 2 1 1 nn snsn 2 s p Solution continues…
13
11 - 13 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Hypothesis Test Compute the test statistic and make a decision Step 5 Pooled Variances 2 )1()1( 21 2 22 2 1 1 nn snsn 2 s p 21215 )9.3)(112( 2 )4.2)(115 2 ( 2 p s 918.9 Compute T 7.357.33 = T 2 1 2 n 1 1 n s 1 X p 2 X 12 1 15 1 918.9 H 0 cannot be rejected… insufficient evidence.
14
11 - 14 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. If you wished to measure the effectiveness of a new diet, you would weigh at the start and at the finish of the programme! If you wished to buy a car, you would look at the same car at two (or more) different dealerships and compare the prices. Hypothesis Testing Involving Paired Observations Examples Independent samples are samples that are not related in any way Dependent samples are samples that are paired or related in same fashion
15
11 - 15 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. … is the mean of the differences Use the following test when the samples are dependent: Hypothesis Testing Involving Paired Observations D … is the number of pairs (differences) sDsD … is the standard deviation of the differences n T D n / s D
16
11 - 16 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. 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? CityHertz ($)Avis ($) Halifax$42$40 Quebec City$56$52 Kingston4543 Toronto48 Winnipeg3732 Calgary4548 Saskatoon4139 Vancouver4650
17
11 - 17 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Hypothesis Test State the null and alternate hypotheses Step 1 Select the level of significance Step 2 Identify the test statistic Step 3 State the decision rule Step 4 Compute the test statistic and make a decision Step 5 H 0 : µ D = 0 = 0.05 Because both samples are less than 30, the test distribution is t Reject H 0 if T 2.365 There are 7 d.f. Solution continues… H 1 : µ D 0 1 T D n s D /
18
11 - 18 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. DD2D2 Hypothesis Test Compute the test statistic and make a decision Step 5 CityHertz ($)Avis ($) Halifax$42$40 Quebec City$56$52 Kingston4543 Toronto48 Winnipeg3732 Calgary4548 Saskatoon4139 Vancouver4650 2 4 4 16 2 0 5 -3 2 -4 4 0 25 9 4 16 Solution continues… T D n s D /
19
11 - 19 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Hypothesis Test DD2D2 2 4 2 0 5 -3 2 -4 4 0 25 9 4 16 n D D 8 0.8 00.1 1 n n 2 D s D 2 D = 3.1623 78 18 8 8282 81623. 3 00. 1 T Compute the test statistic and make a decision Step 5 Because 0.894 < 2.365, we can not reject H 0. There is no significant difference in the prices 4 16 878 T D n s D /
20
11 - 20 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Two Sample Tests of Proportions We investigate whether two samples came from populations with an equal proportion of success. The two samples are pooled using the following formula: X 1 and X 2 refer to the number of successes in the respective samples n 1 and n 2 Test Statistic 21 21 nn XX ˆ p 21 1 ) ˆ 1( ˆ nn pp 21 ˆˆ pp z
21
11 - 21 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. 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.
22
11 - 22 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Hypothesis Test State the null and alternate hypotheses Step 1 Select the level of significance Step 2 Identify the test statistic Step 3 State the decision rule Step 4 Compute the test statistic and make a decision Step 5 = 0.05 Because both samples are large the z distribution is used. Reject H 0 if z > 1.645 Solution continues… H 1 : P u P m 21 21 ˆ nn XX p H 0 : p u p m =
23
11 - 23 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Hypothesis Test Compute the test statistic and make a decision Step 5 2 1 1 nn ) ˆ 1( ˆ pp 2 1 ˆˆ p p z 21 21 ˆ n n XX p .1036 250+ 300 22 + 35 250 )1036.1(. 300 ) 1036.1(.1036 250 22 300 35 = 1.10
24
11 - 24 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. =.5000 -.3643=.1457 The p-value is:P(z > 1.10) Hypothesis Test 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.
25
11 - 25 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Test your learning … www.mcgrawhill.ca/college/lind Click on… Online Learning Centre for quizzes extra content data sets searchable glossary access to Statistics Canada’s E-Stat data …and much more!
26
11 - 26 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. This completes Chapter 11
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.