Conjugate prior relationships

The following diagram summarizes conjugate prior relationships for a number of common sampling distributions.

Arrows point from a sampling distribution to its conjugate prior distribution. The symbol near the arrow indicates which parameter the prior is unknown.

These relationships depends critically on choice of parameterization, some of which are uncommon. This page uses the parameterizations
that make the relationships simplest to state, not necessarily the most common parameterizations. See footnotes below.

Click on a distribution to see its parameterization. Click
on an arrow to see posterior parameters.

See this page for more
diagrams
 on this site including diagrams for probability and statistics, analysis, topology, and category theory. Also, please contact me if you’re interested in Bayesian
statistical consulting
.

Parameterizations

Let C(n, k)
denote the binomial
coefficient
(n, k).

The geometric distribution has only one parameter, p,
and has PMF f(x)
= p (1-p)x.

The binomial distribution with parameters n and p has
PMF f(x)
= C(n, x) px(1-p)n-x.

The negative binomial distribution with parameters r and p has
PMF f(x)
= C(r + x –
1, x)pr(1-p)x.

The Bernoulli distribution has probability of success p.

The beta distribution has PDF f(p)
= Γ(α + β) pα-1(1-p)β-1 /
(Γ(α) Γ(β)).

The exponential distribution parameterized in terms of the rate λ has PDF f(x)
= λ exp(-λ x).

The gamma distribution parameterized in terms of the rate has PDF f(x)
= βα xα-1exp(-β x)
/ Γ(α).

The Poisson distribution has one parameter λ and PMF f(x)
= exp(-λ) λx/ x!.

The normal distribution parameterized in terms of precision τ (τ = 1/σ2)

has PDF f(x)
= (τ/2π)1/2 exp( -τ(x –
μ)2/2 ).

The lognormal distribution parameterized in terms of precision τ has PDF f(x)
= (τ/2π)1/2exp( -τ(log(x)
– μ)2/2 ) / x.

Posterior parameters

For each sampling distribution, assume we have data x1, x2,
…, xn.

If the sampling distribution for x is binomial(m, p)
with m known, and the prior distribution is beta(α,
β), the posterior distribution for p is beta(α
+ Σxi,
β + mn – Σxi).
The Bernoulli is the special case of the binomial with m =
1.

If the sampling distribution for x is negative
binomial(r, p) with r known,
and the prior distribution is beta(α, β), the posterior distribution for p is beta(α
+ nr, β + Σxi).
Thegeometric is the special case of the negative binomial with r =
1.

If the sampling distribution for x is gamma(α,
β) with α known, and the prior distribution on β is gamma(α0,
β0), the posterior distribution
for β is gamma(α0 + n,
β0 + Σxi).
Theexponential is a special case of the gamma with α = 1.

If the sampling distribution for x is Poisson(λ),
and the prior distribution on λ is gamma(α0,
β0), the posterior on λ is gamma(α0 +
Σxi, β0 + n).

If the sampling distribution for x is normal(μ, τ) with τ known, and the prior distribution on μ is normal(μ0,
τ0), the posterior distribution
on μ is normal((μ0 τ0 +
τ Σxi)/(τ0 + nτ),
τ0 + nτ).

If the sampling distribution for x is normal(μ, τ) with μ known, and the prior distribution on τ is gamma(α,
β), the posterior distribution on τ is gamma(α + n/2,
(n-1)S2)
where S2 is
the sample variance.

If the sampling distribution for x is lognormal(μ, τ) with τ known, and the prior distribution on μ is normal(μ0,
τ0), the posterior distribution
on μ is normal((μ0 τ0 +
τ Πxi)/(τ0 + nτ),
τ0 +nτ).

If the sampling distribution for x is lognormal(μ,
τ) with μ known, and the prior distribution on τ is gamma(α, β), the posterior distribution on τ is gamma(α
+ n/2, (n-1)S2)
where S2 is
the sample variance.

References

A
compendium of conjugate priors
 by Daniel Fink.

See also Wikipedia’s article on conjugate
priors
.

