Data Analysis for Two-Way Tables. The Basics Two-way table of counts Organizes data about 2 categorical variables Row variables run across the table Column.

Slides:



Advertisements
Similar presentations
Data Analysis for Two-Way Tables
Advertisements

CHI-SQUARE(X2) DISTRIBUTION
Chapter 11 Inference for Distributions of Categorical Data
Hypothesis Testing IV Chi Square.
Statistical Inference for Frequency Data Chapter 16.
Chapter 13: The Chi-Square Test
Chapter 13: Inference for Distributions of Categorical Data
Chapter 26: Comparing Counts
CHI-SQUARE TEST OF INDEPENDENCE
Statistics 303 Chapter 9 Two-Way Tables. Relationships Between Two Categorical Variables Relationships between two categorical variables –Depending on.
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 14 Goodness-of-Fit Tests and Categorical Data Analysis.
Aaker, Kumar, Day Seventh Edition Instructor’s Presentation Slides
Chapter 26: Comparing Counts. To analyze categorical data, we construct two-way tables and examine the counts of percents of the explanatory and response.
1 Chapter 20 Two Categorical Variables: The 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.
Aaker, Kumar, Day Ninth Edition Instructor’s Presentation Slides
AP STATISTICS Section 4.2 Relationships between Categorical Variables.
1 Desipramine is an antidepressant affecting the brain chemicals that may become unbalanced and cause depression. It was tested for recovery from cocaine.
For testing significance of patterns in qualitative data Test statistic is based on counts that represent the number of items that fall in each category.
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.
Chapter 26 Chi-Square Testing
Probability Unit 4 - Statistics What is probability? Proportion of times any outcome of any random phenomenon would occur in a very long series of repetitions.
Analyze Improve Define Measure Control L EAN S IX S IGMA L EAN S IX S IGMA Chi-Square Analysis Chi-Square Analysis Chi-Square Training for Attribute Data.
Analysis of Two-Way tables Ch 9
Nonparametric Tests: Chi Square   Lesson 16. Parametric vs. Nonparametric Tests n Parametric hypothesis test about population parameter (  or  2.
+ Chi Square Test Homogeneity or Independence( Association)
BPS - 5th Ed. Chapter 221 Two Categorical Variables: The Chi-Square Test.
Essential Statistics Chapter 161 Review Part III_A_Chi Z-procedure Vs t-procedure.
CHI SQUARE TESTS.
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.
Two-way tables BPS chapter 6 © 2006 W. H. Freeman and Company.
Analysis of two-way tables - Data analysis for two-way tables IPS chapter 2.6 © 2006 W.H. Freeman and Company.
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.
AP STATISTICS LESSON (DAY 1) INFERENCE FOR TWO – WAY TABLES.
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.
Lecture PowerPoint Slides Basic Practice of Statistics 7 th Edition.
1 Chi-square Test Dr. T. T. Kachwala. Using the Chi-Square Test 2 The following are the two Applications: 1. Chi square as a test of Independence 2.Chi.
Chapter 13- Inference For Tables: Chi-square Procedures Section Test for goodness of fit Section Inference for Two-Way tables Presented By:
Lecture PowerPoint Slides Basic Practice of Statistics 7 th Edition.
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.
BPS - 5th Ed. Chapter 221 Two Categorical Variables: The Chi-Square Test.
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.
Class Seven Turn In: Chapter 18: 32, 34, 36 Chapter 19: 26, 34, 44 Quiz 3 For Class Eight: Chapter 20: 18, 20, 24 Chapter 22: 34, 36 Read Chapters 23 &
The Chi-Square Distribution  Chi-square tests for ….. goodness of fit, and independence 1.
Section 10.2 Objectives Use a contingency table to find expected frequencies Use a chi-square distribution to test whether two variables are independent.
Chi Square Test of Homogeneity. Are the different types of M&M’s distributed the same across the different colors? PlainPeanutPeanut Butter Crispy Brown7447.
Second factor: education
Chapter 9: Non-parametric Tests
Chapter 4. Inference about Process Quality
Active Learning Lecture Slides
Community &family medicine
Analysis of two-way tables - Data analysis for two-way tables
Second factor: education
Data Analysis for Two-Way Tables
Chi Square Two-way Tables
AP Stats Check In Where we’ve been… Chapter 7…Chapter 8…
Chapter 11: Inference for Distributions of Categorical Data
Second factor: education
Chapter 10 Analyzing the Association Between Categorical Variables
Analyzing the Association Between Categorical Variables
Section 4-3 Relations in Categorical Data
Inference for Two Way Tables
Chapter 18: The Chi-Square Statistic
Relations in Categorical Data
Presentation transcript:

Data Analysis for Two-Way Tables

The Basics Two-way table of counts Organizes data about 2 categorical variables Row variables run across the table Column variables run down the table Row and Column totals provide the marginal distributions of the two variables SEPERATELY

To describe the association between the row and the column variables, use conditional distributions. To find the conditional distribution of the row variable for one specific value of the column variable, look only at that one column in the table. Find each entry in the column as a % of the total. Very useful if the column variable is the explanatory or independent variable.

A three-way table reports the frequencies of each combination of levels of three categorical variables. A two-way table can be obtained by adding the corresponding entries in these tables. This is known as aggregating the data.

Bar graphs can also be used to describe an association between 2 categorical variables. This can be produced in Minitab, under graph, Chart

Simpson’s Paradox An association or comparison that holds for all of several groups can reverse direction when the data are combine to form a single group. Fact that observed associations can be misleading when there are lurking variables.

Inference for Two Way Tables The null hypothesis, Ho, of interest in a two-way table is that there is no association between the row variable and the column variable. The alternative hypothesis, Ha, is that there is an association. For an row (r) X column (c) table Ho states that the c distributions of the row variable are identical. Ha states that the distributions are not all the same.

Expected Cell Counts To test the null hypothesis in r x c tables, we compare the observed cell counts with the expected cell counts calculated under the assumption that the null is TRUE. The test statistic becomes the numerical summary. Expected cell count =

Chi-Square Statistic The chi-square statistic is a measure of how much the observed cell counts in a 2-way table diverge from the expected cell counts. where “observed” is the sample count

The Chi-square Distribution Again, it is an approximation related to the normal approximation for the binomial distribution Like the t distributions, the Chi-square distributions form a family described by a single parameter, degrees of freedom. df = (r – 1) X (c – 1) See the density curve on page 625. Table F provides upper critical values.

The Chi-square test and the z test A comparison of the proportions of “successes” in two populations leads to a 2 X 2 table. We can compare two populations proportions either by the chi-square test or by the 2-sample z test (proportion test) These test will always give the exact same result, because the chi-square is equal to the squares of the corresponding N(0,1) critical values. The advantage of the z test is that it allows us have either a 1 or 2-sided test