13 - 1 © 2000 Prentice-Hall, Inc. Statistics The Chi-Square Test & The Analysis of Contingency Tables Chapter 13.

Slides:



Advertisements
Similar presentations
1 2 Test for Independence 2 Test for Independence.
Advertisements

EPI809/Spring Chapter 10 Hypothesis testing: Categorical Data Analysis.
Statistics for Business and Economics
© 2011 Pearson Education, Inc
Statistics for Business and Economics Chapter 9 Categorical Data Analysis.
Categorical Data Analysis
 2 Test of Independence. Hypothesis Tests Categorical Data.
Chi Squared Tests. Introduction Two statistical techniques are presented. Both are used to analyze nominal data. –A goodness-of-fit test for a multinomial.
1 1 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.
Inference about the Difference Between the
Statistical Inference for Frequency Data Chapter 16.
© 2002 Prentice-Hall, Inc.Chap 10-1 Statistics for Managers using Microsoft Excel 3 rd Edition Chapter 10 Tests for Two or More Samples with Categorical.
Chapter 13: The Chi-Square Test
Discrete (Categorical) Data Analysis
1 1 Slide © 2009 Econ-2030-Applied Statistics-Dr. Tadesse. Chapter 11: Comparisons Involving Proportions and a Test of Independence n Inferences About.
© 2010 Pearson Prentice Hall. All rights reserved The Chi-Square Test of Independence.
12.The Chi-square Test and the Analysis of the Contingency Tables 12.1Contingency Table 12.2A Words of Caution about Chi-Square Test.
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 14 Goodness-of-Fit Tests and Categorical Data Analysis.
Cross-Tabulations.
1 1 Slide IS 310 – Business Statistics IS 310 Business Statistics CSU Long Beach.
© 2004 Prentice-Hall, Inc.Chap 12-1 Basic Business Statistics (9 th Edition) Chapter 12 Tests for Two or More Samples with Categorical Data.
Statistics for Managers Using Microsoft Excel
8 - 1 © 2003 Pearson Prentice Hall Chi-Square (  2 ) Test of Variance.
6 - 1 © 2000 Prentice-Hall, Inc. A First Course in Business Statistics Inferences Based on a Single Sample: Tests of Hypothesis Chapter 6.
Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap 11-1 Chapter 11 Chi-Square Tests Business Statistics, A First Course 4 th Edition.
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Chapter Inference on Categorical Data 12.
1 1 Slide IS 310 – Business Statistics IS 310 Business Statistics CSU Long Beach.
1 1 Slide © 2005 Thomson/South-Western Chapter 12 Tests of Goodness of Fit and Independence n Goodness of Fit Test: A Multinomial Population Goodness of.
Chapter 11: Applications of Chi-Square. Count or Frequency Data Many problems for which the data is categorized and the results shown by way of counts.
Chapter 11 Chi-Square Procedures 11.3 Chi-Square Test for Independence; Homogeneity of Proportions.
8 - 1 © 2000 Prentice-Hall, Inc. Statistics for Business and Economics Inferences Based on a Single Sample: Tests of Hypothesis Chapter 8.
Chapter 9: Non-parametric Tests n Parametric vs Non-parametric n Chi-Square –1 way –2 way.
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.
1 1 Slide © 2006 Thomson/South-Western Slides Prepared by JOHN S. LOUCKS St. Edward’s University Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
1 In this case, each element of a population is assigned to one and only one of several classes or categories. Chapter 11 – Test of Independence - Hypothesis.
1 1 Slide Chapter 11 Comparisons Involving Proportions n Inference about the Difference Between the Proportions of Two Populations Proportions of Two Populations.
Chi-Square Procedures Chi-Square Test for Goodness of Fit, Independence of Variables, and Homogeneity of Proportions.
Introduction Many experiments result in measurements that are qualitative or categorical rather than quantitative. Humans classified by ethnic origin Hair.
Other Chi-Square Tests
Slide 26-1 Copyright © 2004 Pearson Education, Inc.
Contingency Tables 1.Explain  2 Test of Independence 2.Measure of Association.
Business Statistics: A First Course, 5e © 2009 Prentice-Hall, Inc. Chap 11-1 Chapter 11 Chi-Square Tests Business Statistics: A First Course Fifth Edition.
Copyright © 2010 Pearson Education, Inc. Slide
Section 10.2 Independence. Section 10.2 Objectives Use a chi-square distribution to test whether two variables are independent Use a contingency table.
1 1 Slide © 2009 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
7 - 1 © 1998 Prentice-Hall, Inc. Chapter 7 Inferences Based on a Single Sample: Estimation with Confidence Intervals.
Chapter 13 Inference for Counts: Chi-Square Tests © 2011 Pearson Education, Inc. 1 Business Statistics: A First Course.
Chapter Outline Goodness of Fit test Test of Independence.
Chapter 11: Chi-Square  Chi-Square as a Statistical Test  Statistical Independence  Hypothesis Testing with Chi-Square The Assumptions Stating the Research.
1 Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright Addison Wesley Longman M ARIO F. T RIOLA E IGHTH E DITION.
Slide 1 Copyright © 2004 Pearson Education, Inc..
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.
Section 12.2: Tests for Homogeneity and Independence in a Two-Way Table.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 11 Analyzing the Association Between Categorical Variables Section 11.2 Testing Categorical.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
Chapter 14 – 1 Chi-Square Chi-Square as a Statistical Test Statistical Independence Hypothesis Testing with Chi-Square The Assumptions Stating the Research.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Chapter 12 Tests of Goodness of Fit and Independence n Goodness of Fit Test: A Multinomial.
Statistics 300: Elementary Statistics Section 11-3.
Chapter 11: Categorical Data n Chi-square goodness of fit test allows us to examine a single distribution of a categorical variable in a population. n.
Section 10.2 Objectives Use a contingency table to find expected frequencies Use a chi-square distribution to test whether two variables are independent.
Goodness-of-Fit and Contingency Tables Chapter 11.
Test of independence: Contingency Table
Chapter 11 – Test of Independence - Hypothesis Test for Proportions of a Multinomial Population In this case, each element of a population is assigned.
Chapter 12 Tests with Qualitative Data
Econ 3790: Business and Economics Statistics
Chapter 10 Analyzing the Association Between Categorical Variables
Chapter 13 – Applications of the Chi-Square Statistic
Inference on Categorical Data
Analyzing the Association Between Categorical Variables
Chapter Outline Goodness of Fit test Test of Independence.
Presentation transcript:

