Adstock and Saturation

Adstock represents carryover; saturation represents a non-linear response to media exposure. In PanelMMM, the selected transform families and their priors define the response model. Joint estimation propagates uncertainty in those parameters, conditional on the specified model; it does not remove the need to assess identification and functional-form sensitivity.

Geometric adstock and its finite horizon

For the usual lagged convolution, with L = l_max, geometric adstock uses weights proportional to $\alpha^\ell$ for $\ell=0,\ldots,L-1$. With the GeometricAdstock object’s default normalize=True, the transformed series is

$$ x_t^* = \frac{\sum_{\ell=0}^{L-1}\alpha^\ell x_{t-\ell}} {\sum_{\ell=0}^{L-1}\alpha^\ell}. $$

With normalize=False, omit the denominator. This is a finite convolution, not an untruncated recursive Koyck model. l_max=4 retains the current period and three preceding periods. The available history and convolution mode also matter, especially at the start of a series or prediction window.

The default decay prior is Beta(alpha=1, beta=3). A decay near zero gives little weight to older exposure; a decay near one retains substantial weight across the specified horizon. The prior does not ensure that omitted lags are negligible. Choose l_max using plausible carryover and assess sensitivity to that choice. The lag count refers to the input frequency, not necessarily weeks.

Alternative transform families encode different lag-weight shapes. Inspect their parameterisation rather than assuming that every alternative permits a delayed peak. See Adstock and Saturation for configuration and supported classes.

The retained logistic saturation function

LogisticSaturation applies

$$ f(x) = \beta\frac{1-e^{-\lambda x}}{1+e^{-\lambda x}} = \beta\tanh(\lambda x/2). $$

For positive beta and lam on non-negative inputs, the response is concave and approaches beta. It reaches half that limit at $x=\log(3)/\lambda$. Increasing lam moves half-saturation towards zero; it does not create a freely located positive-spend inflection point. This is not a general sigmoid with a learnable threshold before diminishing returns begin.

The default priors are Gamma(alpha=3, beta=1) for lam and HalfNormal(sigma=2) for beta. Their implications depend on the model’s scaling: the transform receives scaled inputs, and beta sets the response amplitude on the model scale. See Scaling and Preprocessing and Bayesian Priors. Positive support is a modelling restriction, not evidence learned about the sign.

Joint estimation and omitted uncertainty

Abacus estimates the uncertain transform parameters jointly with the other model parameters. In this logistic specification, beta is the response amplitude; it is not an additional coefficient to be multiplied by a separate generic media slope.

Fixing transform parameters before fitting conditions on those choices. Joint estimation can propagate their posterior uncertainty, but still conditions on the selected transform families, lag horizon, controls and baseline. Neither approach guarantees narrower, wider or better-calibrated intervals in every dataset. Assess sensitivity in the quantities used for decisions, not only in parameter summaries.

Transformation order

adstock_first=True, the PanelMMM default, applies saturation to accumulated media exposure. adstock_first=False applies saturation within each period before carrying the response across periods. These operations generally do not commute.

Choose the order from the response mechanism and assess its implications; channel names alone do not determine it. Normalisation and lag length affect the result as well. A good fit under either order does not prove that its media decomposition is correct. See Baseline vs Media Trade-Offs.