 2 test for independence Used with categorical, bivariate data from ONE sample Used to see if the two categorical variables are associated (dependent)

Slides:



Advertisements
Similar presentations
Chi-square test or c2 test
Advertisements

Chapter 11 Other Chi-Squared Tests
Chi-square test Chi-square test or  2 test. Chi-square test countsUsed to test the counts of categorical data ThreeThree types –Goodness of fit (univariate)
 2 test for independence Used with categorical, bivariate data from ONE sample Used to see if the two categorical variables are associated (dependent)
AP Statistics Tuesday, 15 April 2014 OBJECTIVE TSW (1) identify the conditions to use a chi-square test; (2) examine the chi-square test for independence;
Basic Statistics The Chi Square Test of Independence.
Chi-Squared Hypothesis Testing Using One-Way and Two-Way Frequency Tables of Categorical Variables.
Does Background Music Influence What Customers Buy?
© 2010 Pearson Prentice Hall. All rights reserved The Chi-Square Test of Homogeneity.
© 2010 Pearson Prentice Hall. All rights reserved The Chi-Square Test of Independence.
Chi-square test Chi-square test or  2 test. Chi-square test countsUsed to test the counts of categorical data ThreeThree types –Goodness of fit (univariate)
11-2 Goodness-of-Fit In this section, we consider sample data consisting of observed frequency counts arranged in a single row or column (called a one-way.
Presentation 12 Chi-Square test.
Chapter 13 Chi-Square Tests. The chi-square test for Goodness of Fit allows us to determine whether a specified population distribution seems valid. The.
1 Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. Analysis of Categorical Data Test of Independence.
The table shows a random sample of 100 hikers and the area of hiking preferred. Are hiking area preference and gender independent? Hiking Preference Area.
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 Pearson Education, Inc. All rights reserved Chapter 10 Inferring Population Means.
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Chapter Inference on Categorical Data 12.
Hypothesis Testing for Proportions
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: Applications of Chi-Square. Chapter Goals Investigate two tests: multinomial experiment, and the contingency table. Compare experimental results.
Chapter 11 Chi-Square Procedures 11.3 Chi-Square Test for Independence; Homogeneity of Proportions.
Chi-square test or c2 test
Chi-square test Chi-square test or  2 test Notes: Page Goodness of Fit 2.Independence 3.Homogeneity.
Chi-Square Procedures Chi-Square Test for Goodness of Fit, Independence of Variables, and Homogeneity of Proportions.
Other Chi-Square Tests
Section 10.3: Large-Sample Hypothesis Tests for a Population Proportion.
+ Chi Square Test Homogeneity or Independence( Association)
Chapter Outline Goodness of Fit test Test of Independence.
The table shows a random sample of 100 hikers and the area of hiking preferred. Are hiking area preference and gender independent? Hiking Preference Area.
+ Chapter 11 Inference for Distributions of Categorical Data 11.1Chi-Square Goodness-of-Fit Tests 11.2Inference for Relationships.
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.
Chapter 12 The Analysis of Categorical Data and Goodness of Fit Tests.
Learning from Categorical Data
Chi-square test Chi-square test or  2 test. Chi-square test countsUsed to test the counts of categorical data ThreeThree types –Goodness of fit (univariate)
Inference for Tables Chi-Square Test of Independence The chi-square(  2 ) test for independence/association test if the variables in a two-way table.
Chi-Squared Test of Homogeneity Are different populations the same across some characteristic?
The χ 2 (Chi-Squared) Test. Crazy Dice? You roll a die 60 times and get: 3 ones, 6 twos, 19 threes, 22 fours, 6 fives, and 4 sixes  Is this a fair die?
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.
AP Statistics Tuesday, 05 April 2016 OBJECTIVE TSW (1) identify the conditions to use a chi-square test; (2) examine the chi- square test for independence;
Inference for Tables Chi-Square Tests Chi-Square Test Basics Formula for test statistic: Conditions: Data is from a random sample/event. All individual.
Copyright © Cengage Learning. All rights reserved. 14 Goodness-of-Fit Tests and Categorical Data Analysis.
Comparing Observed Distributions A test comparing the distribution of counts for two or more groups on the same categorical variable is called a chi-square.
Chapter 12 Lesson 12.2b Comparing Two Populations or Treatments 12.2: Test for Homogeneity and Independence in a Two-way Table.
 Check the Random, Large Sample Size and Independent conditions before performing a chi-square test  Use a chi-square test for homogeneity to determine.
Chi Square Test of Homogeneity. Are the different types of M&M’s distributed the same across the different colors? PlainPeanutPeanut Butter Crispy Brown7447.
Comparing Counts Chi Square Tests Independence.
Chi-square test or χ2 test
Other Chi-Square Tests
Presentation 12 Chi-Square test.
Chi-square test or c2 test
Hypothesis Testing for Proportions
Chi-squared test or c2 test
Chi-square test or c2 test
Chi-square test or c2 test
Chi-square test or c2 test
Chi-square test or c2 test
Different Scales, Different Measures of Association
Chapter 11: Inference for Distributions of Categorical Data
Chapter 10 Analyzing the Association Between Categorical Variables
Contingency Tables: Independence and Homogeneity
Inference for Relationships
Chi-square test or c2 test
Inference on Categorical Data
Analyzing the Association Between Categorical Variables
Chi-square test or c2 test
Presentation transcript:

 2 test for independence Used with categorical, bivariate data from ONE sample Used to see if the two categorical variables are associated (dependent) or not associated (independent)

Assumptions & formula remain the same!

Hypotheses – written in words H 0 : two variables are independent H a : two variables are dependent Be sure to write in context!

Example 5: A beef distributor wishes to determine whether there is a relationship between geographic region and cut of meat preferred. If there is no relationship, we will say that beef preference is independent of geographic region. Suppose that, in a random sample of 500 customers, 300 are from the North and 200 from the South. Also, 150 prefer cut A, 275 prefer cut B, and 75 prefer cut C.

If beef preference is independent of geographic region, how would we expect this table to be filled in? NorthSouthTotal Cut A150 Cut B275 Cut C75 Total

Expected Counts Assuming H 0 is true,

Degrees of freedom Or cover up one row & one column & count the number of cells remaining!

Now suppose that in the actual sample of 500 consumers the observed numbers were as follows: Is there sufficient evidence to suggest that geographic regions and beef preference are not independent? (Is there a difference between the expected and observed counts?) NorthSouth Cut A10050 Cut B Cut C3243

Assumptions: Have a random sample of people All expected counts are greater than 5. H 0 : geographic region and beef preference are independent H a : geographic region and beef preference are dependent P-value =.0021df = 2  =.05 Since p-value < , I reject H 0. There is sufficient evidence to suggest that geographic region and beef preference are dependent. Expected Counts: N S A90 60 B C45 30

Example 6 : Suppose that residents of a particular city can watch national news on affiliates of 4 different networks: ABC, CBS, PBS and NBC. A researcher wants to know whether there is any relationship between political philosophies (liberal, moderate or conservative) and the network they watch for news. A random sample of 300 viewers was selected, and the results are given below: SURVEY RESULTS ABCCBSNBCPBS Liberal Moderate Conservative

Each observation consists of. We would like to test whether there is. 1. State null and alternate hypothesis

ASSUMPTIONS:

EXPECTED COUNTS ABCCBSNBCPBS Liberal Moderate Conservative 2. Calculate statistics: Expected counts: Degrees of freedom: Use the graphing calculator to calculate P-value.

3. State conclusion.

 2 test for homogeneity single categorical two (or more) independent samplesUsed with a single categorical variable from two (or more) independent samples Used to see if the two populations are the same (homogeneous)

Assumptions & formula remain the same! Expected counts & df are found the same way as test for independence. Only Only change is the hypotheses!

Hypotheses – written in words H 0 : the two (or more) distributions are the same H a : the distributions are different Be sure to write in context!

Separate random samples of 124 consumers and 101 dentists were asked to respond to the following statement: “I favor the use of advertising by dentists to attract new patients.” Possible responses were strongly agree, agree, neutral, disagree, and strongly disagree. The authors were interested in determining whether the two groups – consumers and dentists – differed in their attitudes towards advertising. SURVEY RESPONSES Strongly Agree AgreeNeutralDisagree Strongly Disagree Dentists Consumers

Assumptions: Have 2 random samples. All expected counts are greater than 5. H 0 : the true proportions are the same for both groups. H a : the true proportions differ in at least one category P-value =.000df = 4  =.05 Since p-value < , I reject H 0. There is sufficient evidence to conclude that the true proportion for the 2 groups differ. Expected Counts Strongly Agree AgreeNeutralDisagree Strongly Disagree Dentists Consumers

From pollingreport.com: CNN/Opinion Research Corporation Poll. June 16, N=500 adults nationwide. MoE ± 4. "How do you feel about increased drilling for oil and natural gas offshore in U.S. waters? Do you strongly favor, mildly favor, mildly oppose or strongly oppose increased offshore drilling?" Strongly Favor Mildly Favor Mildly Oppose Strongly Oppose June, July,