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:
modelBayesianBLP

A fitted model.

market_indiceslist of int, optional

Markets to plot. Defaults to four markets spanning the price range (cheapest, 33rd / 67th percentile, dearest).

n_samplesint

Number of posterior draws.

axeslist of matplotlib Axes, optional

Pre-existing axes to draw into; must have length len(market_indices). When None, a new figure with one axis per market is created.

Returns:
matplotlib.figure.Figure