Customer Lifetime Value Modeling

Customer Analytics Predictive Retention + Monetization ← Simpler Version

Estimate forward-looking customer lifetime value using two jointly estimated behavioral models: a retention model that predicts the probability a customer stays active each period, and a conditional spend model that forecasts revenue when active. Adjust marketing levers to simulate CLV impact and evaluate ROI before you spend.

👨‍🏫 Professor Mode: Guided Learning Experience

New to Customer Lifetime Value modeling? Enable Professor Mode for step-by-step guidance through estimating retention, spend, and lifetime value from your customer data!

QUICK START: Choose Your Path

OVERVIEW & WHAT THIS TOOL SOLVES

Two customers, identical histories. CLV modeling reveals divergent futures. A targeted intervention (⚡) at the right moment shifts Customer B's trajectory — and delivers measurable return.

Not all customers are worth the same, yet organizations routinely allocate budgets using backward-looking averages like past spend or simple RFM tiers. Two customers who each bought twice last year might have wildly different futures—one is a deal-hunter about to churn, while the other is beginning a multi-year relationship. Customer Lifetime Value (CLV) Modeling fits a dual regression system—a logistic retention & reactivation model paired with an OLS conditional spend model—to forecast each customer's discounted future cash flows and simulate the ROI of targeted marketing interventions.

🎯 Questions It Answers

  • What is the forward-looking dollar value (CLV) of each individual customer and segment over our planning horizon?
  • Which marketing levers primarily keep customers active (retention) versus increasing basket size when they buy (spend)?
  • If we invest in more samples, credits, or CSM hours for a specific segment, does the incremental CLV lift beat the intervention cost?

📂 What Data You Need

  • Customer-Period Panel Data: Customer ID, time period index (1, 2, ...), binary activity flag (0/1), and period spend
  • Marketing Lever Columns: Period-level touchpoints (e.g., samples sent, discount dollars, CSM hours)
  • Segment & Attribute Columns: Optional customer segments, acquisition channels, or cohorts, plus a periodic discount rate

💡 What You'll Discover

  • Portfolio & Segment KPIs: Mean CLV, Median CLV, Total Portfolio Value, Expected Active Periods, and CLV/CAC ratios
  • Dual-Model Lever Matrix: Side-by-side linear and log-saturation coefficients showing diminishing returns on retention and spend
  • What-If ROI Simulator: Gross CLV lift, intervention cost, net lift, and ROI from repricing or reallocating marketing levers
🔍 Key Nuances & Common Traps to Watch For
  • Why Two Separate Models? Combining retention and spend into one regression confuses loyal low-spenders with sporadic big-spenders. Modeling whether they buy (logistic) separately from how much they spend when active (OLS) lets you target retention vs. upsell levers independently.
  • Reactivation vs. Contractual Survival: Because prior-period activity is a predictor, the model estimates both a stay probability (when active last period) and a reactivation probability (when lapsed last period). In non-contractual retail, reactivation keeps future activity from decaying to zero—so expected active periods is NOT simply 1 / (1 − retention).
  • Automatic Diminishing Returns (Linear + Log Pairs): For every marketing lever you select, the tool enters both the raw value and its ln(m + 1) transform into both regressions so the data can reveal concave saturation without manual feature engineering.
📐 Under the Hood: Model Equations & Variable Definitions

1. Discounted Customer Lifetime Value (CLV)

\[ \text{CLV}_k = \sum_{t=1}^{T} \frac{\hat{P}(\text{active}_{k,t}) \cdot \hat{E}[\text{spend}_{k,t} \mid \text{active}] \cdot g - c_k}{(1 + r)^t} \]

💬 Read it in plain English: A customer's lifetime value is the sum across all future planning periods of their probability of being active in that period times their expected spend when active, times the gross margin, minus the marketing cost declared for that customer, discounted back to today's dollars.

CLVk
Customer Lifetime ValueOUTPUT ⓘ
Discounted present value of expected future margin, net of declared marketing cost, for customer k across the horizon (revenue at the 100% margin default with no costs declared).
T
Forecast HorizonYOUR DATA ⓘ
Number of future periods (e.g., 24 months) over which CLV is projected.
r
Periodic Discount RateYOUR DATA ⓘ
Firm cost of capital per period (e.g., 0.01 = 1% per month) used to discount future cash flows.
(1 + r)t
Present-Value Discount FactorINFERENCE ⓘ
Compound discounting denominator that reduces the weight of cash flows further in the future.
P̂(activek,t)
Predicted Activity ProbabilityOUTPUT ⓘ
Estimated probability that customer k is active in future period t (from the retention state-transition recursion).
Ê[spendk,t | active]
Predicted Conditional SpendOUTPUT ⓘ
Estimated dollar spend for customer k in period t given that they are active (from the OLS spend model).
g
Gross MarginYOUR DATA ⓘ
Share of revenue kept as gross profit, from Gross Margin (%); the 100% default leaves spend as revenue.
ck
Per-Period Marketing CostYOUR DATA ⓘ
Declared unit cost times customer k's usual lever volume, charged every period whether or not the customer is active; 0 when no costs are declared.

