Git Product home page Git Product logo

Comments (7)

pabloduque0 avatar pabloduque0 commented on May 2, 2024

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.

elisakrammerfiverr avatar elisakrammerfiverr commented on May 2, 2024

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.

pabloduque0 avatar pabloduque0 commented on May 2, 2024

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.

elisakrammerfiverr avatar elisakrammerfiverr commented on May 2, 2024

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.

elisakrammerfiverr avatar elisakrammerfiverr commented on May 2, 2024

@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.

pabloduque0 avatar pabloduque0 commented on May 2, 2024

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.

pabloduque0 avatar pabloduque0 commented on May 2, 2024

Closing due to lack of activity but feel free to open if there are any remaining questions :)

from lightweight_mmm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.