Chi-Square-Fit

Dear ROOT Experts,

I am trying to fit two different types of data with a given PDF. When considering the error on the Y-axis variable, the fit yields a larger Chi-Square value, even though the fits look good. Note that when I set the errors to a fixed value, such as 0.001, the fits yield better Chi-Square values.

I am quite unsure why this is happening, and if it is just because of my errors(real), which are of 10^-6 magnitude.

Thanks in advance!

here is the code im using

Resolution.cc (2.4 KB)

Hi @Mustaphaa,

thank you for your question, I will ask @jonas for some help here.

Kind regards,
Marta

1 Like