Inference for Tables Chi-Square Tests Chi-Square Test Basics Formula for test statistic: Conditions: Data is from a random sample/event. All individual.

Slides:



Advertisements
Similar presentations
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)
Advertisements

1 Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. Analysis of Categorical Data Goodness-of-Fit Tests.
CHAPTER 23: Two Categorical Variables: The Chi-Square Test
Chapter 11 Inference for Distributions of Categorical Data
Chapter 13: Inference for Distributions of Categorical Data
Copyright ©2011 Brooks/Cole, Cengage Learning More about Inference for Categorical Variables Chapter 15 1.
Copyright ©2006 Brooks/Cole, a division of Thomson Learning, Inc. More About Categorical Variables Chapter 15.
© 2010 Pearson Prentice Hall. All rights reserved The Chi-Square Test of Homogeneity.
Chapter 26: Comparing Counts
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)
CHAPTER 11 Inference for Distributions of Categorical Data
CHAPTER 11 Inference for Distributions of Categorical Data
Chi-Square and F Distributions Chapter 11 Understandable Statistics Ninth Edition By Brase and Brase Prepared by Yixun Shi Bloomsburg University of Pennsylvania.
Chi-square Goodness of Fit Test
Presentation 12 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.
1 Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. Analysis of Categorical Data Test of Independence.
GOODNESS OF FIT TEST & CONTINGENCY TABLE
Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap 11-1 Chapter 11 Chi-Square Tests Business Statistics, A First Course 4 th Edition.
 2 test for independence Used with categorical, bivariate data from ONE sample Used to see if the two categorical variables are associated (dependent)
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.
Other Chi-Square Tests
Chapter 11: Inference for Distributions of Categorical Data.
Chi-square test or c2 test
Chapter 12 The Analysis of Categorical Data and Goodness-of-Fit Tests.
1 © 2008 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 12 The Analysis of Categorical Data and Goodness-of-Fit Tests.
Chapter 26 Chi-Square Testing
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.
Chi-Square Procedures Chi-Square Test for Goodness of Fit, Independence of Variables, and Homogeneity of Proportions.
Other Chi-Square Tests
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)
CHAPTER 23: Two Categorical Variables The Chi-Square Test ESSENTIAL STATISTICS Second Edition David S. Moore, William I. Notz, and Michael A. Fligner Lecture.
Other Chi-Square Tests
Copyright © 2010 Pearson Education, Inc. Slide
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 14 Comparing Groups: Analysis of Variance Methods Section 14.1 One-Way ANOVA: Comparing.
© Copyright McGraw-Hill CHAPTER 11 Other Chi-Square Tests.
Chapter Outline Goodness of Fit test Test of Independence.
+ Chapter 11 Inference for Distributions of Categorical Data 11.1Chi-Square Goodness-of-Fit Tests 11.2Inference for Relationships.
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.
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.
Chapter 12 The Analysis of Categorical Data and Goodness of Fit Tests.
Lecture PowerPoint Slides Basic Practice of Statistics 7 th Edition.
Inference for Tables Catapult Discovery Question: –How does a cat land (feet, side, nose/face)? –Write your predictions in percent. Collect data for.
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)
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.
Inference for Tables Chi-Square Test of Independence The chi-square(  2 ) test for independence/association test if the variables in a two-way table.
Section 13.2 Chi-Squared Test of Independence/Association.
Chi-Squared Test of Homogeneity Are different populations the same across some characteristic?
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.
AP Statistics Tuesday, 05 April 2016 OBJECTIVE TSW (1) identify the conditions to use a chi-square test; (2) examine the chi- square test for independence;
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.
 Check the Random, Large Sample Size and Independent conditions before performing a chi-square test  Use a chi-square test for homogeneity to determine.
Other Chi-Square Tests
Chi-square test or c2 test
Chapter 12 Tests with Qualitative Data
AP Stats Check In Where we’ve been… Chapter 7…Chapter 8…
Chapter 11: Inference for Distributions of Categorical Data
Statistical Inference about Regression
Inference for Tables Chi-Square Tests Ch. 11.
Inference for Tables Chi-Square Tests Ch. 11.
Inference for Tables Chi-Square Tests Ch. 11.
Inference for Distributions of Categorical Data
Presentation transcript:

Inference for Tables Chi-Square Tests

Chi-Square Test Basics Formula for test statistic: Conditions: Data is from a random sample/event. All individual expected counts are at least 5 (sample size is large enough). counts Used to test the counts of categorical data

 2 distribution facts Different df have different curves Skewed right Only positive values normal curveAs df increases, curve becomes more like a normal curve

Chi-Square df =1

Chi-Square df =2

Chi-Square df =3

Chi-Square df =4

Chi-Square df =5

Chi-Square df =8

Chi-square test ThreeThree types –Goodness of fit –Homogeneity –Independence

Chi-square test 4 steps4 steps –Write hypothesis –Check conditions (show expected table values) –Find test statistic and p-value –Decision and conclusion

