Chi Square Test
Chi Square Test
Chi Square Test
Example:
Suppose as a market analyst you wished to see whether consumers have any preference among five flavors of
a new fruit soda. A sample of 100 people provided these data:
In the goodness-of-fit test, the degrees of freedom are equal to the number of categories minus 1. For
this example, there are five categories (cherry, strawberry, orange, lime, and grape); hence, the degrees of
freedom are 5 - 1 = 4. This is so because the number of subjects in each of the first four categories is free to
vary. But in order for the sum to be 100—the total number of subjects—the number of subjects in the last
category is fixed.