Lesson 1
RFM Segmentation
RFM segmentation groups customers by Recency (how recently they bought), Frequency (how often they buy) and Monetary value (how much they spend). Each dimension is scored, usually 1-5 by quintiles, and the scores are combined into segments that guide targeted marketing.
The three dimensions
- Recency (R): time since last purchase; more recent = higher score.
- Frequency (F): number of purchases in a period; more = higher score.
- Monetary (M): total or average spend; more = higher score.
- Recency is often the strongest predictor of future response.
Building RFM scores
- Compute R, F, M per customer from transaction data (customer ID, date, amount).
- Choose an analysis reference date to measure recency.
- Rank customers and split each metric into quintiles (scores 1-5).
- Note: for recency, the lowest number of days gets score 5.
- Combine scores as a code (e.g. 555) or a sum/weighted average.
Common segments and actions
- Champions (e.g. 555): reward, loyalty programs, upsell.
- Loyal customers: high F, keep engaged.
- At risk / can't lose: low R but high F and M, so win-back campaigns.
- New customers: high R, low F, so onboarding.
- Lost/hibernating: low on all, so low-cost reactivation or deprioritize.
Key terms
- RFM
- Segmentation based on Recency, Frequency and Monetary value of purchases.
- Recency
- Days since a customer's most recent purchase.
- Frequency
- Count of purchases in the analysis period.
- Monetary value
- Total or average amount a customer spends.
- Quintile scoring
- Splitting ranked customers into five equal groups scored 1-5.
Lesson 2
Customer Lifetime Value (CLV) and Churn Analysis
Customer Lifetime Value (CLV) estimates the total profit a customer will generate over their relationship with a business. Churn analysis measures and explains customer loss, and churn directly drives CLV because it determines how long customers stay.
Customer Lifetime Value
- Simple CLV = average order value x purchase frequency x customer lifespan (x margin for profit).
- Churn-based CLV = (average revenue per period x gross margin) / churn rate.
- Expected lifespan = 1 / churn rate.
- Discounted CLV: CLV = m x r / (1 + d - r), where m = margin per period, r = retention rate, d = discount rate.
- Compare CLV with Customer Acquisition Cost (CAC); a CLV:CAC ratio around 3:1 is a common healthy benchmark.
Churn analysis
- Churn rate = customers lost during period / customers at start of period.
- Retention rate = 1 - churn rate.
- Contractual churn is observed (cancellation); non-contractual churn must be inferred (e.g. inactivity threshold).
- Cohort analysis tracks retention of customers grouped by start date.
- Predictive models (e.g. logistic regression, decision trees) flag customers at high risk of churn using usage, engagement and support data.
Using the results
- Focus retention budgets on high-CLV, high-churn-risk customers.
- Small churn reductions can greatly increase CLV.
- Set acquisition spend limits based on CLV.
Key terms
- CLV
- Predicted total (often discounted) profit from a customer over their relationship.
- Churn rate
- Share of customers lost in a period.
- Retention rate
- Share of customers retained in a period; 1 - churn rate.
- CAC
- Customer acquisition cost: average spend to acquire one customer.
- Cohort analysis
- Tracking groups of customers who started in the same period over time.
Lesson 3
A/B Testing and Statistical Significance
A/B testing randomly splits users between a control (A) and a variant (B) to measure the causal effect of a change on a metric such as conversion rate. Statistical significance testing determines whether an observed difference is likely real or due to chance.
Designing an A/B test
- Define one primary metric and a hypothesis before starting.
- Null hypothesis H0: no difference between A and B; alternative H1: there is a difference.
- Randomize users to groups so differences are caused by the change.
- Calculate required sample size in advance from baseline rate, minimum detectable effect, significance level and power.
Significance testing
- Significance level alpha (commonly 0.05) = accepted false-positive (Type I error) rate.
- p-value = probability of seeing a difference at least this large if H0 were true.
- If p < alpha, reject H0: the result is statistically significant.
- For conversion rates use a two-proportion z-test: z = (pB - pA) / sqrt(p(1-p)(1/nA + 1/nB)), where p is the pooled rate.
- Confidence interval for the difference: if it excludes 0, the result is significant at that level.
- Power (commonly 80%) = probability of detecting a true effect; 1 - power = Type II error rate.
Common pitfalls
- Peeking and stopping early when p < 0.05 inflates false positives.
- Testing many metrics or variants without correction increases false positives.
- Statistical significance does not equal practical (business) significance.
- Run tests over full business cycles (e.g. whole weeks) to avoid novelty and day-of-week effects.
- Check sample ratio mismatch: group sizes should match the planned split.
Key terms
- A/B test
- Randomized experiment comparing a control and a variant.
- p-value
- Probability of results at least as extreme as observed, assuming no true difference.
- Significance level (alpha)
- Threshold for rejecting H0; the accepted Type I error rate.
- Statistical power
- Probability of detecting an effect that truly exists.
- Minimum detectable effect
- Smallest effect size the test is designed to detect reliably.
