The Chi-Squared Test
Sometimes it is possible to make a quantitative prediction about the outcome of an experiment. A good example of this is a genetic cross, where Mendel's laws can be used to predict numbers of different phenotypes. You would never expect your actual results to be identical to the prediction, but you would expect them to be close. How close? The chi-squared (c2) test looks at the difference between the predicted results and the observed results and tells you the probability (P) that this difference is due to random chance alone.
Again P varies from 0 (not likely) to 1 (certain). The higher the probability, the more likely it is that any differences from the theory are just due to random chance and that your results support your prediction. The lower the probability, the less likely it is that the differences from the theory are due to random chance, so the differences are significant and your results do not support your prediction. Again the critical probability is usually taken as 0.05 (or 5%). So if p > 0.05 then the results agree with the prediction, and if p < 0.05 then the results do not agree with the prediction.
In Excel the c2 test is performed using the formula: =CHITEST (observed range, expected range) .

Incidentally a very high P (>0.9) is suspicious, as it means that the results are just too good to be true! This suggests that there is some bias in the experiment, whether deliberate or accidental.

The Equations
Chi-Squared Test
|
|
where O is the observed result and E is the expected result The probability is then found from a table of c2 values. |