ExperimentDesigner.plot_lift_distributions#

ExperimentDesigner.plot_lift_distributions(channel, spend_changes=None, durations=None, color=None, figsize=None)[source]#

Grid of lift posterior distributions for one channel.

Rows = spend changes, columns = durations.

Parameters:
channelstr

Channel name.

spend_changeslist[float] | None

Fractional spend changes. Defaults to [0.2, 0.5, -0.5, -1.0].

durationslist[int] | None

Durations in weeks. Defaults to [4, 6, 8, 12].

colorstr | None

Matplotlib color for this channel’s histograms and HDI bands. Falls back to "C0" when None.

figsizetuple[float, float] | None

(width, height) for the figure. Defaults to (10, 3 * n_rows).

Returns:
tuple[Figure, ndarray of Axes]