This test uses the observed counts and expected counts. The chi–square statistic is:
.
The fraction part of the statistic is calculated for
each cell of a table. Then these fraction parts are added together to form the chi–square statistic. This
is a measure of how far the observed counts are from the expected counts. As the distance between theses counts
increases, the chi–square statistic increases.
Large values of χ2 are evidence against H0.
The χ2 statistic is easy to find on the TI83 calculator.
The chi–square distributions are a family of right–skewed distributions that take on only positive values. A specific chi–square distribution is described by its degrees of freedom: d.f. = (r – 1)(c – 1).
The mean of the chi–square distribution is equal to d.f.!
The P–value is the area to the right of χ2 under the chi–square density function.
The chi–square test can be used to compare:
The chi–square test:
The following are required in order to use the chi–square test:
We can make any r × c table into a r × 2 table by making two columns labeled, successes and failures. Then, if r = 2 (i.e., a 2 × 2 table), there are two options to do this comparison: