# Stooping criterion of Minuit.migrad when EDM is larger than tolerance

**URL:** <https://root-forum.cern.ch/t/stooping-criterion-of-minuit-migrad-when-edm-is-larger-than-tolerance/45581>\
**Category:** Newbie\
**Created:** [June 28, 2021, 2:23pm UTC](https://root-forum.cern.ch/t/stooping-criterion-of-minuit-migrad-when-edm-is-larger-than-tolerance/45581 "2021-06-28T14:23:15Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![victor\_estrade](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/victor_estrade/32/26638_2.png) [@victor\_estrade](https://root-forum.cern.ch/u/victor_estrade)\
**Post date:** [June 28, 2021, 5:12pm UTC](https://root-forum.cern.ch/t/stooping-criterion-of-minuit-migrad-when-edm-is-larger-than-tolerance/45581/7 "2021-06-28T17:12:57Z")

</div>

These new information lead me to this old topic on the forum :

> [@Machine accuracy limits further improvement](https://root-forum.cern.ch/t/machine-accuracy-limits-further-improvement/8815/4):
>
> Hi Moritz, Such machine accuracy issues can be driven by a number of sources, the effect of which may sometimes be amplified in the final likelihood, e.g. when a numeric normalization integral is used for a p.d.f. You should be able to control the tolerance by running your fit with RooMinuit directly and calling RooMinuit::setEps(Double\_t eps) ; Wouter

It seems that my situation is similar.  
The function I try to minimize is the negative log likelihood of a 10 bin Poisson counting :  
\begin{equation}  
L(\mu, rescale) = \prod\_i=1^10 Poisson(n\_i | \mu\_i \* s\_i(rescale) + b\_i(rescale) )  
\end{equation}

Re-scaling the NLL by a factor `beta` may help the numerical minimization.  
Then I guess that I should compensate the computed error by a factor `sqrt(beta)` ?  
Similarly to what is written in section 1.4.1 of the [documentation](https://root.cern.ch/download/minuit.pdf).

Or is it better to re-scale the `UP` parameter ? (which I believe is the same as ErrorDef)

---

_[View the full topic](https://root-forum.cern.ch/t/stooping-criterion-of-minuit-migrad-when-edm-is-larger-than-tolerance/45581)._
