# Access signal (background) likelihood per-event

**URL:** <https://root-forum.cern.ch/t/access-signal-background-likelihood-per-event/32799>\
**Category:** TMVA\
**Created:** [February 19, 2019, 6:02am UTC](https://root-forum.cern.ch/t/access-signal-background-likelihood-per-event/32799 "2019-02-19T06:02:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmilesi](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/ecb155/32.png) [@mmilesi](https://root-forum.cern.ch/u/mmilesi)\
**Post date:** [February 19, 2019, 6:02am UTC](https://root-forum.cern.ch/t/access-signal-background-likelihood-per-event/32799/1 "2019-02-19T06:02:11Z")

</div>

Hello,

apologies if this has been answered somewhere else.

As far as I am aware, the TMVA Likelihood method(s) Reader interface gives access only to the per-event likelihood ratio (L\_s /( L\_s+L\_b)) in the application stage.  
Is there a way to get the actual per-event signal (bkg) likelihood value L\_s (L\_b) instead?

I am interested in combining information from different independent sub-detectors in a global likelihood-based classifier, hence the need to first get the actual likelihoods for s(b) in each sub-detector.

Cheers  
Marco

---

<div class="post-metadata">

**Author:** ![kialbert](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/kialbert/32/16537_2.png) [@kialbert](https://root-forum.cern.ch/u/kialbert)\
**Post date:** [February 20, 2019, 7:11pm UTC](https://root-forum.cern.ch/t/access-signal-background-likelihood-per-event/32799/2 "2019-02-20T19:11:35Z")

</div>

Hi,

Unfortunately this seems impossible in the current implementation, the only piece of information you can extract is the likliehood ratio.

One would have hoped that the individual likelihoods would be reconstructible using the multiclass version, but it seems the system of equations is ill-formed.

Now, implementing such as this is definitely possible, but a good argument would be needed so that it’s work could be prioritized.

Cheers,  
Kim

---

<div class="post-metadata">

**Author:** ![mmilesi](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/ecb155/32.png) [@mmilesi](https://root-forum.cern.ch/u/mmilesi)\
**Post date:** [February 20, 2019, 11:28pm UTC](https://root-forum.cern.ch/t/access-signal-background-likelihood-per-event/32799/3 "2019-02-20T23:28:46Z")

</div>

Hi Kim,

that’s what I feared ☹

Shall I make a JIRA ticket for making a request then?

Cheers  
Marco

---

<div class="post-metadata">

**Author:** ![kialbert](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/kialbert/32/16537_2.png) [@kialbert](https://root-forum.cern.ch/u/kialbert)\
**Post date:** [February 22, 2019, 9:33am UTC](https://root-forum.cern.ch/t/access-signal-background-likelihood-per-event/32799/4 "2019-02-22T09:33:41Z")

</div>

That would indeed be good! We can also quickly check with @moneta if he has any comments here!

---

<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:** [February 22, 2019, 6:02pm UTC](https://root-forum.cern.ch/t/access-signal-background-likelihood-per-event/32799/5 "2019-02-22T18:02:26Z")

</div>

I have nothing to add on what Kim said. Please go ahead and make a Jira ticket

Lorenzo
