ExperimentDesigner.plot_saturation_curve#

ExperimentDesigner.plot_saturation_curve(channel, n_samples=500, spend_levels=None, ax=None, color=None, figsize=None)[source]#

Plot the saturation curve with posterior uncertainty.

Shows the posterior mean curve with a 94% HDI band.

Parameters:
channelstr

Channel name.

n_samplesint

Number of posterior draws to subsample for the HDI band.

spend_levelslist[float] | None

Optional fractional spend levels to mark. E.g. [0.2, 0.5] marks +20% and +50% of current spend.

axmatplotlib.axes.Axes | None

Pre-existing axes to draw on. If None a new figure is created.

colorstr | None

Matplotlib color for this channel’s curve and band. Falls back to "C0" when None.

figsizetuple[float, float] | None

(width, height) when creating a new figure. Defaults to (10, 4).

Returns:
tuple[Figure, Axes]