objective_distribution#
- pymc_marketing.mmm.budget_optimizer.objective_distribution(x, method, channels, parameters)[source]#
Compute the total contribution for a given budget distribution.
This function calculates the negative sum of contributions for a proposed budget distribution using the Michaelis-Menten model. This value will be minimized in the optimization process to maximize the total expected contribution.
- Parameters:
x (List of float) – The proposed budget distribution across channels.
channels (List of str) – The List of channels for which the budget is being optimized.
parameters (Dict) – Michaelis-Menten parameters for each channel as described in
calculate_expected_contribution
.
- Returns:
Negative of the total expected contribution for the given budget distribution.
- Return type:
float