plot_cumulative#
- pymc_marketing.bass.plotting.plot_cumulative(model, product=None, n_samples=10, hdi_probs=None, random_seed=None, subplot_kwargs=None, axes=None)[source]#
Plot the cumulative adoption S-curve with the observed data.
Shows posterior samples and HDI of the cumulative sum of the
adoptersdeterministic over time, with the observed cumulative counts in black.- Parameters:
- model
BassModel A fitted Bass model.
- product
str, optional Plot a single product of a multi-product model. Default plots one subplot per product.
- n_samples
int, optional Number of posterior sample curves to draw. Default is 10.
- hdi_probs
floatorlistoffloat, optional HDI probabilities. Defaults to the ArviZ default (0.94).
- random_seed
np.random.Generator, optional Random number generator for sample selection.
- subplot_kwargs
dict, optional Additional kwargs for the subplot creation, e.g.
figsize.- axes
ndarrayofAxes, optional Existing axes to plot on.
- model
- Returns: