Chapter 26 Chi-Square Testing

Slides:



Advertisements
Similar presentations
Chapter 11 Other Chi-Squared Tests
Advertisements

Chi-square test Chi-square test or  2 test. Chi-square test countsUsed to test the counts of categorical data ThreeThree types –Goodness of fit (univariate)
Multinomial Experiments Goodness of Fit Tests We have just seen an example of comparing two proportions. For that analysis, we used the normal distribution.
CHAPTER 23: Two Categorical Variables The Chi-Square Test ESSENTIAL STATISTICS Second Edition David S. Moore, William I. Notz, and Michael A. Fligner Lecture.
Chi Square Procedures Chapter 11.
Chapter 13: Inference for Distributions of Categorical Data
Copyright ©2011 Brooks/Cole, Cengage Learning More about Inference for Categorical Variables Chapter 15 1.
1-1 Copyright © 2015, 2010, 2007 Pearson Education, Inc. Chapter 25, Slide 1 Chapter 25 Comparing Counts.
Chapter 26: Comparing Counts
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.
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.
Testing Distributions Section Starter Elite distance runners are thinner than the rest of us. Skinfold thickness, which indirectly measures.
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.
Chapter 26: Comparing Counts AP Statistics. Comparing Counts In this chapter, we will be performing hypothesis tests on categorical data In previous chapters,
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.
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.
Chapter 11: Applications of Chi-Square. Count or Frequency Data Many problems for which the data is categorized and the results shown by way of counts.
Chapter 11 Chi-Square Procedures 11.3 Chi-Square Test for Independence; Homogeneity of Proportions.
Chi-square test or c2 test
Chi-square test Chi-square test or  2 test Notes: Page Goodness of Fit 2.Independence 3.Homogeneity.
Multinomial Experiments Goodness of Fit Tests We have just seen an example of comparing two proportions. For that analysis, we used the normal distribution.
Two Way Tables and the Chi-Square Test ● Here we study relationships between two categorical variables. – The data can be displayed in a two way table.
Chapter 11 Inference for Tables: Chi-Square Procedures 11.1 Target Goal:I can compute expected counts, conditional distributions, and contributions to.
FPP 28 Chi-square test. More types of inference for nominal variables Nominal data is categorical with more than two categories Compare observed frequencies.
13.2 Chi-Square Test for Homogeneity & Independence AP Statistics.
+ Chi Square Test Homogeneity or Independence( Association)
BPS - 5th Ed. Chapter 221 Two Categorical Variables: The Chi-Square Test.
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.
The Practice of Statistics Third Edition Chapter (13.1) 14.1: Chi-square Test for Goodness of Fit Copyright © 2008 by W. H. Freeman & Company Daniel S.
CHAPTER 23: Two Categorical Variables The Chi-Square Test ESSENTIAL STATISTICS Second Edition David S. Moore, William I. Notz, and Michael A. Fligner Lecture.
Copyright © 2010 Pearson Education, Inc. Slide
Inference for Distributions of Categorical Variables (C26 BVD)
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 © 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.
Lesson Inference for Two-Way Tables. Knowledge Objectives Explain what is mean by a two-way table. Define the chi-square (χ 2 ) statistic. Identify.
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.
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.
Test of Homogeneity Lecture 45 Section 14.4 Tue, Apr 12, 2005.
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.
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.
BPS - 5th Ed. Chapter 221 Two Categorical Variables: The Chi-Square Test.
+ Section 11.1 Chi-Square Goodness-of-Fit Tests. + Introduction In the previous chapter, we discussed inference procedures for comparing the proportion.
Section 13.2 Chi-Squared Test of Independence/Association.
Chapter 14 Inference for Distribution of Categorical Variables: Chi-Squared Procedures.
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.
Chi Square Procedures Chapter 14. Chi-Square Goodness-of-Fit Tests Section 14.1.
Chapter 12 Lesson 12.2b Comparing Two Populations or Treatments 12.2: Test for Homogeneity and Independence in a Two-way Table.
Test of Goodness of Fit Lecture 41 Section 14.1 – 14.3 Wed, Nov 14, 2007.
Chi-square test or c2 test
Test for Goodness of Fit
Chapter 12 Tests with Qualitative Data
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 10 Analyzing the Association Between Categorical Variables
Lesson 11 - R Chapter 11 Review:
Analyzing the Association Between Categorical Variables
Inference for Two Way Tables
Lecture 46 Section 14.5 Wed, Apr 13, 2005
Presentation transcript:

