next up previous contents index
Next: One and two-dimensional Up: Fittingparameterization and Previous: Fittingparameterization and

Fitting

   

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 χ2 minimization, the final fitted parameter values correspond to the minimum of the χ2 function as defined below:

χ2 = ∑i=1n( {C(I)-F(X(I),A1,A2,...,Ak)E(I)})2

where the following definitions are used:

n
Number of channels (cells) in the 1-dimensional or 2-dimensional histogram (HFITH, HFITHN) or number of points of the distribution (HFITV)
C(I)
Contents of channel (cell) I
E(I)
Error on C(I)
X(I)
Coordinate(s) of centre of channel (cell) I or coordinate vector of point I of the distribution
A1..Ak

Parameters of the parametric function.
F
Parametric function to be fitted to the data points.

Remarks:

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.    



next up previous contents index
Next: One and two-dimensional Up: Fittingparameterization and Previous: Fittingparameterization and

Last update: Tue May 16 09:09:27 METDST 1995