You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ROOT::Fit::FitResult::Chi2() returns the chi2 after fitting, TH1::Chisquare calls the function ROOT::Fit::Chisquare which compute the chi2 with an arbitrary function and histogram. The implementation is the same using the ROOT::Fit::Chi2FCN class.
As reported in https://root-forum.cern.ch/t/chi-square-definition-in-root/51083/3,
the reported chi-square from
TF1::GetChisquare
and fromFitResult
is not correct.A Neyman chi-square is computed but using also the empty bins.
See https://github.com/root-project/root/blob/master/math/mathcore/src/FitResult.cxx#L183
We should return in this case as chi-square the value suggested by Baker-Cousins, i.e. 2 * MinNLL.
In addition we have also :
TF1::GetChisquare
andROOT::Fit::FitResult::Chi2
is missing.TH1::Chisquare
andROOT::Fit::Chisquare
should compute also the Pearson chi-squareThe text was updated successfully, but these errors were encountered: