Apologies in advance for what I’m sure is a naive question.
I’m attempting to apply the Chi2Test function to compare two histogram distributions. If I use the option ‘CHI2’ within this function, the chi2 value is returned, whilst using ‘CHI2/NDF’ returns the reduced chi-squared value.
I want to know the number of degrees of freedom involved in this calculation. Since there doesn’t seem to be some sort of function belonging to the TH1 class that returns this, I assumed it would be valid to divide the chi-squared value by the reduced chi-squared value. Doing this returns a value of 39 for two particular histograms.
However, both of these histograms have 50 bins each. Where exactly are the other 11 degrees of freedom going? Does plotting my variable somehow involve 11 parameters? (I’m comparing pT distributions).