Giter VIP home page Giter VIP logo

Comments (4)

gufengzhou avatar gufengzhou commented on June 8, 2024 2

Hi @AdimDrewnik , well the % from R2 and the % from decomposition are two very different things. The first one is variance explained, the latter is just share of total effect. This is esp. possible for variables like season that's centered around 0: It could explain a lot if the dependent variable is very seasonal obviously, but the decomp (or attribution as in your words) is closed to 0. This topic is called "reference point" for these types of variables and categorical variables, too. So yes, it's possible to have 90% Rsq but 80% intercept. I'm not saying it's ideal though.

Regarding the phenomenon you mentioned that removing variables will lead to change of decomposition. This is not unique to Robyn. Use any regression model, when you remove or add another "significant" variable, result will change, esp. when multicolinearity is in place, which is almost always the case for MMM.

Reg. convergence for both objective functions, we usually recommend to at least have the prediction error converged (NRMSE), which is the case in demo data. For the business error (DECOMP.RSSD), it's not necessary. You can / should still explore the result.

Lastly, @LMiddles , I suggest you might consider removing "organic traffic", because we all know how messy "organic traffic", or the "direct/none" bucket in allocation is. Esp. if there's suspect that it cannibalises with paid channels. Otherwise, I recommend you to set add_penalty_factor = TRUE in robyn_run and rerun, as well as explore more results beyond those PNGs. You get all pareto results in pareto_aggregated.csv

from robyn.

AdimDrewnik avatar AdimDrewnik commented on June 8, 2024

Robyn results seem to be very sensitive. Top models often are wildly different from each other. For example try removing from the demo data set competitor spend. Suddenly trend, which is almost nonexistent, gets majority of attribution. Try removing trend, then intercept gets almost all attribution which makes no sense as resulting models have very high R2. I don't understand how a model can have above 90% R2 and at the same time intercept gets more than 80% attribution.
What baffles me is that the demo data set is not even converging on the default settings, even increasing trials and iterations significantly don't lead to the convergence.

from robyn.

AdimDrewnik avatar AdimDrewnik commented on June 8, 2024

What add_penalty_factor = TRUE is doing? I was unable to find any explanations on the Internet and in the documentation.
Can you point me to some materials describing the calculations of "share of total effect" for waterfall graph?

from robyn.

gufengzhou avatar gufengzhou commented on June 8, 2024

You can find a brief documentation by running ?robyn_run. Moreover, it used the penalty.factor parameter from glmnet. Google that and you'll find more details

from robyn.

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.