Conjugate prior relationships的更多相关文章

  1. 共轭先验(conjugate prior)

    共轭是贝叶斯理论中的一个概念,一般共轭要说是一个先验分布与似然函数共轭: 那么就从贝叶斯理论中的先验概率,后验概率以及似然函数说起: 在概率论中有一个条件概率公式,有两个变量第一个是A,第二个是B , ...

  2. The Joys of Conjugate Priors

    The Joys of Conjugate Priors (Warning: this post is a bit technical.) Suppose you are a Bayesian rea ...

  3. 转:Conjugate prior-共轭先验的解释

    Conjugate prior-共轭先验的解释    原文:http://blog.csdn.net/polly_yang/article/details/8250161 一 问题来源: 看PRML第 ...

  4. Gibbs sampling

    In statistics and in statistical physics, Gibbs sampling or a Gibbs sampler is aMarkov chain Monte C ...

  5. Wishart distribution

    Introduction In statistics, the Wishart distribution is generalization to multiple dimensions of the ...

  6. [综] Latent Dirichlet Allocation(LDA)主题模型算法

    多项分布 http://szjc.math168.com/book/ebookdetail.aspx?cateid=1&&sectionid=983 二项分布和多项分布 http:// ...

  7. PRML读书笔记——2 Probability Distributions

    2.1. Binary Variables 1. Bernoulli distribution, p(x = 1|µ) = µ 2.Binomial distribution + 3.beta dis ...

  8. 关于Beta分布、二项分布与Dirichlet分布、多项分布的关系

    在机器学习领域中,概率模型是一个常用的利器.用它来对问题进行建模,有几点好处:1)当给定参数分布的假设空间后,可以通过很严格的数学推导,得到模型的似然分布,这样模型可以有很好的概率解释:2)可以利用现 ...

  9. [zz] 混合高斯模型 Gaussian Mixture Model

    聚类(1)——混合高斯模型 Gaussian Mixture Model http://blog.csdn.net/jwh_bupt/article/details/7663885 聚类系列: 聚类( ...

随机推荐

  1. C语言 百炼成钢2

    //题目4:输入某年某月某日,判断这一天是这一年的第几天? #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<st ...

  2. The ServiceClass object does not implement the required method in the following form: OMElement sayHello(OMElement e)

    今天遇到一件诡异的事情,打好的同一个aar包,丢到测试环境tomcat,使用soapui测试,正常反馈结果. 丢到本地tomcat,使用soapui测试,始终报以下错误. <soapenv:En ...

  3. windows 7 和 Ubuntu的双系统安全删除Ubuntu

    1,准备文件 百度云盘链接:http://pan.baidu.com/s/1kVxuwSn 密码:e8ma 2,操作流程 #1,进入win7,将第一步下载的文件放在C:\windows\system3 ...

  4. CSS 实现加载动画之七-彩环旋转

    今天整理的这个动画估计大家都不会陌生,彩环旋转,看过之后是不是觉得很熟悉,对,这个就是优酷视频APP里面的加载动画.本人空余时间喜欢看些视频,留意到这个动画后就想用代码实现出来,今天整理了下,跟大家分 ...

  5. python数字图像处理(1):环境安装与配置

    一提到数字图像处理编程,可能大多数人就会想到matlab,但matlab也有自身的缺点: 1.不开源,价格贵 2.软件容量大.一般3G以上,高版本甚至达5G以上. 3.只能做研究,不易转化成软件. 因 ...

  6. AS2.0大步更新 Google强势逆天

    New Features in Android Studio 2.0Instant Run: Faster Build & Deploy逆天吗?你还在羡慕iOS的playground吗?And ...

  7. asp.net Core开启全新的时代,用视频来告诉你,学习就是这么SO easy。

    https://channel9.msdn.com/Blogs/NET-Core/What-is-NET-Core 系统大家多发布一些视频的资料,学习起来更方便!我看到很多人发布的博客里面有的时候对于 ...

  8. 关于#define预处理指令的一个问题

    背景:由于经常需要在远程服务端和测试服务端进行切换,所以将接口的地址定义为了一个预处理变量,例如 //#define APIDOMAIN @"http://10.0.0.2" #d ...

  9. 6、面向对象以及winform的简单运用(抽象基类与接口)

    抽象类与抽象方法 1.书写规范: 在类前面加上abstract关键字,就成为了抽象类:在一个方法前面加上abstract关键字,就成为了抽象方法(抽象方法不能有实现方法,直接在后面加分号) 例: ab ...

  10. 【Moqui业务逻辑翻译系列】Shipment Receiver Receives Shipment with Packing Slip but no PO

    Shipment Receiver receives shipment. It has invoice tucked into it. Receiver records vendor name, ve ...