# Signal and background differ only by event weights - Is discrimination possible?

**URL:** <https://root-forum.cern.ch/t/signal-and-background-differ-only-by-event-weights-is-discrimination-possible/37304>\
**Category:** TMVA\
**Created:** [December 23, 2019, 8:11am UTC](https://root-forum.cern.ch/t/signal-and-background-differ-only-by-event-weights-is-discrimination-possible/37304 "2019-12-23T08:11:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anshul\_Kapoor](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/anshul_kapoor/32/20540_2.png) [@Anshul\_Kapoor](https://root-forum.cern.ch/u/Anshul_Kapoor)\
**Post date:** [December 23, 2019, 8:11am UTC](https://root-forum.cern.ch/t/signal-and-background-differ-only-by-event-weights-is-discrimination-possible/37304/1 "2019-12-23T08:11:30Z")

</div>

I want to differentiate between signal **(S)** and background **(B)**, but the only difference between them “technically” is that the event weights are different.

Say I have a pT distribution for process S. Now if I want to get the pT distribution for B, I just take the pT distribution of S and **weight correspondingly in each bin** to get the pT distribution of B. I do a similar thing for MET, Et, etc. At the distribution level, I know this is correct since the distributions look like what they should. But at the tree level, nothing has really changed. The only difference between S and B trees is a **weight** branch that is different between S and B.

(pT, MET, Et etc are just some standard input variables)

Is it possible to train a BDT to identify S from B? I was thinking about **per-bin weights** in the standard way:

```auto
factory->AddSignalTree ( signal, signalWeight );
factory->AddBackgroundTree( background, backgroundWeight );

```

But I want to know if this makes sense. As the raw input variables are not different between S and B, will discrimination really work?

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [January 6, 2020, 3:26pm UTC](https://root-forum.cern.ch/t/signal-and-background-differ-only-by-event-weights-is-discrimination-possible/37304/2 "2020-01-06T15:26:34Z")

</div>

May be @moneta has an idea ?

---

<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:** [January 27, 2020, 3:08pm UTC](https://root-forum.cern.ch/t/signal-and-background-differ-only-by-event-weights-is-discrimination-possible/37304/3 "2020-01-27T15:08:03Z")

</div>

Hi,

Your approach is sound. From a statistical stand-point using two different MCMC samples and using a reweighted sample are equivalent given a large enough sample size.

Cheers,  
Kim
