Customer churn is a measure of the company's tendency to lose customers. Our user story speaks of the need to detect at-risk customers and prevent them from becoming a lost customer.
As a sales representative, I want to see which customers I'm at risk of losing so that I can take action today to prevent their leaving.
Surely, there are many variables that we may use to predict customer churn. In this case we expect customers to consistently make a purchase every so many days, so we will use a variable called customer purchase frequency to detect those that we are at risk of losing.
We could calculate the average number of days between purchases and warn sales representatives when the number of days since a customer's last purchase ...