Problem
A marketing mix model links weekly revenue to advertising spend per channel. Linear regression is the usual tool, but spend has diminishing returns, so each channel's spend must first be passed through a saturation function such as the Hill function. The right function and its parameters are unknown in advance. The analyst must pick a form for every channel and search its parameters. A wrong choice biases the curve and the decomposed channel effects.
Example from the article: a simulated spend variable with a Hill response (, ) is fitted by linear regressions with a Hill transform at . The curve misses the true response at low spend.
Solution in brief
Replace the hand-chosen saturation transform with penalized smoothing splines inside a Generalized Additive Model (GAM). The model learns each channel's curve from the data. It stays additive like a linear model, so channel effects are read without SHAP. A monotonic constraint keeps every curve non-decreasing.
Questions this case answers
- How to estimate a non-linear diminishing-returns effect of an aggregate input on an outcome with a model that stays additive and interpretable, when the functional form of the curve is unknown
- How to model diminishing returns of media spend without guessing a saturation function for every channel?
- How to keep a marketing mix model interpretable while capturing non-linear spend effects?
- How to read per-channel saturation and decide where extra spend stops paying off?
Tools and methods
- Generalized Additive Model with penalized smoothing splines — learns a non-linear spend-to-response curve per channel
- pyGAM — Python package (
LinearGAM,s()spline terms,l()linear terms) - Adstock — carryover transform of spend, still tuned as a hyperparameter
- Prophet — removes trend, seasonality and holidays before modeling
- Robyn benchmark dataset — 208 weeks of revenue, MIT licence
Google or a one-time email code. No password.