# MINOS error is zero for all parameters. except the first one

**URL:** <https://root-forum.cern.ch/t/minos-error-is-zero-for-all-parameters-except-the-first-one/46246>\
**Category:** Newbie\
**Tags:** root\
**Created:** [August 9, 2021, 6:10pm UTC](https://root-forum.cern.ch/t/minos-error-is-zero-for-all-parameters-except-the-first-one/46246 "2021-08-09T18:10:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mojtaba](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/e56c9b/32.png) [@Mojtaba](https://root-forum.cern.ch/u/Mojtaba)\
**Post date:** [August 9, 2021, 6:10pm UTC](https://root-forum.cern.ch/t/minos-error-is-zero-for-all-parameters-except-the-first-one/46246/1 "2021-08-09T18:10:00Z")

</div>

Hi

Minos returns zero for all asymmetric parameter errors except the first parameter. This is while status is “SUCCESSFUL”. The weird thing is that if I switch any parameter with par0, I will get nonzero asymmetric errors for the new parameter 0, and zero for all other parameters including the one that before switching was par0 and had nonzero error. I am using  
MNERRS 􏰈(NUM􏰌, EPLUS􏰊\*, 􏰌EMINUS\*, 􏰊􏰌EPARAB_􏰊, 􏰌GLOBCC_)  
to access the errors. I was wondering why is that so and how I can get nonzero asymmetric error for all of the parameters. Any help is appreciated.

Mojtaba.􏰊􏰉

\_ROOT Version: 6.18/04  
\_Platform: macOS Catalina 10.15.4  
_Compiler:_ Not Provided

* * *

---

<div class="post-metadata">

**Author:** ![moneta](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/moneta/32/19423_2.png) [@moneta](https://root-forum.cern.ch/u/moneta)\
**Post date:** [August 10, 2021, 3:31pm UTC](https://root-forum.cern.ch/t/minos-error-is-zero-for-all-parameters-except-the-first-one/46246/2 "2021-08-10T15:31:29Z")

</div>

Hi,  
This is strange. Can you post the full Minos log file obtained in verbose mode, so I can understand…  
In case it is still unclear I would need your program reproducing this

Cheers

Lorenzo

---

<div class="post-metadata">

**Author:** ![Mojtaba](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/e56c9b/32.png) [@Mojtaba](https://root-forum.cern.ch/u/Mojtaba)\
**Post date:** [August 10, 2021, 6:47pm UTC](https://root-forum.cern.ch/t/minos-error-is-zero-for-all-parameters-except-the-first-one/46246/3 "2021-08-10T18:47:21Z")

</div>

> [@moneta](#):
>
> full Minos log file obtained in verbose mode

Hi Lorenzo

The problem gets solved when I use minuit-\>Command() instead of minuit-\>mnexcm() to call MINOS. The outputs for minuit-\>mnexcm() shows that only first parameter’s asymmetric error is calculated. It is while when I call minuit-\>Command(), Minos calculates all of the parameters’ asymmetric errors. Please find attached the outputs of both minuit-\>mnexcm() and Command-\>mnexcm().

Mojtaba.  
[Verbose mode for Command.pdf](https://root-forum.cern.ch/uploads/short-url/kuFFtQt7Q1fypXfqXcSAzpNUDlU.pdf) (49.4 KB)  
[Verbose mode for mnexcm.pdf](https://root-forum.cern.ch/uploads/short-url/usaETIm0mqrTaRZutlcME4a0ExV.pdf) (35.5 KB)

---

<div class="post-metadata">

**Author:** ![moneta](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/moneta/32/19423_2.png) [@moneta](https://root-forum.cern.ch/u/moneta)\
**Post date:** [August 11, 2021, 2:14pm UTC](https://root-forum.cern.ch/t/minos-error-is-zero-for-all-parameters-except-the-first-one/46246/4 "2021-08-11T14:14:53Z")

</div>

Hi,  
Note that `mnexcm` computes the Minos errors for only one parameter (the parameter number starts from 1 in the old Minuit), so depending what you pass in the command, what you have is expected.  
Note also that there is a C++ interface for Minuit (both old Minuit, TMinuit, and the new implementation, Minuit2), which computes also the Minos errors. See the class `ROOT::Math::Minimizer`,  
[https://root.cern.ch/doc/master/classROOT\_1\_1Math\_1\_1Minimizer.html](https://root.cern.ch/doc/master/classROOT_1_1Math_1_1Minimizer.html)

Lorenzo
