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.

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

Multinomial Experiments Goodness of Fit Tests We have just seen an example of comparing two proportions. For that analysis, we used the normal distribution.
1 Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. Analysis of Categorical Data Goodness-of-Fit Tests.
Chapter 11 Inference for Distributions of Categorical Data
Chapter 13: Inference for Distributions of Categorical Data
Do Angry People Have More Heart Disease?
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.
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 Goodness of Fit Test
Chi-Square and Analysis of Variance (ANOVA)
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
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Chapter Inference on Categorical Data 12.
 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.
Chapter 11 Chi-Square Procedures 11.3 Chi-Square Test for Independence; Homogeneity of Proportions.
Other Chi-Square Tests
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.
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.
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.
Analysis of Two-Way Tables Moore IPS Chapter 9 © 2012 W.H. Freeman and Company.
+ Chi Square Test Homogeneity or Independence( Association)
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.
Other 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.
+ 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.
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.
Statistical Inference Drawing conclusions (“to infer”) about a population based upon data from a sample. Drawing conclusions (“to infer”) about a population.
IIMC Long Duration Executive Education Executive Programme in Business Management Statistics for Managerial Decisions Advanced Statistical Inference Prof.
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.
Section 6.4 Inferences for Variances. Chi-square probability densities.
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)
Calculator steps: The calculator steps for this section can be found on YouTube or by clicking: HereHere Bluman, Chapter 111.
+ 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.
Chi-Squared Test of Homogeneity Are different populations the same across some characteristic?
Objectives (BPS chapter 12) General rules of probability 1. Independence : Two events A and B are independent if the probability that one event occurs.
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.
Inference for Tables Chi-Square Tests Chi-Square Test Basics Formula for test statistic: Conditions: Data is from a random sample/event. All individual.
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.
Chapter 26 Comparing Counts. Objectives Chi-Square Model Chi-Square Statistic Knowing when and how to use the Chi- Square Tests; Goodness of Fit Test.
Other Chi-Square Tests
Chi-square test or c2 test
AP Stats Check In Where we’ve been… Chapter 7…Chapter 8…
Chapter 11: Inference for Distributions of Categorical Data
Chi-square test or c2 test
Inference for Tables Chi-Square Tests Ch. 11.
Inference for Tables Chi-Square Tests Ch. 11.
Inference for Tables Chi-Square Tests Ch. 11.
Presentation transcript:

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 are related (single random sample) H o : the variables are independent H a : the variables are dependent

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 Expected values table? Chi-square test of independence Unintentional Injury IllnessHomicide or Suicide Deployed Not deployed What are we expecting to be true about the table? Cause of death So, if deployment status and cause of death are independent, then…

Unintentional Injury IllnessHomicide or Suicide Deployed Not deployed So, if there are 1580 troops, how many would be expect to be both deployed and die because of illness?

Unintentional Injury IllnessHomicide or Suicide Deployed Not deployed Expected count formula

Unintentional Injury IllnessHomicide or Suicide Deployed Not deployed Expected count formula Unintentional Injury IllnessHomicide or Suicide Deployed?41.68? 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

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 two-way table is from a random sample. Sample is large enough to safely use chi-square 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 Unintentional Injury IllnessHomicide or Suicide Deployed Not deployed Unintentional Injury IllnessHomicide or Suicide Deployed Not deployed

Chi-Square Table We reject Ho, since p-value<  there is enough evidence to believe that cause of death depends on deployment status. 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) H o : all the populations are the same for the given variable H a : all the populations are different

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

Chi-Square Table We reject Ho, since p-value<  there is enough evidence to believe the opinions of consumers is different than the opinions of dentists. 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 for homogeneity of populations –Comparing a single variable, multiple populations Chi-Square test of association/independence –Comparing two variables within the same population