2. Retention & Reactivation State-Transition Recursion

\[ P(\text{active}_t) = P(\text{active}_{t-1}) \cdot p^{\text{stay}} + \bigl(1 - P(\text{active}_{t-1})\bigr) \cdot p^{\text{react}} \]

💬 Read it in plain English: The chance a customer is active in period t equals the chance they were active last period and stayed, plus the chance they were inactive last period and reactivated.

pstay
Retention Probability (Active → Active)OUTPUT ⓘ
Predicted probability of remaining active when active_t−1 = 1: σ(α + β₁ + xβ).
preact
Reactivation Probability (Lapsed → Active)OUTPUT ⓘ
Predicted probability of returning after an inactive period when active_t−1 = 0: σ(α + xβ).
P(activet−1)
Prior-Period Activity ProbabilityOUTPUT ⓘ
Probability that the customer was in the active state in period t − 1.
St = ∏ pstay
Unbroken Survival BenchmarkINFERENCE ⓘ
Probability of never having a single quiet period through period t (reported for comparison; CLV uses P(active_t)).

3. Logistic Retention Model with Log-Saturation

\[ \text{logit}\bigl[P(\text{active}_t)\bigr] = \alpha + \beta_1 \cdot \text{active}_{t-1} + \sum_{j=1}^{J} \left[ \beta_j^{\text{lin}} m_j + \beta_j^{\text{sat}} \ln(m_j + 1) \right] + \mathbf{X}\boldsymbol{\gamma} \]

💬 Read it in plain English: The log-odds of a customer being active this period depend on their baseline propensity, whether they were active last period, both linear and diminishing-return effects of each marketing lever, and their segment attributes.

α
Retention InterceptESTIMATED ⓘ
Baseline log-odds of activity when lagged activity and marketing levers are zero.
activet−1
Lagged Activity IndicatorYOUR DATA ⓘ
Binary indicator (1 if active in period t − 1, 0 if inactive) capturing habit/inertia.
β1
Habit / State-Dependence CoefficientESTIMATED ⓘ
Increase in log-odds of activity from having been active in the immediately preceding period.
mj, ln(mj + 1)
Raw & Log-Saturated Marketing Lever jYOUR DATA ⓘ
Level of marketing intervention j in raw units and its concave log transformation.
βjlin, βjsat
Retention Linear & Saturation SlopesESTIMATED ⓘ
Estimated linear and diminishing-return effects of marketing lever j on retention log-odds.
X, γ
Customer Attributes & WeightsESTIMATED ⓘ
Row vector of customer attribute/segment indicators X and their estimated retention effects γ.

4. Conditional Spend Model (Active-Only OLS)

\[ E[\text{spend}_t \mid \text{active}_t = 1] = \alpha_s + \sum_{j=1}^{J} \left[ \delta_j^{\text{lin}} m_j + \delta_j^{\text{sat}} \ln(m_j + 1) \right] + \mathbf{X}\boldsymbol{\phi} \]

💬 Read it in plain English: Among customers who are active in a period, expected dollar spend is a linear combination of baseline spend, linear and saturating marketing lever effects, and customer segment characteristics.

αs
Baseline Active Spend InterceptESTIMATED ⓘ
Expected dollar spend per active period when all marketing levers and attribute dummies are at baseline.
δjlin, δjsat
Spend Linear & Saturation SlopesESTIMATED ⓘ
Estimated dollar impact of marketing lever j (raw and log-transformed) on basket size when active.
X, ϕ
Customer Attributes & Spend WeightsESTIMATED ⓘ
Customer attribute/segment indicators X and their dollar effects ϕ on conditional spend.
J
Number of Marketing LeversYOUR DATA ⓘ
Count of marketing intervention variables selected in the column mapper.

DATA SOURCE

📚

Use a Case Study

📊 CLV Case Studies

Load a preset scenario with pre-configured customer data to explore CLV modeling approaches across different business types.

CLV projects forward from one retention rate. See the retention curve for when customers actually leave.

📤

Upload Customer Data

Upload a period-level CSV: one row per customer per time period. Required columns: customer_id, period, is_active, spend. Optional: segment and any marketing / attribute columns.

Drag & Drop raw data file (.csv, .tsv, .txt, .xls, .xlsx)

Period-level longitudinal format — one row per customer per period