# Drawing convergence ellipse in 2d

**URL:** <https://root-forum.cern.ch/t/drawing-convergence-ellipse-in-2d/61936>\
**Category:** ROOT\
**Created:** [October 15, 2024, 2:11pm UTC](https://root-forum.cern.ch/t/drawing-convergence-ellipse-in-2d/61936 "2024-10-15T14:11:19Z")\
**Posts on this page:** 1\
**Showing post:** 10

<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:** [October 16, 2024, 5:43pm UTC](https://root-forum.cern.ch/t/drawing-convergence-ellipse-in-2d/61936/10 "2024-10-16T17:43:36Z")

</div>

It seems to me you want to set “some\_chi2\_contour\_level = chi2\_minimum\_from\_the\_fit + some\_delta\_chi2”.

See the equation “`(40.80)`” and the “`Table 40.2`” in: [`PDG` → `The Review of Particle Physics (2024)` → `Mathematical Tools` → `Statistics`](https://pdg.lbl.gov/2024/web/viewer.html?file=../reviews/rpp2024-rev-statistics.pdf)

Try (note: for “`p = 0.95`” and “`ndf = 2`”, the “`delta_chi2 = 5.9914645`”):  
[`TMath::ChisquareQuantile(0.95, 2)`](https://root.cern.ch/doc/master/namespaceTMath.html#ac9062e2d5b6955de15c688ffda0048b4)  
[`1. - TMath::Prob(5.9914645, 2)`](https://root.cern.ch/doc/master/namespaceTMath.html#a3aba6abaf2bc605680c7be8fc5fd98aa)

The macro attached below may also be helpful.

[bigaus\_prob.cxx](https://root-forum.cern.ch/uploads/short-url/jYvb6e3D14bJXRA1WqZUrjW8B8i.cxx) (5.1 KB)

---

_[View the full topic](https://root-forum.cern.ch/t/drawing-convergence-ellipse-in-2d/61936)._
