当前位置:网站首页>Chapter 12 Bayesian Networks
Chapter 12 Bayesian Networks
2022-08-05 08:09:00 【Sang Zhiwei 0208】
1 概率公式
条件概率:
全概率公式:
贝叶斯公式(Bayes):
2 贝叶斯公式
2.1 Thinking brought by Bayesian formula
given some samples
,Calculate a conclusion in these samples
出现的概率,即
贝叶斯公式
sample given,则对于任何
是常数,Normalization factor only.
:忽略
:If these conclusions
The prior probability is equal(或近似),can be deduced from this.
2.2 贝叶斯公式的应用
金条问题:

Let these three boxes be B=1,B=2,B=3, Two precious metals are M=G(金条),M=S(silver bullion)
所以已知:



问题就转化为求
解答:
2.3 贝叶斯网络
- The random variables involved in a research system,根据是否条件独立绘制在一个有向图中,就形成了贝叶斯网络.
- 贝叶斯网络(Bayesian Network),Also known as directed acyclic graph model,It is one of the probabilistic graphical models,根据概率图的拓扑结构,考察一组随机变量
及其
组条件概率分布. - Probabilistic graphical models are divided into Markov network models(无向图)and Bayesian network models(有向图).
- 一般而言,贝叶斯网络的有向无环图中的节点表示随机变量,它们可以是可观察到的变量,或隐变量、未知参数等.连接两个节点的箭头代表此两个随机变量是具有因果关系(或非条件独立).若两个节点间以一个单箭头连接在一起,表示其中一个节点是“因(parents)”,另一个是‘果(children)”,两节点就会产生一个条件概率值.
- A simple Bayesian network
2.4 Full Bayesian network
There are edge connections between each pair of nodes


举例说明:当K=5时

2.5 "正常"的贝叶斯网络
- Some edges are missing
- 如下图所示:直观上
独立,
在
independent under the given conditions -
的联合分布为:

举例说明:
例一:

由于呼吸困难(D)The cause is lung cancer(C)and bronchitis(B),Hence the above table(CPD).
例二:

The joint distribution of all random variables is :
实际上,Joint distribution if required,Only a topology diagram needs to be given,And the probability distribution table between each random variable is enough.
2.6 “特殊”的贝叶斯网络

Conditional independence is determined by a Bayesian network:
(1)情况一:tail-to-tail
由图可看出:
所以:
又因为:
所以:
即在c给定条件下,a和b被阻断,是独立的.

(2)情况二:head-to-tail
由于
所以有:
![P(a,b|c)=P(a,b,c)/P(c)=[P(a)\cdot P(c|a)\cdot P(b|c)] /P(c)=[P(a,c)\cdot P(b|c)]/P(c)=P(a|c)\cdot P(b|c)](http://img.inotgo.com/imagesLocal/202208/05/202208050759403604_11.gif%3D%5BP%28a%29%5Ccdot%20P%28c%7Ca%29%5Ccdot%20P%28b%7Cc%29%5D%20/P%28c%29%3D%5BP%28a%2Cc%29%5Ccdot%20P%28b%7Cc%29%5D/P%28c%29%3DP%28a%7Cc%29%5Ccdot%20P%28b%7Cc%29)
即在c给定条件下,a和b被阻断,是独立的.

(3)情况三:head-to-head
由于
所以有:
从而:
即在c未知的条件下,a和b被阻断,是独立的.

边栏推荐
- VXE-Table融合多语言
- 学习机赛道加速:请“卷”产品,不要“卷”营销
- nn.unfold和nn.fold
- MySQL 数据库 报错 The server quit without updating PID file (/var/lib/mysql/localhost.localdomain.pid)
- Codeforce 8.1-8.7做题记录
- 写出了一个CPU占用极高的代码后引发的思考
- Redis implements distributed lock-principle-detailed explanation of the problem
- 撕裂寂寞
- 导出SQLServer数据到Excel中
- Insights in programming
猜你喜欢
随机推荐
Iptables implementation under the network limited (NTP) synchronization time custom port
Redis实现分布式锁-原理-问题详解
【深度学习实践(一)】安装TensorFlow
Mysql 死锁和死锁的解决方案
剑指Offer面试题解总结1-10
漂亮MM和普通MM的区别
网络安全研究发现,P2E项目遭遇黑客攻击只是时间问题
七夕?编程?
P1160 队列安排
微信 小程序 之PC端 不支持 wx.previewMedia 方法 故用自定义轮播图进行 模拟照片视频的播放
How Entrepreneurs Attract Venture Capitalists
存储过程编写经验和优化措施
爱情是一部忧伤的乐曲
高效使用数码相机的诀窍
Random code generation
控制器-----controller
Long-term recruitment embedded development-Shenzhen Baoan
moment的使用
unity urp 渲染管线顶点偏移的实现
MySQL 数据库 报错 The server quit without updating PID file (/var/lib/mysql/localhost.localdomain.pid)
及其
组条件概率分布.
独立,
在
independent under the given conditions
的联合分布为:









