Upcoming SlideShare
×

Like this presentation? Why not share!

# Stat6 chi square test

## on Feb 13, 2013

• 646 views

### Views

Total Views
646
Views on SlideShare
646
Embed Views
0

Likes
0
12
0

No embeds

### Report content

• Comment goes here.
Are you sure you want to

## Stat6 chi square testPresentation Transcript

• Chi square test
• Uses and Applications Used when you have frequency distribution of qualitative type of variables. Applications: To test goodness of fit. In the 2X2 table, it is used to test whether there is an association between the row and the column variables; ie whether the distribution of individuals among the categories of one variable is independent of their distribution among the categories of the other.
• Example, Influenza vaccination trial Influenza No Total influenzaVaccine 20 220 240 (8.3%)Placebo 80 140 220 (36.4%)Total 100 360 460 (21.7%)
• The question is: Is the difference (in the percentages of influenza) due to vaccination or occurred by chance? To answer, a Chi square test is done which compares the observed numbers in each of the four categories in the contingency table with the numbers to be expected if there was no difference in the effectiveness between the vaccine and placebo.
• The expected frequencies: Influenza No Total influenzaVaccine 52.2 187.8 240Placebo 47.8 172.2 220Total 100 360 460
• Solution, continued Ho: The proportion of influenza among the vaccine group = The proportion of influenza among the placebo group. Level of significance (alpha) = 0.05 D.f. = (No. of rows-1) (No. of columns-1). Test statistics: Chi square test. ∑ (O − E ) 2 χ = 2 E
• Solution, continued (20 − 52.2) 2 (80 − 47.8) 2 (220 − 187.8) 2 (140 − 172.2) 2χ2 = + + + = 53.09 52.2 47.8 187.8 172.2The tabulated value for X2 for 1 d.f. is 3.841The calculated value (53.09) > tabulated valueTherefore reject Ho and conclude that there is statisticallysignificant difference between the 2 proportions. Thisdifference is unlikely to be due to chance.Therefore the vaccine is effective.P < 0.05