# How to correctly extract the chi2, ndf, p-value of a RooFitResult

**URL:** <https://root-forum.cern.ch/t/how-to-correctly-extract-the-chi2-ndf-p-value-of-a-roofitresult/45956>\
**Category:** Roofit and RooStats\
**Created:** [July 21, 2021, 3:11pm UTC](https://root-forum.cern.ch/t/how-to-correctly-extract-the-chi2-ndf-p-value-of-a-roofitresult/45956 "2021-07-21T15:11:58Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![astauffe](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/53a042/32.png) [@astauffe](https://root-forum.cern.ch/u/astauffe)\
**Post date:** [August 3, 2021, 11:40am UTC](https://root-forum.cern.ch/t/how-to-correctly-extract-the-chi2-ndf-p-value-of-a-roofitresult/45956/3 "2021-08-03T11:40:35Z")

</div>

Hi everybody,  
is it possible to still answer this question? Basically, my question was: “What is the correct way to extract a chi², ndf and p-value of of a RooFitResult?”. Of secondary importance is: “Why do all my tried methods lead to different results?”. I am sorry if I provided too much or little detail or asked my question in the wrong way. Also I am using Root v6.24/02 and if necessary I could come up with a minimal working example.  
Best,  
Alex

---

_[View the full topic](https://root-forum.cern.ch/t/how-to-correctly-extract-the-chi2-ndf-p-value-of-a-roofitresult/45956)._
