BetaGeoModel.distribution_new_customer_purchase_rate#

BetaGeoModel.distribution_new_customer_purchase_rate(random_seed=None)[source]#

Sample the Gamma distribution for the population-level purchase rate.

This is the purchase rate for a new customer and determines the time between purchases for any new customer.

Parameters:

random_seed (RandomState, optional) – Random state to use for sampling.

Returns:

Dataset containing the posterior samples for the population-level purchase rate.

Return type:

xr.Dataset