plotting#

Plotting functions for the Bass diffusion model.

Each function takes a fitted BassModel and returns a (Figure, ndarray of Axes) tuple, following the convention of pymc_marketing.plot.plot_curve(). Models plot one subplot per coordinate of the faceting dimension (inferred from the plotted variable, or set with dim); pass coord to select a single one. The curves carry the dims their priors declare, so pooled p, q and m give a single pooled curve even when the data has more dimensions.

The functions are also exposed as plot_* methods on BassModel.

Functions

plot_adoption_curve(model[, dim, coord, ...])

Plot the posterior adoption curve with the observed data.

plot_cumulative(model[, dim, coord, ...])

Plot the cumulative adoption S-curve with the observed data.

plot_decomposition(model[, dim, coord, ...])

Plot the adoption decomposition into innovators and imitators.

plot_peak(model[, dim, coord])

Plot the posterior distribution of the peak adoption time.