next up previous contents index
Next: Other points concerning Up: Fitting with finite Previous: Methodology.

The Solution.

To find the maximum we differentiate Equation gif (including Equation gif for fi ) and set the derivatives to zero. This gives two sets of equations, those for the differentials with respect to pj

i=1ndiAjifi- Aji=0∀j

and those for the differentials with respect to Aji

dipjfi- pj+ ajiAji-1=0∀i,j

These m x(n+1) simultaneous equations are nonlinear and coupled (remembering that the fi that appear in them are functions of the pj and the Aji ). However they can be remarkably simplified. Equations gif can be rewritten 1-difi=1 pj(ajiAji-1)∀i,j

The left hand side depends on i only, so write it as ti . ti= 1-difi

The right hand side then becomes Aji= aji1 + pjti

which is a great simplification: for a given set of pj , the nxm unknown quantities Aji are given by the n unknown quantities ti .

The ti are given by Equation gif. If di is zero then ti is 1: if not then di1 - ti= fi= ∑jpjAji= ∑jpjaji1 + pjti

If these n equations are satisfied, with Equation gif used to define the Aji , then all the m xn

Equations gif are satisfied.

The method adopted by HMCLNL is (for a given set of pj ), to solve equations gif for the ti , thus giving the Aji via equation gif. The log likelihood may then be calculated using equation gif. The maximum of the likelihood may then be found using numerical means - HMCMLL uses MINUIT to perform this maximisation (this is equivalent to solving equations gif).

Although there are n equations gif, to be solved numerically, this does not present a problem. They are not coupled, and each equation clearly has one and only one solution in the `allowed' region for ti , i.e. the region where the Aji are all positive, which lies between t=-1/pmax and t=1 (pmax being the largest of the pj ). t=0 is a suitable place to start, and Newton's method readily gives a solution. Special considerations apply when there are no events from one or more of the MC sources - more details of the solution can be found in [17].


next up previous contents index
Next: Other points concerning Up: Fitting with finite Previous: Methodology.

Janne Saarela
Tue May 16 09:09:27 METDST 1995