| (5.27) |
The functions gk may be polynomials, such as
...
or in some applications the Legendre polynomials, but the procedure developed
here applies to any functions. The functions are not necessarily linear
in x; the following development only requires that the relationship
between the measurements and the general functions
be linear as expressed in (5.27). The chisquare function for this case,
if deviations from the measurements
corresponding to the values of the parameter
are characterized by a Gaussian error distribution, is
| (5.28) |
where
is the standard deviation of the measurement error. The minimum value of
satisfies
| (5.29) |
From (5.3), the information matrix for this case is
| (5.30) |
| (5.31) |
| (5.32) |
or
| (5.33) |
The fit procedure is then:
This procedure will fail if the matrix H is not invertible. This
will occur if the functions gk are not linearly independent,
because then the determinant of the matrix H will be zero and it
cannot be inverted. Because fits are often obtained using computer routines,
rounding errors may cause the calculated determinant to differ from zero
even in cases that are not invertible, so it is usually useful to check
the value of the determinant and flag cases where that value is near the
minimum resolvable value.
| (5.34) |
This is a useful relationship because, if the summation in the first
term on the right side is accumulated while the matrices H and M
are calculated for the fit, the chisquare for the result can be determined
without another pass through the data. Beware of numerical precision problems
when using this in computer routines, because the chisquare may be a small
difference between very large numbers.