4
$\begingroup$

I want to create a model to predict the propensity to buy a certain product. As my proportion of 1's is very low, I decided to apply oversampling (to get a 10% of 1's and a 90% of 0's). Now, I want to discretize some of the variables. To do so I run a tree for each variable against the target. My question is...shall I define the prior probabilities when I do this (run the trees), or it doesn't matter and I can use the over-sampled dataset just like that?

Thanks.

$\endgroup$
  • $\begingroup$ Using a tree is certainly a way to discretize, i.e. finding break points. Quantiles is another alternative. Not sure why you need to discretize, although it is a valid thing to do, but check your accuracy. You could create the model on this transformed data set. Also not sure what you mean by prior in this context. It might be better to subset on the class which is easy to predict as opposed to "over-sample" on the low volume class, as not to over-fit the model. $\endgroup$ – user13684 Nov 3 '15 at 2:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.