# How to can I use TMVA to draw the ROC curve and compute its AUC of a discriminative variable?

**URL:** <https://root-forum.cern.ch/t/how-to-can-i-use-tmva-to-draw-the-roc-curve-and-compute-its-auc-of-a-discriminative-variable/64544>\
**Category:** TMVA\
**Created:** [December 16, 2025, 12:04pm UTC](https://root-forum.cern.ch/t/how-to-can-i-use-tmva-to-draw-the-roc-curve-and-compute-its-auc-of-a-discriminative-variable/64544 "2025-12-16T12:04:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ammelsayed](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ammelsayed/32/39472_2.png) [@ammelsayed](https://root-forum.cern.ch/u/ammelsayed)\
**Post date:** [December 16, 2025, 12:04pm UTC](https://root-forum.cern.ch/t/how-to-can-i-use-tmva-to-draw-the-roc-curve-and-compute-its-auc-of-a-discriminative-variable/64544/1 "2025-12-16T12:04:40Z")

</div>

Dear experts,

I’m using TMVA for training a BDTs classifier model. I noticed that after the model is ready, I can request a ROC curve of the BDTs trained and TMVA will tell me its AUC. But now I would like to know the discriminative power of the variables entered for training. Is there a method that I can use via TMVA to request the ROC curve of a variable as a TGraph object?

I setup via adding a signal tree and a background tree.

---

<div class="post-metadata">

**Author:** ![ajomy](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ajomy/32/37349_2.png) [@ajomy](https://root-forum.cern.ch/u/ajomy)\
**Post date:** [December 17, 2025, 10:16am UTC](https://root-forum.cern.ch/t/how-to-can-i-use-tmva-to-draw-the-roc-curve-and-compute-its-auc-of-a-discriminative-variable/64544/2 "2025-12-17T10:16:32Z")

</div>

Hi @[ammelsayed](https://root-forum.cern.ch/u/ammelsayed),

Adding @moneta in the loop so he can help you with your question.

Thanks,  
Aaron
