The Chi-Square Goodness-of-Fit Test

If you expected a 1:1 ratio of brown and yellow cockroaches, but the cross produced 22 brown and 18 yellow cockroaches, you probably wouldn’t be too surprised, even though it wasn’t a perfect 1:1 ratio. In this case, it seems reasonable to assume that chance produced the deviation between the expected and the observed results. But if you observed 25 brown and 15 yellow cockroaches, would you still assume that this result represents a 1:1 ratio? Something other than chance might have caused this deviation. Perhaps the inheritance of this characteristic is more complicated than was assumed, or perhaps some of the yellow progeny died before they were counted. Clearly, we need some means of evaluating how likely it is that chance is responsible for the deviation between the observed and the expected numbers.

To evaluate the role of chance in producing deviations between observed and expected values, a statistical test called the chi-square goodness-of-fit test is used. This test provides information about how well the observed values fit the expected values. Before we learn how to use this test, however, it is important to understand what it does and does not indicate about a genetic cross. The chi-square test cannot tell us whether a genetic cross has been correctly carried out, whether our results are correct, or whether we have chosen the correct genetic explanation for those results. What it does indicate is the probability that the difference between the observed and the expected values is due to chance. In other words, it indicates the likelihood that chance alone could produce the deviation between the expected and the observed values.

If we expected 20 brown and 20 yellow progeny from a genetic cross, the chi-square test gives the probability that we might observe 25 brown and 15 yellow progeny simply owing to chance deviations from the expected 20:20 ratio. The hypothesis that chance alone is responsible for any deviation between observed and expected values is sometimes called the null hypothesis. Statistical tests such as the chi-square test cannot prove that the null hypothesis is correct, but they can help us decide if we should reject it. When the probability calculated from the chi-square test is high, we assume that chance alone produced the deviation, and we do not reject the null hypothesis. When the probability is low, we assume that some factor other than chance—some significant factor—produced the deviation. For example, the mortality rate of the yellow cockroaches might be higher than that of the brown cockroaches. When the probability that chance produced the deviation is low, we reject the null hypothesis.

To use the chi-square goodness-of-fit test, we first determine the expected results. The chi-square test must always be applied to numbers of progeny, not to proportions or percentages. Let’s consider a locus for coat color in domestic cats, for which black color (B) is dominant over gray (b). If we crossed two heterozygous black cats (Bb × Bb), we would expect a 3:1 ratio of black and gray kittens. Imagine that a series of such crosses yields a total of 50 kittens—30 black and 20 gray. These numbers are our observed values. We can obtain the expected numbers by multiplying the expected proportions by the total number of observed progeny. In this case, the expected number of black kittens is ¾ × 50 = 37.5 and the expected number of gray kittens is ¼ × 50 = 12.5.

The chi-square (χ2) value is calculated by using the following formula:

image

where ∑ means the sum. We calculate the sum of all the squared differences between observed and expected values and divide by the expected values. To calculate the chi-square value for our black and gray kittens, we would first subtract the number of expected black kittens from the number of observed black kittens (30 − 37.5 = −7.5) and square this value: −7.52 = 56.25. We then divide this result by the expected number of black kittens, 56.25/37.5 = 1.5. We repeat the calculations on the number of expected gray kittens: (20 − 12.5)2/12.5 = 4.5. To obtain the overall chi-square value, we add the (observed − expected)2/expected values: χ2 = 1.5 + 4.5 = 6.0.

The next step is to determine the probability associated with this chi-square value, which is the probability that the deviation between the observed and the expected results could be due to chance. This step requires us to compare the calculated chi-square value (6.0) with theoretical values that have the same degrees of freedom in a chi-square table. The degrees of freedom represent the number of ways in which the expected classes are free to vary. For a chi-square goodness-of-fit test, the degrees of freedom are equal to n − 1, in which n is the number of different expected phenotypes. Here, we lose one degree of freedom because the total number of expected progeny must equal the total number of observed progeny. In our example, there are two expected phenotypes (black and gray); so n = 2, and the degree of freedom equals 2 − 1 = 1.

