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.

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
© 2002 Prentice-Hall, Inc.Chap 8-1 Statistics for Managers using Microsoft Excel 3 rd Edition Chapter 8 Two Sample Tests with Numerical Data.
Chapter Topics The Completely Randomized Model: One-Factor Analysis of Variance F-Test for Difference in c Means The Tukey-Kramer Procedure ANOVA Assumptions.
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.
© 2002 Prentice-Hall, Inc.Chap 8-1 Statistics for Managers using Microsoft Excel 3 rd Edition Kafla 8 Próf fyrir tvö úrtök (Ekki þýtt)
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 7 th Edition Chapter 15 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.
Chapter 10 Two-Sample Tests and One-Way ANOVA
© 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.
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
Previous Lecture: Phylogenetics. Analysis of Variance This Lecture Judy Zhong Ph.D.
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 Analysis of Variance
Chapter 10 Two-Sample Tests
Chapter 15 Analysis of Variance
Presentation transcript:

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 Course 4 th Edition

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap 10-2 Learning Objectives In this chapter, you learn hypothesis testing procedures to test:  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

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap 10-3 Chapter Overview One-Way Analysis of Variance (ANOVA) F-test Tukey-Kramer test Two-Sample Tests Population Means, Independent Samples Means, Related Samples Population Proportions Population Variances

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap 10-4 Two-Sample Tests Population Means, Independent Samples Means, Related Samples Population Variances Mean 1 vs. independent Mean 2 Same population before vs. after treatment Variance 1 vs. Variance 2 Examples: Population Proportions Proportion 1 vs. Proportion 2

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap 10-5 Difference Between Two Means Population means, independent samples σ 1 and σ 2 known Goal: Test hypothesis or form a confidence interval for the difference between two population means, μ 1 – μ 2 The point estimate for the difference is X 1 – X 2 * σ 1 and σ 2 unknown, assumed equal σ 1 and σ 2 unknown, not assumed equal

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap 10-6 Independent Samples Population means, independent samples  Different data sources  Unrelated  Independent  Sample selected from one population has no effect on the sample selected from the other population  Use the difference between 2 sample means  Use Z test, a pooled-variance t test, or a separate-variance t test * σ 1 and σ 2 known σ 1 and σ 2 unknown, assumed equal σ 1 and σ 2 unknown, not assumed equal

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap 10-7 Difference Between Two Means Population means, independent samples σ 1 and σ 2 known * Use a Z test statistic Use S p to estimate unknown σ, use a t test statistic and pooled standard deviation σ 1 and σ 2 unknown, assumed equal σ 1 and σ 2 unknown, not assumed equal Use S 1 and S 2 to estimate unknown σ 1 and σ 2, use a separate-variance t test

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap 10-8 Population means, independent samples σ 1 and σ 2 known σ 1 and σ 2 Known Assumptions:  Samples are randomly and independently drawn  Population distributions are normal or both sample sizes are  30  Population standard deviations are known * σ 1 and σ 2 unknown, assumed equal σ 1 and σ 2 unknown, not assumed equal

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap 10-9 Population means, independent samples σ 1 and σ 2 known …and the standard error of X 1 – X 2 is When σ 1 and σ 2 are known and both populations are normal or both sample sizes are at least 30, the test statistic is a Z-value… (continued) σ 1 and σ 2 Known * σ 1 and σ 2 unknown, assumed equal σ 1 and σ 2 unknown, not assumed equal

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap Population means, independent samples σ 1 and σ 2 known The test statistic for μ 1 – μ 2 is: σ 1 and σ 2 Known * (continued) σ 1 and σ 2 unknown, assumed equal σ 1 and σ 2 unknown, not assumed equal

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap Hypothesis Tests for Two Population Means Lower-tail test: H 0 : μ 1  μ 2 H 1 : μ 1 < μ 2 i.e., H 0 : μ 1 – μ 2  0 H 1 : μ 1 – μ 2 < 0 Upper-tail test: H 0 : μ 1 ≤ μ 2 H 1 : μ 1 > μ 2 i.e., H 0 : μ 1 – μ 2 ≤ 0 H 1 : μ 1 – μ 2 > 0 Two-tail test: H 0 : μ 1 = μ 2 H 1 : μ 1 ≠ μ 2 i.e., H 0 : μ 1 – μ 2 = 0 H 1 : μ 1 – μ 2 ≠ 0 Two Population Means, Independent Samples

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap Two Population Means, Independent Samples Lower-tail test: H 0 : μ 1 – μ 2  0 H 1 : μ 1 – μ 2 < 0 Upper-tail test: H 0 : μ 1 – μ 2 ≤ 0 H 1 : μ 1 – μ 2 > 0 Two-tail test: H 0 : μ 1 – μ 2 = 0 H 1 : μ 1 – μ 2 ≠ 0  /2  -z  -z  /2 zz z  /2 Reject H 0 if Z < -Z  Reject H 0 if Z > Z  Reject H 0 if Z < -Z  /2  or Z > Z  /2 Hypothesis tests for μ 1 – μ 2

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap Population means, independent samples σ 1 and σ 2 known The confidence interval for μ 1 – μ 2 is: Confidence Interval, σ 1 and σ 2 Known * σ 1 and σ 2 unknown, assumed equal σ 1 and σ 2 unknown, not assumed equal

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap Population means, independent samples σ 1 and σ 2 known σ 1 and σ 2 Unknown, Assumed Equal 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 * σ 1 and σ 2 unknown, assumed equal σ 1 and σ 2 unknown, not assumed equal

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap Population means, independent samples σ 1 and σ 2 known (continued) * Forming interval estimates:  The population variances are assumed equal, so use the two sample variances and pool them to estimate the common σ 2  the test statistic is a t value with (n 1 + n 2 – 2) degrees of freedom σ 1 and σ 2 unknown, assumed equal σ 1 and σ 2 unknown, not assumed equal σ 1 and σ 2 Unknown, Assumed Equal

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap Population means, independent samples σ 1 and σ 2 known The pooled variance is (continued) * σ 1 and σ 2 unknown, assumed equal σ 1 and σ 2 unknown, not assumed equal σ 1 and σ 2 Unknown, Assumed Equal

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap Population means, independent samples σ 1 and σ 2 known Where t has (n 1 + n 2 – 2) d.f., and The test statistic for μ 1 – μ 2 is: * (continued) σ 1 and σ 2 unknown, assumed equal σ 1 and σ 2 unknown, not assumed equal σ 1 and σ 2 Unknown, Assumed Equal

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap Population means, independent samples σ 1 and σ 2 known The confidence interval for μ 1 – μ 2 is: Where * Confidence Interval, σ 1 and σ 2 Unknown σ 1 and σ 2 unknown, assumed equal σ 1 and σ 2 unknown, not assumed equal

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap Pooled-Variance t Test: Example 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 Number Sample mean Sample std dev Assuming both populations are approximately normal with equal variances, is there a difference in average yield (  = 0.05)?

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap Calculating the Test Statistic The test statistic is:

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap Solution H 0 : μ 1 - μ 2 = 0 i.e. (μ 1 = μ 2 ) H 1 : μ 1 - μ 2 ≠ 0 i.e. (μ 1 ≠ μ 2 )  = 0.05 df = = 44 Critical Values: t = ± Test Statistic: Decision: Conclusion: Reject H 0 at  = 0.05 There is evidence of a difference in means. t Reject H

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap Population means, independent samples σ 1 and σ 2 known σ 1 and σ 2 Unknown, Not Assumed Equal Assumptions:  Samples are randomly and independently drawn  Populations are normally distributed or both sample sizes are at least 30  Population variances are unknown but cannot be assumed to be equal * σ 1 and σ 2 unknown, assumed equal σ 1 and σ 2 unknown, not assumed equal

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap Population means, independent samples σ 1 and σ 2 known (continued) * Forming the test statistic:  The population variances are not assumed equal, so include the two sample variances in the computation of the t-test statistic  the test statistic is a t value (statistical software is generally used to do the necessary computations) σ 1 and σ 2 unknown, assumed equal σ 1 and σ 2 unknown, not assumed equal σ 1 and σ 2 Unknown, Not Assumed Equal

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap Population means, independent samples σ 1 and σ 2 known The test statistic for μ 1 – μ 2 is: * (continued) σ 1 and σ 2 unknown, assumed equal σ 1 and σ 2 unknown, not assumed equal σ 1 and σ 2 Unknown, Not Assumed Equal

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap Related Populations 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 D i = X 1i - X 2i

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap Mean Difference, σ D Known The i th paired difference is D i, where Related samples D i = X 1i - X 2i The point estimate for the population mean paired difference is D : Suppose the population standard deviation of the difference scores, σ D, is known n is the number of pairs in the paired sample

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap The test statistic for the mean difference is a Z value: Paired samples Mean Difference, σ D Known (continued) Where μ D = hypothesized mean difference σ D = population standard dev. of differences n = the sample size (number of pairs)

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap Confidence Interval, σ D Known The confidence interval for μ D is Paired samples Where n = the sample size (number of pairs in the paired sample)

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap If σ D is unknown, we can estimate the unknown population standard deviation with a sample standard deviation: Related samples The sample standard deviation is Mean Difference, σ D Unknown

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap  Use a paired t test, the test statistic for D is now a t statistic, with n-1 d.f.: Paired samples Where t has n - 1 d.f. and S D is: Mean Difference, σ D Unknown (continued)

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap The confidence interval for μ D is Paired samples where Confidence Interval, σ D Unknown

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap Lower-tail test: H 0 : μ D  0 H 1 : μ D < 0 Upper-tail test: H 0 : μ D ≤ 0 H 1 : μ D > 0 Two-tail test: H 0 : μ D = 0 H 1 : μ D ≠ 0 Paired Samples Hypothesis Testing for Mean Difference, σ D Unknown  /2  -t  -t  /2 tt t  /2 Reject H 0 if t < -t  Reject H 0 if t > t  Reject H 0 if t < -t   or t > t  Where t has n - 1 d.f.

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap  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: Paired t Test Example Number of Complaints: (2) - (1) Salesperson Before (1) After (2) Difference, D i C.B T.F M.H R.K M.O D =  DiDi n = -4.2

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap  Has the training made a difference in the number of complaints (at the 0.01 level)? - 4.2D = H 0 : μ D = 0 H 1 :  μ D  0 Test Statistic: Critical Value = ± d.f. = n - 1 = 4 Reject  / Decision: Do not reject H 0 (t stat is not in the reject region) Conclusion: There is not a significant change in the number of complaints. Paired t Test: Solution Reject  /  =.01

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap Two Population Proportions Goal: test a hypothesis or form a confidence interval for the difference between two population proportions, π 1 – π 2 The point estimate for the difference is Population proportions Assumptions: n 1 π 1  5, n 1 (1- π 1 )  5 n 2 π 2  5, n 2 (1- π 2 )  5

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap Two Population Proportions Population proportions The pooled estimate for the overall proportion is: where X 1 and X 2 are the numbers from samples 1 and 2 with the characteristic of interest Since we begin by assuming the null hypothesis is true, we assume π 1 = π 2 and pool the two sample estimates

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap Two Population Proportions Population proportions The test statistic for p 1 – p 2 is a Z statistic: (continued) where

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap Confidence Interval for Two Population Proportions Population proportions The confidence interval for π 1 – π 2 is:

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap Hypothesis Tests for Two Population Proportions Population proportions Lower-tail test: H 0 : π 1  π 2 H 1 : π 1 < π 2 i.e., H 0 : π 1 – π 2  0 H 1 : π 1 – π 2 < 0 Upper-tail test: H 0 : π 1 ≤ π 2 H 1 : π 1 > π 2 i.e., H 0 : π 1 – π 2 ≤ 0 H 1 : π 1 – π 2 > 0 Two-tail test: H 0 : π 1 = π 2 H 1 : π 1 ≠ π 2 i.e., H 0 : π 1 – π 2 = 0 H 1 : π 1 – π 2 ≠ 0

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap Hypothesis Tests for Two Population Proportions Population proportions Lower-tail test: H 0 : π 1 – π 2  0 H 1 : π 1 – π 2 < 0 Upper-tail test: H 0 : π 1 – π 2 ≤ 0 H 1 : π 1 – π 2 > 0 Two-tail test: H 0 : π 1 – π 2 = 0 H 1 : π 1 – π 2 ≠ 0  /2  -z  -z  /2 zz z  /2 Reject H 0 if Z < -Z  Reject H 0 if Z > Z  Reject H 0 if Z < -Z   or Z > Z  (continued)

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap Example: Two population Proportions 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 31 of 50 women indicated they would vote Yes  Test at the.05 level of significance

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap  The hypothesis test is: H 0 : π 1 – π 2 = 0 (the two proportions are equal) H 1 : π 1 – π 2 ≠ 0 (there is a significant difference between proportions)  The sample proportions are:  Men: p 1 = 36/72 =.50  Women: p 2 = 31/50 =.62  The pooled estimate for the overall proportion is: Example: Two population Proportions (continued)

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap The test statistic for π 1 – π 2 is: Example: Two population Proportions (continued) Decision: Do not reject H 0 Conclusion: There is not significant evidence of a difference in proportions who will vote yes between men and women. Reject H 0 Critical Values = ±1.96 For  =.05

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap Hypothesis Tests for Variances Tests for Two Population Variances F test statistic H 0 : σ 1 2 = σ 2 2 H 1 : σ 1 2 ≠ σ 2 2 Two-tail test Lower-tail test Upper-tail test H 0 : σ 1 2  σ 2 2 H 1 : σ 1 2 < σ 2 2 H 0 : σ 1 2 ≤ σ 2 2 H 1 : σ 1 2 > σ 2 2 *

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap Hypothesis Tests for Variances Tests for Two Population Variances F test statistic The F test statistic is: = Variance of Sample 1 n = numerator degrees of freedom n = denominator degrees of freedom = Variance of Sample 2 * (continued)

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap  The F critical value is found from the F table  There are two appropriate degrees of freedom: numerator and denominator  In the F table,  numerator degrees of freedom determine the column  denominator degrees of freedom determine the row The F Distribution where df 1 = n 1 – 1 ; df 2 = n 2 – 1

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap F0 Finding the Rejection Region rejection region for a two-tail test is:  FLFL Reject H 0 Do not reject H 0 F 0  FUFU Reject H 0 Do not reject H 0 F0  /2 Reject H 0 Do not reject H 0 FUFU H 0 : σ 1 2 = σ 2 2 H 1 : σ 1 2 ≠ σ 2 2 H 0 : σ 1 2  σ 2 2 H 1 : σ 1 2 < σ 2 2 H 0 : σ 1 2 ≤ σ 2 2 H 1 : σ 1 2 > σ 2 2 FLFL  /2 Reject H 0 Reject H 0 if F < F L Reject H 0 if F > F U

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap Finding the Rejection Region F0  /2 Reject H 0 Do not reject H 0 FUFU H 0 : σ 1 2 = σ 2 2 H 1 : σ 1 2 ≠ σ 2 2 FLFL  /2 Reject H 0 (continued) 2. Find F L using the formula: Where F U* is from the F table with n 2 – 1 numerator and n 1 – 1 denominator degrees of freedom (i.e., switch the d.f. from F U ) 1. Find F U from the F table for n 1 – 1 numerator and n 2 – 1 denominator degrees of freedom To find the critical F values:

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap F Test: An Example 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 2125 Mean Std dev Is there a difference in the variances between the NYSE & NASDAQ at the  = 0.05 level?

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap F Test: Example Solution  Form the hypothesis test: H 0 : σ 2 1 – σ 2 2 = 0 ( there is no difference between variances) H 1 : σ 2 1 – σ 2 2 ≠ 0 ( there is a difference between variances)  Numerator:  n 1 – 1 = 21 – 1 = 20 d.f.  Denominator:  n 2 – 1 = 25 – 1 = 24 d.f. F U = F.025, 20, 24 = 2.33  Find the F critical values for  = 0.05:  Numerator:  n 2 – 1 = 25 – 1 = 24 d.f.  Denominator:  n 1 – 1 = 21 – 1 = 20 d.f. F L = 1/F.025, 24, 20 = 1/2.41 = FU:FU:FL:FL:

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap  The test statistic is: 0  /2 =.025 F U =2.33 Reject H 0 Do not reject H 0 H 0 : σ 1 2 = σ 2 2 H 1 : σ 1 2 ≠ σ 2 2 F Test: Example Solution  F = is not in the rejection region, so we do not reject H 0 (continued)  Conclusion: There is not sufficient evidence of a difference in variances at  =.05 F L =0.43  /2 =.025 Reject H 0 F

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap Two-Sample Tests in EXCEL For independent samples:  Independent sample Z test with variances known:  Tools | data analysis | z-test: two sample for means  Pooled variance t test:  Tools | data analysis | t-test: two sample assuming equal variances  Separate-variance t test:  Tools | data analysis | t-test: two sample assuming unequal variances For paired samples (t test):  Tools | data analysis | t-test: paired two sample for means For variances:  F test for two variances:  Tools | data analysis | F-test: two sample for variances

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap One-Way Analysis of Variance One-Way Analysis of Variance (ANOVA) F-test Tukey-Kramer test

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap General ANOVA Setting  Investigator controls one or more independent variables  Called factors (or treatment variables)  Each factor contains two or more levels (or groups or categories/classifications)  Observe effects on the dependent variable  Response to levels of independent variable  Experimental design: the plan used to collect the data

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap One-Way Analysis of Variance  Evaluate the difference among the means of three or more groups Examples: Accident rates for 1 st, 2 nd, and 3 rd shift Expected mileage for five brands of tires  Assumptions  Populations are normally distributed  Populations have equal variances  Samples are randomly and independently drawn

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap Hypotheses of One-Way ANOVA   All population means are equal  i.e., no treatment effect (no variation in means among groups)   At least one population mean is different  i.e., there is a treatment effect  Does not mean that all population means are different (some pairs may be the same)

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap One-Way ANOVA All Means are the same: The Null Hypothesis is True (No Treatment Effect)

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap One-Way ANOVA At least one mean is different: The Null Hypothesis is NOT true (Treatment Effect is present) or (continued)

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap Partitioning the Variation  Total variation can be split into two parts: 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) SST = SSA + SSW

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap Partitioning the Variation Total Variation = the aggregate dispersion of the individual data values across the various factor levels (SST) Within-Group Variation = dispersion that exists among the data values within a particular factor level (SSW) Among-Group Variation = dispersion between the factor sample means (SSA) SST = SSA + SSW (continued)

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap Partition of Total Variation Variation Due to Factor (SSA) Variation Due to Random Sampling (SSW) Total Variation (SST) Commonly referred to as:  Sum of Squares Within  Sum of Squares Error  Sum of Squares Unexplained  Within-Group Variation Commonly referred to as:  Sum of Squares Between  Sum of Squares Among  Sum of Squares Explained  Among Groups Variation = + d.f. = n – 1 d.f. = c – 1d.f. = n – c

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap Total Sum of Squares Where: SST = Total sum of squares c = number of groups (levels or treatments) n j = number of observations in group j X ij = i th observation from group j X = grand mean (mean of all data values) SST = SSA + SSW

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap Total Variation (continued)

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap Among-Group Variation Where: SSA = Sum of squares among groups c = number of groups n j = sample size from group j X j = sample mean from group j X = grand mean (mean of all data values) SST = SSA + SSW

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap Among-Group Variation Variation Due to Differences Among Groups Mean Square Among = SSA/degrees of freedom (continued)

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap Among-Group Variation (continued)

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap Within-Group Variation Where: SSW = Sum of squares within groups c = number of groups n j = sample size from group j X j = sample mean from group j X ij = i th observation in group j SST = SSA + SSW

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap Within-Group Variation Summing the variation within each group and then adding over all groups Mean Square Within = SSW/degrees of freedom (continued)

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap Within-Group Variation (continued)

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap Obtaining the Mean Squares

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap One-Way ANOVA Table Source of Variation dfSS MS (Variance) Among Groups SSAMSA = Within Groups n - cSSWMSW = Totaln - 1 SST = SSA+SSW c - 1 MSA MSW F ratio c = number of groups n = sum of the sample sizes from all groups df = degrees of freedom SSA c - 1 SSW n - c F =

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap One-Way ANOVA F Test Statistic  Test statistic MSA is mean squares among groups MSW is mean squares within groups  Degrees of freedom  df 1 = c – 1 (c = number of groups)  df 2 = n – c (n = sum of sample sizes from all populations) H 0 : μ 1 = μ 2 = … = μ c H 1 : At least two population means are different

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap Interpreting One-Way ANOVA F Statistic  The F statistic is the ratio of the among estimate of variance and the within estimate of variance  The ratio must always be positive  df 1 = c -1 will typically be small  df 2 = n - c will typically be large Decision Rule:  Reject H 0 if F > F U, otherwise do not reject H 0 0  =.05 Reject H 0 Do not reject H 0 FUFU

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap One-Way ANOVA F Test Example You want to see if three different golf clubs yield 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? Club 1 Club 2 Club

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap One-Way ANOVA Example: Scatter Diagram Distance Club 1 Club 2 Club Club 1 2 3

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap One-Way ANOVA Example Computations Club 1 Club 2 Club X 1 = X 2 = X 3 = X = n 1 = 5 n 2 = 5 n 3 = 5 n = 15 c = 3 SSA = 5 (249.2 – 227) (226 – 227) (205.8 – 227) 2 = SSW = (254 – 249.2) 2 + (263 – 249.2) 2 +…+ (204 – 205.8) 2 = MSA = / (3-1) = MSW = / (15-3) = 93.3

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap F = One-Way ANOVA Example Solution H 0 : μ 1 = μ 2 = μ 3 H 1 : μ j not all equal  = 0.05 df 1 = 2 df 2 = 12 Test Statistic: Decision: Conclusion: Reject H 0 at  = 0.05 There is evidence that at least one μ j differs from the rest 0  =.05 F U = 3.89 Reject H 0 Do not reject H 0 Critical Value: F U = 3.89

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap SUMMARY GroupsCountSumAverageVariance Club Club Club ANOVA Source of Variation SSdfMSFP-valueF crit Between Groups E Within Groups Total One-Way ANOVA Excel Output EXCEL: tools | data analysis | ANOVA: single factor

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap The Tukey-Kramer Procedure  Tells which population means are significantly different  e.g.: μ 1 = μ 2  μ 3  Done after rejection of equal means in ANOVA  Allows pair-wise comparisons  Compare absolute mean differences with critical range x μ 1 = μ 2 μ 3

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap Tukey-Kramer Critical Range where: Q U = Value from Studentized Range Distribution with c and n - c degrees of freedom for the desired level of  (see appendix E.8 table) MSW = Mean Square Within n j and n j’ = Sample sizes from groups j and j’

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap The Tukey-Kramer Procedure: Example 1. Compute absolute mean differences: Club 1 Club 2 Club Find the Q U value from the table in appendix E.8 with c = 3 and (n – c) = (15 – 3) = 12 degrees of freedom for the desired level of  (  = 0.05 used here):

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap The Tukey-Kramer Procedure: Example 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 Compute Critical Range: 4. Compare: (continued)

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap Chapter Summary  Compared two independent samples  Performed Z test for the difference in two means  Performed pooled variance t test for the difference in two means  Performed separate-variance t test for difference in two means  Formed confidence intervals for the difference between two means  Compared two related samples (paired samples)  Performed paired sample Z and t tests for the mean difference  Formed confidence intervals for the mean difference

Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap Chapter Summary  Compared two population proportions  Formed confidence intervals for the difference between two population proportions  Performed Z-test for two population proportions  Performed F tests for the difference between two population variances  Used the F table to find F critical values  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 (continued)