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 ...
随机推荐
- 【bzoj 4675】 点对游戏
题目 发现一个人如果最终拿走了\(k\)个点,那么这个人的答案就是 \[\frac{\binom{n-2}{k-2}\sum_{i=1}^{n}\sum_{j=1}^{n}[dis(i,j)\in M ...
- Spring整合MyBatis(一)MyBatis独立使用
摘要: 本文结合<Spring源码深度解析>来分析Spring 5.0.6版本的源代码.若有描述错误之处,欢迎指正. MyBatis本是Apache的一个开源项目iBatis,2010年这 ...
- JDK(十)JDK1.7&1.8源码对比分析【集合】ConcurrentHashMap
前言 在JDK1.7&1.8源码对比分析[集合]HashMap中我们对比分析了JDK1.7和1.8版本的HashMap源码,趁热打铁,这篇文章就来看看JDK1.7和1.8版本的Concurre ...
- 用kubeadm 搭建 高可用集群问题记录和复盘整个过程 - 通过journalctl -u kubelet.service命令来查看kubelet服务的日志
1.根据 https://github.com/cookeem/kubeadm-ha/blob/master/README_CN.md 去搭建ha集群,遇到几个问题: runtime networ ...
- 【vue知识点】2)vue登录认证
要点: 客户端登录要唯一 ——> token除了客户端要验证外,服务器端也要校验 (处理:token应该包含用户的基本信息,这样服务端解密token的时候就知道是哪个账户) (如果只是使用to ...
- Spring Cloud和Dubbo整合开发笔记(1)
一.需求背景: 公司内部老项目微服务技术栈使用Dubbo, 新项目技术栈使用主流的Spring Cloud相关组件开发,新旧项目涉及交互调用,无法直接通信数据传递. 老项目基于Dubbo,重构代码升级 ...
- linux 学习第十八天学习(DNS分离解析、DHCP配置、邮件服务配置)
DNS分离解析技术 yum install bind-chroot systemctl restart named systemctl enable named vim /etc/named.conf ...
- 《Arduino 机器人制作指南》唐乐 分享 pdf下载
链接:https://pan.baidu.com/s/1cF7gaQoJXwfY0asnsimFrQ提取码:stq1
- LaTeX宏包TikZ绘图示例——Go语言起源图
本例所绘图形选自<Go语言程序设计>(作者:Alan A. A. Donovan与Brian W. Kernighan)一书的前言部分. 完整代码 \documentclass{art ...
- 20155238 2016-2017-2 《Java程序设计》第二周学习总结
教材学习内容总结 java基本类型:整数,字节,浮点数,字符 //"单行批注" */"单行批注" 变量 "驼峰式命命法" int age0f ...