Treten Sie der neuen
Discord-Community bei. Sie können sich dort in Echtzeit austauschen, Unterstützung von anderen Nutzern erhalten und direkt mit dem Meridian-Team interagieren.
Standard-Prior-Parametrisierungen
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Meridian bietet mehrere Möglichkeiten, den kausalen Effekt der einzelnen Testvariablen auf den KPI zu parametrisieren. Die unterschiedlichen Optionen werden als Modellparametrisierungen bezeichnet. Bei der bayesschen Inferenz muss für die Modellparameter ein Prior festgelegt werden. Mit der Modellparametrisierung wird also festgelegt, wofür genau ein Prior festgelegt wird.
Der vorherige Typ kann für jeden Behandlungsvariantentyp angegeben werden. ModelSpec
enthält die Argumente media_prior_type
, rf_prior_type
, organic_media_prior_type
, organic_rf_prior_type
und non_media_treatments_prior_type
, mit denen Sie angeben können, ob ein Prior auf den ROI, den Grenz-ROI, den Beitrag oder den Mittelwert des Koeffizienten angewendet werden soll. ROI- und Grenz-ROI-Priors sind nur für bezahlte Media verfügbar.
Das PriorDistribution
-Objekt hat ein Argument für jede Kombination aus Behandlungsvariablen- und Priortyp.
Für jeden Behandlungsvariablentyp wird nur das Argument verwendet, das dem ausgewählten Priortyp entspricht. Die anderen werden ignoriert. Die Argumente für kostenpflichtige Media ohne Reichweite und Häufigkeit sind beispielsweise roi_m
, mroi_m
, contribution_m
und beta_m
. Wenn media_prior_type
gleich 'roi'
ist, wird roi_m
verwendet und die anderen werden ignoriert.
Jede Modellparametrisierung hat eine andere Standard-Prior-Verteilung. Die folgende Tabellen zeigt die Standard-Priors der einzelnen Modellparametrisierungen.
In der folgenden Tabelle finden Sie die Modellparametrisierung und die Standard-Priors für den kausalen Effekt kostenpflichtiger Media auf den KPI. Sie variieren je nach media_prior_type
- und rf_prior_type
-Argument in ModelSpec
. Die Modellparametrisierung und die Standard-Priors hängen auch davon ab, ob das Ergebnis umsatzbezogen ist. Das ist der Fall, wenn der KPI „Umsatz“ ist oder revenue_per_kpi
an InputData
übergeben wird.
Das Ergebnis ist nicht umsatzbezogen, wenn der KPI nicht „Umsatz“ ist und revenue_per_kpi
nicht an InputData
übergeben wird. Die Tabelle enthält auch eine Spalte mit dem entsprechenden Parameter im PriorDistribution
-Container, mit dem sich der Prior anpassen lässt.
Modelltyp |
Standard-Prior |
media_prior_type/rf_prior_type |
Ergebnis |
Prior-Typ |
Parameter in PriorDistribution |
'roi' (Standard) |
Umsatz |
ROI |
roi_m , roi_rf |
'roi' (Standard) |
Nicht umsatzbezogen |
Gesamtbeitrag kostenpflichtiger Media |
roi_m , roi_rf |
'mroi' |
Umsatz |
Grenz-ROI |
mroi_m , mroi_rf |
'mroi' |
Nicht umsatzbezogen |
Kein Standard, benutzerdefinierter Prior muss festgelegt werden |
mroi_m , mroi_rf |
'contribution' |
Umsatz |
Beitrag |
contribution_m , contribution_rf |
'contribution' |
Nicht umsatzbezogen |
Beitrag |
contribution_m , contribution_rf |
'coefficient' |
Umsatz |
Koeffizient |
beta_m , beta_rf |
'coefficient' |
Nicht umsatzbezogen |
Koeffizient |
beta_m , beta_rf |
Die Verteilung, die als Standard-Prior für jede Modellparametrisierung verwendet wird, ist unter Standard-Prior-Verteilungen verfügbar.
Legen Sie für jedes in der Tabelle aufgeführte Szenario einen benutzerdefinierten Prior mit dem entsprechenden PriorDistribution
-Parameter fest. Dabei ist es wichtig zu wissen, wofür Sie den benutzerdefinierten Prior festlegen. Weitere Informationen zur Definition von ROI, Grenz-ROI und Beitrag finden Sie unter Parametrisierung von ROI, Grenz-ROI und Beiträgen.
Informationen zur Definition eines Koeffizienten sind in der Modellspezifikation verfügbar. Außerdem können Sie sich Benutzerdefinierter Prior für den Gesamtbeitrag kostenpflichtiger Media ansehen.
Der Standard-Prior für die Testeffekte organischer Media wird durch das organic_media_prior_type
- und das organic_rf_prior_type
-Argument angegeben. Die Optionen sind 'contribution'
und 'coefficient'
. 'contribution'
ist die Standardeinstellung. Wenn Priors für Beiträge verwendet werden, wird eine Prior-Verteilung für die Parameter contribution_om
und contribution_orf
angegeben. Wenn Koeffizienten-Priors verwendet werden, wird eine Prior-Verteilung für die Parameter beta_om
und beta_orf
angegeben.
Der Standard-Prior für die Testeffekte nicht mediabezogener Testvariablen wird durch das non_media_treatments_prior_type
-Argument angegeben. Die Optionen sind 'contribution'
und 'coefficient'
. 'contribution'
ist die Standardeinstellung, unabhängig davon, ob das Ergebnis umsatzbezogen ist. Wenn Priors für Beiträge verwendet werden, wird eine Prior-Verteilung für den Parameter contribution_n
angegeben. Wenn Koeffizienten-Priors verwendet werden, wird eine Prior-Verteilung für die Parameter gamma_n
angegeben.
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-08-17 (UTC).
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-08-17 (UTC)."],[[["\u003cp\u003eMeridian allows for different model parameterizations to analyze the causal effect of treatment variables on the KPI, influencing the prior settings in Bayesian inference.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003epaid_media_prior_type\u003c/code\u003e argument in \u003ccode\u003eModelSpec\u003c/code\u003e determines whether the prior is set on ROI, mROI, or the coefficient (\u003ccode\u003ebeta_m\u003c/code\u003e), impacting the active parameters in \u003ccode\u003ePriorDistribution\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eDefault priors for paid media's causal effect vary based on the \u003ccode\u003epaid_media_prior_type\u003c/code\u003e and whether the outcome is in terms of revenue or not, while specific \u003ccode\u003ePriorDistribution\u003c/code\u003e parameters (\u003ccode\u003eroi_m\u003c/code\u003e, \u003ccode\u003emroi_m\u003c/code\u003e, \u003ccode\u003ebeta_m\u003c/code\u003e, etc.) allow customization.\u003c/p\u003e\n"],["\u003cp\u003eOrganic media and non-media treatment prior parameters (\u003ccode\u003ebeta_om\u003c/code\u003e, \u003ccode\u003ebeta_orf\u003c/code\u003e, and \u003ccode\u003egamma_n\u003c/code\u003e) are independent of the \u003ccode\u003epaid_media_prior_type\u003c/code\u003e setting and the revenue status of the KPI.\u003c/p\u003e\n"],["\u003cp\u003eThe table indicates the relationship between the \u003ccode\u003epaid_media_prior_type\u003c/code\u003e, the type of outcome, the Prior Type, and the corresponding parameter that must be customized in \u003ccode\u003ePriorDistribution\u003c/code\u003e.\u003c/p\u003e\n"]]],["Meridian allows setting priors for causal effects using `ModelSpec`'s `paid_media_prior_type`, choosing between ROI, mROI, or coefficient (beta_m). The `PriorDistribution` object defines these priors via `roi_m`, `mroi_m`, `beta_m` (for paid media), or `beta_om`/`beta_orf`(organic) or `gamma_n` (non-media). Default priors depend on `paid_media_prior_type` and whether the outcome is revenue-based, for example, 'roi' type for revenue default to ROI. Users can set custom priors with the corresponding parameters in `PriorDistribution`.\n"],null,["# Default prior parameterizations\n\nMeridian offers multiple ways to parameterize the causal effect of each\ntreatment variable on the KPI. We refer to each option as different\n*model parameterizations*. In Bayesian inference, a prior must be set on the\nparameters of the model. So the model parameterization determines what precisely\none is setting a prior on.\n\nThe prior type can be specified for each treatment type. The\n[`ModelSpec`](/meridian/reference/api/meridian/model/spec/ModelSpec) contains\narguments `media_prior_type`, `rf_prior_type`, `organic_media_prior_type`,\n`organic_rf_prior_type`, and `non_media_treatments_prior_type`, which allow\nyou to specify whether a prior is placed on ROI, mROI, contribution, or the\ncoefficient mean. (ROI and mROI priors are only available for paid media.)\n\nThe\n[`PriorDistribution`](/meridian/reference/api/meridian/model/prior_distribution/PriorDistribution)\nobject has an argument for each combination of treatment type and prior type.\nFor each treatment type, only the argument corresponding to the selected prior\ntype is used. The others are ignored. For example, the arguments corresponding\nto non-R\\&F paid media are `roi_m`, `mroi_m`, `contribution_m`, and `beta_m`. If\n`media_prior_type` is `'roi'`, then `roi_m` is used and the others are ignored.\n\nEach model parameterization has a different default prior distribution. The\nfollowing tables summarize the default priors under each model parameterization.\n\nPaid media\n----------\n\nThe following table summarizes the model parameterization and default priors for\nthe causal effect of paid media on the KPI. These vary based on the\n`media_prior_type` and `rf_prior_type` arguments in `ModelSpec`. The model\nparameterization and default priors also depend on whether\n[outcome](/meridian/docs/basics/glossary) is revenue. Outcome is revenue when\neither the KPI is revenue or when `revenue_per_kpi` is passed to `InputData`.\nOutcome is not revenue (\"non-revenue\") when the KPI is not revenue and\n`revenue_per_kpi` is not passed to `InputData`. The table also includes a column\nindicating the corresponding parameter in the `PriorDistribution` container that\nallows one to customize the prior.\n\n| Model Type || Default Prior ||\n| `media_prior_type/rf_prior_type` | Outcome | Prior Type | Parameter in `PriorDistribution` |\n|----------------------------------|-------------|-------------------------------|-------------------------------------|\n| `'roi'` (default) | Revenue | ROI | `roi_m`, `roi_rf` |\n| `'roi'` (default) | Non-revenue | Total paid media contribution | `roi_m`, `roi_rf` |\n| `'mroi'` | Revenue | mROI | `mroi_m`, `mroi_rf` |\n| `'mroi'` | Non-revenue | No default, must set custom | `mroi_m`, `mroi_rf` |\n| `'contribution'` | Revenue | Contribution | `contribution_m`, `contribution_rf` |\n| `'contribution'` | Non-revenue | Contribution | `contribution_m`, `contribution_rf` |\n| `'coefficient'` | Revenue | Coefficient | `beta_m`, `beta_rf` |\n| `'coefficient'` | Non-revenue | Coefficient | `beta_m`, `beta_rf` |\n\nThe distribution used as the default prior for each model parameterization is\nsummarized in\n[Default prior distributions](/meridian/docs/advanced-modeling/default-prior-distributions).\n\nUnder each scenario listed in the table, set a custom prior using the\nappropriate `PriorDistribution` parameter indicated in the table. When setting a\ncustom prior, it's important to understand what you are setting a custom prior\non. For more on the definition of ROI, mROI, and Contribution see [ROI, mROI,\nand Contribution parameterizations](/meridian/docs/basics/roi-mroi-contribution-parameterizations).\nFor more on the definition of a coefficient, see the [model\nspecification](/meridian/docs/basics/model-spec). For more on the total paid\nmedia contribution prior, see [Custom total paid media contribution\nprior](/meridian/docs/advanced-modeling/unknown-revenue-kpi-default#default-total-paid-media-contribution-prior).\n\nOrganic media\n-------------\n\nThe default prior for treatment effects of organic media is specified by the\n`organic_media_prior_type` and `organic_rf_prior_type` arguments. The options\nare `'contribution'` and `'coefficient'`, with `'contribution'` being the\ndefault. If contribution priors are used, then a prior distribution is specified\non the\n[`contribution_om` and `contribution_orf`](/meridian/docs/advanced-modeling/default-prior-distributions#contribution_m_contribution_rf_contribution_om_and_contribution_orf)\nparameters. If coefficient priors are used, then a prior distribution is\nspecified on the\n[`beta_om` and `beta_orf`](/meridian/docs/advanced-modeling/default-prior-distributions#beta_m_beta_rf_beta_om_and_beta_orf)\nparameters.\n\nNon-media treatments\n--------------------\n\nThe default prior for treatment effects of non-media_treatments is specified by\nthe `non_media_treatments_prior_type` argument. The options are `'contribution'`\nand `'coefficient'`, with `'contribution'` being the default regardless of\nwhether the outcome is revenue. If contribution priors are used, then a prior\ndistribution is specified on the\n[`contribution_n`](/meridian/docs/advanced-modeling/default-prior-distributions#contribution_n)\nparameter. If coefficient priors are used, then a prior distribution is\nspecified on the\n[`gamma_n`](/meridian/docs/advanced-modeling/default-prior-distributions#gamma_c_and_gamma_n)\nparameter."]]