新しく開設された
Discord コミュニティに参加して、リアルタイムのディスカッション、ユーザー同士のサポート、メリディアン チームとの直接の交流をお楽しみください。
メディアの飽和と遅延
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
通常、メディア チャネルが売り上げに与える効果には遅延があり、時間の経過とともに徐々に減少します。メリディアンのモデル アーキテクチャは、幾何級数的な Adstock 減衰関数によってこの効果を捉えるように設計されています。詳細については、カテゴリデータを使用してメディア ミックスモデルを改善する階層ベイズ アプローチとキャリーオーバー効果と形状効果を考慮したメディア ミックス モデリングのためのベイズ手法をご覧ください。
Adstock 関数
Adstock 関数は次のように定義されます。
$$
\text{AdStock}(x_t, x_{t-1}, \cdots, x_{t-L};\ \alpha)\ =
\dfrac{\sum\limits_{s=0}^L\ \alpha^sx_{t-s}}
{\sum\limits _{s=0}^L\ \alpha^s}
$$
ここで
\(x_s \geq 0; s = t, t-1, \cdots, t-L\)
\(\alpha\ \in\ [0, 1]\) は幾何級数的な減衰率です。
\(L\) は最大遅延時間です。
また、特定の期間内の特定のメディア チャネルへの費用が増加すると、最終的には収益の伸びが鈍くなる(飽和状態になる)ことは直感的にも理解できます。メリディアンでは、この飽和効果を Hill 関数と呼ばれる 2 つのパラメータ関数でモデル化します。
Hill 関数
Hill 関数は次のように定義されます。
$$
\text{Hill}(x; ec, \text{slope}) = \frac{1}{1+\left( \frac{x}{ec} \right)^
{- \text{slope}}}
$$
ここで
\(x \geq 0\)
\(ec > 0\) は半飽和点です。つまり、\(\text{Hill}(x=ec; ec, \text{slope}) = 0.5\)となります。
\(\text{slope} > 0\) は、関数の形状を制御するパラメータです。
- \(\text{slope} \leq 1\) : 凹面の形状に対応します。
- \(\text{slope} > 1\) は、 \( x < ec \) では凸、 \( x > ec \)では凹の S 字型関数に対応します。
重要: モデルによる Hill 関数パラメータの推定は、観測されたメディアデータの範囲に基づきます。適合した応答曲線はこの範囲外にも外挿できますが、外挿に基づく結果は適度な注意を払って解釈する必要があります。
Hill 関数は、ModelSpec
のブール値の hill_before_adstock
引数に応じて、Adstock 変換の前または後に適用できます。デフォルト設定は hill_before_adstock = False
です。この場合、地域 \(g\) と期間 \(t\)内のチャネル \(m\) のメディア効果は\(\beta_{g,m} \text{Hill}(\text{Adstock}(x_t,x_{t-1},\cdots,x_{t-L};\ \alpha_m)
;ec_m, \text{slope}_m)\)になります。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-08-04 UTC。
[null,null,["最終更新日 2025-08-04 UTC。"],[[["\u003cp\u003eMeridian utilizes an Adstock function to model the lagged and tapering effects of media channels on sales.\u003c/p\u003e\n"],["\u003cp\u003eThe Hill function is employed to capture the diminishing marginal returns, or saturation, of media spending.\u003c/p\u003e\n"],["\u003cp\u003eThe Hill function can be applied before or after the Adstock transformation, offering flexibility in modeling media effects.\u003c/p\u003e\n"],["\u003cp\u003eThe model estimates parameters based on observed data, and extrapolation beyond this range requires caution in interpretation.\u003c/p\u003e\n"],["\u003cp\u003eDetails on the Adstock and Hill functions, including formulas and parameter explanations, are provided within the content.\u003c/p\u003e\n"]]],["Meridian's model captures the lagged effect of media on sales using a geometric decay Adstock function, defined by decay rate (α) and maximum lag (L). It also accounts for diminishing returns through the Hill function, characterized by half saturation point (ec) and slope. The Hill function can be applied before or after the Adstock transformation, defaulting to after. The model estimates Hill function parameters based on the observed media data range.\n"],null,["# Media saturation and lagging\n\nTypically the effect of a media channel on sales has a lagged effect that tapers\noff slowly over time. Meridian's model architecture is designed to\ncapture this effect through a geometric decay Adstock function. For more\ninformation, see [A Hierarchical Bayesian Approach to Improve Media Mix Models\nUsing Category\nData](https://research.google/pubs/a-hierarchical-bayesian-approach-to-improve-media-mix-models-using-category-data/)\nand [Bayesian Methods for Media Mix Modeling with Carryover and Shape\nEffects](https://research.google/pubs/bayesian-methods-for-media-mix-modeling-with-carryover-and-shape-effects/).\n\nAdstock function\n----------------\n\nThe Adstock function is defined as follows: \n$$ \\\\text{AdStock}(x_t, x_{t-1}, \\\\cdots, x_{t-L};\\\\ \\\\alpha)\\\\ = \\\\dfrac{\\\\sum\\\\limits_{s=0}\\^L\\\\ \\\\alpha\\^sx_{t-s}} {\\\\sum\\\\limits _{s=0}\\^L\\\\ \\\\alpha\\^s} $$\n\nWhere:\n\n- \\\\(x_s \\\\geq 0; s = t, t-1, \\\\cdots, t-L\\\\)\n\n- \\\\(\\\\alpha\\\\ \\\\in\\\\ \\[0, 1\\]\\\\) is the geometric decay rate\n\n- \\\\(L\\\\) is the maximum lag duration\n\nIt is also intuitive that as spending on a given media channel within any given\ntime period increases, you eventually see diminishing marginal returns, for\nexample, saturation. Meridian models this saturation effect through a\ntwo-parameter function known as the Hill function.\n\nHill function\n-------------\n\nThe Hill function is defined as follows: \n$$ \\\\text{Hill}(x; ec, \\\\text{slope}) = \\\\frac{1}{1+\\\\left( \\\\frac{x}{ec} \\\\right)\\^ {- \\\\text{slope}}} $$\n\nWhere:\n\n- \\\\(x \\\\geq 0\\\\)\n\n- \\\\(ec \\\u003e 0\\\\) is the half saturation point, meaning that\n \\\\(\\\\text{Hill}(x=ec; ec, \\\\text{slope}) = 0.5\\\\)\n\n- \\\\(\\\\text{slope} \\\u003e 0\\\\) is a parameter that controls the function shape:\n\n - \\\\(\\\\text{slope} \\\\leq 1\\\\) corresponds to a concave shape\n - \\\\(\\\\text{slope} \\\u003e 1\\\\) corresponds to an *S* shaped function that is convex for \\\\( x \\\u003c ec \\\\) and concave for \\\\( x \\\u003e ec \\\\)\n\n**Important:** The model's estimation of the Hill function parameters is based\non the observed range of media data. The fitted response curve can be\nextrapolated outside this range, but results based on extrapolation should be\ninterpreted with an appropriate level of caution.\n\nThe Hill function can be applied either before or after the Adstock\ntransformation, depending on the boolean `hill_before_adstock` argument of the\n`ModelSpec`. The default setting is `hill_before_adstock = False`, which makes\nthe media effect of channel \\\\(m\\\\) within geo \\\\(g\\\\) and time period \\\\(t\\\\)\nequal to\n\\\\(\\\\beta_{g,m} \\\\text{Hill}(\\\\text{Adstock}(x_t,x_{t-1},\\\\cdots,x_{t-L};\\\\ \\\\alpha_m)\n;ec_m, \\\\text{slope}_m)\\\\)."]]