Chapter 10 Two-Sample Tests and One-Way ANOVA

Slides:



Advertisements
Similar presentations
Chapter 11 Analysis of Variance
Advertisements

Business and Economics 9th Edition
Statistics for Managers Using Microsoft Excel, 5e © 2008 Prentice-Hall, Inc.Chap 10-1 Statistics for Managers Using Microsoft® Excel 5th Edition Chapter.
Chapter 10 Two-Sample Tests
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 7 th Edition Chapter 10 Hypothesis Testing:
Chapter 10 Two-Sample Tests
Statistics for Managers Using Microsoft® Excel 5th Edition
Chapter 11 Analysis of Variance
Chap 11-1 Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chapter 11 Hypothesis Testing II Statistics for Business and Economics.
Chapter 3 Analysis of Variance
Statistics for Managers Using Microsoft® Excel 5th Edition
Chapter Goals After completing this chapter, you should be able to:
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap 9-1 Introduction to Statistics Chapter 10 Estimation and Hypothesis.
1/45 Chapter 11 Hypothesis Testing II EF 507 QUANTITATIVE METHODS FOR ECONOMICS AND FINANCE FALL 2008.
A Decision-Making Approach
Chapter 17 Analysis of Variance
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 10-1 Business Statistics: A Decision-Making Approach 7 th Edition Chapter.
Chapter 11 Hypothesis Tests and Estimation for Population Variances
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 7 th Edition Chapter 15 Analysis of Variance.
Chapter 11 Analysis of Variance
© 2004 Prentice-Hall, Inc.Chap 10-1 Basic Business Statistics (9 th Edition) Chapter 10 Two-Sample Tests with Numerical Data.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 9-1 Chapter 9 Two Sample Tests Statistics for Managers Using Microsoft.
Basic Business Statistics (9th Edition)
Copyright ©2011 Pearson Education 11-1 Chapter 11 Analysis of Variance Statistics for Managers using Microsoft Excel 6 th Global Edition.
Basic Business Statistics, 10e © 2006 Prentice-Hall, Inc. Chap 10-1 Chapter 10 Two-Sample Tests Basic Business Statistics 10 th Edition.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 10-1 Chapter 10 Analysis of Variance Statistics for Managers Using Microsoft.
Chap 10-1 Analysis of Variance. Chap 10-2 Overview Analysis of Variance (ANOVA) F-test Tukey- Kramer test One-Way ANOVA Two-Way ANOVA Interaction Effects.
Copyright ©2011 Pearson Education, Inc. publishing as Prentice Hall 11-1 Chapter 11 Analysis of Variance Statistics for Managers using Microsoft Excel.
Copyright ©2011 Pearson Education, Inc. publishing as Prentice Hall 12-1 Business Statistics: A Decision-Making Approach 8 th Edition Chapter 12 Analysis.
INFERENTIAL STATISTICS: Analysis Of Variance ANOVA
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap th & 7 th Lesson Hypothesis Testing for Two Population Parameters.
© 2002 Prentice-Hall, Inc.Chap 9-1 Statistics for Managers Using Microsoft Excel 3 rd Edition Chapter 9 Analysis of Variance.
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc. Chap 10-1 Chapter 2c Two-Sample Tests.
10-1 Copyright ©2011 Pearson Education, Inc. publishing as Prentice Hall Chapter 10 Two-Sample Tests Statistics for Managers using Microsoft Excel 6 th.
Pengujian Hipotesis Dua Populasi By. Nurvita Arumsari, Ssi, MSi.
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap th Lesson Analysis of Variance.
Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap 10-1 Chapter 10 Two-Sample Tests and One-Way ANOVA Business Statistics, A First.
A Course In Business Statistics 4th © 2006 Prentice-Hall, Inc. Chap 9-1 A Course In Business Statistics 4 th Edition Chapter 9 Estimation and Hypothesis.
Industrial Statistics 2
Chap 9-1 Two-Sample Tests. Chap 9-2 Two Sample Tests Population Means, Independent Samples Means, Related Samples Population Variances Group 1 vs. independent.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 10-1 Chapter 10 Analysis of Variance Statistics for Managers Using Microsoft.
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 8 th Edition Chapter 10 Hypothesis Testing:
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 9-1 Chapter 9 Two-Sample Tests Statistics for Managers Using Microsoft.
Lecture 9-1 Analysis of Variance
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 8 th Edition Chapter 15 Analysis of Variance.
Business Statistics: A First Course (3rd Edition)
Chapter 4 Analysis of Variance
Chap 11-1 A Course In Business Statistics, 4th © 2006 Prentice-Hall, Inc. A Course In Business Statistics 4 th Edition Chapter 11 Analysis of Variance.
Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap 10-1 Chapter 10 Two-Sample Tests and One-Way ANOVA Business Statistics, A First.
Comparing Sample Means
Copyright © 2016, 2013, 2010 Pearson Education, Inc. Chapter 10, Slide 1 Two-Sample Tests and One-Way ANOVA Chapter 10.
AP Statistics. Chap 13-1 Chapter 13 Estimation and Hypothesis Testing for Two Population Parameters.
Statistics for Managers Using Microsoft Excel, 5e © 2008 Prentice-Hall, Inc.Chap 10-1 Statistics for Managers Using Microsoft® Excel 5th Edition Chapter.
Lecture 8 Estimation and Hypothesis Testing for Two Population Parameters.
10-1 Copyright ©2011 Pearson Education, Inc. publishing as Prentice Hall Chapter 10 Two-Sample Tests Statistics for Managers using Microsoft Excel 6 th.
Formula for Linear Regression y = bx + a Y variable plotted on vertical axis. X variable plotted on horizontal axis. Slope or the change in y for every.
Chapter 11 Analysis of Variance
Chapter 10 Two-Sample Tests and One-Way ANOVA.
Chapter 10 Two Sample Tests
Estimation & Hypothesis Testing for Two Population Parameters
Chapter 10 Two-Sample Tests.
Chapter 10 Two-Sample Tests and One-Way ANOVA.
Chapter 11 Hypothesis Tests and Estimation for Population Variances
Chapter 11 Analysis of Variance
Chapter 10 Two-Sample Tests
Chapter 15 Analysis of Variance
Presentation transcript:

