# Use regressed value to discriminate two samples

**URL:** <https://root-forum.cern.ch/t/use-regressed-value-to-discriminate-two-samples/24565>\
**Category:** TMVA\
**Created:** [April 26, 2017, 3:09pm UTC](https://root-forum.cern.ch/t/use-regressed-value-to-discriminate-two-samples/24565 "2017-04-26T15:09:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Binghuan\_Li](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/b/db5fbb/32.png) [@Binghuan\_Li](https://root-forum.cern.ch/u/Binghuan_Li)\
**Post date:** [April 26, 2017, 3:09pm UTC](https://root-forum.cern.ch/t/use-regressed-value-to-discriminate-two-samples/24565/1 "2017-04-26T15:09:10Z")

</div>

I try to first use regression to get the value of variable V, then use V to discriminate sample A and B.  
Dear Expert,

The distribution of regression target V shows good separation between sample A and B.  
If I use only A to train the regression, the regressed value RegV in A and B are both similar to target V in A.

So in order to keep the information that target V are different in A and B, I merge A and B and use A+B to train the regression, the RegV in A and RegV in B are both now similar to target V(A+B), so that the separation power decrease compared to that of target V shown between sample A and B.

I’m wondering why this happens?  
Is there any solution?

Sincerely thanks in advance,  
Binghuan

---

<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:** [July 19, 2017, 1:58pm UTC](https://root-forum.cern.ch/t/use-regressed-value-to-discriminate-two-samples/24565/2 "2017-07-19T13:58:19Z")

</div>

Hi,

Extremely sorry for the very late reply. Is this related to your [post in January](https://root-forum.cern.ch/t/binning-of-the-target-variables-in-regression-using-bdtg-method/22449)?

I am curious whether the two samples that you want to discriminate have a large spread in event weights, what normalisation of the events you do and whether you still use BDTG.

Cheers,  
Kim
