Return value of ROOT::Fit::FitResult::MinFcnValue()

Hi,

I have a question regarding the return value of ROOT::Fit::FitResult::MinFcnValue().
I’m performing the fit with ROOT::Fit::Fitter::LikelihoodFit() to binned data, but it is not clear to me if what I get with MinFcnValue() is the value of the likelihood itself or the negative log likelihood.

I would really appreciate the clarification of an expert.
Sorry if the answer is already somewhere. I’ve tried to look for the answer elsewhere in the forum but I am still confused. Thanks!

Welcome to the ROOT forum. I do not know if it help (may be you already saw that) but the reference guide says:

   /// Return value of the objective function (chi2 or likelihood) used in the fit
   double MinFcnValue() const { return fVal; }

So it returns fVal which is defined as follow:

   double fVal;             ///< minimum function value

Hi, thank you for the answer.

Indeed, I saw this. I’m wondering if this fVal is the minimum of the negative log likelihood or the likelihood calculated at the minimum.

It is the minimum of the negative log likelihood (NLL). You will almost never see the normal likelihood in software like this, it’s just much better to use the NLL because it’s approximately parabolic and a big sum instead of a product. That’s better for numerics.

Cheers,
Jonas

1 Like