ModifiedBetaGeoModel.expected_purchases#
- ModifiedBetaGeoModel.expected_purchases(data=None, *, future_t=None)[source]#
Compute the expected number of future purchases across future_t time periods given recency, frequency, and T for each customer.
The data parameter is only required for out-of-sample customers.
Adapted from equation (6) in [1], and the legacy
lifetimeslibrary: CamDavidsonPilon/lifetimes- Parameters:
- future_t
int, array_like Number of time periods to predict expected purchases.
- data
DataFrame Optional dataframe containing the following columns:
customer_id: Unique customer identifierfrequency: Number of repeat purchasesrecency: Time between the first and the last purchaseT: Time between first purchase and end of observation period; model assumptions require T >= recency
- future_t
References
[1]Batislam, E.P., M. Denizel, A. Filiztekin (2007),
“Empirical validation and comparison of models for customer base analysis,” International Journal of Research in Marketing, 24 (3), 201-209. https://works.bepress.com/meltem-denizel/2/download/