← Questions

Design a customer lifetime value prediction system

0
AirbnbAI/ML designLast asked Aug 2025

An AI/ML design interview question asked in Airbnb's system design round, last asked Aug 2025. It tests regression, customer value and feature engineering.

Design a machine learning system that estimates each customer's lifetime value (LTV) on a marketplace or platform, and explain how the predictions drive decisions such as marketing spend, incentives and recommendations. Start by defining what value means for the business and over what horizon.

Requirements

  • Functional: a predicted value per customer over a stated horizon (for example 12 months), for new and existing customers, refreshed on a schedule and updated when important events happen.
  • Functional: scores available to downstream teams in batch, and near real time where a decision needs it (for example at signup).
  • Non-functional: data freshness, backfills, monitoring and alerting; reproducible training; fair and privacy-respecting use.
  • If time is short, detailed online serving can be skipped.

Clarifying questions

  • Is value revenue, margin, or contribution after costs such as refunds, support and incentives?
  • What horizon matters for the decisions this feeds?
  • Which decisions use the score, and do they need a calibrated amount or only a ranking?
  • What data exists: transactions, browsing, referrals, support contacts?
  • Are there regulatory limits on using some attributes?

What a strong answer covers

  • The label: value over the horizon after the prediction date. Recent customers are not yet observed for the full horizon (censoring), handled with survival models or by training only on cohorts old enough.
  • Features computed as of the prediction date (point-in-time correctness), so nothing from the future leaks in.
  • Cold start: signup channel, location, first actions, and cohort averages until behaviour builds up.
  • Models: a simple baseline (recency, frequency and monetary value; BG/NBD with Gamma-Gamma), then a gradient-boosted model or a two-part model (will they return, and how much they spend), with uncertainty estimates.
  • Validation on time-based splits; metrics such as error on the value, ranking quality, calibration by decile, and the business metric.
  • Architecture: a feature pipeline, batch scoring into a table, a low-latency path for new customers, monitoring of drift and of prediction versus realized value.
  • Use and impact: A/B tests of LTV-based targeting versus the current policy; bias, privacy and regulatory review of features and decisions.

Follow-ups

  • How do you evaluate a 12-month prediction when you can't wait 12 months?
  • The marketing team uses the score to give discounts, which changes future value. How do you handle that feedback loop?
  • A new country launches with no history. What do you predict there?
  • How would you explain an individual score to a stakeholder?

Where it's asked

What it tests

regression · customer value · feature engineering

Your canvas
Draw your answer hereBoxes, arrows and notes, saved for you to come back to.Sign in to start drawing