Chapter 26: Comparing Counts. To analyze categorical data, we construct two-way tables and examine the counts of percents of the explanatory and response.

Slides:



Advertisements
Similar presentations
CHAPTER 23: Two Categorical Variables: The Chi-Square Test
Advertisements

Chi Square Procedures Chapter 11.
Chapter 11 Inference for Distributions of Categorical Data
Chapter 13: The Chi-Square Test
Chapter 13: Inference for Distributions of Categorical Data
Chapter 26: Comparing Counts
CHAPTER 11 Inference for Distributions of Categorical Data
CHAPTER 11 Inference for Distributions of Categorical Data
Introduction to Chi-Square Procedures March 11, 2010.
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.
Chapter 13: Inference for Tables – Chi-Square Procedures
Goodness-of-Fit Tests and Categorical Data Analysis
AP STATISTICS LESSON 13 – 1 (DAY 1) CHI-SQUARE PROCEDURES TEST FOR GOODNESS OF FIT.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 26 Comparing Counts.
13.1 Goodness of Fit Test AP Statistics. Chi-Square Distributions The chi-square distributions are a family of distributions that take on only positive.
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: Inference for Distributions of Categorical Data.
Chapter 11: Inference for Distributions of Categorical Data
Chapter 26 Chi-Square Testing
Chapter 11 Inference for Tables: Chi-Square Procedures 11.1 Target Goal:I can compute expected counts, conditional distributions, and contributions to.
The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers CHAPTER 11 Inference for Distributions of Categorical.
Chapter 11: Inference for Distributions of Categorical Data Section 11.1 Chi-Square Goodness-of-Fit Tests.
CHAPTER 11 SECTION 2 Inference for Relationships.
Slide 26-1 Copyright © 2004 Pearson Education, Inc.
+ Chi Square Test Homogeneity or Independence( Association)
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.
Essential Statistics Chapter 161 Review Part III_A_Chi Z-procedure Vs t-procedure.
Chapter 14: Chi-Square Procedures – Test for Goodness of Fit.
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.
Warm up On slide.
Chapter 13 Inference for Tables: Chi-Square Procedures AP Statistics 13 – Chi-Square Tests.
Copyright © 2010 Pearson Education, Inc. Slide
Inference for Distributions of Categorical Variables (C26 BVD)
© Copyright McGraw-Hill CHAPTER 11 Other Chi-Square Tests.
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.
AGENDA:. AP STAT Ch. 14.: X 2 Tests Goodness of Fit Homogeniety Independence EQ: What are expected values and how are they used to calculate Chi-Square?
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.
Chapter 13- Inference For Tables: Chi-square Procedures Section Test for goodness of fit Section Inference for Two-Way tables Presented By:
The Practice of Statistics Third Edition Chapter 14: Inference for Distributions of Categorical Variables: Chi-Square Procedures Copyright © 2008 by W.
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.
Comparing Counts Chapter 26. Goodness-of-Fit A test of whether the distribution of counts in one categorical variable matches the distribution predicted.
+ Section 11.1 Chi-Square Goodness-of-Fit Tests. + Introduction In the previous chapter, we discussed inference procedures for comparing the proportion.
The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers CHAPTER 11 Inference for Distributions of Categorical.
Statistics 300: Elementary Statistics Section 11-3.
11.1 Chi-Square Tests for Goodness of Fit Objectives SWBAT: STATE appropriate hypotheses and COMPUTE expected counts for a chi- square test for goodness.
Statistics 26 Comparing Counts. Goodness-of-Fit A test of whether the distribution of counts in one categorical variable matches the distribution predicted.
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 &
Goodness-of-Fit and Contingency Tables Chapter 11.
AP Stats Check In Where we’ve been… Chapter 7…Chapter 8… Where we are going… Significance Tests!! –Ch 9 Tests about a population proportion –Ch 9Tests.
Chi Square Test of Homogeneity. Are the different types of M&M’s distributed the same across the different colors? PlainPeanutPeanut Butter Crispy Brown7447.
CHAPTER 11 Inference for Distributions of Categorical Data
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
CHAPTER 11 Inference for Distributions of Categorical Data
Chapter 10 Analyzing the Association Between Categorical Variables
Lesson 11 - R Chapter 11 Review:
Analyzing the Association Between Categorical Variables
CHAPTER 11 Inference for Distributions of Categorical Data
Chapter 26 Comparing Counts.
CHAPTER 11 Inference for Distributions of Categorical Data
CHAPTER 11 Inference for Distributions of Categorical Data
Inference for Two Way Tables
Chapter 14.1 Goodness of Fit Test.
CHAPTER 11 Inference for Distributions of Categorical Data
Chapter 13: Chi-Square Procedures
Presentation transcript:

Chapter 26: Comparing Counts

To analyze categorical data, we construct two-way tables and examine the counts of percents of the explanatory and response variables. We want to compare the observed counts to the expected counts.

Proportion of M&M’s Colors ColorObserved Count (O) Expected Count (E) Blue Brown Green Orange Red Yellow

Hypotheses The null hypothesis is that there is no difference between the observed and expected counts. The alternative hypothesis is that there is a difference between the observed and expected counts.

is called the chi squared test statistic It measures how well the observed counts fit the expected counts, assuming that the null hypothesis is true.

The distribution of the chi-square statistic is called the chi-square distribution, χ 2. This distribution is a density curve. The total area under the curve is one. The curve begins at zero on the horizontal axis and is skewed right. As the degrees of freedom increases, the shape of the curve becomes more symmetric.

Using the M&M’s chi square statistic, find the probability of obtaining a χ 2 value at least this extreme assuming the null hypothesis is true. This is known as the “Goodness of Fit Test.” Graph the chi square distribution with (k-1) = 5 degrees of freedom:

We would expect to obtain a χ 2 value at least this extreme in about ____ out of every ____ samples, assuming the null hypothesis was true.

Conditions! We are working with counts All counts are at least 1 and most (at least 80%) of the expected counts are at least 5. Following the Goodness of Fit Test, check to see which component made the greatest contribution to the chi square statistic to see where the biggest changes occurred.

Inference for two-way tables To compare two proportions, we use a 2- proportion Z Test. If we want to compare three or more proportions, we need a new procedure. The first step in the overall test for comparing several proportions is to arrange the data in a two-way table.

Think of the counts as elements of a matrix with r rows and c columns. This is called an r x c table with (r)(c) cells. Our null hypothesis is that there is no difference among the proportions. The alternative hypothesis is that there is some difference among the proportions. We will use the chi square test to measure how far from the observed values are from the expected values.

To calculate the expected counts, multiply the row total by the column total, and divide by the table total. The chi square statistic is the sum over all r x c cells in the table:

The degrees of freedom is (r – 1)(c – 1). The p-value is the area to the right of the χ 2 statistic under the chi square density curve.

In Summary 1. Use a chi square Goodness of Fit Test when you want to show that the distribution of counts in one categorical variable matches the distribution predicted by a model. (One categorical variable, one-way table) Ho: The distribution of X is the same as the expected distribution.

In Summary 2. Use a chi square test for homogeneity when you want to show that the distribution of counts for two or more groups are the same. (One categorical variable, two-way table) Ho: The distribution is the same as the distribution of Y.

3. Use a chi square test for independence when you want to show that two categorical variables are independent for one group of individuals. (Two categorical variables, two-way table) Ho: X and Y are independent.

Grade vs. Gender MaleFemaleTotal Grade Grade Grade Grade Total