Gaussian Models
Warming Up
Before we talk about multivariate Gaussian, let's first review univariate Gaussian, which is usually called "Normal Distribution":
\[
X \sim N(\mu,\ \sigma^2) = \frac{1}{\sqrt{2\pi}\sigma} e^{ -\frac{(x-\mu)^2}{2\sigma^2}}
\]
where \(\mu=\mathbb{E}(X)\), \(\sigma = \mathrm{var}(X)\).
Now, if we have bivariate form of \(X = [x_1\ x_2]\), and also assume \(x_1\) and \(x_2\) are statistically independent, then we can get the joint distribution:
\[
\begin{align*}\notag
\mathrm{P}(x_1,x_2) &= \mathrm{P}(x_1)\mathrm{P}(x_2) \\
&=\frac{1}{\sqrt{2\pi}\sigma} e^{ -\frac{(x_1-\mu_1)^2}{2\sigma^2}} \frac{1}{\sqrt{2\pi}\sigma} e^{ -\frac{(x_2-\mu_2)^2}{2\sigma^2}} \\
&= \frac{1}{\left( \sqrt{2\pi} \sigma \right)^2} \exp \left\{ -\frac{(x_1-\mu_1)^2}{2\sigma^2} - \frac{(x_2-\mu_2)^2}{2\sigma^2} \right\} \\
&=\frac{1}{\left( \sqrt{2\pi} \sigma \right)^2} \exp \left\{ -\frac{1}{2} \left[ (x_1-\mu_1) \sigma^{-2} (x_1-\mu_1) + (x_2-\mu_2) \sigma^{-2} (x_2-\mu_2) \right] \right\}
\end{align*}
\]
Rewrite formula into matrix form:
\[
\frac{1}{\left( \sqrt{2\pi} \sigma \right)^2} \exp \left\{ -\frac{1}{2} \begin{bmatrix} (x_1-\mu_1)^\mathtt{T} \sigma^{-2} & (x_2-\mu_2)^\mathtt{T} \sigma^{-2} \end{bmatrix}
\begin{bmatrix}
(x_1-\mu_1) \\ (x_2-\mu_2)
\end{bmatrix} \right\} \\
= \frac{1}{\left( \sqrt{2\pi} \sigma \right)^2} \exp \left\{ -\frac{1}{2}
\begin{bmatrix} (x_1-\mu_1)^\mathtt{T} & (x_2-\mu_2)^\mathtt{T} \end{bmatrix}
\begin{bmatrix} \sigma^{-2} & 0 \\ 0 & \sigma^{-2} \end{bmatrix}
\begin{bmatrix} (x_1-\mu_1) \\ (x_2-\mu_2) \end{bmatrix}
\right\}
\]
Let \(\begin{bmatrix}\sigma^{-2} & 0 \\ 0 & \sigma^{-2}\end{bmatrix} = \Sigma^{-1},\mathbf{x}=\begin{bmatrix} x_1 \\ x_2 \end{bmatrix}, \mathbf{\mu}= \begin{bmatrix} \mu_1 \\ \mu_2 \end{bmatrix}\), then we also get \(\Sigma = \begin{bmatrix} \sigma^2 & 0 \\ 0 & \sigma^2 \end{bmatrix}\) and \(\det(\Sigma)=\sigma^4\). Plug \(\Sigma,\mathbf{x},\mathbf{\mu}\) in equation above and we obtain:
\[
\frac{1}{\left( \sqrt{2\pi} \right)^2 \det (\Sigma)^{1/2} } \exp \left\{ -\frac{1}{2}
(\mathbf{x-\mu})^\mathtt{T} \Sigma^{-1} (\mathbf{x-\mu}) \right\}
\]
This is exactly the probability density distribution (PDF) of bivariate Gaussian distribution.
Multivariate Gaussian Distribution
In general, the PDF of multivariate Gaussian distribution (a.k.a. multivariate normal distribution, MVN) is as below:
\[
\frac{1}{\left( \sqrt{2\pi} \right)^d \det (\Sigma)^{1/2} } \exp \left\{ \frac{1}{2}
(\mathbf{x-\mu})^\mathtt{T} \Sigma^{-1} (\mathbf{x-\mu}) \right\}
\]
Written with StackEdit.
Gaussian Models的更多相关文章
- deep learning 的综述
从13年11月初开始接触DL,奈何boss忙or 各种问题,对DL理解没有CSDN大神 比如 zouxy09等 深刻,主要是自己觉得没啥进展,感觉荒废时日(丢脸啊,这么久....)开始开文,即为记录自 ...
- A Statistical View of Deep Learning (II): Auto-encoders and Free Energy
A Statistical View of Deep Learning (II): Auto-encoders and Free Energy With the success of discrimi ...
- Growing Pains for Deep Learning
Growing Pains for Deep Learning Advances in theory and computer hardware have allowed neural network ...
- 混合高斯模型(GMM)推导及实现
作者:桂. 时间:2017-03-20 06:20:54 链接:http://www.cnblogs.com/xingshansi/p/6584555.html 声明:欢迎被转载,不过记得注明出处哦 ...
- 混合拉普拉斯分布(LMM)推导及实现
作者:桂. 时间:2017-03-21 07:25:17 链接:http://www.cnblogs.com/xingshansi/p/6592599.html 声明:欢迎被转载,不过记得注明出处哦 ...
- 基于EM的多直线拟合
作者:桂. 时间:2017-03-22 06:13:50 链接:http://www.cnblogs.com/xingshansi/p/6597796.html 声明:欢迎被转载,不过记得注明出处哦 ...
- Reading lists for new LISA students(转)
Research in General How to write a great research paper Basics of machine learning http://www.iro.um ...
- 基于EM的多直线拟合实现及思考
作者:桂. 时间:2017-03-22 06:13:50 链接:http://www.cnblogs.com/xingshansi/p/6597796.html 声明:欢迎被转载,不过记得注明出处哦 ...
- ICLR 2014 International Conference on Learning Representations深度学习论文papers
ICLR 2014 International Conference on Learning Representations Apr 14 - 16, 2014, Banff, Canada Work ...
随机推荐
- 微信小程序 置顶/取消置顶
wxml <view wx:for="{{confirmlist}}" wx:for-item="confirm" wx:for-index=" ...
- macaca常见错误排查
1.Error: cannot resolve path (or pattern) 'macaca-test' 这是因为执行run命令的时候未进入用例目录 C:\Users\Tony\node_mod ...
- Codeforces 1118 F2. Tree Cutting (Hard Version) 优先队列+树形dp
题目要求将树分为k个部分,并且每种颜色恰好在同一个部分内,问有多少种方案. 第一步显然我们需要知道哪些点一定是要在一个部分内的,也就是说要求每一个最小的将所有颜色i的点连通的子树. 这一步我们可以将所 ...
- 20155314 2016-2017-2 《Java程序设计》第9周学习总结
20155314 2016-2017-2 <Java程序设计>第9周学习总结 教材学习内容总结 了解JDBC架构 掌握JDBC架构 掌握反射与ClassLoader 了解自定义泛型和自定义 ...
- virtualbox+vagrant学习-2(command cli)-8-vagrant Package命令
Package 格式: vagrant package [options] [name|id] 这将当前正在运行的VirtualBox或Hyper-V环境打包到一个可重用的box中.如果provide ...
- 469 B. Intercepted Message
http://codeforces.com/problemset/problem/950/B Hacker Zhorik wants to decipher two secret messages h ...
- Java类是如何默认继承Object的?
原:https://juejin.im/post/5ca1e8ade51d454e6a300048 前言 学过Java的人都知道,Object是所有类的父类.但是你有没有这样的疑问,我并没有写exte ...
- OO学习体会与阶段总结(多线程程序)
前言 在最近一个月的面向对象编程学习中,我们进入了编写多线程程序的阶段.线程的创建.调度和信息传递,共享对象的处理,线程安全类的编写,各种有关于线程的操作在一定程度上增加了近三次作业的复杂度与难度,带 ...
- flex 自适应
flex-grow.flex-shrink.flex-basis这三个属性的作用是:在flex布局中,父元素在不同宽度下,子元素是如何分配父元素的空间的. 其中,这三个属性都是在子元素上设置的. 注: ...
- JavaScript总结(八)
表单验证 表单验证是JavaScript最常用.最有用的功能之一.在表单内容提交之前进行验证,可以降低服务器处理器的压力,缩短用户等待的时间.表单校验中第一个要考虑的问题是:什么时候捕获表单的录入错误 ...