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-product models plot one subplot per product; pass product to select a single one.

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

Functions

plot_adoption_curve(model[, product, ...])

Plot the posterior adoption curve with the observed data.

plot_cumulative(model[, product, n_samples, ...])

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

plot_decomposition(model[, product, ...])

Plot the adoption decomposition into innovators and imitators.

plot_peak(model[, product])

Plot the posterior distribution of the peak adoption time.