Chapter 10 Two-Sample Tests and One-Way ANOVA Business Statistics: A First Course 6th Edition Chapter 10 Two-Sample Tests and One-Way ANOVA Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Learning Objectives In this chapter, you learn How to use hypothesis testing for comparing the difference between: The means of two independent populations The means of two related populations The proportions of two independent populations The variances of two independent populations The means of more than two populations Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Two-Sample Tests Two-Sample Tests DCOVA Population Means, Independent Samples Population Means, Related Samples Population Proportions Population Variances Examples: Group 1 vs. Group 2 Same group before vs. after treatment Proportion 1 vs. Proportion 2 Variance 1 vs. Variance 2 Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Difference Between Two Means DCOVA Population means, independent samples Goal: Test hypothesis or form a confidence interval for the difference between two population means, μ1 – μ2 * σ1 and σ2 unknown, assumed equal The point estimate for the difference is X1 – X2 σ1 and σ2 unknown, not assumed equal Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Difference Between Two Means: Independent Samples DCOVA Different data sources Unrelated Independent Sample selected from one population has no effect on the sample selected from the other population Population means, independent samples * Use Sp to estimate unknown σ. Use a Pooled-Variance t test. σ1 and σ2 unknown, assumed equal Use S1 and S2 to estimate unknown σ1 and σ2. Use a Separate-Variance t test. σ1 and σ2 unknown, not assumed equal Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Hypothesis Tests for Two Population Means DCOVA Two Population Means, Independent Samples Lower-tail test: H0: μ1  μ2 H1: μ1 < μ2 i.e., H0: μ1 – μ2  0 H1: μ1 – μ2 < 0 Upper-tail test: H0: μ1 ≤ μ2 H1: μ1 > μ2 i.e., H0: μ1 – μ2 ≤ 0 H1: μ1 – μ2 > 0 Two-tail test: H0: μ1 = μ2 H1: μ1 ≠ μ2 i.e., H0: μ1 – μ2 = 0 H1: μ1 – μ2 ≠ 0 Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Hypothesis tests for μ1 – μ2 DCOVA Two Population Means, Independent Samples Lower-tail test: H0: μ1 – μ2  0 H1: μ1 – μ2 < 0 Upper-tail test: H0: μ1 – μ2 ≤ 0 H1: μ1 – μ2 > 0 Two-tail test: H0: μ1 – μ2 = 0 H1: μ1 – μ2 ≠ 0 a a a/2 a/2 -ta ta -ta/2 ta/2 Reject H0 if tSTAT < -ta Reject H0 if tSTAT > ta Reject H0 if tSTAT < -ta/2 or tSTAT > ta/2 Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Hypothesis tests for µ1 - µ2 with σ1 and σ2 unknown and assumed equal DCOVA Assumptions: Samples are randomly and independently drawn Populations are normally distributed or both sample sizes are at least 30 Population variances are unknown but assumed equal Population means, independent samples * σ1 and σ2 unknown, assumed equal σ1 and σ2 unknown, not assumed equal Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Hypothesis tests for µ1 - µ2 with σ1 and σ2 unknown and assumed equal (continued) DCOVA The pooled variance is: The test statistic is: Where tSTAT has d.f. = (n1 + n2 – 2) Population means, independent samples * σ1 and σ2 unknown, assumed equal σ1 and σ2 unknown, not assumed equal Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Confidence interval for µ1 - µ2 with σ1 and σ2 unknown and assumed equal DCOVA Population means, independent samples The confidence interval for μ1 – μ2 is: Where tα/2 has d.f. = n1 + n2 – 2 * σ1 and σ2 unknown, assumed equal σ1 and σ2 unknown, not assumed equal Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Pooled-Variance t Test Example DCOVA You are a financial analyst for a brokerage firm. Is there a difference in dividend yield between stocks listed on the NYSE & NASDAQ? You collect the following data: NYSE NASDAQ Sample Size 21 25 Sample mean 3.27 2.53 Sample std dev 1.30 1.16 Assuming both populations are approximately normal with equal variances, is there a difference in mean yield ( = 0.05)? Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Pooled-Variance t Test Example: Calculating the Test Statistic (continued) H0: μ1 - μ2 = 0 i.e. (μ1 = μ2) H1: μ1 - μ2 ≠ 0 i.e. (μ1 ≠ μ2) DCOVA The test statistic is: Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Pooled-Variance t Test Example: Hypothesis Test Solution DCOVA Reject H0 Reject H0 H0: μ1 - μ2 = 0 i.e. (μ1 = μ2) H1: μ1 - μ2 ≠ 0 i.e. (μ1 ≠ μ2)  = 0.05 df = 21 + 25 - 2 = 44 Critical Values: t = ± 2.0154 Test Statistic: .025 .025 -2.0154 2.0154 t 2.040 Decision: Conclusion: Reject H0 at a = 0.05 There is evidence of a difference in means. Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Excel Pooled-Variance t test Comparing NYSE & NASDAQ DCOVA Pooled-Variance t Test for the Difference Between Two Means (assumes equal population variances) Data Hypothesized Difference Level of Significance 0.05 Population 1 Sample Sample Size 21 =COUNT(DATA!$A:$A) Sample Mean 3.27 =AVERAGE(DATA!$A:$A) Sample Standard Deviation 1.3 =STDEV(DATA!$A:$A) Population 2 Sample 25 =COUNT(DATA!$B:$B) 2.53 =AVERAGE(DATA!$B:$B) 1.16 =STDEV(DATA!$B:$B) Intermediate Calculations Population 1 Sample Degrees of Freedom 20 =B7 - 1 Population 2 Sample Degrees of Freedom 24 =B11 - 1 Total Degrees of Freedom 44 =B16 + B17 Pooled Variance 1.502 =((B16 * B9^2) + (B17 * B13^2)) / B18 Standard Error 0.363 =SQRT(B19 * (1/B7 + 1/B11)) Difference in Sample Means 0.74 =B8 - B12 t Test Statistic 2.040 =(B21 - B4) / B20 Two-Tail Test Lower Critical Value -2.015 =-TINV(B5, B18) Upper Critical Value 2.015 =TINV(B5, B18) p-value 0.047 =TDIST(ABS(B22),B18,2) Reject the null hypothesis =IF(B27<B5,"Reject the null hypothesis", "Do not reject the null hypothesis") Decision: Conclusion: Reject H0 at a = 0.05 There is evidence of a difference in means. Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Minitab Pooled-Variance t test Comparing NYSE & NASDAQ DCOVA Two-Sample T-Test and CI Sample N Mean StDev SE Mean 1 21 3.27 1.30 0.28 2 25 2.53 1.16 0.23 Difference = mu (1) - mu (2) Estimate for difference: 0.740 95% CI for difference: (0.009, 1.471) T-Test of difference = 0 (vs not =): T-Value = 2.04 P-Value = 0.047 DF = 44 Both use Pooled StDev = 1.2256 Decision: Conclusion: Reject H0 at a = 0.05 There is evidence of a difference in means. Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Pooled-Variance t Test Example: Confidence Interval for µ1 - µ2 DCOVA Since we rejected H0 can we be 95% confident that µNYSE > µNASDAQ? 95% Confidence Interval for µNYSE - µNASDAQ Since 0 is less than the entire interval, we can be 95% confident that µNYSE > µNASDAQ Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Hypothesis tests for µ1 - µ2 with σ1 and σ2 unknown, not assumed equal DCOVA Assumptions: Samples are randomly and independently drawn Populations are normally distributed or both sample sizes are at least 30 Population variances are unknown and cannot be assumed to be equal Population means, independent samples σ1 and σ2 unknown, assumed equal * σ1 and σ2 unknown, not assumed equal Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Hypothesis tests for µ1 - µ2 with σ1 and σ2 unknown and not assumed equal (continued) DCOVA The formulae for this test are not covered in this book. See reference 8 from this chapter for more details. This test utilizes two separate sample variances to estimate the degrees of freedom for the t test Population means, independent samples σ1 and σ2 unknown, assumed equal * σ1 and σ2 unknown, not assumed equal Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Related Populations The Paired Difference Test DCOVA Tests Means of 2 Related Populations Paired or matched samples Repeated measures (before/after) Use difference between paired values: Eliminates Variation Among Subjects Assumptions: Both Populations Are Normally Distributed Or, if not Normal, use large samples Related samples Di = X1i - X2i Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Related Populations The Paired Difference Test DCOVA (continued) The ith paired difference is Di , where Related samples Di = X1i - X2i The point estimate for the paired difference population mean μD is D : The sample standard deviation is SD n is the number of pairs in the paired sample Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

The Paired Difference Test: Finding tSTAT DCOVA The test statistic for μD is: Paired samples Where tSTAT has n - 1 d.f. Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

The Paired Difference Test: Possible Hypotheses DCOVA Paired Samples Lower-tail test: H0: μD  0 H1: μD < 0 Upper-tail test: H0: μD ≤ 0 H1: μD > 0 Two-tail test: H0: μD = 0 H1: μD ≠ 0 a a a/2 a/2 -ta ta -ta/2 ta/2 Reject H0 if tSTAT < -ta Reject H0 if tSTAT > ta Reject H0 if tSTAT < -ta/2 or tSTAT > ta/2 Where tSTAT has n - 1 d.f. Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

The Paired Difference Confidence Interval DCOVA The confidence interval for μD is Paired samples where Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Paired Difference Test: Example DCOVA Assume you send your salespeople to a “customer service” training workshop. Has the training made a difference in the number of complaints? You collect the following data:  Number of Complaints: (2) - (1) Salesperson Before (1) After (2) Difference, Di C.B. 6 4 - 2 T.F. 20 6 -14 M.H. 3 2 - 1 R.K. 0 0 0 M.O. 4 0 - 4 -21 Di D = n = -4.2 Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Paired Difference Test: Solution DCOVA Has the training made a difference in the number of complaints (at the 0.01 level)? Reject Reject H0: μD = 0 H1: μD  0 /2 /2  = .01 D = - 4.2 - 4.604 4.604 - 1.66 t0.005 = ± 4.604 d.f. = n - 1 = 4 Decision: Do not reject H0 (tstat is not in the reject region) Test Statistic: Conclusion: There is insufficient evidence there is significant change in the number of complaints. Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Intermediate Calculations Paired t Test In Excel DCOVA Paired t Test Data Hypothesized Mean Diff. Level of Significance 0.05 Intermediate Calculations Sample Size 5 =COUNT(I2:I6) Dbar -4.2 =AVERAGE(I2:I6) Degrees of Freedom 4 =B8 - 1 SD 5.67 =STDEV(I2:I6) Standard Error 2.54 =B11/SQRT(B8) t-Test Statistic -1.66 =(B9 - B4)/B12 Two-Tail Test Lower Critical Value -2.776 =-TINV(B5,B10) Upper Critical Value 2.776 =TINV(B5,B10) p-value 0.173 =TDIST(ABS(B13),B10,2) Do not reject the null Hypothesis   =IF(B18<B5,"Reject the null hypothesis", "Do not reject the null hypothesis") Data not shown is in column I Since -2.776 < -1.66 < 2.776 we do not reject the null hypothesis. Or Since p-value = 0.173 > 0.05 we do not reject the null hypothesis. Thus we conclude that there is Insufficient evidence to conclude there is a difference in the average number of complaints. Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Paired t Test In Minitab Yields The Same Conclusions DCOVA Paired T-Test and CI: After, Before Paired T for After - Before N Mean StDev SE Mean After 5 2.40 2.61 1.17 Before 5 6.60 7.80 3.49 Difference 5 -4.20 5.67 2.54 95% CI for mean difference: (-11.25, 2.85) T-Test of mean difference = 0 (vs not = 0): T-Value = -1.66 P-Value = 0.173 Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Two Population Proportions DCOVA Goal: test a hypothesis or form a confidence interval for the difference between two population proportions, π1 – π2 Population proportions The point estimate for the difference is Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Two Population Proportions DCOVA In the null hypothesis we assume the null hypothesis is true, so we assume π1 = π2 and pool the two sample estimates Population proportions The pooled estimate for the overall proportion is: where X1 and X2 are the number of items of interest in samples 1 and 2 Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Two Population Proportions (continued) DCOVA The test statistic for π1 – π2 is a Z statistic: Population proportions where Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Hypothesis Tests for Two Population Proportions DCOVA Population proportions Lower-tail test: H0: π1  π2 H1: π1 < π2 i.e., H0: π1 – π2  0 H1: π1 – π2 < 0 Upper-tail test: H0: π1 ≤ π2 H1: π1 > π2 i.e., H0: π1 – π2 ≤ 0 H1: π1 – π2 > 0 Two-tail test: H0: π1 = π2 H1: π1 ≠ π2 i.e., H0: π1 – π2 = 0 H1: π1 – π2 ≠ 0 Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Hypothesis Tests for Two Population Proportions (continued) Population proportions DCOVA Lower-tail test: H0: π1 – π2  0 H1: π1 – π2 < 0 Upper-tail test: H0: π1 – π2 ≤ 0 H1: π1 – π2 > 0 Two-tail test: H0: π1 – π2 = 0 H1: π1 – π2 ≠ 0 a a a/2 a/2 -za za -za/2 za/2 Reject H0 if ZSTAT < -Za Reject H0 if ZSTAT > Za Reject H0 if ZSTAT < -Za/2 or ZSTAT > Za/2 Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Hypothesis Test Example: Two population Proportions DCOVA Is there a significant difference between the proportion of men and the proportion of women who will vote Yes on Proposition A? In a random sample, 36 of 72 men and 35 of 50 women indicated they would vote Yes Test at the .05 level of significance Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Hypothesis Test Example: Two population Proportions (continued) DCOVA The hypothesis test is: H0: π1 – π2 = 0 (the two proportions are equal) H1: π1 – π2 ≠ 0 (there is a significant difference between proportions) The sample proportions are: Men: p1 = 36/72 = 0.50 Women: p2 = 35/50 = 0.70 The pooled estimate for the overall proportion is: Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Hypothesis Test Example: Two population Proportions DCOVA (continued) Reject H0 Reject H0 The test statistic for π1 – π2 is: .025 .025 -1.96 1.96 -2.20 Decision: Reject H0 Conclusion: There is evidence of a difference in proportions who will vote yes between men and women. Critical Values = ±1.96 For  = .05 Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Two Proportion Test In Excel DCOVA Z Test for Differences in Two Proportions Data Hypothesized Difference Level of Significance 0.05 Group 1 Number of items of interest 36 Sample Size 72 Group 2 35 50 Intermediate Calculations Group 1 Proportion 0.5 =B7/B8 Group 2 Proportion 0.7 =B10/B11 Difference in Two Proportions -0.2 =B14 - B15 Average Proportion 0.582 =(B7 + B10)/(B8 + B11) Z Test Statistic -2.20 =(B16-B4)/SQRT((B17*(1-B17))*(1/B8+1/B11)) Two-Tail Test Lower Critical Value -1.96 =NORMSINV(B5/2) Upper Critical Value 1.96 =NORMSINV(1 - B5/2) p-value 0.028 =2*(1 - NORMSDIST(ABS(B18))) Reject the null hypothesis =IF(B23 < B5,"Reject the null hypothesis", "Do not reject the null hypothesis") Since -2.20 < -1.96 Or Since p-value = 0.028 < 0.05 We reject the null hypothesis Decision: Reject H0 Conclusion: There is evidence of a difference in proportions who will vote yes between men and women. Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Two Proportion Test In Minitab Shows The Same Conclusions DCOVA Test and CI for Two Proportions Sample X N Sample p 1 36 72 0.500000 2 35 50 0.700000 Difference = p (1) - p (2) Estimate for difference: -0.2 95% CI for difference: (-0.371676, -0.0283244) Test for difference = 0 (vs not = 0): Z = -2.28 P-Value = 0.022 Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Confidence Interval for Two Population Proportions DCOVA Population proportions The confidence interval for π1 – π2 is: Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Testing for the Ratio Of Two Population Variances DCOVA Hypotheses FSTAT * Tests for Two Population Variances H0: σ12 = σ22 H1: σ12 ≠ σ22 H0: σ12 ≤ σ22 H1: σ12 > σ22 F test statistic Where: = Variance of sample 1 (the larger sample variance) n1 = sample size of sample 1 = Variance of sample 2 (the smaller sample variance) n2 = sample size of sample 2 n1 –1 = numerator degrees of freedom n2 – 1 = denominator degrees of freedom Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

The F Distribution DCOVA The F critical value is found from the F table There are two degrees of freedom required: numerator and denominator The larger sample variance is always the numerator When In the F table, numerator degrees of freedom determine the column denominator degrees of freedom determine the row df1 = n1 – 1 ; df2 = n2 – 1 Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Finding the Rejection Region DCOVA H0: σ12 = σ22 H1: σ12 ≠ σ22 H0: σ12 ≤ σ22 H1: σ12 > σ22 /2  F F Do not reject H0 Fα/2 Reject H0 Do not reject H0 Fα Reject H0 Reject H0 if FSTAT > Fα/2 Reject H0 if FSTAT > Fα Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

F Test: An Example DCOVA You are a financial analyst for a brokerage firm. You want to compare dividend yields between stocks listed on the NYSE & NASDAQ. You collect the following data: NYSE NASDAQ Number 21 25 Mean 3.27 2.53 Std dev 1.30 1.16 Is there a difference in the variances between the NYSE & NASDAQ at the  = 0.05 level? Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

F Test: Example Solution DCOVA Form the hypothesis test: (there is no difference between variances) (there is a difference between variances) Find the F critical value for  = 0.05: Numerator d.f. = n1 – 1 = 21 –1 = 20 Denominator d.f. = n2 – 1 = 25 –1 = 24 Fα/2 = F.025, 20, 24 = 2.33 Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

