Chi-square between graphs

Hi,

I know that you can use the Chisquare method to return the chi square value between a TGraph and a function f1, and in the case of a TGraphErrors or TGraphAsymmErrors the errors are taken into account.

Is it possible to return the chi square value between a TGraph and another TGraph instead? (More specifically TGraphAsymmErrors).

I’ve also looked at the Fit method and am not sure where to go next.
I think I need something similar to the Chi2Test in the TH1 class. Is this possible with TGraphs, or will I need to make something myself?

Thanks,
Anjum

Hi,

at the moment the Chi2Test is provided only for TH1.

If the x coordinates are the same, you can transform the TGraph’s in TH1’s , using the points and error and perform the chi2 test.
If you have different coordinate values (and also errors in the coordinates) then I don’t think you can perform a chi2 test.

Best Regards

Lorenzo