MMMPlotSuite.plot_sensitivity_analysis#

MMMPlotSuite.plot_sensitivity_analysis(hdi_prob=0.94, ax=None, marginal=False, percentage=False, sharey=True)[source]#

Plot counterfactual uplift or marginal effects curves.

Handles additional (non sweep/date/chain/draw) dimensions by creating one subplot per combination of those dimensions - consistent with other plot_* methods.

Parameters:
hdi_probfloat, default 0.94

HDI probability mass.

axplt.Axes, optional

Only used when there are no extra dimensions (single panel case).

marginalbool, default False

Plot marginal effects instead of uplift.

percentagebool, default False

Express uplift as a percentage of actual (not supported for marginal).

shareybool, default True

Share y-axis across subplots (only relevant for multi-panel case).

Returns:
(fig, axes) if multi-panel, else a single Axes (backwards compatible single-dim case).