Presentation is loading. Please wait.

Presentation is loading. Please wait.

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.

Similar presentations


Presentation on theme: "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."— Presentation transcript:

1

2 Inference for Tables

3 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

4 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 Deployed1833011 Not deployed784264308 Cause of death

5 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 Deployed1833011 Not deployed784264308 What are we expecting to be true about the table? Cause of death So, if deployment status and cause of death are independent, then…

6 Unintentional Injury IllnessHomicide or Suicide Deployed1833011 Not deployed784264308 967 294 319 224 1356 1580 So, if there are 1580 troops, how many would be expect to be both deployed and die because of illness?

7 Unintentional Injury IllnessHomicide or Suicide Deployed1833011 Not deployed784264308 967 294 319 224 1356 1580 Expected count formula

8 Unintentional Injury IllnessHomicide or Suicide Deployed1833011 Not deployed784264308 967 294 319 224 1356 1580 Expected count formula Unintentional Injury IllnessHomicide or Suicide Deployed?41.68? Not deployed??? Observed Expected

9 Unintentional Injury IllnessHomicide or Suicide Deployed1833011 Not deployed784264308 967 294 319 224 1356 1580 Expected count formula Unintentional Injury IllnessHomicide or Suicide Deployed137.0941.68? Not deployed??? Observed Expected

10 Unintentional Injury IllnessHomicide or Suicide Deployed1833011 Not deployed784264308 967 294 319 224 1356 1580 Expected count formula Unintentional Injury IllnessHomicide or Suicide Deployed137.0941.6845.23 Not deployed829.91252.32273.77 Observed Expected

11 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 Deployed137.0941.6845.23 Not deployed829.91252.32273.77 H o : Deployment status and cause of death are independent

12 Formula: df=(2 – 1)(3 – 1)= 2 Unintentional Injury IllnessHomicide or Suicide Deployed137.0941.6845.23 Not deployed829.91252.32273.77 Unintentional Injury IllnessHomicide or Suicide Deployed1833011 Not deployed784264308

13 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

14 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

15 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.

16 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

17 Formula: df=(2 – 1)(5 – 1)= 4

18 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

19 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


Download ppt "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."

Similar presentations


Ads by Google