ParetoNBDModel.distribution_new_customer_dropout#
- ParetoNBDModel.distribution_new_customer_dropout(data=None, *, random_seed=None)[source]#
Sample from the Gamma distribution representing dropout times for new customers.
This is the duration of time a new customer is active before churning, or dropping out.
- Parameters:
data (pd.DataFrame, optional) –
- DataFrame containing the following columns:
customer_id
: unique customer identifiercovariates: Purchase and dropout covariate columns if original model had any.
If not provided, the method will use the fit dataset.
random_seed (RandomState, optional) – Random state to use for sampling.
- Returns:
Dataset containing the posterior samples for the population-level dropout rate.
- Return type:
xr.Dataset