concept last activity in category churn

appears as: last activity, last activity
Fighting Churn with Data

This is an excerpt from Manning's book Fighting Churn with Data.

7.3.3   Measuring the time since the last activity

Percentage changes are a good way to know if a user’s behavior has dropped or increased. A useful related measurement is the time since the last activity. The time since the last activity is not a measurement of change in behavior, but it relates how a customer's current behavior compares to the past. In particular, the time since last activity distinguishes customers who are newly inactive from those who may have been inactive for a long time.

Figure 7.23 illustrates the concept with a simple example on the event series for one account. Any time that you calculate the metric, the time since the last activity is just what it sounds like: the time difference between the most recent event before the measurement date and the measurement date. If a customer has an event on the day of the measurement, then the metric is zero. If the customer has no events for an extended period, the metric increases by one every day, until there is another event.

Figure 7.23 Measuring the time since the last activity, an event.

Like all of the metrics we use, the time since the last activity would be tedious to calculate by hand! Fortunately, it’s not that hard to do using SQL CTEs and aggregations. Figure 7.24 shows a sample of the typical output from such an SQL. Note that this output includes the date of the last event in the SELECT statement for illustrative purposes.