F Test: Example Solution DCOVA (continued) The test statistic is: H0: σ12 = σ22 H1: σ12 ≠ σ22 /2 = .025 F Do not reject H0 Reject H0 FSTAT = 1.256 is not in the rejection region, so we do not reject H0 F0.025=2.33 Conclusion: There is insufficient evidence of a difference in variances at  = .05 Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Two Variance F Test In Excel DCOVA Conclusion: There is insufficient evidence of a difference in variances at  = .05 because: F statistic =1.256 < 2.327 Fα/2 or p-value = 0.589 > 0.05 = α. F Test for Differences in Two Variables Data Level of Significance 0.05 Larger-Variance Sample Sample Size 21 Sample Variance 1.6900 =1.3^2 Smaller-Variance Sample 25 1.3456 =1.16^2 Intermediate Calculations F Test Statistic 1.256 1.255945 Population 1 Sample Degrees of Freedom 20 =B6 - 1 Population 2 Sample Degrees of Freedom 24 =B9 - 1 Two-Tail Test Upper Critical Value 2.327 =FINV(B4/2,B14,B15) p-value 0.589 =2*FDIST(B13,B14,B15) Do not reject the null hypothesis =IF(B19<B4,"Reject the null hypothesis", "Do not reject the null hypothesis") Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Two Variance F Test In Minitab Yields The Same Conclusion DCOVA Test and CI for Two Variances Null hypothesis Sigma(1) / Sigma(2) = 1 Alternative hypothesis Sigma(1) / Sigma(2) not = 1 Significance level Alpha = 0.05 Statistics Sample N StDev Variance 1 21 1.300 1.690 2 25 1.160 1.346 Ratio of standard deviations = 1.121 Ratio of variances = 1.256 95% Confidence Intervals CI for Distribution CI for StDev Variance of Data Ratio Ratio Normal (0.735, 1.739) (0.540, 3.024) Tests Test Method DF1 DF2 Statistic P-Value F Test (normal) 20 24 1.26 0.589 Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

