plot_brand_buyer_heatmap#

pymc_marketing.customer_choice.taste_profiles.plot_brand_buyer_heatmap(model, n_samples=200, dim=0, ax=None)[source]#

(market × brand) diverging heatmap of brand-level buyer taste.

Slices one taste dimension (dim, default = price). Brands and markets are sorted by their average buyer taste / avg price respectively to put similar profiles next to each other.

Parameters:
modelBayesianBLP

A fitted model.

n_samplesint

Number of posterior draws.

dimint

Which random-coefficient dimension to slice.

axmatplotlib Axes, optional

Pre-existing axis.

Returns:
matplotlib.figure.Figure