# Chi2/ndf higher than 1

**URL:** <https://root-forum.cern.ch/t/chi2-ndf-higher-than-1/49106>\
**Category:** Newbie\
**Tags:** hist, root\
**Created:** [March 9, 2022, 7:17pm UTC](https://root-forum.cern.ch/t/chi2-ndf-higher-than-1/49106 "2022-03-09T19:17:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marian\_dBT](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/marian_dbt/32/29035_2.png) [@Marian\_dBT](https://root-forum.cern.ch/u/Marian_dBT)\
**Post date:** [March 9, 2022, 7:17pm UTC](https://root-forum.cern.ch/t/chi2-ndf-higher-than-1/49106/1 "2022-03-09T19:17:05Z")

</div>

Hi! It seems there is a inconsistency between the fit a see in my histogram and the parameters I get from the fitting.

Using -\>GetChisquare() and -\>GetNDF() I get values of chi2/ndf that are very high, but graphically the fits are good so the value should be closer to 1, why can this be?

Attached you can find two examples of this problem.

 ![pTfrac_10](https://root-forum.cern.ch/uploads/default/original/3X/7/8/782054c6bc3424dd6a1edcb7b340506827b0f2d3.png)  
 ![pTfrac_13](https://root-forum.cern.ch/uploads/default/original/3X/7/3/735f1bd5ef8104a812f8ef0b5891c27afb6614fd.png)

Thank you very much

---

<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:** [March 9, 2022, 7:25pm UTC](https://root-forum.cern.ch/t/chi2-ndf-higher-than-1/49106/2 "2022-03-09T19:25:15Z")

</div>

Attach a ROOT file with your histogram for inspection.

---

<div class="post-metadata">

**Author:** ![Marian\_dBT](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/marian_dbt/32/29035_2.png) [@Marian\_dBT](https://root-forum.cern.ch/u/Marian_dBT)\
**Post date:** [March 9, 2022, 7:36pm UTC](https://root-forum.cern.ch/t/chi2-ndf-higher-than-1/49106/3 "2022-03-09T19:36:59Z")

</div>

I’ve edited the post with the histograms now,

Thank you.