One-Way Analysis Of Variance (ANOVA) Setting DCOVA Want to examine differences among more than two groups The groups involved are classified according to levels of a factor of interest (numerical or categorical) Different levels produce different groups Think of each group as a sample from a different population Observe effects on the dependent variable Are the groups the same? When there is only 1 factor the design is called a completely randomized design Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

One-Way Analysis of Variance DCOVA Evaluate the difference among the means of three or more groups Examples: Accident rates for 1st, 2nd, and 3rd shift Expected mileage for five brands of tires Assumptions Populations are normally distributed Populations have equal variances Samples are randomly and independently drawn Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Hypotheses of One-Way ANOVA DCOVA All population means are equal i.e., no factor effect (no variation in means among groups) At least one population mean is different i.e., there is a factor effect Does not mean that all population means are different (some pairs may be the same) Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

The Null Hypothesis is True One-Way ANOVA DCOVA The Null Hypothesis is True All Means are the same: (No Factor Effect) Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

One-Way ANOVA DCOVA The Null Hypothesis is NOT true (continued) The Null Hypothesis is NOT true At least one of the means is different (Factor Effect is present) or Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Partitioning the Variation DCOVA Total variation can be split into two parts: SST = SSA + SSW SST = Total Sum of Squares (Total variation) SSA = Sum of Squares Among Groups (Among-group variation) SSW = Sum of Squares Within Groups (Within-group variation) Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Partitioning the Variation (continued) DCOVA SST = SSA + SSW Total Variation = the aggregate variation of the individual data values across the various factor levels (SST) Among-Group Variation = variation among the factor sample means (SSA) Within-Group Variation = variation that exists among the data values within a particular factor level (SSW) Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Partition of Total Variation DCOVA Total Variation (SST) Variation Due to Factor (SSA) Variation Due to Random Error (SSW) = + Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Total Sum of Squares SST = SSA + SSW DCOVA Where: SST = Total sum of squares c = number of groups or levels nj = number of observations in group j Xij = ith observation from group j X = grand mean (mean of all data values) Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Total Variation DCOVA (continued) Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Among-Group Variation DCOVA SST = SSA + SSW Where: SSA = Sum of squares among groups c = number of groups nj = sample size from group j Xj = sample mean from group j X = grand mean (mean of all data values) Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Among-Group Variation (continued) DCOVA Variation Due to Differences Among Groups Mean Square Among = SSA/degrees of freedom Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Among-Group Variation DCOVA (continued) Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Within-Group Variation DCOVA SST = SSA + SSW Where: SSW = Sum of squares within groups c = number of groups nj = sample size from group j Xj = sample mean from group j Xij = ith observation in group j Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Within-Group Variation (continued) DCOVA Summing the variation within each group and then adding over all groups Mean Square Within = SSW/degrees of freedom Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Within-Group Variation DCOVA (continued) Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Obtaining the Mean Squares DCOVA The Mean Squares are obtained by dividing the various sum of squares by their associated degrees of freedom Mean Square Among (d.f. = c-1) Mean Square Within (d.f. = n-c) Mean Square Total (d.f. = n-1) Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

