説明 観測されていない母集団パラメータを推定したいと仮定します。θ {\displaystyle \theta } 観察に基づいてx {\displaystyle x} 。 させてf {\displaystyle f} の標本分布 とするx {\displaystyle x} 、 となることによってf ( x ∣ θ ) {\displaystyle f(x\mid \theta )} 確率はx {\displaystyle x} 基礎となる母集団パラメータがθ {\displaystyle \theta } すると、次の関数が実行されます。
θ ↦ f ( x ∣ θ ) {\displaystyle \theta \mapsto f(x\mid \theta )\!} これは尤度関数 として知られており、推定値は次のようになります。
θ ^ M L E ( x ) = 1 r g m 1 x θ f ( x ∣ θ ) {\displaystyle {\hat {\theta }}_{\mathrm {MLE} }(x)={\underset {\theta }{\operatorname {arg\,max} }}\ f(x\mid \theta )\!} は、θ {\displaystyle \theta } 。
ここで、事前分布を 仮定します。g {\displaystyle g} 以上θ {\displaystyle \theta } 存在する。これにより、我々は治療することができる。θ {\displaystyle \theta } ベイズ統計学 における確率変数 として。事後密度 を計算できます。θ {\displaystyle \theta } ベイズの定理 を用いる:
θ ↦ f ( θ ∣ x ) = f ( x ∣ θ ) g ( θ ) ∫ Θ f ( x ∣ ϑ ) g ( ϑ ) d ϑ {\displaystyle \theta \mapsto f(\theta \mid x)={\frac {f(x\mid \theta )\,g(\theta )}{\displaystyle \int _{\Theta }f(x\mid \vartheta )\,g(\vartheta )\,d\vartheta }}\!} どこg {\displaystyle g} は密度関数であるθ {\displaystyle \theta } 、Θ {\displaystyle \Theta } は、g {\displaystyle g} 。
最大事後確率推定法では、θ {\displaystyle \theta } この確率変数の事後密度の最頻値 として:
θ ^ M A P ( x ) = 1 r g m 1 x θ f ( θ ∣ x ) = 1 r g m 1 x θ f ( x ∣ θ ) g ( θ ) ∫ Θ f ( x ∣ ϑ ) g ( ϑ ) d ϑ = 1 r g m 1 x θ f ( x ∣ θ ) g ( θ ) 。 {\displaystyle {\begin{aligned}{\hat {\theta }}_{\mathrm {MAP} }(x)&={\underset {\theta }{\operatorname {arg\,max} }}\ f(\theta \mid x)\\&={\underset {\theta }{\operatorname {arg\,max} }}\ {\frac {f(x\mid \theta )\,g(\theta )}{\displaystyle \int _{\Theta }f(x\mid \vartheta )\,g(\vartheta )\,d\vartheta }}\\&={\underset {\theta }{\operatorname {arg\,max} }}\ f(x\mid \theta )\,g(\theta ).\end{aligned}}\!} 事後密度(モデルの周辺尤度 )の分母は常に正であり、θ {\displaystyle \theta } したがって、最適化には関与しません。MAP推定値はθ {\displaystyle \theta } 事前分布が最尤推定値と一致する場合g {\displaystyle g} 均一である(つまり、g {\displaystyle g} は定数関数 であり、これは関数空間アプリケーションでよく見られるように、事前分布が参照尺度として採用されるときに発生します。
ベイズ推定量 の文脈では、MAPはリスク関数を持つベイズリスクの最小化として復元できる。
L ( θ 、 1 ) = { 0 、 もし | 1 − θ | < c 、 1 、 さもないと 、 {\displaystyle L(\theta ,a)={\begin{cases}0,&{\text{if }}|a-\theta |<c,\\1,&{\text{otherwise}},\\\end{cases}}} 極限ではc {\displaystyle c} 分布が 0 になる場合θ {\displaystyle \theta } 準凹関数である。[ 1 ] ただし、一般的に、MAP推定量は、以下の条件を満たさない限り、ベイズ推定量ではない。θ {\displaystyle \theta } 離散的 である。
例 数列が与えられたと仮定します( x 1 、 … 、 x n ) {\displaystyle (x_{1},\dots ,x_{n})} IID のN ( μ 、 σ v 2 ) {\displaystyle N(\mu ,\sigma _{v}^{2})} 確率変数 と事前分布μ {\displaystyle \mu } は N ( μ 0 、 σ m 2 ) {\displaystyle N(\mu _{0},\sigma _{m}^{2})} MAP推定値を求めたいμ {\displaystyle \mu } 正規分布は自身の共役事前分布であるため、解析的に 閉形式解を 求めることができることに注意してください。
最大化すべき関数は[ 3 ]で与えられる。
g ( μ ) f ( x ∣ μ ) = π ( μ ) L ( μ ) = 1 2 π σ m exp ( − 1 2 ( μ − μ 0 σ m ) 2 ) ∏ j = 1 n 1 2 π σ v exp ( − 1 2 ( x j − μ σ v ) 2 ) 、 {\displaystyle g(\mu )f(x\mid \mu )=\pi (\mu )L(\mu )={\frac {1}{{\sqrt {2\pi }}\sigma _{m}}}\exp \left(-{\frac {1}{2}}\left({\frac {\mu -\mu _{0}}{\sigma _{m}}}\right)^{2}\right)\prod _{j=1}^{n}{\frac {1}{{\sqrt {2\pi }}\sigma _{v}}}\exp \left(-{\frac {1}{2}}\left({\frac {x_{j}-\mu }{\sigma _{v}}}\right)^{2}\right),} これは、次の関数を最小化することと同等です。μ {\displaystyle \mu } :
∑ j = 1 n ( x j − μ σ v ) 2 + ( μ − μ 0 σ m ) 2 。 \displaystyle \sum _{j=1}^{n}\left({\frac {x_{j}-\mu }{\sigma _{v}}}\right)^{2}+\left({\frac {\mu -\mu _{0}}{\sigma _{m}}}\right)^{2}.} したがって、 μのMAP推定量は [ 3 ] で与えられることがわかります。
μ ^ M A P = σ m 2 n σ m 2 n + σ v 2 ( 1 n ∑ j = 1 n x j ) + σ v 2 σ m 2 n + σ v 2 μ 0 = σ m 2 ( ∑ j = 1 n x j ) + σ v 2 μ 0 σ m 2 n + σ v 2 。 {\displaystyle {\hat {\mu }}_{\mathrm {MAP} }={\frac {\sigma _{m}^{2}\,n}{\sigma _{m}^{2}\,n+\sigma _{v}^{2}}}\left({\frac {1}{n}}\sum _{j=1}^{n}x_{j}\right)+{\frac {\sigma _{v}^{2}}{\sigma _{m}^{2}\,n+\sigma _{v}^{2}}}\,\mu _{0}={\frac {\sigma _{m}^{2}\left(\sum _{j=1}^{n}x_{j}\right)+\sigma _{v}^{2}\,\mu _{0}}{\sigma _{m}^{2}\,n+\sigma _{v}^{2}}}.} これは、事前平均と標本平均をそれぞれの共分散で重み付けした線形補間 であることが判明した。
のケースσ m → ∞ \displaystyle \sigma _{m}\to \infty } これは非情報的な事前分布と呼ばれ、不適切な確率分布 につながります。この場合μ ^ M A P → μ ^ M L E 。 {\displaystyle {\hat {\mu }}_{\mathrm {MAP} }\to {\hat {\mu }}_{\mathrm {MLE} }.}
参考文献 1 2 Bassett, Robert; Deride, Julio (2018-01-30). "最大事後確率推定器はベイズ推定器の極限である". Mathematical Programming . 174 ( 1– 2): 129– 144. arXiv : 1611.05917 . doi : 10.1007/s10107-018-1241-0 . ISSN 0025-5610 . ↑ Murphy, Kevin P. (2012). 機械学習 :確率論的視点 . マサチューセッツ州ケンブリッジ:MIT Press. pp. 151–152 . ISBN 978-0-262-01802-9 。1 2 Young, GA; Smith, RL (2005). Essentials of Statistical Inference . Cambridge Series in Statistical and Probabilistic Mathematics. Cambridge: Cambridge University Press. ISBN 978-0-521-83971-6 。デグルート、M. (1970).最適な統計的意思決定 . マグロウヒル. ISBN 0-07-016242-5 。 ソレンソン、ハロルド・W. (1980).パラメータ推定:原理と問題 . マルセル・デッカー. ISBN 0-8247-6987-2 。 Hald, Anders (2007). 「ガウスによる 正規分布の導出と最小二乗法、1809年」。『ベルヌーイからフィッシャーまでのパラメトリック統計推論の歴史、1713年~1935年』 。ニューヨーク:Springer。pp. 55–61。ISBN 978-0-387-46409-1 。