I have a shopping site. I would like to build a simple predictive model to predict how likely an user will buy a certain product given a single visit (time spent on each page, where she came from, how many reviews she red etc.), when he is likely to leave a page etc.
What are the tools available for this task in Ruby on Rails, Python or Java? Do typical statistical modelling techniques such as logistic regressions, linear regressions work in this context?
I'd try to reduce the problem to a classification problem - and use Machine learning existing tools to get an answer.
Here are some steps you will need to take in order to do so:
A short list of some of the algorithms you can use for this:
I don't know about Ruby on rails or python tools, but in Java - there is an open source project called Weka, that has these classification algorithms, and more.
Note:
You can evaluate your algorithm and get your confusion matrix (Evaluation how much the algorithm was right and how much it was wrong, and how), by using cross-validation on the training set.