Skip to content

Commit

Permalink
[DOC] Add Lift test example
Browse files Browse the repository at this point in the history
[DOC] Add Lift test example
  • Loading branch information
felipeangelimvieira authored Dec 16, 2024
2 parents 39c9061 + f9bf9af commit f61e948
Show file tree
Hide file tree
Showing 13 changed files with 1,235 additions and 437 deletions.
35 changes: 35 additions & 0 deletions docs/mmm/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Marketing Mix Modeling (MMM)

Marketing Mix Modeling (MMM) is a statistical analysis technique that helps in obtaining insights and planning marketing strategies. It is tightly related to Time Series Analysis — we can think of MMM as a special case of Time Series forecasting, where the goal is to understand the incrementality of different exogenous variables on the target variable.

When Prophetverse was created, the objective was to provide a more up-to-date implementation of Facebook's Prophet model and to add features and customization options that were not available in the original implementation. However, as the library evolved, it became clear that it could be used for more than just forecasting and that it could be a powerful tool for MMM.

Prophetverse has the following features that make it a great choice for MMM:

* __Modularity__: Prophetverse allows users to create additive Bayesian models in a modular fashion. Users can easily include different effects to account for various relationships between the exogenous variables and the target variable, and even create their own effects.

* __Versatility__: The effects API can be used not only for adding new components but also for adding new likelihood terms, such as those used for lift tests.

The following effects may be of interest if you are working on MMM:

* [**GeometricAdstockEffect**](/reference/effects/#prophetverse.effects.GeometricAdstockEffect): The geometric adstock effect is a widely used technique in MMM to account for the lagged effect of advertising on sales. It is based on the idea that the effect of an ad on sales decays over time and that the decay follows a geometric progression.

* [**HillEffect**](/reference/effects/#prophetverse.effects.HillEffect): The Hill curve accounts for diminishing returns in the effect of an exogenous variable on the target variable.

* [**ChainedEffects**](/reference/effects/#prophetverse.effects.ChainedEffects): The chained effect is a way to combine multiple effects into a single one. For example, you can use adstock and Hill together.

* [**LiftExperimentLikelihood**](/reference/effects/#prophetverse.effects.LiftExperimentLikelihood): The lift experiment likelihood is a likelihood term that can be used to account for the effect of a lift test on the target variable. It is useful if you want to understand the incrementality of a variable and have already run a lift test to analyze how variations in the input affect the output.

* [**ExactLikelihood**](/reference/effects/#prophetverse.effects.ExactLikelihood): The exact likelihood is a likelihood term that can be used to incorporate a reference value as the incrementality of an exogenous variable. It is useful if another team in your company has already calculated the incrementality of a variable and you want to use it in your MMM model.

## Related Libraries

I invite you to check out other libraries for MMM. Two of them are:

* [PyMC-Marketing](https://www.pymc-marketing.io/en/stable/index.html): This is an amazing project by PyMC's developers. It is a library that provides a set of tools for building Bayesian models for marketing analytics. The documentation is very comprehensive and a great source of information.

* [Lightweight-MMM](https://lightweight-mmm.readthedocs.io/en/latest/index.html): This library, as far as I know, was created by Google developers based on NumPyro. Now, they are developing a new one called [Meridian](https://developers.google.com/meridian?hl=fr).

## Future Work

In future releases of Prophetverse, we aim to provide more tools for MMM, particularly a modular interface for running budget optimization in MMM models. If you are interested in other features, please let us know by opening an issue in the [repository](https://github.com/felipeangelimvieira/prophetverse).
262 changes: 0 additions & 262 deletions docs/mmm/lifttest.ipy

This file was deleted.

Loading

0 comments on commit f61e948

Please sign in to comment.