| (7.1) |
| (7.2) |
| (7.3) |
| (7.4) |
Because
| (7.5) |
| (7.6) |
the same result obtained more generally in section 5.3.
It is worth re-emphasis that this result depends on the validity of the expected Gaussian distribution of errors, and has the same connection to this assumption as does the least-squares method of fitting to data. The basic equation used here for the chisquare function, (7.1), depends on this assumption, and (7.2) is only valid if the errors from individual measurements entering the mean are uncorrelated. Inference based on the chisquare distribution will not be valid if these conditions are not satisfied.
It is useful to consider the distribution in values expected for the
chisquare function when these conditions are satisfied. Consider the case
where the correct functional form f(x) is used in a fit to
measurements
obtained at values
of the independent variable x. If there are N measurements
in the fit, each characterized by the same measurement uncertainty
,
the variance of the measurements about the best-fit relationship is
| (7.7) |
If there are n parameters in the fit,
| (7.8) |
when f(x) is the correct functional relationship, so
| (7.9) |
For example, for 25 measurements and a fit with three parameters,
is expected if the functional relationship is correct.
For the chisquare distribution function, the expected value and the
distribution about that expected value both depend on the number of degrees
of freedom. The distribution is that expected for the sum of the squares
of
independent unit-normal variables. The functional form of the chisquare
distribution is7.1
| (7.10) |
where
is the number of degrees of freedom and z is the value of the chisquare
function.
is the generalized factorial function, defined so that
and
.
(For integer n,
,
and
.)
Figure 7.1 shows the probability that
will exceed various limits, as a function of the number of degrees of freedom.
These curves make it possible to judge how consistent a fit is with the
data. If a chisquare is obtained that corresponds to a very unlikely value
(e.g., if only about 5% of all observations are expected to have this large
a chisquare), then the fit is not very good and the functional dependence
is probably not correct.
