Comments (7)
Hello @elisakrammerfiverr !
Yes, LMMM is a regression model!
In MMM one will model sales based on media investment, so your features will be your investment/impression/clicks on your different media channels (one column per channel in a simple use case), and your target will be your sales. Not sure if you are familiar with MMM, if not feel free to check out some online resources.
MCMC is used for estimating the parameters of the model. If you are asking where specifically in the code, you can see how we make use of Numpyro MCMC in this line.
As for RBA I am not very familiar with it so I cant really comment.
Let us know if there are any questions left unanswered!
from lightweight_mmm.
Hello @elisakrammerfiverr !
Yes, LMMM is a regression model!
In MMM one will model sales based on media investment, so your features will be your investment/impression/clicks on your different media channels (one column per channel in a simple use case), and your target will be your sales. Not sure if you are familiar with MMM, if not feel free to check out some online resources.
MCMC is used for estimating the parameters of the model. If you are asking where specifically in the code, you can see how we make use of Numpyro MCMC in this line.
As for RBA I am not very familiar with it so I cant really comment.
Let us know if there are any questions left unanswered!
@pabloduque0 Thank you, I think I understood the place of MCMC in the MMM. I am trying to use your model on my data. Do you think we could meet over zoom ? I want to ask you some questions on my pipeline
from lightweight_mmm.
Feel free to add any questions you have here and I will do my best answering them.
What is giving you trouble? Are you missing any functionality? Is something not clear in the docs?
from lightweight_mmm.
Hi @pabloduque0 I think I have issues with the optimization :
let's take an example : if my total spending accross all channels in the train is 10 000$ then I need to set budget = jnp.sum(media_data_train.mean(axis=0)) * n_time_periods and I need to choose n_time_periods such that the budget expression would be equal to 10 000$ ? How do I chose the conditions of the optimization ? can you give me an example please ?
from lightweight_mmm.
@pabloduque0 also another question : why do we need budget optmization after we estimate the parameters of the regression ? I was thinking that the budget was determined by the coefficients of the regression. Where do you use the coefficients of the regression in the budget optmization ?
from lightweight_mmm.
Hello @elisakrammerfiverr !
Good questions, let me try to cover them.
- Optimization is done over a number of time periods, if your model has weekly data, those will be weeks, if daily, days. When you run the optimization you need to decide for how many weeks/days you want to run it.
- The budget decision also goes related to n_time_priods. What
jnp.sum(media_data_train.mean(axis=0)) * n_time_periods
is doing is taking the average week/day and then multiplying by the number of n_time_periods so your budget will essencially be an average spending in the historic data. But this only applies if you media unit is cost/investment ($$), if you are using impressions or clicks you will need to either have a price for it, or set it manually. - The optimization is media optimization (not model optimization). That is given the model we will use it to optimize the budget (media allocation) to maximaze sales (or other KPI). The coefficients are used in the media optimization to run predictions on the model.
Essentially for the optimization you can use an average spending on any week/days, times the number of weeks/days you are optimizing for. But you can also increase/descrease the budget depending on your goal.
- What is your media unit? (the values in your matrix what do they represent) This will allow me to give you a more concrete example.
from lightweight_mmm.
Closing due to lack of activity but feel free to open if there are any remaining questions :)
from lightweight_mmm.
Related Issues (20)
- cost and media data is not clear from the documentation HOT 1
- Single-channel use issue HOT 15
- Why Pre and Post Budget Allocation do not change? HOT 6
- Nested modeling HOT 2
- Multivariate input for media data HOT 1
- Response curve questions
- Loading saved model
- Saturation + Carryover transformation HOT 2
- Baseline Contribution Area Plot colours are non-unique HOT 1
- Feature request: Extend to time-varying coefficients (uber's orbit model)
- Question: How to model time dependent features in the fit and predict method? HOT 2
- how to understand the media contribution percentage? HOT 2
- Media contribution percentage sums up to 105% HOT 1
- Have issues with plot.plot_media_channel_posteriors(media_mix_model=mmm) HOT 2
- Budget Allocator - Solution X returns incorrect allocation HOT 1
- limitations in the use of extra features HOT 4
- Anyway to save mmm.print_summary()? HOT 1
- Hierarchical Partially Pooled Media
- media_priors HOT 1
- Get contribution from predict
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lightweight_mmm.