BetaGeoModel.distribution_new_customer_purchase_rate#

BetaGeoModel.distribution_new_customer_purchase_rate(data=None, *, 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_seedRandomState, optional

Random state to use for sampling.

Returns:
xarray.Dataset

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