Now that we have our calculated chi-square value and have figured out the associated degrees of freedom, we are ready to obtain the probability from a chi-square table (Table 3.4). The degrees of freedom are given in the left column of the table and the probabilities are given at the top; within the body of the table are chi-square values associated with these probabilities. First, we find the row for the appropriate degrees of freedom; for our example with 1 degree of freedom, it is the first row of the table. Then we find where our calculated chi-square value (6.0) lies among the theoretical values in this row. The theoretical chi-square values increase from left to right, and the probabilities decrease from left to right. Our chi-square value of 6.0 falls between the value of 5.024, associated with a probability of 0.025, and the value of 6.635, associated with a probability of 0.01.

62

TABLE 3.4 Critical values of the χ2 distribution
P
df 0.995 0.975 0.9 0.5 0.1 0.05* 0.025 0.01 0.005
1 0.000 0.000 0.016 0.455 2.706 3.841 5.024 6.635 7.879
2 0.010 0.051 0.211 1.386 4.605 5.991 7.378 9.210 10.597
3 0.072 0.216 0.584 2.366 6.251 7.815 9.348 11.345 12.838
4 0.207 0.484 1.064 3.357 7.779 9.488 11.143 13.277 14.860
5 0.412 0.831 1.610 4.351 9.236 11.070 12.832 15.086 16.750
6 0.676 1.237 2.204 5.348 10.645 12.592 14.449 16.812 18.548
7 0.989 1.690 2.833 6.346 12.017 14.067 16.013 18.475 20.278
8 1.344 2.180 3.490 7.344 13.362 15.507 17.535 20.090 21.955
9 1.735 2.700 4.168 8.343 14.684 16.919 19.023 21.666 23.589
10 2.156 3.247 4.865 9.342 15.987 18.307 20.483 23.209 25.188
11 2.603 3.816 5.578 10.341 17.275 19.675 21.920 24.725 26.757
12 3.074 4.404 6.304 11.340 18.549 21.026 23.337 26.217 28.300
13 3.565 5.009 7.042 12.340 19.812 22.362 24.736 27.688 29.819
14 4.075 5.629 7.790 13.339 21.064 23.685 26.119 29.141 31.319
15 4.601 6.262 8.547 14.339 22.307 24.996 27.488 30.578 32.801

P, probability; df, degrees of freedom.

*Most scientists assume that when P < 0.05, a significant difference exists between the observed and expected values in a chi-square test.

Thus, the probability associated with our chi-square value is less than 0.025 and greater than 0.01. So there is less than a 2.5% probability that the deviation that we observed between the expected and the observed numbers of black and gray kittens could be due to chance.

Most scientists use the 0.05 probability level as their cutoff value: if the probability of chance being responsible for the deviation between the observed and the expected values is greater than or equal to 0.05, they assume that chance is responsible for that deviation. When the probability is less than 0.05, scientists assume that chance is not responsible and that a significant difference from the expected values exists. The expression significant difference means that a factor other than chance is responsible for the difference between the observed values and the expected values. In regard to the kittens, perhaps one of the genotypes had a greater mortality rate before the progeny were counted, or perhaps other genetic factors skewed the observed ratios.

In choosing 0.05 as their cutoff value, scientists have agreed to assume that chance is responsible for deviations between observed and expected values unless there is strong evidence to the contrary. Bear in mind that even if we obtain a probability of, say, 0.01, there is still a 1% probability that the deviation between the observed and the expected numbers is due to nothing more than chance. Calculation of the chi-square value is illustrated in Figure 3.12. image TRY PROBLEM 35

image
Figure 3.12: A chi-square goodness-of-fit test is used to determine the probability that the difference between observed and expected values is due to chance.

CONCEPTS

Differences between observed and expected numbers among the progeny of a cross can arise by chance alone. The chi-square goodness-of-fit test can be used to evaluate whether deviations between observed and expected values are likely to be due to chance or to some other significant factor.

image CONCEPT CHECK 7

A chi-square test comparing observed and expected numbers of progeny is carried out, and the probability associated with the calculated chi-square value is 0.72. What does this probability represent?

  1. Probability that the correct results were obtained

  2. Probability of obtaining the observed numbers

  3. Probability that the difference between observed and expected numbers is significant

  4. Probability that the difference between observed and expected numbers could be due to chance

d