Predict which user will buy with an offer - discount I have historical data from an e-shop transactions. I want to write a prediction model and check if a specific user will buy with or without a discount, so I can do some targeting offers.

The idea is:


If a user will buy the regular price, will not have an offer.
If a user will not buy the regular price, check if he/she will buy with an offer.


With this way, I will avoid to make an offer to someone who would buy with the regular price.

So, I am still in the brainstorming and trying to find a way for implementing the 1-2. Should I create two separate models to predict the 1) and then the 2) with the second model? Or should I join both in one prediction model?
You can use Decision trees for a single model prediction for both the set of users.

A good start would be to first read up on Decision Trees and their applications.

You can include the offer as a decision(as a boolean in this case). 

buying with offer and buying without offer can be the decision criterion.

You can, in fact go ahead and put in the offer values also. For example, 

offer&gt;10% and offer &lt;10%