# Who to believe, ROC-integ or ROC curve?

**URL:** <https://root-forum.cern.ch/t/who-to-believe-roc-integ-or-roc-curve/27086>\
**Category:** TMVA\
**Created:** [November 28, 2017, 2:42pm UTC](https://root-forum.cern.ch/t/who-to-believe-roc-integ-or-roc-curve/27086 "2017-11-28T14:42:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![a.bragagnolo](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/f14d63/32.png) [@a.bragagnolo](https://root-forum.cern.ch/u/a.bragagnolo)\
**Post date:** [November 28, 2017, 2:42pm UTC](https://root-forum.cern.ch/t/who-to-believe-roc-integ-or-roc-curve/27086/1 "2017-11-28T14:42:29Z")

</div>

Hi all,  
sometimes when I train several methods the ROC-integ presented at the end of the training clearly do not respect the ROC curves accessed through TMVAGui. See for example:

```auto
 Name: Method: ROC-integ
 dataset BDT_Tracker2 : 0.566
 dataset BDT_Tracker : 0.855

```

 ![Selection_138](https://root-forum.cern.ch/uploads/default/original/2X/3/3d8d034a53e440a9b9876337f00cd6916ba0e9e7.png)

 ![Selection_139](https://root-forum.cern.ch/uploads/default/original/2X/b/b49f7b54cff79c621019c35302ec8310bfcb983a.png)

 ![Selection_140](https://root-forum.cern.ch/uploads/default/original/2X/4/485f006f7ff6d3daeb172c6bdf1f65b82632c997.png)

The ROC Curve of BDT\_Tracker2 clearly show a better classificator but the ROC-integ displayed report a measly 0.566.

My question is: what is more accurate and less prone to be an error? My bet is on the curve but I want your opinion as TMVA expert.

Thanks for your time,

Alberto

---

<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:** [November 28, 2017, 2:52pm UTC](https://root-forum.cern.ch/t/who-to-believe-roc-integ-or-roc-curve/27086/2 "2017-11-28T14:52:18Z")

</div>

HI,

Which version of ROOT are you using ? I think there was a bug with the ROC integral calculation that should have been fixed in the current master version.  
If you can check with the latest version would be great, otherwise, you can send me the output file and I can double-check the result.  
But it is clear that the result of the curve in this case seems to be correct

Best Regards

Lorenzo

---

<div class="post-metadata">

**Author:** ![a.bragagnolo](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/f14d63/32.png) [@a.bragagnolo](https://root-forum.cern.ch/u/a.bragagnolo)\
**Post date:** [November 28, 2017, 3:15pm UTC](https://root-forum.cern.ch/t/who-to-believe-roc-integ-or-roc-curve/27086/3 "2017-11-28T15:15:46Z")

</div>

Hi,  
I’m using ROOT 6.10/08.  
The bug is only in the integral calculation or even in the roc curve?

Regards,  
Alberto

---

<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:** [December 11, 2017, 3:59pm UTC](https://root-forum.cern.ch/t/who-to-believe-roc-integ-or-roc-curve/27086/4 "2017-12-11T15:59:05Z")

</div>

Hi,

I think the bug might be in both. Could you try to use 6.11.02 or wait for the new 6.12 release, that will be done later this week ?  
Otherwise if you post your macro and data I can try it

Best

Lorenzo

---

<div class="post-metadata">

**Author:** ![a.bragagnolo](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/f14d63/32.png) [@a.bragagnolo](https://root-forum.cern.ch/u/a.bragagnolo)\
**Post date:** [December 11, 2017, 4:10pm UTC](https://root-forum.cern.ch/t/who-to-believe-roc-integ-or-roc-curve/27086/5 "2017-12-11T16:10:52Z")

</div>

I’ll wait for 6.12, thanks.

Alberto
