Goodness of Fit
In the experiment on pea breeding Mendel's theory predicts the probabilities of occurrence associated with the types of progeny, say “round yellow”, “wrinkled yellow”, “round green”, and “wrinkled green.” Here we want to test whether the data from observation
is consistent with his theory—goodness of fit.
 observation
is consistent with his theory—goodness of fit.
The model probabilities
 
The observed numbers of subjects
 
 of data.
Then goodness of fit to the model
can be assessed by comparing the
observed frequencies with the expected ones.
The null hypothesis becomes “the model is valid,”
and the discrepancy between the data and the model
can be measured by the Pearson's chi-square statistic
 of data.
Then goodness of fit to the model
can be assessed by comparing the
observed frequencies with the expected ones.
The null hypothesis becomes “the model is valid,”
and the discrepancy between the data and the model
can be measured by the Pearson's chi-square statistic
 
Under the null hypothesis that the model probabilities are correct,
the distribution of Pearson's chi-square  is approximated by
chi-square distribution
with
(k-1) = 
degrees of freedom.
Therefore,
we can reject the null hypothesis
if you observe that the test statistic
is approximated by
chi-square distribution
with
(k-1) = 
degrees of freedom.
Therefore,
we can reject the null hypothesis
if you observe that the test statistic  is larger than the critical point
 is larger than the critical point
,
casting doubt on the validity of the model.
Or equivalently, by computing the 
 -value
-value
with a random variable X having the chi-square distribution
with (k-1) degrees of freedom,
we can find that the null hypothesis is rejected if 
 .
.
© TTU Mathematics
