Implementing BTYD Models with the Log Sum Exp Patch
BG/BB Posterior Mean Transaction Rate
BG/BB Discounted Expected Residual Transactions using a recency-freque...
BG/BB Log-Likelihood using a recency-frequency matrix
BG/BB Posterior Mean Dropout Rate using a recency-frequency matrix
BG/BB Posterior Mean Transaction Rate using a recency-frequency matrix
BG/NBD Log-Likelihood Wrapper
BG/NBD Conditional Expected Transactions
BG/BB Posterior Mean (l,m)th Product Moment
Add Logs
BG/BB Conditional Expected Transactions
BG/BB Discounted Expected Residual Transactions
BG/BB Parameter estimation
BG/BB Expectation
BG/BB Heatmap of Holdout Period Expected Transactions
BG/BB Log-Likelihood
BG/BB P(Alive)
BG/BB Plot Dropout Rate Heterogeneity
BG/BB Plot Frequency in Calibration Period
BG/BB Plot Frequency in Holdout
BG/BB Plot Frequency vs Conditional Expected Frequency
BG/BB Plot Recency vs Conditional Expected Frequency
BG/BB Tracking Cumulative Transactions Plot
BG/BB Tracking Incremental Transactions Plot
BG/BB Plot Transaction Rate Heterogeneity
BG/BB General Probability Mass Function
BG/BB Probability Mass Function
BG/BB Posterior Mean Dropout Rate
BG/NBD Parameter Estimation
BG/NBD Expectation
BG/NBD Expected Cumulative Transactions
Define general parameters
BG/NBD Log-Likelihood
BG/NBD P(Alive)
BG/NBD Plot Dropout Probability Heterogeneity
BG/NBD Plot Frequency in Calibration Period
BG/NBD Plot Frequency vs. Conditional Expected Frequency
BG/NBD Plot Actual vs. Conditional Expected Frequency by Recency
BG/NBD Tracking Cumulative Transactions Plot
BG/NBD Tracking Incremental Transactions Comparison
BG/NBD Plot Transaction Rate Heterogeneity
Generalized BG/NBD Probability Mass Function
BG/NBD Probability Mass Function
This project was funded and sponsored by [Wharton Customer Analytics](...
Build CBS matrix from CBT matrix
Build Customer-by-Time Matrix from Event Log
Check model params
Compress Customer-by-Sufficient-Statistic (CBS) Matrix
Create Frequency Customer-by-Time Matrix
Create Reach Customer-by-Time Matrix
Create Spend Customer-by-Time Matrix
Cumulative to Incremental
Dissipate Event Log
Convert Event Log to CBS and CBT Matrices
Filter Customer by Birth
Get First Purchase Periods from Customer-by-Time Matrix
Get Last Purchase Periods from Customer-by-Time Matrix
Check the inputs to functions that use this common pattern
Make Calibration Period Recency-Frequency Matrix
Make Holdout Period Recency-Frequency Matrix
Make Recency-Frequency Matrix Skeleton
Merge Customers
Merge Transactions on Same Day
Plot Log-Likelihood Contour
Plot Log-Likelihood Contours
Read Lines
Remove Time Between
Split Up Event Log for Repeat Transactions
Write Line
Use Bruce Hardie's Gaussian hypergeometric implementation
Pareto/NBD Log-Likelihood
Pareto/NBD Conditional Expected Transactions
Pareto/NBD Discounted Expected Residual Transactions
Pareto/NBD Parameter Estimation
Pareto/NBD Expectation
Pareto/NBD Expected Cumulative Transactions
Define general parameters
Pareto/NBD Log-Likelihood
Pareto/NBD P(Alive)
Pareto/NBD Plot Discounted Expected Residual Transactions
Pareto/NBD Plot Dropout Rate Heterogeneity
Pareto/NBD Plot Frequency in Calibration Period
Pareto/NBD Plot Frequency vs. Conditional Expected Frequency
Plot Pareto/NBD Rate Heterogeneity
Pareto/NBD Plot Actual vs. Conditional Expected Frequency by Recency
Pareto/NBD Tracking Cumulative Transactions Plot
Pareto/NBD Tracking Incremental Transactions Comparison
Pareto/NBD Plot Transaction Rate Heterogeneity
Generalized Pareto/NBD Probability Mass Function
Pareto/NBD Probability Mass Function
Spend Parameter Estimation
Conditional expected transaction value
Define general parameters
Spend Log-Likelihood
Gamma-gamma marginal likelihood
Plot Actual vs. Expected Average Transaction Value
Subtract Logs
Functions for data preparation, parameter estimation, scoring, and plotting for the BG/BB (Fader, Hardie, and Shang 2010 <doi:10.1287/mksc.1100.0580>), BG/NBD (Fader, Hardie, and Lee 2005 <doi:10.1287/mksc.1040.0098>) and Pareto/NBD and Gamma/Gamma (Fader, Hardie, and Lee 2005 <doi:10.1509/jmkr.2005.42.4.415>) models.