Chapter 26 Chi-Square Testing

Chi-Square Testing About the Chi-Square Distribution: The chi-square distributions are a family of distributions that take only positive values and are skewed to the right. Chi-squared distributions vary depending on degrees of freedom where df is (n-1) and n represents the number of categories for your variable.

Chi-Square Testing About the Chi-Square Distribution: Each chi-square density curve has the following properties: 1) The total area under each chi-square curve is 1. 2) It begins at zero on the horizontal axis, increases to a peak, and then approached the horizontal axis asymptotically from above. 3) Each curve is skewed to the right. As the number of degrees of freedom increase, the curve becomes more and more symmetrical and looks more like a normal curve (CLT still says this will happen).

Chi-Square Testing Chi-square Tests are *Used with 2-way tables to test for association or independence with multiple proportions. *Used to describe relationships within one or between two categorical variables. Large 2 values (which equate to low p-values) are evidence against Ho.

Chi-Square Testing Conditions: Random: the data comes from a random sample or a randomized experiment Independent: individual observations are independent or are less than 10% of a large population Large enough sample: all expected counts are at least 5 (this is essentially the np rules for each category)

Chi-Square Testing There are Three Chi-Square Tests *Test for Goodness of Fit (GOF) *Test for Homogeneity *Test for Independence

Chi-Square (2) test for Goodness of Fit (GOF) Rather than testing individual proportions in an entire distribution, this test can be applied to see if the observed sample distribution is different from the hypothesized population distribution. (this is like doing many one proportion z-tests all at the same time)

Chi-Square GOF Test Ho: the actual population proportions are equal to the hypothesized proportions Ha: at least one of the actual population proportions is different from the hypothesized proportions

Chi-Square GOF Test The 2 test statistic is: 2 = (O – E)2/E with (n-1) degrees of freedom** where O – observed value E – expected value ** Remember n is the number of categories this time, not the sample size

Chi-Square GOF Test Calculator Steps for GOF on TI-83 Plus: 1) Clear L1, L2, L3. 2) Enter the observed counts in L1. 3) Calculate expected counts and enter them in L2. 4) Define L3 to be (L1 – L2)2/L2 5) the command Sum(L3) returns the test statistic 2. 6) Use the 2 cdf command from the distributions menu to ask for the area between your 2 value and a very large #, and specify the degrees of freedom. This is your p-value.

Chi-Square GOF Test Calculator Steps for GOF on TI-84 Plus: 1) Clear L1, L2, L3. 2) Enter the observed counts in L1. 3) Calculate expected counts and enter them in L2. 4) Stat: Tests: D: 2 GOF

Chi-Square Tests for Homogeneity Test for Homogeneity: Attempts to test determine whether two populations are similar (homogeneous) with respect to the categories of one variable.

Chi-Square Tests for Homogeneity Ho: The population proportions with respect to the variable are the same. Ha: The population proportions with respect to the variable are different.

Chi-Square Test for Independence One population is sampled and two characteristics are observed. Is there an association (dependence) between the two characteristics.

Chi-Square Test for Independence Ho: States there is no association between the two variables. (The variables are independent) Ha: States that there is an association between the two variables. (The variables are not independent)

Chi-Square Tests for Homogeneity & Independence The only difference is in Chi-Square Tests for Homogeneity & Independence is in how the data is collected: Homogeneity – Two populations categorized on one categorical variable. Independence – One population categorized on two categorical variables.

Chi-Square Tests for Homogeneity & Independence The test mechanics and everything else are the same for Homogeneity and Independence. The alternative hypothesis is no longer one or two sided, it is many-sided. To test Ho, we compare the observed counts in a two-way table with the expected counts.

Chi-Square Tests for Homogeneity & Independence Expected cell count = row total x column total table total 2 = (observed – expected)2 expected observed are your sample values. expected is calculated based on the null. In a table with r rows and c columns df = (r – 1)(c – 1)

Chi-Square Tests for Homogeneity & Independence Calculator instructions: 1) Enter the observed in matrix A: 2nd matrix, edit, choose matrix, enter size & cells 2) Stat, tests, C: 2-test, enter name of observed matrix, enter name of matrix where you would like the expected to be stored, choose calculate to compute.