ExperimentRecommendation#
- class pymc_marketing.mmm.experiment_design.recommendation.ExperimentRecommendation(channel, spend_change_frac, spend_change_abs, duration_weeks, expected_lift, expected_lift_hdi, snr, assurance, adstock_ramp_fraction, net_cost, score, rationale)[source]#
A recommended experiment design for a single channel.
Each recommendation represents a candidate experiment: a specific channel, spend change, and duration, with posterior-derived metrics for the expected lift, power (assurance), and cost.
- Parameters:
- channel
str The marketing channel to test.
- spend_change_frac
float Fractional per-week spend change (e.g. 0.2 for +20%, -1.0 for go-dark).
- spend_change_abs
float Absolute weekly spend change in model-scale units.
- duration_weeks
int Active intervention period in weeks.
- expected_lift
float Posterior mean of total cumulative lift over the experiment.
- expected_lift_hdi
tuple[float,float] 94% HDI of the total cumulative lift distribution.
- snr
float Signal-to-noise ratio (expected lift / measurement noise).
- assurance
float Posterior-predictive power (Bayesian assurance).
- adstock_ramp_fraction
float Mean fraction of steady-state effect captured over the experiment duration (posterior mean across draws).
- net_cost
float Direct additional spend: spend_change_abs * duration_weeks.
- score
float Weighted composite score used for ranking.
- rationale
str Auto-generated template-based explanation of the recommendation.
- channel
Methods
ExperimentRecommendation.__init__(channel, ...)Attributes
channelspend_change_fracspend_change_absduration_weeksexpected_liftexpected_lift_hdisnrassuranceadstock_ramp_fractionnet_costscorerationale