Chapter 13 Inference for Counts: Chi-Square Tests © 2011 Pearson Education, Inc. 1 Business Statistics: A First Course.

Slides:



Advertisements
Similar presentations
Statistical Methods Lecture 25
Advertisements

Statistical Methods Lecture 26
Chapter 26 Comparing Counts
Chi Squared Tests. Introduction Two statistical techniques are presented. Both are used to analyze nominal data. –A goodness-of-fit test for a multinomial.
CHAPTER 23: Two Categorical Variables: The Chi-Square Test
Inference about the Difference Between the
© 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.
1-1 Copyright © 2015, 2010, 2007 Pearson Education, Inc. Chapter 25, Slide 1 Chapter 25 Comparing Counts.
Chapter 26: Comparing Counts
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.
Copyright © 2012 Pearson Education. All rights reserved Copyright © 2012 Pearson Education. All rights reserved. Chapter 15 Inference for Counts:
 Involves testing a hypothesis.  There is no single parameter to estimate.  Considers all categories to give an overall idea of whether the observed.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 26 Comparing Counts.
Copyright © 2010 Pearson Education, Inc. Warm Up- Good Morning! If all the values of a data set are the same, all of the following must equal zero except.
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Chapter Inference on Categorical Data 12.
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 26: COMPARING COUNTS OF CATEGORICAL DATA To test claims and make inferences about counts for categorical variables Objective:
Copyright © 2010, 2007, 2004 Pearson Education, Inc. 1.. Section 11-2 Goodness of Fit.
Chapter 9: Non-parametric Tests n Parametric vs Non-parametric n Chi-Square –1 way –2 way.
Chapter 26: Comparing counts of categorical data
1 In this case, each element of a population is assigned to one and only one of several classes or categories. Chapter 11 – Test of Independence - Hypothesis.
Chi-Square Procedures Chi-Square Test for Goodness of Fit, Independence of Variables, and Homogeneity of Proportions.
1-1 Copyright © 2015, 2010, 2007 Pearson Education, Inc. Chapter 25, Slide 1 Chapter 26 Comparing Counts.
Section 9-1: Inference for Slope and Correlation Section 9-3: Confidence and Prediction Intervals Visit the Maths Study Centre.
Slide 26-1 Copyright © 2004 Pearson Education, Inc.
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 22: Comparing Two Proportions. Yet Another Standard Deviation (YASD) Standard deviation of the sampling distribution The variance of the sum or.
Irwin/McGraw-Hill © Andrew F. Siegel, 1997 and l Chapter 17 l Chi-Squared Analysis: Testing for Patterns in Qualitative Data.
Copyright © 2010 Pearson Education, Inc. Slide Beware: Lots of hidden slides!
Essential Statistics Chapter 161 Review Part III_A_Chi Z-procedure Vs t-procedure.
Chapter 14: Chi-Square Procedures – Test for Goodness of Fit.
CHI SQUARE TESTS.
© 2000 Prentice-Hall, Inc. Statistics The Chi-Square Test & The Analysis of Contingency Tables Chapter 13.
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
Comparing Counts.  A test of whether the distribution of counts in one categorical variable matches the distribution predicted by a model is called a.
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
Chapter Outline Goodness of Fit test Test of Independence.
Slide 1 Copyright © 2004 Pearson Education, Inc..
Copyright © 2010 Pearson Education, Inc. Warm Up- Good Morning! If all the values of a data set are the same, all of the following must equal zero except.
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 14 – 1 Chi-Square Chi-Square as a Statistical Test Statistical Independence Hypothesis Testing with Chi-Square The Assumptions Stating the Research.
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
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.
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 &
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.
Goodness-of-Fit A test of whether the distribution of counts in one categorical variable matches the distribution predicted by a model is called a goodness-of-fit.
Comparing Counts Chi Square Tests Independence.
CHAPTER 26 Comparing Counts.
Chapter 9: Non-parametric Tests
Chapter 11 Chi-Square Tests.
Chapter 25 Comparing Counts.
Chapter 11: Inference for Distributions of Categorical Data
Overview and Chi-Square
15.1 Goodness-of-Fit Tests
Chapter 11 Chi-Square Tests.
Lesson 11 - R Chapter 11 Review:
Paired Samples and Blocks
Chapter 26 Comparing Counts.
Chapter 26 Comparing Counts Copyright © 2009 Pearson Education, Inc.
Inference for Two Way Tables
Chapter 26 Comparing Counts.
Chapter 11 Chi-Square Tests.
Presentation transcript:

