facebookexperimental / Robyn

Robyn is an experimental, AI/ML-powered and open sourced Marketing Mix Modeling (MMM) package from Meta Marketing Science. Our mission is to democratise modeling knowledge, inspire the industry through innovation, reduce human bias in the modeling process & build a strong open source marketing science community.
https://facebookexperimental.github.io/Robyn/
MIT License
1.08k stars 322 forks source link

How to replicate the Response Curves and Mean Spends by Channel using the Weibull CDF in a one-pager format from raw data #885

Open k0he1h opened 6 months ago

k0he1h commented 6 months ago

Hello everyone. We aim to replicate the Response Curves and Mean Spends by Channel using the Weibull CDF in a one-pager format from raw data. We believe that the adstock and decomp values from the pareto_media_transformation_matrix are essential for this figure. Based on previous discussions in GitHub, it seems that mean spends might be calculated using last month's adstock data. However, we're unable to replicate these values using this method. Could you please clarify the definition and necessary data for this? Thank you for your help.

gufengzhou commented 5 months ago

Sorry for the late reply. There's been some back and forth on this. the idea of using last month was to better reflect the recent spend level, but it often leads to 0 values because not every channel is always on. Currently it's back to just the mean spend of the modelling window. The adstock calculation is bit complicated. If you want to dig the rabbit hole:

https://github.com/facebookexperimental/Robyn/blob/main/R/R/pareto.R#L179