BetaGeoBetaBinomModel.distribution_new_customer_dropout#
- BetaGeoBetaBinomModel.distribution_new_customer_dropout(data=None, *, random_seed=None)[source]#
Sample from the Beta distribution representing dropout probabilities for new customers.
This is the probability a new customer will drop out after making a purchase.
- Parameters:
- data
DataFrame, optional DataFrame containing the following columns:
customer_id: Unique customer identifier
If not provided, predictions will be ran with data used to fit model.
- random_seed
RandomState, optional Random state to use for sampling.
- data
- Returns:
DatasetDataset containing the posterior samples for the population-level dropout rate.