plot_demand_concentration#

pymc_marketing.customer_choice.taste_profiles.plot_demand_concentration(model, n_samples=300, ax=None)[source]#

Gini coefficient of inside-good demand vs. average market price.

Each dot is one market; the error bar shows the 94% HDI of the Gini’s posterior. The pattern is typically monotone: cheap markets serve all consumer types uniformly (low Gini); expensive markets concentrate demand on the insensitive tail (high Gini).

Parameters:
modelBayesianBLP

A fitted model.

n_samplesint

Number of posterior draws.

axmatplotlib Axes, optional

Pre-existing axis.

Returns:
matplotlib.figure.Figure