BaseGammaGammaModel.distribution_customer_spend#

BaseGammaGammaModel.distribution_customer_spend(data, random_seed=None)[source]#

Posterior distribution of mean spend values for each customer.

Parameters:
dataDataFrame

DataFrame containing the following columns:

  • customer_id: Unique customer identifier

  • frequency: Number of purchases

  • monetary_value: Mean spend values for each customer

random_seedRandomState, optional

Optional random seed to fix sampling results.