Chi-square test for histogram fitted with Likelihood method

Dear Lorenzo,
many thanks.

Indeed the number I obtain with your suggestion matches the formula on the paper.
So the question now is: which number shall I sue to make goodness of fit test?
this one double chi2 = 2 * result->MinFcnValue();
or this one myFcn->GetChisquare();
(where myFcn is the function I use to perform the fit)

Either case, which number of degrees of freedom shall I use?

Many thanks again.

  • Mauro.