lifetimes icon indicating copy to clipboard operation
lifetimes copied to clipboard

Plotting Time from 0 -> 1

Open GrowthJeff opened this issue 4 years ago • 1 comments

I would like a graph / chart that is recency in the X axis and probability still alive on the Y axis. But instead of it being a given customer, I'd like it generalized to all customers of frequency = 0.

As a marketer, I'd love to understand the "best" time to intervene to save this type of customer is. The answer seems it would be either where p_alive = 0.5 or where the slope of p_alive is the sharpest negative. Any thoughts on how I might do this?

GrowthJeff avatar Aug 06 '20 23:08 GrowthJeff

This can best be done I believe by something like this from lifetimes.plotting import plot_probability_alive_matrix fig = plt.figure(figsize=(12,8)) plot_probability_alive_matrix(bgf, max_frequency = 8, max_recency=365)

GrowthJeff avatar Aug 07 '20 02:08 GrowthJeff