© 2000 Prentice-Hall, Inc. Statistics The Chi-Square Test & The Analysis of Contingency Tables Chapter 13

© 2000 Prentice-Hall, Inc. Learning Objectives 1.Explain  2 Test for Proportions 2.Explain  2 Test of Independence 3.Solve Hypothesis Testing Problems Two or More Population Proportions Two or More Population Proportions Independence Independence

© 2000 Prentice-Hall, Inc. Data Types

© 2000 Prentice-Hall, Inc. Qualitative Data 1.Qualitative Random Variables Yield Responses That Classify Example: Gender (Male, Female) Example: Gender (Male, Female) 2.Measurement Reflects # in Category 3.Nominal or Ordinal Scale 4.Examples Do You Own Savings Bonds? Do You Own Savings Bonds? Do You Live On-Campus or Off-Campus? Do You Live On-Campus or Off-Campus?

© 2000 Prentice-Hall, Inc. Hypothesis Tests Qualitative Data

© 2000 Prentice-Hall, Inc. Chi-Square (  2 ) Test for k Proportions

© 2000 Prentice-Hall, Inc. Hypothesis Tests Qualitative Data

© 2000 Prentice-Hall, Inc. Chi-Square (  2 ) Test for k Proportions 1.Tests Equality (=) of Proportions Only Example: p 1 =.2, p 2 =.3, p 3 =.5 Example: p 1 =.2, p 2 =.3, p 3 =.5 2.One Variable With Several Levels 3.Assumptions Multinomial Experiment Multinomial Experiment Large Sample Size Large Sample Size All Expected Counts  5 All Expected Counts  5 4.Uses One-Way Contingency Table

© 2000 Prentice-Hall, Inc. Multinomial Experiment 1.n Identical Trial 2.k Outcomes to Each Trial 3.Constant Outcome Probability, p k 4.Independent Trials 5.Random Variable is Count, n k 6.Example: Ask 100 People (n) Which of 3 Candidates (k) They Will Vote For

© 2000 Prentice-Hall, Inc. One-Way Contingency Table 1.Shows # Observations in k Independent Groups (Outcomes or Variable Levels)

© 2000 Prentice-Hall, Inc. One-Way Contingency Table 1.Shows # Observations in k Independent Groups (Outcomes or Variable Levels) Outcomes (k = 3) Number of responses

