I am a new user. I want to perform a fit of a histogram (with variable bin width) with correlated uncertainties among the bins with the data in Root. I am struggling to implement the correlation matrix (or covariance matrix) in my code.
Is there any sample code regarding this in the repository?
Hi,
We don’t have at the moment examples of fitting data where the points have correlated errors.
You need in this case to write yourself the Chi-square function using the correlation matrix.
We have however some example on fitting a user provided method, like this one fitting a 3D line to 3D points (ROOT: tutorials/fit/line3Dfit.C File Reference).