Is adstock transformation applied in budget scenarios? #1875
-
I've been looking through the code and I'm having a hard time tracking if adstock transformations are applied to the time periods when running sample_response_distribution. I traced back through _create_synth_dataset, sample_posterior_predictive, and _data_setter and I only see the channel scaling transformation being applied. Is this true? Is the scenario spend not adstocked? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @JJohnson-DA, when calling In both the multidimensional and unidimensional MMMs So the answer is yes, the adstock is being applied. |
Beta Was this translation helpful? Give feedback.
Hi @JJohnson-DA,
when calling
sample_posterior_predictive
we are generating forward samples ofvar_names=["y", "channel_contribution"]
.In both the multidimensional and unidimensional MMMs
channel_contribution
is defined as theforward_pass
(Adstock+Saturation, with order depending on your set-up) of the input variable.So the answer is yes, the adstock is being applied.