ParetoNBDModel.distribution_new_customer_purchase_rate#
- ParetoNBDModel.distribution_new_customer_purchase_rate(data=None, *, random_seed=None)[source]#
Sample from the Gamma distribution representing purchase rates for new customers.
This is the purchase rate for a new customer and determines the time between purchases for any new customer.
- Parameters:
- data
DataFrame
, optional DataFrame containing the following columns:
customer_id
: Unique customer identifierAll covariate columns specified when model was initialized.
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:
Dataset
Dataset containing the posterior samples for the population-level purchase rate.