Join the newly launched
Discord community for real-time discussions, peer support, and direct interaction with the Meridian team!
ROI priors and calibration
Stay organized with collections
Save and categorize content based on your preferences.
ROI priors offer an intuitive way to incorporate domain knowledge, such as past
experiment results, into your model to help guide the model training process.
When ROI experiment results are used to set channel-specific ROI priors,
Meridian refers to this as calibration. It isn't necessary to have
experiment results in order to utilize ROI priors. ROI priors are the recommended
approach regardless of what data is available to inform them.
ROI priors ensure that the effective coefficient prior is on a scale that is
appropriate relative to the spend for each channel. It can be tempting to think
that coefficient priors make better non-informative priors, but this isn't the
case. If you use the same non-informative coefficient prior on all channels, you
are effectively placing very different ROI priors on these channels that could
differ by orders of magnitude.
Here are some important considerations when setting ROI priors:
There is no specific formula to translate an experiment result into a prior.
One option is to align the experiment's point estimate and standard error with
the prior mean and standard error (see an example in Set custom priors using
past experiments).
However, prior knowledge in the Bayesian sense is more broadly defined, and
doesn't need to be a formulaic calculation. Other domain knowledge can be used
in combination with experiment results to subjectively set the priors.
Meridian's default ROI prior distribution is Log-normal. This
distribution was chosen as the default because it has two parameters, which
gives control over both the mean and standard deviation. However, any
distribution with any number of parameters can be used in place of
Log-normal. Generally, it's not recommended to allow negative ROI values
because this can inflate the posterior variance and lead to overfitting.
The ROI measured by an experiment never aligns perfectly with the ROI measured
by MMM. (In statistical terms, the experiment and MMM have different
estimands.) Experiments are always related to the specific conditions of the
experiment, such as the time window, geographic regions, campaign settings.
Experiment results can provide highly relevant information about the MMM ROI,
but translating experiment results to an MMM prior involves an additional
layer of uncertainty beyond only the experiment's standard error.
When setting prior distributions, and prior standard deviations in particular:
Consider that some degree of regularization is typically necessary to
achieve a suitable bias-variance tradeoff. Although some modelers might be
inclined to use flat, noninformative priors for channels with no prior
experiments, this can lead to overfitting and poor results (low bias but
high variance).
Finding an appropriate degree of regularization can be an iterative process
that involves checking out-of-sample model fit at various regularization
strengths. Bayesian purists might argue against this because the posterior
distribution doesn't have a clear interpretation unless the prior
distribution precisely reflects prior knowledge. Although this is true, such
an approach is not necessarily practical for MMM. Furthermore, it is
infeasible to obtain domain knowledge and set a true prior on every single
parameter in the model, and Bayesian inference should be interpreted
accordingly.
For more information, see:
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-06-11 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-11 UTC."],[[["\u003cp\u003eROI priors allow you to incorporate domain knowledge, like past experiment results, to guide model training and improve accuracy.\u003c/p\u003e\n"],["\u003cp\u003eMeridian's calibration process uses channel-specific ROI priors, ideally informed by experiment results but not strictly required.\u003c/p\u003e\n"],["\u003cp\u003eWhile experiment results offer valuable insights for setting ROI priors, they should be interpreted cautiously, considering the inherent differences between experimental and MMM measurements.\u003c/p\u003e\n"],["\u003cp\u003eFinding the optimal level of regularization for your model often involves an iterative process to balance bias and variance, even if it deviates from a purely Bayesian approach.\u003c/p\u003e\n"],["\u003cp\u003eThe default Log-normal distribution for ROI priors is recommended, but other distributions can be used as long as they avoid negative ROI values to prevent overfitting.\u003c/p\u003e\n"]]],["ROI priors incorporate domain knowledge into model training, ideally using past experiment results for channel-specific *calibration*. Though, experiment data isn't mandatory for setting priors. The default log-normal distribution is recommended, avoiding negative values. Translating experiment outcomes to MMM priors involves uncertainty, as experiments don't perfectly align with MMM ROI. Setting priors, especially standard deviations, requires regularization to avoid overfitting. The degree of regularization may require iteration.\n"],null,["ROI priors offer an intuitive way to incorporate domain knowledge, such as past\nexperiment results, into your model to help guide the model training process.\n\nWhen ROI experiment results are used to set channel-specific ROI priors,\nMeridian refers to this as *calibration*. It isn't necessary to have\nexperiment results in order to utilize ROI priors. ROI priors are the recommended\napproach regardless of what data is available to inform them.\n\nROI priors ensure that the effective coefficient prior is on a scale that is\nappropriate relative to the spend for each channel. It can be tempting to think\nthat coefficient priors make better non-informative priors, but this isn't the\ncase. If you use the same non-informative coefficient prior on all channels, you\nare effectively placing very different ROI priors on these channels that could\ndiffer by orders of magnitude.\n\nHere are some important considerations when setting ROI priors:\n\n- There is no specific formula to translate an experiment result into a prior.\n One option is to align the experiment's point estimate and standard error with\n the prior mean and standard error (see an example in [Set custom priors using\n past experiments](/meridian/docs/advanced-modeling/set-custom-priors-past-experiments)).\n However, prior knowledge in the Bayesian sense is more broadly defined, and\n doesn't need to be a formulaic calculation. Other domain knowledge can be used\n in combination with experiment results to subjectively set the priors.\n\n- Meridian's default ROI prior distribution is Log-normal. This\n distribution was chosen as the default because it has two parameters, which\n gives control over both the mean and standard deviation. However, any\n distribution with any number of parameters can be used in place of\n Log-normal. Generally, it's not recommended to allow negative ROI values\n because this can inflate the posterior variance and lead to overfitting.\n\n- The ROI measured by an experiment never aligns perfectly with the ROI measured\n by MMM. (In statistical terms, the experiment and MMM have different\n estimands.) Experiments are always related to the specific conditions of the\n experiment, such as the time window, geographic regions, campaign settings.\n Experiment results can provide highly relevant information about the MMM ROI,\n but translating experiment results to an MMM prior involves an additional\n layer of uncertainty beyond only the experiment's standard error.\n\n- When setting prior distributions, and prior standard deviations in particular:\n\n - Consider that some degree of regularization is typically necessary to\n achieve a suitable bias-variance tradeoff. Although some modelers might be\n inclined to use flat, noninformative priors for channels with no prior\n experiments, this can lead to overfitting and poor results (low bias but\n high variance).\n\n - Finding an appropriate degree of regularization can be an iterative process\n that involves checking out-of-sample model fit at various regularization\n strengths. Bayesian purists might argue against this because the posterior\n distribution doesn't have a clear interpretation unless the prior\n distribution precisely reflects prior knowledge. Although this is true, such\n an approach is not necessarily practical for MMM. Furthermore, it is\n infeasible to obtain domain knowledge and set a true prior on every single\n parameter in the model, and Bayesian inference should be interpreted\n accordingly.\n\nFor more information, see:\n\n- [ROI priors](/meridian/docs/advanced-modeling/roi-priors-and-calibration) for technical details.\n- [Tune the ROI calibration](/meridian/docs/user-guide/configure-model#tune-roi-calibration) for how to set ROI priors based on experiment results.\n- [Set the ROI calibration period](/meridian/docs/user-guide/configure-model#set-roi-calibration-period) for using the `roi_calibration_period` argument to apply your ROI prior to a narrower time window."]]