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(). Multi-series models plot one subplot per coordinate of the faceting dimension (inferred from the data, or set with dim); pass coord to select a single one.

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.