# Fitting histogram with correlated systematic uncertainties

**URL:** <https://root-forum.cern.ch/t/fitting-histogram-with-correlated-systematic-uncertainties/53185>\
**Category:** Newbie\
**Created:** [January 20, 2023, 6:51am UTC](https://root-forum.cern.ch/t/fitting-histogram-with-correlated-systematic-uncertainties/53185 "2023-01-20T06:51:37Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![moneta](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/moneta/32/19423_2.png) [@moneta](https://root-forum.cern.ch/u/moneta)\
**Post date:** [January 24, 2023, 6:12pm UTC](https://root-forum.cern.ch/t/fitting-histogram-with-correlated-systematic-uncertainties/53185/6 "2023-01-24T18:12:46Z")

</div>

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](https://root.cern.ch/doc/master/line3Dfit_8C.html)).

Best regards

Lorenzo

---

_[View the full topic](https://root-forum.cern.ch/t/fitting-histogram-with-correlated-systematic-uncertainties/53185)._
