plot_taste_profile_stacked#
- pymc_marketing.customer_choice.taste_profiles.plot_taste_profile_stacked(model, market_indices=None, n_samples=200, axes=None)[source]#
Stacked area chart of consumer allocation across the \(\nu_{\mathrm{price}}\) axis.
The outside good sits at the bottom; inside products stack above. Reading left to right, as \(\nu\) rises (less price-sensitive), the outside band shrinks and inside-product bands grow.
- Parameters:
- model
BayesianBLP A fitted model.
- market_indices
listofint, optional Markets to plot. Defaults to four markets spanning the price range (cheapest, 33rd / 67th percentile, dearest).
- n_samples
int Number of posterior draws.
- axes
listofmatplotlibAxes, optional Pre-existing axes to draw into; must have length
len(market_indices). WhenNone, a new figure with one axis per market is created.
- model
- Returns: