2 - 1 - Semantics & Factorization

2 - 2 - Reasoning Patterns

2 - 3 - Flow of Probabilistic Influence

2 - 4 - Conditional Independence

2 - 5 - Independencies in Bayesian Networks

2 - 6 - Naive Bayes

2 - 7 - Application Medical Diagnosis

2 - 8 - Knowledge Engineering Example-SAMIAM

感觉棒棒哒! Professor Daphne Koller


Chain Rule for Bayesian Networks

Calculate joint conditional probability

以下的过程,尤其是概率和为1这一点,对应上图中的某个node的table的一行。

Intercausal reasoning

其实就是先验后验推断的东西。

When can X influence Y?

理性的理解需要建立在一定的贝叶斯统计基础,如下:

Grade --> Difficulty,平均分高,则难度低。

Grade <-- Difficulty,难度低,则平均分高。

Difficulty --> Grade --> Letter,试题难度对Letter如何影响?

Difficulty <-- Grade <-- Letter,试题难度对Letter如何影响?

  Grade通过后验作用于Difficulty;

  Grade通过先验作用于Letter;

  如果Grade确定,先验后验分布各自确定,俩分布当然独立。

  如果Grade未确定,Difficulty的先验(Grade)会受到其先验(Letter)的影响。

Grade <-- Intelligence --> SAT,显而易见的影响关系。

  作为两个分布的先验,

  如果已知,俩分布当然各自独立;

  如果未知,其中一个node的数据反推到的后验参数,自然会影响另一个分布。

Difficulty --> Grade <-- Intelligence,共同条件分布,V-structure。  

      如果已知,数据是由两个参数作用的,当然相互见有影响,例如:

        • 参数1小一点,参数2大一点,可能也会是相同的data。

      如果未知,两个参数的分布自然没什么关系。

实践:S - I - G - D, S 是否会影响 D?

如果I 已知,block,不能。

如果I 未知,G未知,block,不能。

如果I 未知,G已知,可以。

注:这是快捷的判断方式,针对局部简单的情况。

Conditional Independence

Notice: 思考是否受到了共同先验的影响。

举个例子:两个coin,1)正常的 2)不正常的0.9 vs 0.1

若已知上述信息,那么X1 X2 表示的“上” “下” 面就可直接确定。

若未知上述信息,那么X1 X2 表示的“上” “下” 面,比如:猜测下一次正面的概率,就会受到已知“数据”的影响。

具体地讲:已知两次投掷都是正面,是否更偏向于coin is biased?这边不独立了呢。

D-separation

X与Y是D分离的 given Z。

表示:d-sep(X,Y|Z)

本质就是先验后验相互影响。

好文一读:d-separation: How to determine which variables are independent in a Bayes net

注:这是系统的方法,针对复杂情况。

  1. “Ancestral graph": this is a reduced version of the original net, 即只考虑长辈。
  2. "Moralize":  伴侣两两连线。
  3. “Disorient": 转为无向图。
  4. “Delete the given and their edges":去除条件部分。

解读结果:

  • 不连接,则独立。
  • 若连接,不独立。
  • If one or both of the variables are missing (because they were givens, and weretherefore deleted), they are independent.

两个经典例子,共赏

附加题

P(D|CEG) =? P(D|C)

Are D and E conditionally independent, given C? AND
Are D and G conditionally independent, given C?

可见,将EGD的影响,转化为了两个独立问题。俩问题都满足,才是相等。

I-maps

独立图,什么东东? (后续章节有专题)

P满足与图G相关的局部独立性,那么图G是P的一个I-map,P可能有多个I-map。

If P factorizes over G, then G is an I-map for P.

G1 is an I-map for P1.

G2 is an I-map for P1 and P2

  • I-map的因子分解

Theorem: If G is an I-map for P, then P factorizes over G.

  • 最小I-map

/*...*/

CPCS Network

了解大规模BN的一些问题和重难点。

Ref: https://dslpitt.org/uai/papers/94/p484-pradhan.pdf

Ref: http://www.cs.cmu.edu/afs/cs/project/jair/pub/volume13/cheng00a-html/node15.html

The main network used in our tests is a subset of the CPCS (Computer-based Patient Case Study) model [Pradhan et al.1994], a large multiply-connected multi-layer network consisting of 422 multi-valued nodes and covering a subset of the domain of internal medicine.

Among the 422 nodes,

14 nodes describe diseases,  显眼的特征

33 nodes describe history and risk factors, and 相关指标特征

the remaining 375 nodes describe various findings related to the diseases. 不显眼的特征

To avoid complete table representation, 毕竟没人喜欢处理全连接网

Knowledge Engineering Example

Samiam Download: http://reasoning.cs.ucla.edu/samiam/index.php?s=

