Saturday, January 9, 2016

Chi square test



Suppose  the frequency tablef or the counties and votes for a particular candidate are as follows
Miami Dade 6
Broward 8
Palm Beach 34
Pinellas 10
Hillsbourough 8
Total is 66

Relative frequencies are each frequency divided by the total
Miami Dade = 6/66 = .09
Broward = 8/66 = .12
Palm Beach = 34/66 = .52
Pinellas = 10/56 = .18
Hillsborough = 8/66 = .12

b. If the votes were equal across each county, you'd expect 66/5 = 13.2 for each. So we get a X^2 statistic
(6 - 13.2)^2/13.2 + (8-13.2)^2/13.2 + (34-13.2)^2/13.2 + (10 - 13.2)^2/13.2 + (8-13.2)^2/13.2 = 41.59
The critical value for the test for X^2, 4df at alpha = .05 = 9.488
Since the 41.59 > 9.488 critical value, reject Ho

c. The conclusion is that there is significant evidence say that the proportion of voters for Buchanon is not the same across all the counties.

No comments:

Post a Comment