Skip to content

Commit cb64c19

Browse files
committed
remove notion of scaling lift test results. pymc-marketing doesn't need that
1 parent 3b7704d commit cb64c19

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

docs/source/notebooks/its_lift_test.ipynb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1203,24 +1203,21 @@
12031203
"\n",
12041204
"**Important**: The choice between absolute and normalized values depends on how your MMM preprocesses media spend data. If your MMM normalizes spend by dividing by the maximum, use normalized values. If it uses raw spend, use absolute values.\n",
12051205
"\n",
1206-
"Example formatting for PyMC-Marketing (which typically expects normalized values):\n",
1206+
"Example formatting for PyMC-Marketing (which does _not_ require normalized values):\n",
12071207
"\n",
12081208
"```python\n",
12091209
"# Calculate normalized values based on your MMM's scaling\n",
1210-
"max_weekly_spend = 150_000 # Maximum weekly spend in your MMM training data\n",
12111210
"promo_spend_weekly = 50_000 # Weekly spend during this test\n",
12121211
"\n",
12131212
"lift_test_df = pd.DataFrame({\n",
12141213
" \"channel\": [\"tv_promo\"],\n",
12151214
" \"x\": [0.0], # Baseline spend for tv_promo (normalized) - it's zero before test\n",
1216-
" \"delta_x\": [promo_spend_weekly / max_weekly_spend], # Spend increment (normalized) = 0.33\n",
1215+
" \"delta_x\": [promo_spend_weekly], # Spend increment\n",
12171216
" \"delta_y\": [1162.38], # Mean lift from ITS result\n",
12181217
" \"sigma\": [199.05] # Std of lift from ITS result\n",
12191218
"})\n",
12201219
"```\n",
12211220
"\n",
1222-
"**Alternative**: Some MMM implementations may expect the actual spend level (`x + delta_x`) rather than the increment. Check your MMM's documentation for the expected format.\n",
1223-
"\n",
12241221
"See the [PyMC-Marketing lift test calibration guide](https://www.pymc-marketing.io/en/latest/notebooks/mmm/mmm_lift_test.html) for complete integration details.\n",
12251222
":::\n"
12261223
]

0 commit comments

Comments
 (0)