One-Way ANOVA Table DCOVA Source of Variation Among Groups SSA FSTAT = Degrees of Freedom Sum Of Squares Mean Square (Variance) F Among Groups SSA FSTAT = c - 1 SSA MSA = c - 1 MSA MSW Within Groups SSW n - c SSW MSW = n - c Total n – 1 SST c = number of groups n = sum of the sample sizes from all groups df = degrees of freedom Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

One-Way ANOVA F Test Statistic DCOVA H0: μ1= μ2 = … = μc H1: At least two population means are different Test statistic MSA is mean squares among groups MSW is mean squares within groups Degrees of freedom df1 = c – 1 (c = number of groups) df2 = n – c (n = sum of sample sizes from all populations) Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Interpreting One-Way ANOVA F Statistic DCOVA The F statistic is the ratio of the among estimate of variance and the within estimate of variance The ratio must always be positive df1 = c -1 will typically be small df2 = n - c will typically be large Decision Rule: Reject H0 if FSTAT > Fα, otherwise do not reject H0  Do not reject H0 Reject H0 Fα Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

One-Way ANOVA F Test Example DCOVA Club 1 Club 2 Club 3 254 234 200 263 218 222 241 235 197 237 227 206 251 216 204 You want to see if when three different golf clubs are used, they hit the ball different distances. You randomly select five measurements from trials on an automated driving machine for each club. At the 0.05 significance level, is there a difference in mean distance? Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

One-Way ANOVA Example: Scatter Plot DCOVA Distance 270 260 250 240 230 220 210 200 190 Club 1 Club 2 Club 3 254 234 200 263 218 222 241 235 197 237 227 206 251 216 204 • • • • • • • • • • • • • • • 1 2 3 Club Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

One-Way ANOVA Example Computations DCOVA Club 1 Club 2 Club 3 254 234 200 263 218 222 241 235 197 237 227 206 251 216 204 X1 = 249.2 X2 = 226.0 X3 = 205.8 X = 227.0 n1 = 5 n2 = 5 n3 = 5 n = 15 c = 3 SSA = 5 (249.2 – 227)2 + 5 (226 – 227)2 + 5 (205.8 – 227)2 = 4,716.4 SSW = (254 – 249.2)2 + (263 – 249.2)2 +…+ (204 – 205.8)2 = 1,119.6 MSA = 4,716.4 / (3-1) = 2,358.2 MSW = 1,119.6 / (15-3) = 93.3 Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

One-Way ANOVA Example Solution DCOVA Test Statistic: Decision: Conclusion: H0: μ1 = μ2 = μ3 H1: μj not all equal  = 0.05 df1= 2 df2 = 12 Critical Value: Fα = 3.89 Reject H0 at  = 0.05  = .05 There is evidence that at least one μj differs from the rest Do not reject H0 Reject H0 Fα = 3.89 FSTAT = 25.275 Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

One-Way ANOVA Excel Output DCOVA SUMMARY Groups Count Sum Average Variance Club 1 5 1246 249.2 108.2 Club 2 1130 226 77.5 Club 3 1029 205.8 94.2 ANOVA Source of Variation SS df MS F P-value F crit Between Groups 4716.4 2 2358.2 25.275 4.99E-05 3.89 Within 1119.6 12 93.3 Total 5836.0 14   Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

