GammaGammaModel.expected_customer_spend#

GammaGammaModel.expected_customer_spend(data)#

Compute the expected future mean spend value per customer.

The computations are based on Eq 5 from [1], p.3.

Adapted from: CamDavidsonPilon/lifetimes

data~pandas.DataFrame

DataFrame containing the following columns:

  • customer_id: Unique customer identifier

  • frequency: Number of transactions observed for each customer

  • monetary_value: Mean transaction value of repeat purchases for each customer

References

[1]

Fader, P. S., & Hardie, B. G. (2013). “The Gamma-Gamma model of monetary value”. February, 2, 1-9. https://www.brucehardie.com/notes/025/gamma_gamma.pdf