lifetimes
lifetimes copied to clipboard
Plotting Time from 0 -> 1
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?
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)