© 2000 Prentice-Hall, Inc.  2 Test for k Proportions Hypotheses & Statistic

© 2000 Prentice-Hall, Inc. 1.Hypotheses H 0 : p 1 = p 1,0, p 2 = p 2,0,..., p k = p k,0 H 0 : p 1 = p 1,0, p 2 = p 2,0,..., p k = p k,0 H a : Not all p i are equal H a : Not all p i are equal  2 Test for k Proportions Hypotheses & Statistic Hypothesized probability

© 2000 Prentice-Hall, Inc. 1.Hypotheses H 0 : p 1 = p 1,0, p 2 = p 2,0,..., p k = p k,0 H 0 : p 1 = p 1,0, p 2 = p 2,0,..., p k = p k,0 H a : Not all p i are equal H a : Not all p i are equal 2.Test Statistic  2 Test for k Proportions Hypotheses & Statistic Observed count Expected count Hypothesized probability

© 2000 Prentice-Hall, Inc. 1.Hypotheses H 0 : p 1 = p 1,0, p 2 = p 2,0,..., p k = p k,0 H 0 : p 1 = p 1,0, p 2 = p 2,0,..., p k = p k,0 H a : Not all p i are equal H a : Not all p i are equal 2.Test Statistic 3.Degrees of Freedom: k - 1  2 Test for k Proportions Hypotheses & Statistic Observed count Expected count Number of outcomes Hypothesized probability

© 2000 Prentice-Hall, Inc.  2 Test Basic Idea 1.Compares Observed Count to Expected Count If Null Hypothesis Is True 2.Closer Observed Count to Expected Count, the More Likely the H 0 Is True Measured by Squared Difference Relative to Expected Count Measured by Squared Difference Relative to Expected Count Reject Large Values Reject Large Values

© 2000 Prentice-Hall, Inc. Finding Critical Value Example What is the critical  2 value if k = 3, &  =.05?

© 2000 Prentice-Hall, Inc. Finding Critical Value Example What is the critical  2 value if k = 3, &  =.05?  2 Table (Portion)

© 2000 Prentice-Hall, Inc. Finding Critical Value Example What is the critical  2 value if k = 3, &  =.05?  2 Table (Portion) If n i = E(n i ),  2 = 0. Do not reject H 0

© 2000 Prentice-Hall, Inc. Finding Critical Value Example What is the critical  2 value if k = 3, &  =.05?  =.05  2 Table (Portion) If n i = E(n i ),  2 = 0. Do not reject H 0

© 2000 Prentice-Hall, Inc. Finding Critical Value Example What is the critical  2 value if k = 3, &  =.05?  =.05  2 Table (Portion) If n i = E(n i ),  2 = 0. Do not reject H 0

© 2000 Prentice-Hall, Inc. Finding Critical Value Example What is the critical  2 value if k = 3, &  =.05?  =.05  2 Table (Portion) If n i = E(n i ),  2 = 0. Do not reject H 0

© 2000 Prentice-Hall, Inc. Finding Critical Value Example What is the critical  2 value if k = 3, &  =.05?  =.05  2 Table (Portion) If n i = E(n i ),  2 = 0. Do not reject H 0

© 2000 Prentice-Hall, Inc. Finding Critical Value Example What is the critical  2 value if k = 3, &  =.05?  =.05  2 Table (Portion) df= k - 1 = 2 If n i = E(n i ),  2 = 0. Do not reject H 0

© 2000 Prentice-Hall, Inc. Finding Critical Value Example What is the critical  2 value if k = 3, &  =.05?  =.05  2 Table (Portion) df= k - 1 = 2 If n i = E(n i ),  2 = 0. Do not reject H 0

© 2000 Prentice-Hall, Inc. Finding Critical Value Example What is the critical  2 value if k = 3, &  =.05?  =.05  2 Table (Portion) df= k - 1 = 2 If n i = E(n i ),  2 = 0. Do not reject H 0

© 2000 Prentice-Hall, Inc. Finding Critical Value Example What is the critical  2 value if k = 3, &  =.05?  =.05  2 Table (Portion) df= k - 1 = 2 If n i = E(n i ),  2 = 0. Do not reject H 0

© 2000 Prentice-Hall, Inc. Finding Critical Value Example What is the critical  2 value if k = 3, &  =.05?  =.05  2 Table (Portion) df= k - 1 = 2 If n i = E(n i ),  2 = 0. Do not reject H 0

