On Mar 1, 2011, at 2:26 PM, Marc Escalier wrote:
> sorry, > i'm not sure to understand > > i call exactly the same function for the two fits and i reinitialize the parameters and their errors > only the histogram is not the same
I don't understand, if the histogram is different, the likelihood function will be different....
> > but i see that the digits are not exactly the same > --> > how to fix the "numerical error in the function evaluation" ? > > i mean the result is not reproducible if one does a previous fit : it sounds problematic, isn't it ?
It is not a problem as long as the numerical error is much smaller that your statistical errors. For example you can get a different likelihood value if you are using a different order in summing the contributions, although the contributions are all the same.
> > >It could be also you are using a MC integration in the function evaluation. In this case this can happen. > sorry : what is a Monte-Carlo Integration ?
See http://en.wikipedia.org/wiki/Monte_Carlo_integration In this case, since random number are used the result of the integral will be different if you are using different random seeds.
>
> (i just used : myhisto->Fit("LV");
Fine, but what is your function ?? It could be a very complicated object doing integrals or whatever....
Lorenzo
> > thank for any help > > ======= > > Lorenzo Moneta a écrit : >> Hi Marc, >> >> The fit is re-initialized correctly when you set the parameters and the errors. In your case, it is probably your function which returns a different result given the same parameters probably due to a numerical error in the function evaluation. >> I can see that you have a numerical problem in evaluating your function to minimize by seeing this error message in the log file: MIGRAD FAILS TO FIND IMPROVEMENT >> MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT. >> >> It could be also you are using a MC integration in the function evaluation. In this case this can happen. >> >> Cheers, >> Lorenzo >> On Mar 1, 2011, at 1:08 PM, Marc Escalier wrote: >>
This archive was generated by hypermail 2.2.0 : Tue Mar 01 2011 - 17:50:01 CET