# Getting details of a gaussian fit

**URL:** <https://root-forum.cern.ch/t/getting-details-of-a-gaussian-fit/45580>\
**Category:** ROOT\
**Created:** [June 28, 2021, 1:04pm UTC](https://root-forum.cern.ch/t/getting-details-of-a-gaussian-fit/45580 "2021-06-28T13:04:35Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [June 29, 2021, 10:10am UTC](https://root-forum.cern.ch/t/getting-details-of-a-gaussian-fit/45580/8 "2021-06-29T10:10:17Z")

</div>

@moneta In [your example macro](https://root-forum.cern.ch/t/getting-details-of-a-gaussian-fit/45580/6), if you set “`gStyle->SetOptFit();`”, in the “statistics box” of the “Maximum Likelihood Fit” you will see “`chi2 / ndf`” which is completely different from “`2 * FCN`”. The value that is displayed is the same as returned by “`result2->Chi2()`”.

---

_[View the full topic](https://root-forum.cern.ch/t/getting-details-of-a-gaussian-fit/45580)._