© 2000 Prentice-Hall, Inc. As personnel director, you want to test the perception of fairness of three methods of performance evaluation. Of 180 employees, 63 rated Method 1 as fair. 45 rated Method 2 as fair. 72 rated Method 3 as fair. At the.05 level, is there a difference in perceptions?  2 Test for k Proportions Example

© 2000 Prentice-Hall, Inc.  2 Test for k Proportions Solution

© 2000 Prentice-Hall, Inc.  2 Test for k Proportions Solution H 0 : H a :  = n 1 = n 2 = n 3 = Critical Value(s): Test Statistic: Decision:Conclusion:

© 2000 Prentice-Hall, Inc.  2 Test for k Proportions Solution H 0 : p 1 = p 2 = p 3 = 1/3 H a : At least 1 is different  = n 1 = n 2 = n 3 = Critical Value(s): Test Statistic: Decision:Conclusion:

© 2000 Prentice-Hall, Inc.  2 Test for k Proportions Solution H 0 : p 1 = p 2 = p 3 = 1/3 H a : At least 1 is different  =.05 n 1 = 63 n 2 = 45 n 3 = 72 Critical Value(s): Test Statistic: Decision:Conclusion:

© 2000 Prentice-Hall, Inc.  2 Test for k Proportions Solution H 0 : p 1 = p 2 = p 3 = 1/3 H a : At least 1 is different  =.05 n 1 = 63 n 2 = 45 n 3 = 72 Critical Value(s): Test Statistic: Decision:Conclusion:  =.05

© 2000 Prentice-Hall, Inc.  2 Test for k Proportions Solution

© 2000 Prentice-Hall, Inc.  2 Test for k Proportions Solution H 0 : p 1 = p 2 = p 3 = 1/3 H a : At least 1 is different  =.05 n 1 = 63 n 2 = 45 n 3 = 72 Critical Value(s): Test Statistic: Decision:Conclusion:  =.05  2 = 6.3

© 2000 Prentice-Hall, Inc.  2 Test for k Proportions Solution H 0 : p 1 = p 2 = p 3 = 1/3 H a : At least 1 is different  =.05 n 1 = 63 n 2 = 45 n 3 = 72 Critical Value(s): Test Statistic: Decision:Conclusion:  =.05  2 = 6.3 Reject at  =.05

© 2000 Prentice-Hall, Inc.  2 Test for k Proportions Solution H 0 : p 1 = p 2 = p 3 = 1/3 H a : At least 1 is different  =.05 n 1 = 63 n 2 = 45 n 3 = 72 Critical Value(s): Test Statistic: Decision:Conclusion: Reject at  =.05 There is evidence of a difference in proportions  =.05  2 = 6.3

© 2000 Prentice-Hall, Inc.  2 Test of Independence

© 2000 Prentice-Hall, Inc. Hypothesis Tests Qualitative Data

© 2000 Prentice-Hall, Inc.  2 Test of Independence 1.Shows If a Relationship Exists Between 2 Qualitative Variables One Sample Is Drawn One Sample Is Drawn Does Not Show Causality Does Not Show Causality 2.Assumptions Multinomial Experiment Multinomial Experiment All Expected Counts  5 All Expected Counts  5 3.Uses Two-Way Contingency Table

© 2000 Prentice-Hall, Inc.  2 Test of Independence Contingency Table 1.Shows # Observations From 1 Sample Jointly in 2 Qualitative Variables

© 2000 Prentice-Hall, Inc.  2 Test of Independence Contingency Table 1.Shows # Observations From 1 Sample Jointly in 2 Qualitative Variables Levels of variable 2 Levels of variable 1

© 2000 Prentice-Hall, Inc.  2 Test of Independence Hypotheses & Statistic 1.Hypotheses H 0 : Variables Are Independent H 0 : Variables Are Independent H a : Variables Are Related (Dependent) H a : Variables Are Related (Dependent)

© 2000 Prentice-Hall, Inc.  2 Test of Independence Hypotheses & Statistic 1.Hypotheses H 0 : Variables Are Independent H 0 : Variables Are Independent H a : Variables Are Related (Dependent) H a : Variables Are Related (Dependent) 2.Test Statistic Observed count Expected count

© 2000 Prentice-Hall, Inc.  2 Test of Independence Hypotheses & Statistic 1.Hypotheses H 0 : Variables Are Independent H 0 : Variables Are Independent H a : Variables Are Related (Dependent) H a : Variables Are Related (Dependent) 2.Test Statistic Degrees of Freedom: (r - 1)(c - 1) Rows Columns Observed count Expected count

