-
Notifications
You must be signed in to change notification settings - Fork 324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
robyn_allocator - channels that are excluded from the model get excluded from the initial spend mix too #645
Comments
Hi @fraschen thanks for sharing your issue into a quite detailed ticket.
|
@laresbernardo thanks for looking into it. Yes there is some spend for paid_var4_cost, as you can see from the attached csv file. The total spend in the last four weeks is supposed to be 88k, not 84k as shown in the one-pager. I get why the response is 0, but I believe the initial spend should reflect the actual for a better comparison of the spend mix pre- and post-reallocation. |
Ok, then it's actually working as it should. After downloading the CSV and JSON, I was able to replicate a similar model and checked the data for that time period (last 4 weeks): you have a total spend of 92430. In this model, the coef = 0 variable (paid_var4_cost) spent 8455, which means the "total optimizable budget" is actually ~84K (as shown in the first section of the allocator's one-pager). So when we refer to Initial Spend, that's actually Initial Spend that managed to get responses > 0.
We do print a message informing the user when running
All this said, if you want to set that the total budget for those 4 weeks was the total budget you spent, regardless of coef = 0 variables, you can set |
I'm thinking of a way to let the users know how much budget wasn't optimizable and was excluded from the optimizer. Will get back to you after I've implemented a solution. Feel free to share your feedback as well. |
Thanks for your deep analysis of this issue. I still feel that accounting for the coef = 0 vars in the initial spend percentages would be more intuitive from a business perspective. A marketer would probably question the validity of the model just because "where is my paid_var4 spend???". As an analyst, it is difficult to explain the why those percentages, and I would probably need to create my own viz with reviewed figures to avoid these questions. |
Hi @fraschen |
Issue description
RobynModel-2_216_5.json.zip
Based on this model I would expect
paid_var4_cost
to be accounted in the initial spend but not in the optimal spend inrobyn_allocator()
, however it is excluded from both charts.As you can notice,
paid_var4_cost
is not there and the initial spend percentage adds up to 100% despite this var is missing.Here's a sample dataset to reproduce the issue:
MMMSampleDataset.csv
Related facebook group thread: https://www.facebook.com/groups/robynmmm/permalink/1395036564597806/
Environment & Robyn version
Robyn version: 3.10.0.9000
R version 4.2.2 (2022-10-31)
Platform: aarch64-apple-darwin20 (64-bit)
Running under: macOS Ventura 13.1
The text was updated successfully, but these errors were encountered: