Fit Residual in Root

Hello

I am a new user in root, Firts I plot a data and fit this data with a linear function, this part is easy, them a try to plot a Residual errors, but I don’t know how.

Thanks

Hi,

The residual plot you will have to implement yourself , by creating a new Graph or Histogram filled with the difference between the data points and the fitted function value at the point divided by the data point error.
Attached a simple code example

Best Regards

Lorenzo
plotResidual.C (673 Bytes)

Hey,

I want to know if I can make residual plot for graph and its fit instead of histograms.

Please open a new topic instead of reviving a topic age seven. Please post the version of ROOT and some code demonstrating what you try to do.

Thanks!