2
$\begingroup$

Suppose we have a data set consists of columns

TransactionId, CardNo, TransactionDate

then how can we calculate the customer purchase interval (means if customer A purchased on Jan 1st and after 10 days he again purchased, and then he again purchased after 15 days.) and how to predict the next visit of customer A by analysing the purchasing intervals of customer A.

Any help will be appreciated.

$\endgroup$
1
  • $\begingroup$ I found this article using Lifetimes that Jonathan suggested, and it is very easy to follow and comprehensive. Take a look $\endgroup$
    – Julius Leo
    Sep 22, 2022 at 8:48

1 Answer 1

2
$\begingroup$

With Lifetimes it's very straight forward to implement.

$\endgroup$

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.