MMMPlotSuite.plot_sensitivity_analysis#

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

Plot the counterfactual uplift or marginal effects curve.

Parameters:
resultsxr.Dataset

The dataset containing the results of the sweep.

hdi_probfloat, optional

The probability for computing the highest density interval (HDI). Default is 0.94.

axOptional[plt.Axes], optional

An optional matplotlib Axes on which to plot. If None, a new Axes is created.

marginalbool, optional

If True, plot marginal effects. If False (default), plot uplift.

percentagebool, optional

If True, plot the results on the y-axis as percentages, instead of absolute values. Default is False.

Returns:
plt.Axes

The Axes object with the plot.