Using known adstock values in MMM class

I’m working in isolation on this project and I’m way over my head, so it’s time to ask a question that I think is quite simple: how do I use a known adstock decay function in the MMM class?

I have blackout test data, and I have computed a nice decay curve, so I want to use it. I was hoping that it would be something like:

mmm_model = MMM(
    adstock=GeometricAdstock(alpha=value),
    ....
)

This question has surely been answered before, but not at the level where I can understand it. If I get through this question, then maybe I can I ask the next 500 I have! Thanks.

1 Like

Welcome!

Have you read through PyMC-Marketing’s How-Tos? The MMM Example notebook is a good starting point, particularly the model specification section. The list of pre-made adstock functions are listed here.