Problem
A marketing team spends on several channels at once, such as TV, radio and print, and has to decide where the next dollar goes. The response to spend flattens at high levels, and an ad run this week still sells next week. A plain regression of sales on spend ignores both effects and misreads which channel pays back. A wrong split wastes budget.
Example from the article: a public Kaggle dataset with TV, radio and newspaper spend and sales. The model shows radio with the highest ROAS and newspaper saturated, then splits a budget of 500 across the three channels.
Solution in brief
Fit a Bayesian regression of sales on spend, where each channel passes through an adstock (carryover) transform and a saturation curve, with trend and seasonality as controls. Read ROAS, saturation and contribution per channel from the posterior. Then run a constrained optimizer on the fitted curves to maximize total contribution under the total budget and per-channel limits.
Questions this case answers
- How to estimate the marginal return of each spending channel from aggregated time series when user-level attribution is not available and effects are delayed and saturating
- How to allocate a fixed budget across channels with diminishing returns under per-channel spend limits
- How to estimate the return on ad spend (ROAS) of each media channel from weekly spend and sales data?
- How to model carryover and diminishing returns of advertising in a regression?
Tools and methods
- Adstock — weighted average of current and past spend that models carryover.
- Logistic saturation — diminishing returns of spend per channel.
- Bayesian regression — gives a posterior per effect and lets marketers set priors.
- PyMC-Marketing — fits the model, plots ROAS and contributions, optimizes the budget.
- Prophet — extracts trend and seasonality as controls.
- SLSQP optimizer — maximizes total contribution under budget limits.
Google or a one-time email code. No password.