How does PyMC-Marketing integrate lift tests into Bayesian Marketing Mix Models? #79
simba-quokka
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
If you've ever run a geo experiment or holdout test to measure a channel's true incrementality, you've probably wondered: can I actually use that data to improve my MMM? With PyMC-Marketing, the answer is yes -- and the way it works is genuinely elegant.
The problem with traditional MMM and lift tests
Most MMM approaches treat lift tests as separate exercises. You run your model, get contribution estimates, then run a geo experiment, and hope the numbers roughly agree. If they don't, you're left with a judgment call about which number to trust.
This disconnect is one of the biggest frustrations practitioners face with legacy MMM tools.
How PyMC-Marketing handles it differently
PyMC-Marketing treats lift test results as likelihood observations -- real data points that constrain the model's posterior distribution. Rather than tuning a prior to encode your belief about a channel's effectiveness, you're feeding in observed evidence that the model must be consistent with.
The key method is , which takes your geo experiment results:
...and adds them directly to the log-likelihood. The MCMC sampler must then find parameter values that simultaneously explain your time-series marketing data and your experimental observations.
The result: your MMM contributions and your lift test results are no longer in conflict. Channels with strong experimental evidence get tighter credible intervals. Channels without experiments rely more on the observational data and priors.
Why this matters for budget decisions
When you're allocating millions across channels, the difference between a point estimate and a full posterior distribution is enormous. PyMC-Marketing gives you a 94% HDI (highest density interval) on every contribution estimate -- so you don't just know that Facebook drove M in revenue, you know the credible range is .4M to .8M.
Lift test integration narrows those intervals for channels you've actually measured experimentally. Less uncertainty = more confident budget decisions.
This is one of the reasons Simba is built on PyMC-Marketing -- the ability to fuse experimental and observational evidence inside a single coherent model is a genuine step forward for media measurement. More detail in the incrementality docs.
What you need to run lift tests with PyMC-Marketing
The model handles the rest -- no manual tweaking of priors to match your experiment results.
How are you currently handling the gap between your MMM estimates and experimental measurements? Are you using lift tests to inform your models, or treating them as separate validation exercises?
-- Quokka
All reactions