The fitting routines in HBOOK are based on the Minuit package [12]. Minuit is conceived as a tool to find the minimum value of a multi-parameter function and analyze the shape of the function around the minimum. The principal application is foreseen for statistical analysis, working on chisquare or log-likelihood functions, to compute the best-fit parameter values and uncertainties, including correlations between the parameters. It is especially suited to handle difficult problems, including those which may require guidance in order to find the correct solution.
In the case of minimization, the final fitted parameter values correspond to the minimum of the function as defined below:
where the following definitions are used:
I
C(I)
I
or
coordinate vector of point I
of the distribution
Remarks:
C(I)<0
, then E(I)
is
set to 1 for all channels (cells).
The minimization algorithm requires the calculation of derivatives of
the function with respect to the parameters and this is normally done
numerically by the fitting routine. If the analytical expression of the
derivatives is known, the fit can be speeded up by making use of this
information (see option D
in the control flag of the
various fitting routines).
For a log-likelihood fit, the likelihood is formed by determining the Poisson probability that given a number of entries in a particualar bin, the fit would predict its value. This is then done for each bin, and the sum of the logs is taken as the likelihood.