Negative baseline and ways to tune it #851
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Hi @Anne-lim-te, Thank you for contacting us. To answer your first question, from the graph, it seems that the negative baseline only happens at one dip, which indicates minor error, which is inherent in any statistical model. We advise against overemphasizing a baseline time series in Model fit charts that occasionally dips into negative values. We also recommend assessing the negativity of the baseline probabilistically, or examining the point estimate of the baseline aggregated over the entire time window, as in Channel contribution charts. All these are explained in detail on our documentation page. To answer your query about plotting media coefficients, in Meridian you can access the model coefficients from the inference_data object where they are stored by channel. You may also check out some of our example codes on the model diagnostics page. For example, the following codes plot both prior and posterior distributions of beta_m. Another example, the following codes plot both the density and trace plots of beta_m You can also either extract the entire posterior distribution or you can get the mean and credible intervals of the parameter. The posterior distribution corresponds to the final values to which the model converged to. You may extract the coefficients, and use some visualisation library, say Feel free to reach out if you have any questions or suggestions regarding Meridian. Thank you, Google Meridian Support Team |
Beta Was this translation helpful? Give feedback.
-
|
I'm in the learning process too; but two things I thought on seeing the chart were
You could always throw it in to Robyn as a compare-contrast ;) (this is where I get banned from the site!). See what it thinks. You don't have to stick with it, but a 2nd opinion is always nice. As it uses Prophet to drive the baseline, you might find something you can extract from there as a control. |
Beta Was this translation helpful? Give feedback.

Hi @Anne-lim-te,
Thank you for contacting us.
To answer your first question, from the graph, it seems that the negative baseline only happens at one dip, which indicates minor error, which is inherent in any statistical model. We advise against overemphasizing a baseline time series in Model fit charts that occasionally dips into negative values. We also recommend assessing the negativity of the baseline probabilistically, or examining the point estimate of the baseline aggregated over the entire time window, as in Channel contribution charts. All these are explained in detail on our documentation page.
To answer your query about plotting media coefficients, in Meridian you can access the…