Chi-Square Goodness of Fit The chi-square(  2 ) test for goodness of fit allows the observer to test if a sample distribution is different from the hypothesized population. Want to see how well the observed counts “fit” what we expect the counts to be H o : the sample distribution is the same as the expected distribution H a : the sample distribution is different from the expected distribution n – 1, where n is our number of categories and not our sample size!!!

Most computer software companies provide a telephone number that customers can use to obtain technical assistance. A particular manufacturer recently changed from a toll number to a free 800 number. The distribution for the lengths of calls (in seconds) when the number was a toll call is given below. After installing the 800 number, a random sample of 300 calls had the following durations. Is there sufficient evidence to conclude that a change has occurred in the distribution of the lengths of calls now that the number is toll free? Test at the 0.02 level.

Chi-square test 4 steps4 steps –Write hypothesis –Check conditions (show expected table values) –Find test statistic and p-value –Decision and conclusion

H o : the distribution of calls for the free number is the same as expected(as the toll #) H a : the distribution of calls for the free number is different than expected(different than the toll #) Expected values table: Chi-square goodness of fit Given a random sample of 300 calls.

H o : the distribution of calls for the free number is the same as expected(as the toll #) H a : the distribution of calls for the free number is different than expected(different than the toll #) Expected values table: Chi-square goodness of fit

H o : the distribution of calls for the free number is the same as expected(as the toll #) H a : the distribution of calls for the free number is different than expected(different than the toll #) Expected values table: Given a random sample of 300 calls. Sample is large enough since all expected counts are greater than 5. Chi-square goodness of fit

Formula: df=# of categories – 1 = 4 (no need to rewrite tables again)

Chi-Square Table Since p-value<  I reject H o at 2% significance. There is enough evidence to believe the distribution of toll-free calls is different than the toll calls. df=4

Chi-Square Test of Independence The chi-square(  2 ) test for independence/association test if the variables in a two-way table are related (single random sample) Used to see if the two categorical variables in one population are associated or not associated (independent) H o : the variables are independent H a : the variables are dependent Df = (rows – 1)(columns – 1)

A study compared noncombat mortality rates for U.S. military personnel who were deployed in combat situations to those not deployed. The results of a random sample of 1580 military personnel: At the 0.05 significance level, test the claim that the cause of a noncombat death is independent of whether the military person was deployed in a combat zone. Unintentional Injury IllnessHomicide or Suicide Deployed Not deployed Cause of death

H o : Deployment status and cause of death are independent H a : Deployment status and cause of death are dependent Chi-square test of independence Given a random sample of 1580 military personnel

Unintentional Injury IllnessHomicide or Suicide Deployed Not deployed Expected count formula Unintentional Injury IllnessHomicide or Suicide Deployed??? Not deployed??? Observed Expected

Unintentional Injury IllnessHomicide or Suicide Deployed Not deployed Expected count formula Unintentional Injury IllnessHomicide or Suicide Deployed Not deployed Observed Expected

H a : Deployment status and cause of death are dependent Expected values table: Given a random sample of 1580 military personnel Sample is large enough since all expected counts are greater than 5. Chi-square test of independence Unintentional Injury IllnessHomicide or Suicide Deployed Not deployed H o : Deployment status and cause of death are independent

Formula: df=(2 – 1)(3 – 1)= 2 Since p-value<  I reject H o at 5% significance, there is enough evidence to believe that cause of death depends on deployment status.

Chi-Square Table df=2

Chi-Square Test of Homogeneity The chi-square(  2 ) test for homogeneity allows the observer to test if the populations within a two-way table are the same (multiple random samples) Used to see if the two or more populations are the same (homogeneous) H o : all the populations are the same for the given variable H a : all the populations are different Df = (rows – 1)(columns – 1)

In the past, a number of professions were prohibited from advertising. In 1977, the U.S. Supreme Court ruled that prohibiting doctors and lawyers from advertising violated their right to free speech. The article “Should Dentists Advertise?” compared the attitudes of consumers and dentists toward the advertising of dental services. Separate random samples of 101 consumers and 124 dentists were asked to respond to the following statement “I favor the use of advertising by dentists to attract new patients.” The data is presented below: The authors of the article were interested in determining whether the two groups differed in their attitudes toward advertising.

H o : the opinions of consumers and dentists are the same H a : the opinions of consumers and dentists are different Expected values table: Given table is from two independent random samples. Sample is large enough since all expected counts are greater than 5. It is safe to use the chi-square procedures. Chi-square test of homogeneity

Formula: df=(2 – 1)(5 – 1)= 4 Since p-value<  I reject H o at 5% significance. There is enough evidence to believe the opinions of consumers is different than the opinions of dentists.

Chi-Square Table df=4

Summary of All Chi-Square Tests Test for Goodness of Fit –Comparing the distribution of a variable to what is expected (given % or equally likely) Chi-Square test of association/independence –Comparing two variables within the same population Chi-Square test for homogeneity of populations –Comparing a single variable, multiple populations