从贝叶斯公式到 MAP(Maximum A Posterior,最大后验)

In Bayesian statistics, we want to estimate the posterior distribution, but this is often intractable due to the high-dimensional integral in the denominator (marginal likelihood, p(X) ). A few other ideas we have encountered that are also relevant here are Monte Carlo integration with independent samples and the use of proposal distributions (e.g. rejection and importance sampling). As we have seen from the Monte Carlo inttegration lectures, we can approximate the posterior p(θ|X) if we can somehow draw many samples that come from the posterior distribution.

1. 基本形式

P(θ|D)=P(θ)P(D|θ)P(D)

  • P(θ|D) :后验概率,posterior

  • P(θ) :先验概率,prior

  • P(θ|D) :似然概率,likelihood

  • P(D)=P(θ)P(D|θ)dθ ,边缘似然,marginal likelihood

    • i=12P(D|θi)P(θi) ,也叫证据因子(evidence)

2. 对数形式:

logP(θ|D)[logP(θ)+logP(D|θ)]

  • logP(θ|D) log posterior

  • logP(θ) log prior

  • logP(D|θ) log likelihood

3. MAP

由以上二式我们自然可推导出如下的所谓最大后验概率(Maximum a Posterior,MAP)估计式:

θMAP====argmaxθP(θ|D)argmaxθlogP(θ|D)argmaxθ[log(P(θ)+P(D|θ))]argminθ[logP(θ)logP(D|θ)]

对应于稀疏表示理论的物理意义,即可将上式转换为:

xMAP=argminx[yAx22+λxp]

numerical integration

p(X)=d(θ)p(θ)p(X|θ)

One simple way of numerical integration is to estimate the values on a grid of values for θ . To calculate the posterior, we find the prior and the likelhood for each value of θ , and for the marginal likelhood, we replace the integral with the equivalent sum

p(X)=p(X|θ)p(θ)

4. 最大似然(ML)与最大后验(MAP)

P(θ|X)P(θ)P(X|θ)posteriorpriorlikelihood

最大似然即是: argmaxP(X|θ)=argmaxlogP(X|θ)

最大后验即是: argmaxP(θ|X)=argmaxP(θ)P(X|θ) (将先验与似然相作用)

5. nuisance parameters 的处理

对待一些无关参数(nuisance parameters,如 P(B,p|D) 中的 p ),贝叶斯的思路是将之边际化(marginalization)或者对无关参数在其整个定义域上对联合分布进行积分。

P(B|D)=P(B,p|D)dp[P(B|D)=P(B|p,D)dp]

p(W)=p(W|p⃗ )p(p⃗ )dp⃗ 

注意两个公式的区别,前者是边际化,也即求边缘概率
而后者其实是全概率公式

再来推导如下的等式:

P(B,p|D)=P(B|p,D)P(p|D)

其实用的是条件概率的关系,还记得贝叶斯公式是如何通过条件概率计算而来的吗:
P(A|B)=P(A,B)P(B)P(B|A)=P(A,B)P(A)P(A|B)=P(A)P(B|A)P(B)

P(A,B) 表示的是联合概率分布;
则:
P(B,p|D)=P(B,p,D)P(D)=P(B|p,D)P(p,D)P(D)=P(B|p,D)P(p|D)

最后有:
P(B|D)=P(B,p|D)dp=P(B|p,D)P(p|D)dp

最后再来看如下的一个等式:
P(W|α⃗ )=P(W|p⃗ )P(p⃗ |α⃗ )dp⃗ 

  • 3
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

五道口纳什

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值