© 2000 Prentice-Hall, Inc.  2 Test of Independence Expected Counts 1.Statistical Independence Means Joint Probability Equals Product of Marginal Probabilities 2.Compute Marginal Probabilities & Multiply for Joint Probability 3.Expected Count Is Sample Size Times Joint Probability

© 2000 Prentice-Hall, Inc. Expected Count Example

© 2000 Prentice-Hall, Inc. Expected Count Example

© 2000 Prentice-Hall, Inc. Expected Count Example Marginal probability =

© 2000 Prentice-Hall, Inc. Expected Count Example Marginal probability =

© 2000 Prentice-Hall, Inc. Expected Count Example Marginal probability = Joint probability =

© 2000 Prentice-Hall, Inc. Expected Count Example Marginal probability = Joint probability = Expected count = 160· = 54.6

© 2000 Prentice-Hall, Inc. Expected Count Calculation

© 2000 Prentice-Hall, Inc. Expected Count Calculation

© 2000 Prentice-Hall, Inc. Expected Count Calculation 112· · · ·78 160

© 2000 Prentice-Hall, Inc. You’re a marketing research analyst. You ask a random sample of 286 consumers if they purchase Diet Pepsi or Diet Coke. At the.05 level, is there evidence of a relationship?  2 Test of Independence Example

© 2000 Prentice-Hall, Inc.  2 Test of Independence Solution

© 2000 Prentice-Hall, Inc.  2 Test of Independence Solution H 0 : H a :  = df = Critical Value(s): Test Statistic: Decision:Conclusion:

© 2000 Prentice-Hall, Inc.  2 Test of Independence Solution H 0 : No Relationship H a : Relationship  = df = Critical Value(s): Test Statistic: Decision:Conclusion:

© 2000 Prentice-Hall, Inc.  2 Test of Independence Solution H 0 : No Relationship H a : Relationship  =.05 df = (2 - 1)(2 - 1) = 1 Critical Value(s): Test Statistic: Decision:Conclusion:

© 2000 Prentice-Hall, Inc.  2 Test of Independence Solution H 0 : No Relationship H a : Relationship  =.05 df = (2 - 1)(2 - 1) = 1 Critical Value(s): Test Statistic: Decision:Conclusion:  =.05

© 2000 Prentice-Hall, Inc. E(n ij )  5 in all cells 170· · · ·  2 Test of Independence Solution

© 2000 Prentice-Hall, Inc.  2 Test of Independence Solution

© 2000 Prentice-Hall, Inc.  2 Test of Independence Solution H 0 : No Relationship H a : Relationship  =.05 df = (2 - 1)(2 - 1) = 1 Critical Value(s): Test Statistic: Decision:Conclusion:  =.05  2 = 54.29

© 2000 Prentice-Hall, Inc.  2 Test of Independence Solution H 0 : No Relationship H a : Relationship  =.05 df = (2 - 1)(2 - 1) = 1 Critical Value(s): Test Statistic: Decision:Conclusion: Reject at  =.05  =.05  2 = 54.29

© 2000 Prentice-Hall, Inc.  2 Test of Independence Solution H 0 : No Relationship H a : Relationship  =.05 df = (2 - 1)(2 - 1) = 1 Critical Value(s): Test Statistic: Decision:Conclusion: Reject at  =.05 There is evidence of a relationship  =.05  2 = 54.29

© 2000 Prentice-Hall, Inc. OK. There is a statistically significant relationship between purchasing Diet Coke & Diet Pepsi. So what do you think the relationship is? Aren’t they competitors?  2 Test of Independence Thinking Challenge

© 2000 Prentice-Hall, Inc. You Re-Analyze the Data

© 2000 Prentice-Hall, Inc. You Re-Analyze the Data High Income

© 2000 Prentice-Hall, Inc. You Re-Analyze the Data Low Income High Income

© 2000 Prentice-Hall, Inc. True Relationships* Apparent relation Underlying causal relation Control or intervening variable (true cause) Diet Coke Diet Pepsi

© 2000 Prentice-Hall, Inc. Moral of the Story* Numbers don’t think - People do! © T/Maker Co.

© 2000 Prentice-Hall, Inc. Conclusion 1.Explained  2 Test for Proportions 2.Explained  2 Test of Independence 3.Solved Hypothesis Testing Problems Two or More Population Proportions Two or More Population Proportions Independence Independence

End of Chapter Any blank slides that follow are blank intentionally.