[PGM] Bayes Network and Conditional Independence的更多相关文章

  1. 条件独立(conditional independence) 结合贝叶斯网络(Bayesian network) 概率有向图 (PRML8.2总结)

    本文会利用到上篇,博客的分解定理,需要的可以查找上篇博客 D-separation对任何用有向图表示的概率模型都成立,无论随机变量是离散还是连续,还是两者的结合. 部分图为手写,由于本人字很丑,望见谅 ...

  2. 条件独立(conditional independence) 结合贝叶斯网络(Bayesian network) 概率有向图 (PRML8.2总结)

    转:http://www.cnblogs.com/Dzhouqi/p/3204481.html本文会利用到上篇,博客的分解定理,需要的可以查找上篇博客 D-separation对任何用有向图表示的概率 ...

  3. [Machine Learning] Probabilistic Graphical Models:二、Bayes Network Fundamentals(1、Semantics & Factorization)

    一.How to construct the dependency? 1.首字母即随机变量名称 2.I->G是更加复杂的模型,但Bayes里不考虑,因为Bayes只是无环图. 3.CPD = c ...

  4. [Bayesian] “我是bayesian我怕谁”系列 - Exact Inferences

    要整理这部分内容,一开始我是拒绝的.欣赏贝叶斯的人本就不多,这部分过后恐怕就要成为“从入门到放弃”系列. 但,这部分是基础,不管是Professor Daphne Koller,还是统计学习经典,都有 ...

  5. 本人AI知识体系导航 - AI menu

    Relevant Readable Links Name Interesting topic Comment Edwin Chen 非参贝叶斯   徐亦达老板 Dirichlet Process 学习 ...

  6. [Bayesian] “我是bayesian我怕谁”系列 - Exact Inference

    要整理这部分内容,一开始我是拒绝的.欣赏贝叶斯的人本就不多,这部分过后恐怕就要成为“从入门到放弃”系列. 但,这部分是基础,不管是Professor Daphne Koller,还是统计学习经典,都有 ...

  7. PGM:概率图模型Graphical Model

    http://blog.csdn.net/pipisorry/article/details/51461878 概率图模型Graphical Models简介 完全通过代数计算来对更加复杂的模型进行建 ...

  8. an introduction to conditional random fields

    1.Structured prediction methods are essentially a combination of classification and graphical modeli ...

  9. 概率图论PGM的D-Separation(D分离)

    目录[-] 本文大部分来自:http://www.zhujun.me/d-separation-separation-d.html 一.引言 二.三种情况分析 三.总结 四.应用例子 五.参考资料 其 ...

随机推荐

  1. Linux的诞生史

    Linux的诞生史 目录 Multics计划--开始 自由的产物-BSD GUN计划的产生 导火索MINIX Linux的诞生 Linux的标志物 Linux的现状 Multics计划--开始. 这是 ...

  2. find命令基础讲解

    目录 前言 find命令 查找条件 指定搜索层级 根据文件名和inode查找 根据属名属主查找 根据文件类型查找 组合条件 根据文件大小查找 根据时间戳查找 根据权限查找 动作处理 参数替换xargs ...

  3. Windows下chm转换为html的超简单方法

    摘要:通过调用Windows命令,将chm 文件转换为html 文件 概述:很多程序员朋友都会遇到这样的问题,看一个离线版的帮助文档(chm文件),总会产生一个索引文件(该文件的chw文件), 而且有 ...

  4. MySQL 经典面试题

    MySQL 面试 1 存储过程 什么是存储过程 存储过程是一些编译好的SQL语句 因为系统在调用SQL的时候比较浪费时间,所以之前先将一些基本的额SQL语句代码进行编译(对单表或多表的增删改查),然后 ...

  5. GCD之全局、主线程

    1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 -(NSString *)fetchData {     [NSThread sleepFo ...

  6. Undefined symbols for architecture arm64: "_OBJC_CLASS_$_WKWebView", referenced from: objc-c

    出现: Undefined symbols for architecture arm64: "_OBJC_CLASS_$_WKWebView", referenced from: ...

  7. 【BZOJ】2190 [SDOI2008]仪仗队(欧拉函数)

    Description 作为体育委员,C君负责这次运动会仪仗队的训练.仪仗队是由学生组成的N * N的方阵,为了保证队伍在行进中整齐划一,C君会跟在仪仗队的左后方,根据其视线所及的学生人数来判断队伍是 ...

  8. Quartz入门案例与介绍(与spring整合)

    Quartz概述 Quartz是OpenSymphony开源组织在Job scheduling领域又一个开源项目,它可以与J2EE与J2SE应用程序相结合也可以单独使用.Quartz可以用来创建简单或 ...

  9. cors解决ajax请求跨域问题

    Access-Control-Allow-Origin: * 适用tomcat部署的项目 在web.xml里添加以下内容 <filter> <filter-name>CorsF ...

  10. C-Flex 与 box布局教程

    http://www.ruanyifeng.com/blog/2015/07/flex-grammar.html -阮一峰老师 http://www.w3cplus.com/css3/flexbox- ...