Correlation coefficents

Hi rooters,

I have a linear fit (pol1) to some data points and I want to find out the correlation coefficients between the fit
parameters P0 and P1.

I saw there is the function GetCorrelationFactor but i suspect this gives the correlation between X and Y. Any ideas?

Thanks
Kate

kate,
You can do this way:

  • Given our data points, (x,y), and your linear fit y=ax+b, then calculate y_{estimate} = a*x+b, thus you have many estimated points (x, y_{estiamte})
  • Plot a TGraph : (y, y_{estimate})
  • Use GetCorrelationFactor to get their correlation.

Zhiyi.

Great this worked.
Thanks very much.