指数分布族(Exponential Family)相关公式推导及在变分推断中的应用
本文作者:合肥工业大学 管理学院 钱洋 email:1563178220@qq.com 内容可能有不到之处,欢迎交流。 未经本人允许禁止转载。 本博客的CSDN地址为:https://blog.csdn.net/qy20115549/article/details/87247363
@[toc]
指数分布族的概念
指数分布族是一系列分布的统称,包含连续和离散的相关分布。例如,正太分布(Gaussian)、泊松分布(Poisson)、二项分布(Bernoulli)、指数分布(exponential)、Gamma分布、多项式分布(multivariate)等。 指数分布族中的分布以及指数分布族的性质,经常用于机器学习(machine learning)模型的参数假设以及参数推理中。较为典型的模型是生成模型,例如主题模型(Topic Models)中经常使用到的共轭分布(multivariate和Dirichlet分布、Bernoulli和Beta分布、Poisson和gamma分布等)。指数分布族中的共轭经常用于参数推理、另外其统计特性经常用于变分推理。例如,有兴趣的可以详细阅读下面几篇文章:
- Blei D M, Ng A Y, Jordan M I. Latent dirichlet allocation[J]. Journal of machine Learning research, 2003, 3(Jan): 993-1022.
- Teh Y W, Newman D, Welling M. A collapsed variational Bayesian inference algorithm for latent Dirichlet allocation[C]//Advances in neural information processing systems. 2007: 1353-1360.
- Blei D M, Kucukelbir A, McAuliffe J D. Variational inference: A review for statisticians[J]. Journal of the American Statistical Association, 2017, 112(518): 859-877. 【变分推断的综述性文章--案例代码为:https://blog.csdn.net/qy20115549/article/details/86694325】
- Su J. Variational Inference: A Unified Framework of Generative Models and Some Revelations[J]. arXiv preprint arXiv:1807.05936, 2018. 【变分自编码器VAE、生成对抗网络GAN】
- Wainwright M J, Jordan M I. Graphical models, exponential families, and variational inference[J]. Foundations and Trends® in Machine Learning, 2008, 1(1–2): 1-305. 【一本书】
指数分布族中的分布于都写成下面的形式:

- $\eta$为自然参数(natural parameter),可以是向量形式
- $T(x)$为充分统计量(sufficient statistic)
- $A(\eta)$为累计函数(cumulant function),作用是确保概率和为1
- $h(x)$为underlying measure
典型分布转化
Bernoulli分布
以下是Bernoulli分布的转化:


Poisson分布
泊松分布的标准形式为:



Gaussian分布
正太分布的形式为:



多元Gaussian分布
标准形式为:






Multinomial分布
多项式分布的形式为:







变分推断应用
在变分推理中,经常使用到的是$A(\eta)$性质,即$A(\eta)$对$(\eta$的一阶偏导数:




LDA模型
LDA的概率图表示如下:















参考内容
https://people.eecs.berkeley.edu/~jordan/courses/260-spring10/other-readings/chapter8.pdf http://www.cs.columbia.edu/~jebara/4771/tutorials/lecture12.pdf https://people.eecs.berkeley.edu/~jordan/courses/260-spring10/other-readings/chapter9.pdf http://times.cs.uiuc.edu/course/598f16/notes/lda-survey.pdf [lda推理]
