Skip to content

Commit 6919cbb

Browse files
authored
Update notebook risk allocation (#1982)
* Update warnings and outputs in MMM allocation assessment Updated warning messages and output cells in the mmm_allocation_assessment.ipynb notebook to reflect changes in code line numbers and execution context. No changes to core logic or results. Also, minor updates in pymc_marketing/mmm/utility.py (details not shown in diff). * Update mmm_allocation_assessment.ipynb
1 parent 899beda commit 6919cbb

File tree

2 files changed

+188
-84
lines changed

2 files changed

+188
-84
lines changed

docs/source/notebooks/mmm/mmm_allocation_assessment.ipynb

Lines changed: 187 additions & 83 deletions
Large diffs are not rendered by default.

pymc_marketing/mmm/utility.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def _mean_tightness_score(
212212
samples = _check_samples_dimensionality(samples)
213213
mean = pt.mean(samples)
214214
tail_metric = tail_distance(confidence_level)
215-
return (mean - alpha * tail_metric(samples, budgets)) / mean
215+
return 1 - alpha * tail_metric(samples, budgets) / mean
216216

217217
return _mean_tightness_score
218218

0 commit comments

Comments
 (0)