Chapter 13 Inference for Counts: Chi-Square Tests © 2011 Pearson Education, Inc. 1 Business Statistics: A First Course

Chi-Square Tests Given the following… 1) Counts of items in each of several categories 2) A model that predicts the distribution of the relative frequencies …the basic idea is to ask: “Does the actual distribution differ from the model because of random error or do the differences mean that the model does not fit the data?” In other words, “How good is the fit between what we observe and what we expect to observe?” © 2011 Pearson Education, Inc.

Chi-Square Tests Example: Stock Market “Up” Days Sample of 1000 “up” days “Up” days appear to be more common than expected on Fridays (we expect them to be equally likely across trading days). Null Hypothesis: The distribution of “up” days is no different from what we expect (equally likely across days). Test the hypothesis with a chi-square goodness-of-fit test. © 2011 Pearson Education, Inc.

Chi-Square Tests The Chi-Square Distribution Note that “accumulates” the relative squared deviation of each cell from its expected value. So, gets “big” when the model is a poor fit. © 2011 Pearson Education, Inc.

Chi-Square Tests Assumptions and Conditions Counted Data Condition – The data must be counts for the categories of a categorical variable. Independence Assumption – The counts should be independent of each other. Randomization Condition – The counted individuals should be a random sample of the population. Expected Cell Frequency Condition – Expect at least 5 individuals per cell. © 2011 Pearson Education, Inc.

Chi-Square Tests The Chi-Square Calculation © 2011 Pearson Education, Inc.

Chi-Square Tests The Chi-Square Calculation: Stock Market “Up” Days Using a chi-square table at a significance level of 0.05 and with 4 degrees of freedom: Do not reject the null hypothesis. (The fit is “good”.) © 2011 Pearson Education, Inc.

Interpreting Chi-Square Values The Chi-Square Distribution The distribution is right-skewed and becomes broader with increasing degrees of freedom: The test is a one-sided test. © 2011 Pearson Education, Inc.

9 When we reject a null hypothesis, we can examine the residuals in each cell to discover which values are extraordinary. Because we might compare residuals for cells with very different counts, we should examine standardized residuals: 13.3 Examining the Residuals Note that standardized residuals from goodness-of-fit tests are actually z -scores (which we already know how to interpret and analyze). © 2011 Pearson Education, Inc.

10 Standardized residuals for the trading days data: 13.3 Examining the Residuals None of these values is remarkable. The largest, Friday, at 1.292, is not impressive when viewed as a z -score. The deviations are in the direction of a “weekend effect”, but they aren’t quite large enough for us to conclude they are real. © 2011 Pearson Education, Inc.

Chi-Square Test of Independence The table below shows the importance of personal appearance for several age groups. Are Age and Appearance independent, or is there a relationship? © 2011 Pearson Education, Inc.

Chi-Square Test of Independence A stacked barchart suggests a relationship: Test for independence using a chi-square test of independence. © 2011 Pearson Education, Inc.

Chi-Square Test of Independence The test requires finding expected counts under the assumption that the null hypothesis is true (that the two variables are independent). Find the expected count for each cell by multiplying the appropriate row and column totals and divide by the table total: Exp ij = Total Row i x Total Column j / Table Total © 2011 Pearson Education, Inc.

Chi-Square Test of Independence For the Appearance and Age example, we reject the null hypothesis that the variables are independent. So, it may be of interest to know how differently two age groups (teens and 30-something adults) select the “very important” category ( Appearance response 6 or 7). You can construct a confidence interval for the true difference in these proportions… © 2011 Pearson Education, Inc.

Chi-Square Test of Independence From the table, the relevant percentages of responses (6 or 7) on Appearance for teens and 30 something adults are: Teens:45.17% 30-39:39.91% The 95% confidence interval is found below: © 2011 Pearson Education, Inc.

16 What Can Go Wrong?  Don’t use chi-square methods unless you have counts.  Beware of large samples! With a sufficiently large sample size, a chi-square test will result in rejecting the null hypothesis.  Don’t say that one variable “depends” on the other just because they’re not independent. © 2011 Pearson Education, Inc.

17 What Have We Learned?  Goodness-of-fit tests compare the observed distribution of a single categorical variable to an expected distribution based on a theory or model.  Tests of independence examine counts from a single group for evidence of an association between two categorical variables. © 2011 Pearson Education, Inc.