One-Way ANOVA Minitab Output DCOVA One-way ANOVA: Distance versus Club Source DF SS MS F P Club 2 4716.4 2358.2 25.28 0.000 Error 12 1119.6 93.3 Total 14 5836.0 S = 9.659 R-Sq = 80.82% R-Sq(adj) = 77.62% Individual 95% CIs For Mean Based on Pooled StDev Level N Mean StDev -------+---------+---------+---------+-- 1 5 249.20 10.40 (-----*-----) 2 5 226.00 8.80 (-----*-----) 3 5 205.80 9.71 (-----*-----) -------+---------+---------+---------+-- 208 224 240 256 Pooled StDev = 9.66 Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

The Tukey-Kramer Procedure DCOVA Tells which population means are significantly different e.g.: μ1 = μ2  μ3 Done after rejection of equal means in ANOVA Allows paired comparisons Compare absolute mean differences with critical range μ μ μ x = 1 2 3 Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Tukey-Kramer Critical Range DCOVA where: Qα = Upper Tail Critical Value from Studentized Range Distribution with c and n - c degrees of freedom (see appendix E.7 table) MSW = Mean Square Within nj and nj’ = Sample sizes from groups j and j’ Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

The Tukey-Kramer Procedure: Example DCOVA 1. Compute absolute mean differences: Club 1 Club 2 Club 3 254 234 200 263 218 222 241 235 197 237 227 206 251 216 204 2. Find the Qα value from the table in appendix E.7 with c = 3 and (n – c) = (15 – 3) = 12 degrees of freedom: Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

The Tukey-Kramer Procedure: Example (continued) DCOVA 3. Compute Critical Range: 4. Compare: 5. All of the absolute mean differences are greater than critical range. Therefore there is a significant difference between each pair of means at 5% level of significance. Thus, with 95% confidence we can conclude that the mean distance for club 1 is greater than club 2 and 3, and club 2 is greater than club 3. Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

ANOVA Assumptions Randomness and Independence Normality DCOVA Randomness and Independence Select random samples from the c groups (or randomly assign the levels) Normality The sample values for each group are from a normal population Homogeneity of Variance All populations sampled from have the same variance Can be tested with Levene’s Test Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

ANOVA Assumptions Levene’s Test DCOVA Tests the assumption that the variances of each population are equal. First, define the null and alternative hypotheses: H0: σ21 = σ22 = …=σ2c H1: Not all σ2j are equal Second, compute the absolute value of the difference between each value and the median of each group. Third, perform a one-way ANOVA on these absolute differences. Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Levene Homogeneity Of Variance Test Example DCOVA H0: σ21 = σ22 = σ23 H1: Not all σ2j are equal Calculate Medians Club 1 Club 2 Club 3 237 216 197 241 218 200 251 227 204 Median 254 234 206 263 235 222 Calculate Absolute Differences Club 1 Club 2 Club 3 14 11 7 10 9 4 3 2 12 8 18 Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Levene Homogeneity Of Variance Test Example (Excel) (continued) DCOVA Anova: Single Factor SUMMARY Groups Count Sum Average Variance Club 1 5 39 7.8 36.2 Club 2 35 7 17.5 Club 3 31 6.2 50.2 Since the p-value is greater than 0.05 there is insufficient evidence of a difference in the variances Source of Variation SS df MS F P-value F crit Between Groups 6.4 2 3.2 0.092 0.912 3.885 Within Groups 415.6 12 34.6 Total 422 14   Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Levene Homogeneity Of Variance Test Example (Minitab) (continued) DCOVA One-way ANOVA: Abs. Diff versus Club Source DF SS MS F P Club 2 6.4 3.2 0.09 0.912 Error 12 415.6 34.6 Total 14 422.0 S = 5.885 R-Sq = 1.52% R-Sq(adj) = 0.00% Individual 95% CIs For Mean Based on Pooled StDev Level N Mean StDev ---------+---------+---------+---------+ 1 5 7.800 6.017 (---------------*----------------) 2 5 7.000 4.183 (---------------*---------------) 3 5 6.200 7.085 (----------------*---------------) ---------+---------+---------+---------+ 3.5 7.0 10.5 14.0 Pooled StDev = 5.885 Since the p-value is greater than 0.05 there is insufficient evidence of a difference in the variances Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Chapter Summary Performed pooled-variance t test for the difference between the means of two independent populations Formed confidence interval for the difference between the means of two independent populations Performed paired t test for the difference between means of two related populations Formed confidence interval for the difference between means of two related populations Compared two population proportions from two independent populations Compared two population variances from two independent populations via the F test Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Chapter Summary (Con’t) Described one-way analysis of variance The logic of ANOVA ANOVA assumptions F test for difference in c means The Tukey-Kramer procedure for multiple comparisons The Levene test for homogeneity of variance Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall

Printed in the United States of America. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of the publisher. Printed in the United States of America. Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall