BaseGammaGammaModel.distribution_customer_spend#
- BaseGammaGammaModel.distribution_customer_spend(data, random_seed=None)[source]#
Posterior distribution of mean spend values for each customer.
- Parameters:
- data
DataFrame DataFrame containing the following columns:
customer_id: Unique customer identifierfrequency: Number of purchasesmonetary_value: Mean spend values for each customer
- random_seed
RandomState, optional Optional random seed to fix sampling results.
- data