# How to do a better fit?

**URL:** <https://root-forum.cern.ch/t/how-to-do-a-better-fit/58203>\
**Category:** Newbie\
**Created:** [February 17, 2024, 12:15pm UTC](https://root-forum.cern.ch/t/how-to-do-a-better-fit/58203 "2024-02-17T12:15:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vikas\_Raj](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/vikas_raj/32/34682_2.png) [@Vikas\_Raj](https://root-forum.cern.ch/u/Vikas_Raj)\
**Post date:** [February 17, 2024, 12:15pm UTC](https://root-forum.cern.ch/t/how-to-do-a-better-fit/58203/1 "2024-02-17T12:15:21Z")

</div>

I have used RooFit on the above distribution with a chi2/ndf value ~ 1.7. However, the 3 points above are being left behind always. I can’t seem to incorporate them without too much distortion. What can I do?( or should I leave it as it is?)

 ![de_fit](https://root-forum.cern.ch/uploads/default/original/3X/0/f/0f308d4af9d72c5395d223ec13791ae26c95f2a6.png)

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [February 19, 2024, 7:02am UTC](https://root-forum.cern.ch/t/how-to-do-a-better-fit/58203/2 "2024-02-19T07:02:29Z")

</div>

Hi Vikas,

Thanks for the post.  
This does not seem a ROOT related issue, but rather something inherent to your analysis. I would consider changing the fitted distribution, if this makes sense with your statistical interpretation.

Best,  
D
