Basic Statistics The Chi Square Test of Independence.

Slides:



Advertisements
Similar presentations
Chapter 11 Other Chi-Squared Tests
Advertisements

CHI-SQUARE(X2) DISTRIBUTION
Chi Square Example A researcher wants to determine if there is a relationship between gender and the type of training received. The gender question is.
Contingency Tables (cross tabs)  Generally used when variables are nominal and/or ordinal Even here, should have a limited number of variable attributes.
The Chi-Square Test for Association
Hypothesis Testing IV Chi Square.
Chapter 13: The Chi-Square Test
Chapter 11 Contingency Table Analysis. Nonparametric Systems Another method of examining the relationship between independent (X) and dependant (Y) variables.
PSY 340 Statistics for the Social Sciences Chi-Squared Test of Independence Statistics for the Social Sciences Psychology 340 Spring 2010.
Chi-square Test of Independence
CHI-SQUARE GOODNESS OF FIT TEST u A nonparametric statistic u Nonparametric: u does not test a hypothesis about a population value (parameter) u requires.
Crosstabs and Chi Squares Computer Applications in Psychology.
Diversity and Distribution of Species
Hypothesis Testing IV (Chi Square)
Cross Tabulation and Chi-Square Testing. Cross-Tabulation While a frequency distribution describes one variable at a time, a cross-tabulation describes.
1 Psych 5500/6500 Chi-Square (Part Two) Test for Association Fall, 2008.
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.
Categorical Data  2 -test Pray for a quick and painless death.
Chi-square (χ 2 ) Fenster Chi-Square Chi-Square χ 2 Chi-Square χ 2 Tests of Statistical Significance for Nominal Level Data (Note: can also be used for.
Chapter 9: Non-parametric Tests n Parametric vs Non-parametric n Chi-Square –1 way –2 way.
Copyright © 2012 by Nelson Education Limited. Chapter 10 Hypothesis Testing IV: Chi Square 10-1.
1 Chi-Square Heibatollah Baghi, and Mastee Badii.
Copyright © 2009 Pearson Education, Inc LEARNING GOAL Interpret and carry out hypothesis tests for independence of variables with data organized.
Chapter 20 For Explaining Psychological Statistics, 4th ed. by B. Cohen 1 These tests can be used when all of the data from a study has been measured on.
Slide 26-1 Copyright © 2004 Pearson Education, Inc.
HYPOTHESIS TESTING BETWEEN TWO OR MORE CATEGORICAL VARIABLES The Chi-Square Distribution and Test for Independence.
Other Chi-Square Tests
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.
Chap 11-1 Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall Chapter 11 Chi-Square Tests Business Statistics: A First Course 6 th Edition.
© Copyright McGraw-Hill CHAPTER 11 Other Chi-Square Tests.
Copyright © Cengage Learning. All rights reserved. Chi-Square and F Distributions 10.
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.
Chi-Square Analyses.
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.
ANOVA Knowledge Assessment 1. In what situation should you use ANOVA (the F stat) instead of doing a t test? 2. What information does the F statistic give.
Chapter 22 Inferences From Nominal Data: the Χ 2 Statistic.
Section 10.2 Objectives Use a contingency table to find expected frequencies Use a chi-square distribution to test whether two variables are independent.
Copyright © 2009 Pearson Education, Inc LEARNING GOAL Interpret and carry out hypothesis tests for independence of variables with data organized.
Basic Statistics The Chi Square Test of Independence.
Chi-square test.
Other Chi-Square Tests
Chi-Square (Association between categorical variables)
Chapter 12 Chi-Square Tests and Nonparametric Tests
Chi-Square hypothesis testing
Chapter 9: Non-parametric Tests
Chapter 11 Chi-Square Tests.
Hypothesis Testing Review
Active Learning Lecture Slides
Qualitative data – tests of association
The Chi-Square Distribution and Test for Independence
Different Scales, Different Measures of Association
Consider this table: The Χ2 Test of Independence
Reasoning in Psychology Using Statistics
Chapter 11: Inference for Distributions of Categorical Data
Chapter 10 Analyzing the Association Between Categorical Variables
Contingency Tables (cross tabs)
Contingency Tables: Independence and Homogeneity
Overview and Chi-Square
Chapter 11 Chi-Square Tests.
Analyzing the Association Between Categorical Variables
Non-Parametric Statistics Part I: Chi-Square
Parametric versus Nonparametric (Chi-square)
Copyright © Cengage Learning. All rights reserved.
Inference for Two Way Tables
Chapter 11 Chi-Square Tests.
Quadrat sampling & the Chi-squared test
Presentation transcript:

Basic Statistics The Chi Square Test of Independence

Chi Square Test of Independence A measure of association similar to the correlations we studied earlier. Pearson and Spearman are not applicable if the data are at the nominal level of measurement. Chi Square is used for nominal data placed in a contingency table. A contingency table is a two-way table showing the contingency between two variables where the variables have been classified into mutually exclusive categories and the cell entries are frequencies.

An Example Suppose that the state legislature is considering a bill to lower the legal drinking age to 18. A political scientist is interested in whether there is a relationship between party affiliation and attitude toward the bill. A random sample of 150 registered republicans and 200 registered democrats are asked their opinion about the proposed bill. The data are presented on the next slide.

Political Party and Legal Drinking Age Bill Attitude Toward Bill For Undecided Against Total Republican 38 17 95 150 Democrat 92 18 90 200 130 35 185 350 The bold numbers are the observed frequencies (fo)

Determining the Expected Frequencies (fe) First, add the columns and the rows to get the totals as shown in the previous slide. To obtain the expected frequency within a particular cell, perform the following operation: Multiply the row total and the column total for the cell in question and then divide that product by the Total number of all respondents.

Calculating the Expected Value for a Particular Cell Attitude Toward Bill For Undecided Against Total Republican 38 17 95 150 Democrat 92 18 90 200 130 35 185 350 55.7 1. 130*150 = 19500 2. 19500/350 = 55.7

Political Party and Attitude toward Bill For Undecided Against Total Republican 38 55.7 17 15 95 79.3 150 Democrat 92 74.3 18 20 90 105.7 200 130 35 185 350 Numbers in Black are obtained (fo), Numbers in Purple are expected (fe)

The Null Hypothesis and the Expected Values The Null Hypothesis under investigation in the Chi Square Test of Independence is that the two variables are independent (not related). In this example, the Null Hypothesis is that there is NO relationship between political party and attitude toward lowering the legal drinking age.

Understanding the Expected Values If the Null is true, then the percentage of those who favor lowering the drinking age would be equal for each political party. Notice that the expected values for each opinion are proportional for the number of persons surveyed in each party.

Political Party and Attitude toward Bill For Undecided Against Total Republican 38 55.7 17 15 95 79.3 150 42.8% Democrat 92 74.3 18 20 90 105.7 200 57.2% 130 35 185 350 The numbers in Green are the percentage of the total for each Party.

The Expected Values The expected values for each cell are also equal to the percentage of each party for the column total. For example, Republicans were 42.8% of the total persons surveyed If 130 people were in favor of the bill, then 42.8% of them should be Republican (55.7), if there is no relationship between the variables

Calculating the Chi Square Statistic The Chi Square statistic is obtained via this formula The Chi Square statistic is (1) the sum over all cells of (2) the difference between the obtained value and the expected value SQUARED, which is then (3) divided by the expected frequency. The numbers in Purple on the next slide illustrate this calculation

Calculating the Chi Square Statistic =5.62 =0.27 =3.11 =4.22 =0.20 =2.33 X2 = 5.62 + 0.27 + 3.11 + 4.22 + 0.20 + 2.33 = 15.75

Interpreting the Results The calculated value for the chi square statistic is compared to the critical value found in Table H, page 544. Note: The distribution of the Chi Square Statistic is not normal and the critical values are only on one side. If the obtained values are close to the expected value, then the chi square statistic will approach 0. As the obtained value is different from the expected, the value of chi square will increase. This is reflected in the values found in Table H. The Degrees of Freedom for the Chi Square Test of Independence is the product of the number of rows minus 1 times the number of columns minus 1

Interpreting Our Results In our study, we had two rows (Republicans and Democrats) and three columns (For, Undecided, Against). Therefore, the degrees of freedom for our study is (2-1)(3-1) = 1(2) = 2. Using an a of .05, the critical value from Table H would be 5.991 Since our calculated chi square is 15.75, we conclude that there IS a relationship between political party and opinion on lowering the drinking age, thereby rejecting the Null Hypothesis