I'm quite new to machine learning and statistics.

I've a dataset from some ecommerce sale's history. It's almost 2k instances, and features include personId (string), productCategory (string/discrete), amountPaid (float/continuous), purchaseTime (string/Time(DD/MM/YYYY)). Person can purchase product at any time (irregular time interval so I can't use time series analysis, I guess).

I want to know when will the same person (attr with person Id) make just next purchase in a category (attr with productCategory). What ML model should I use for this problem? Should I use Time Series forcasting or Survival Analysis or maybe some other function? How should I approach this problem?


1 Answer 1


Survival Analysis would be a common way to approach it. One way to model it would be to predict time-to-purchase where the prior is already purchased.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.