MLE of an Exponential Churn Rate

Reported in interviews at Airbnb Tesla

Problem statement

A subscription product models how long each customer stays before churning with an exponential distribution with rate $\lambda$ (per month):

$$f(x \mid \lambda) = \lambda e^{-\lambda x}, \quad x \ge 0$$

You have the complete lifetime history of $n$ customers who have all churned: lifetimes $x_1, \dots, x_n$ in months, assumed independent.

  1. What is the maximum likelihood estimator of $\lambda$?
  2. For five customers with lifetimes of 3, 8, 12, 5 and 22 months, what is the estimate, in churns per month?
Show hint

Write the probability of seeing all the observed lifetimes together as a function of the rate, then take its logarithm.

Relevant roles: Data Scientist, Applied Scientist and Research Scientist.

Related free problems