DecompositionPlots#

class pymc_marketing.mmm.plotting.decomposition.DecompositionPlots(data)[source]#

Decomposition plots for fitted MMM models.

Provides three methods to visualize how the model decomposes the target:

  • contributions_over_time — Time-series of each contribution type with HDI.

  • waterfall — Horizontal waterfall chart of mean contributions.

  • channel_share_hdi — Forest plot of each channel’s share of total response.

Parameters:
dataMMMIDataWrapper

Validated wrapper around the fitted model’s InferenceData.

Methods

DecompositionPlots.__init__(data)

DecompositionPlots.channel_share_hdi([...])

Forest plot of each channel's share of total channel contribution.

DecompositionPlots.contributions_over_time([...])

Plot time-series contributions for selected contribution types with HDI bands.

DecompositionPlots.waterfall([...])

Horizontal waterfall chart showing mean contribution per component.