Lesson #29 2  2 Contingency Tables. In general, contingency tables are used to present data that has been “cross-classified” by two categorical variables.

Slides:



Advertisements
Similar presentations
CHI-SQUARE(X2) DISTRIBUTION
Advertisements

 2 Test of Independence. Hypothesis Tests Categorical Data.
Inference about the Difference Between the
© 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.
© 2010 Pearson Prentice Hall. All rights reserved The Chi-Square Test of Independence.
CHI-SQUARE TEST OF INDEPENDENCE
Ch. 28 Chi-square test Used when the data are frequencies (counts) or proportions for 2 or more groups. Example 1.
Chi-square Test of Independence
Less on Third Tee Moron Con, Tin Gents See Tables.
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 14 Goodness-of-Fit Tests and Categorical Data Analysis.
Chapter 26: Comparing Counts. To analyze categorical data, we construct two-way tables and examine the counts of percents of the explanatory and response.
11-3 Contingency Tables In this section we consider contingency tables (or two-way frequency tables), which include frequency counts for categorical data.
Cross-Tabulations.
1 1 Slide © 2014 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.
Analyzing Data: Bivariate Relationships Chapter 7.
Presentation 12 Chi-Square test.
The Chi-Square Test Used when both outcome and exposure variables are binary (dichotomous) or even multichotomous Allows the researcher to calculate a.
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 Chi-Square Procedures 11.3 Chi-Square Test for Independence; Homogeneity of Proportions.
Chapter 9: Non-parametric Tests n Parametric vs Non-parametric n Chi-Square –1 way –2 way.
Chi-Square Procedures Chi-Square Test for Goodness of Fit, Independence of Variables, and Homogeneity of Proportions.
Review of the Basic Logic of NHST Significance tests are used to accept or reject the null hypothesis. This is done by studying the sampling distribution.
FPP 28 Chi-square test. More types of inference for nominal variables Nominal data is categorical with more than two categories Compare observed frequencies.
Chapter 11 Chi- Square Test for Homogeneity Target Goal: I can use a chi-square test to compare 3 or more proportions. I can use a chi-square test for.
Chi Square Classifying yourself as studious or not. YesNoTotal Are they significantly different? YesNoTotal Read ahead Yes.
CHAPTER INTRODUCTORY CHI-SQUARE TEST Objectives:- Concerning with the methods of analyzing the categorical data In chi-square test, there are 2 methods.
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.
July, 2000Guang Jin Statistics in Applied Science and Technology Chapter 12. The Chi-Square Test.
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 11: Additional Topics Using Inferences 11.1 – Chi-Square: Tests of Independence 11.2 – Chi-Square: Goodness of Fit 11.3 – Testing a Single Variance.
CHAPTER INTRODUCTORY CHI-SQUARE TEST Objectives:- Concerning with the methods of analyzing the categorical data In chi-square test, there are 3 methods.
Lesson 12 - R Chapter 12 Review. Objectives Summarize the chapter Define the vocabulary used Complete all objectives Successfully answer any of the review.
Bullied as a child? Are you tall or short? 6’ 4” 5’ 10” 4’ 2’ 4”
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.
Contingency table analysis
Chapter 12 Chi-Square Tests and Nonparametric Tests.
Chapter 18 Chi-Square Tests.  2 Distribution Let x 1, x 2,.. x n be a random sample from a normal distribution with  and  2, and let s 2 be the sample.
Statistics 300: Elementary Statistics Section 11-3.
Copyright © Cengage Learning. All rights reserved. 14 Goodness-of-Fit Tests and Categorical Data Analysis.
 Test for Qualitative variables Chi Square Test Dr. Asif Rehman.
Chi Square Test of Homogeneity. Are the different types of M&M’s distributed the same across the different colors? PlainPeanutPeanut Butter Crispy Brown7447.
CHI-SQUARE(X2) DISTRIBUTION
Chapter 11 – Test of Independence - Hypothesis Test for Proportions of a Multinomial Population In this case, each element of a population is assigned.
Chapter 9: Non-parametric Tests
Chapter 11 Chi-Square Tests.
Chapter 12 Tests with Qualitative Data
John Loucks St. Edward’s University . SLIDES . BY.
Goodness of Fit Tests The goal of χ2 goodness of fit tests is to test is the data comes from a certain distribution. There are various situations to which.
Statistics for Business and Economics (13e)
Consider this table: The Χ2 Test of Independence
Testing for Independence
Day 67 Agenda: Submit THQ #6 Answers.
Econ 3790: Business and Economics Statistics
Relations in Categorical Data
Chapter 10 Analyzing the Association Between Categorical Variables
Chapter 11 Chi-Square Tests.
Inference on Categorical Data
Analyzing the Association Between Categorical Variables
Chi-Square Hypothesis Testing PART 3:
Chapter 26 Comparing Counts.
Inference for Two Way Tables
SENIORS: Final transcript request must be made by Friday.
Chapter Outline Goodness of Fit test Test of Independence.
Chapter 11 Chi-Square Tests.
Quadrat sampling & the Chi-squared test
Hypothesis Testing - Chi Square
Quadrat sampling & the Chi-squared test
Presentation transcript:

Lesson #29 2  2 Contingency Tables

In general, contingency tables are used to present data that has been “cross-classified” by two categorical variables. Begin with a 2  2 table, where both variables are dichotomous.

ab cd a+cb+d a+b c+d Variable 2 Variable 1 n = a+b+c+d In the table, we have observed frequencies (a, b, c, and d). These can also be denoted by: O i i = 1, 2, 3, 4

Arthritis Exercise High Low Yes No OR = (35)(115) (91)(82) = 0.54

We can also test for an association between the two independent variables. The null hypothesis is: This is called a test of independence, or a test of homogeneity. - no association between the two variables - the two variables are independent - the distributions of one variable are homogeneous over levels of the other or

To perform the test, we first need to calculate expected frequencies, E i, in each cell. Recall that if two events are independent, P(A and B) = P(A)  P(B) This indicates how many observations we expect to see, if the null hypothesis is true.

P(an observation being in any cell) = P(being in that row and being in that column) = P(being in that row)  P(being in that column) Then, “under H 0 ” Thus, under H 0, we can estimate this by

To get the expected number in any cell, multiply the probability of being in that cell by n. This is done for all 4 cells in the 2  2 table

The test statistic is then: OiOi - E i ( ) 2 EiEi ~ under H 0 Reject H 0 if

High Low YesNo Observed Expected High Low YesNo E1E1 = (126)(117) 323 =

Reject H 0 if = = 6.38 Reject H 0 Arthritis is less likely among those who exercised

For a 2  2 table, there is a “shortcut” method: ab cd a+cb+d a+b c+d Variable 2 Variable 1 n = a+b+c+d

Arthritis Exercise High Low Yes No = 6.38