Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2...

83
Reasoning with Graphical Models Slides Set 2: Rina Dechter slides2 COMPSCI 2020 Reading: Darwiche chapters 4 Pearl: chapter 3

Transcript of Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2...

Page 1: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

Reasoning with Graphical Models

Slides Set 2: Rina Dechter

slides2 COMPSCI 2020

Reading: Darwiche chapters 4 Pearl: chapter 3

Page 2: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

Outline Basics of probability theory DAGS, Markov(G), Bayesian networks Graphoids: axioms of for inferring

conditional independence (CI) D-separation: Inferring CIs in graphs

slides2 COMPSCI 2020

Page 3: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

Outline Basics of probability theory DAGS, Markov(G), Bayesian networks Graphoids: axioms of for inferring

conditional independence (CI) Capturing CIs by graphs D-separation: Inferring CIs in graphs

slides2 COMPSCI 2020

Page 4: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

Outline Basics of probability theory DAGS, Markov(G), Bayesian networks Graphoids: axioms of for inferring

conditional independence (CI) D-separation: Inferring CIs in graphs

(Darwiche chapter 4)

slides2 COMPSCI 2020

Page 5: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

Bayesian Networks: Representation

= P(S) P(C|S) P(B|S) P(X|C,S) P(D|C,B)

lung Cancer

Smoking

X-ray

Bronchitis

DyspnoeaP(D|C,B)

P(B|S)

P(S)

P(X|C,S)

P(C|S)

P(S, C, B, X, D)

Conditional Independencies Efficient Representation

Θ) (G,BN

CPD:C B D=0 D=10 0 0.1 0.90 1 0.7 0.31 0 0.8 0.21 1 0.9 0.1

slides2 COMPSCI 2020

Page 6: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

The causal interpretation

slides2 COMPSCI 2020

Page 7: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

slides2 COMPSCI 2020

Page 8: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

slides2 COMPSCI 2020

Page 9: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

slides2 COMPSCI 2020

Page 10: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

Graphs convey set of independence statements Undirected graphs by graph separation Directed graphs by graph’s d-separation Goal: capture probabilistic conditional

independence by graph graphs.

slides2 COMPSCI 2020

Page 11: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

slides2 COMPSCI 2020

Page 12: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

slides2 COMPSCI 2020

Page 13: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

slides2 COMPSCI 2020

Page 14: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

slides2 COMPSCI 2020

Page 15: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

slides2 COMPSCI 2020

Page 16: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

slides2 COMPSCI 2020

Page 17: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

slides2 COMPSCI 2020

Page 18: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

slides2 COMPSCI 2020

Use GeNie/SmileTo create this network

Page 19: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

Outline Basics of probability theory DAGS, Markov(G), Bayesian networks Graphoids: axioms for inferring

conditional independence (CI) D-separation: Inferring CIs in graphs

slides2 COMPSCI 2020

(Darwiche, chapter 4Pearl, Chapter 3)

Page 20: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

R and C are independent given A

This independence follows from the Markov assumption

slides2 COMPSCI 2020

Page 21: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

Properties of Probabilistic independence

Symmetry: I(X,Z,Y) I(Y,Z,X)

Decomposition: I(X,Z,YW) I(X,Z,Y) and I(X,Z,W)

Weak union: I(X,Z,YW)I(X,ZW,Y)

Contraction: I(X,Z,Y) and I(X,ZY,W)I(X,Z,YW)

Intersection: I(X,ZY,W) and I(X,ZW,Y) I(X,Z,YW)

slides2 COMPSCI 2020

Page 22: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

slides2 COMPSCI 2020

Page 23: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

Pearl’s language:If two pieces of information are irrelevant to X then each one is irrelevant to X

slides2 COMPSCI 2020

Page 24: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

Example: Two coins (C1,C2,) and a bell (B)

slides2 COMPSCI 2020

Page 25: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

slides2 COMPSCI 2020

Page 26: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

slides2 COMPSCI 2020

Page 27: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

slides2 COMPSCI 2020

Page 28: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

slides2 COMPSCI 2020

Page 29: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

When there are no constraints

slides2 COMPSCI 2020

Page 30: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

slides2 COMPSCI 2020

Page 31: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

slides2 COMPSCI 2020

Page 32: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

Properties of Probabilistic independence

Symmetry: I(X,Z,Y) I(Y,Z,X)

Decomposition: I(X,Z,YW) I(X,Z,Y) and I(X,Z,W)

Weak union: I(X,Z,YW)I(X,ZW,Y)

Contraction: I(X,Z,Y) and I(X,ZY,W)I(X,Z,YW)

Intersection: I(X,ZY,W) and I(X,ZW,Y) I(X,Z,YW)

Graphoid axioms:Symmetry, decompositionWeak union and contraction

Positive graphoid:+intersection

In Pearl: the 5 axioms are called Graphids, the 4, semi-graphois

slides2 COMPSCI 2020

Page 33: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

Outline Basics of probability theory DAGS, Markov(G), Bayesian networks Graphoids: axioms of for inferring

conditional independence (CI) D-separation: Inferring CIs in graphs

I-maps, D-maps, perfect maps Markov boundary and blanket Markov networks

slides2 COMPSCI 2020

Page 34: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

What we know so far on BN? A probability distribution of a Bayesian network

having directed graph G, satisfies all the Markov assumptions of independencies.

5 graphoid, (or positive) axioms allow inferring more conditional independence relationship for the BN.

D-separation in G will allows deducing easily many of the inferred independencies.

G with d-separation yields an I-MAP of the probability distribution.

slides2 COMPSCI 2020

Page 35: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

slides2 COMPSCI 2020

Page 36: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

d-speration To test whether X and Y are d-separated by Z in dag G, we

need to consider every path between a node in X and a node in Y, and then ensure that the path is blocked by Z.

A path is blocked by Z if at least one valve (node) on the path is ‘closed’ given Z.

A divergent valve or a sequential valve is closed if it is in Z A convergent valve is closed if it is not on Z nor any of its

descendants are in Z.

slides2 COMPSCI 2020

Page 37: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

slides2 COMPSCI 2020

Page 38: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

slides2 COMPSCI 2020

Page 39: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

slides2 COMPSCI 2020

Page 40: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

No path Is active =Every path isblocked

slides2 COMPSCI 2020

Page 41: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

Bayesian Networks as i-maps

E: Employment V: Investment H: Health W: Wealth C: Charitable

contributions P: Happiness

EEE

C

E V

W

C P

H

Are C and V d-separated give E and P?Are C and H d-separated?

slides2 COMPSCI 2020

Page 42: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

d-Seperation Using Ancestral Graph

X is d-separated from Y given Z (<X,Z,Y>d) iff: Take the ancestral graph that contains X,Y,Z and their ancestral subsets. Moralized the obtained subgraph Apply regular undirected graph separation Check: (E,{},V),(E,P,H),(C,EW,P),(C,E,HP)?

EEE

C

E V

W

C P

H

slides2 COMPSCI 2020

Page 43: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

Idsep(R,EC,B)?

slides2 COMPSCI 2020

Page 44: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

slides2 COMPSCI 2020

Page 45: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

slides2 COMPSCI 2020

Page 46: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

slides2 COMPSCI 2020

Page 47: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

Idsep(C,S,B)=?

slides2 COMPSCI 2020

Page 48: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

slides2 COMPSCI 2020

Page 49: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

slides2 COMPSCI 2020

Is S1 conditionally on S2 independent of S3 and S4In the following Bayesian network?

Page 50: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

slides2 COMPSCI 2020

Page 51: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

Outline Basics of probability theory DAGS, Markov(G), Bayesian networks Graphoids: axioms of for inferring conditional

independence (CI) D-separation: Inferring CIs in graphs

Soundness, completeness of d-seperation I-maps, D-maps, perfect maps Construction a minimal I-map of a distribution Markov boundary and blanket

slides2 COMPSCI 2020

Page 52: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

slides2 COMPSCI 2020

Page 53: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

It is not a d-map

slides2 COMPSCI 2020

Page 54: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

Outline Basics of probability theory DAGS, Markov(G), Bayesian networks Graphoids: axioms of for inferring conditional

independence (CI) D-separation: Inferring CIs in graphs

Soundness, completeness of d-seperation I-maps, D-maps, perfect maps Construction a minimal I-map of a distribution Markov boundary and blanket

slides2 COMPSCI 2020

Page 55: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

slides2 COMPSCI 2020

Page 56: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

slides2 COMPSCI 2020

Page 57: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

Outline Basics of probability theory DAGS, Markov(G), Bayesian networks Graphoids: axioms of for inferring conditional

independence (CI) D-separation: Inferring CIs in graphs

Soundness, completeness of d-seperation I-maps, D-maps, perfect maps Construction a minimal I-map of a distribution Markov boundary and blanket

slides2 COMPSCI 2020

Page 58: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

slides2 COMPSCI 2020

So how can we construct an I-MAP of a probability distribution?And a minimal I-Map

Page 59: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

slides2 COMPSCI 2020

Page 60: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

slides2 COMPSCI 2020

Page 61: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

slides2 COMPSCI 2020

Page 62: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

slides2 COMPSCI 2020

Page 63: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

slides2 COMPSCI 2020

Page 64: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

Perfect Maps for DAGs Theorem 10 [Geiger and Pearl 1988]: For any dag D

there exists a P such that D is a perfect map of P relative to d-separation.

Corollary 7: d-separation identifies any implied independency that follows logically from the set of independencies characterized by its dag.

slides2 COMPSCI 2020

Page 65: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

Outline Basics of probability theory DAGS, Markov(G), Bayesian networks Graphoids: axioms of for inferring conditional

independence (CI) D-separation: Inferring CIs in graphs

Soundness, completeness of d-seperation I-maps, D-maps, perfect maps Construction a minimal I-map of a distribution Markov boundary and blanket

slides2 COMPSCI 2020

Page 66: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

slides2 COMPSCI 2020

Page 67: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

Blanket Examples

What is a Markov blanket of C?slides2 COMPSCI 2020

Page 68: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

Blanket Examples

slides2 COMPSCI 2020

Page 69: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

Markov Blanket

slides2 COMPSCI 2020

Page 70: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

Bayesian Networks as Knowledge-Bases Given any distribution, P, and an ordering we can

construct a minimal i-map.

The conditional probabilities of x given its parents is all we need.

In practice we go in the opposite direction: the parents must be identified by human expert… they can be viewed as direct causes, or direct influences.

slides2 COMPSCI 2020

Page 71: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

slides2 COMPSCI 2020

Page 72: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

Pearl corollary 4

slides2 COMPSCI 2020

Corollary 4:Given a dag G and a probability distribution P, a necessary and sufficientCondition for G to be a Bayesian network of P is If all the Markovian assumptions are satisfied

Page 73: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

slides2 COMPSCI 2020

Page 74: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

Markov Networks and Markov Random Fields (MRF)

Can we also capture conditional independence by undirected graphs?

Yes: using simple graph separation

slides2 COMPSCI 2020

Page 75: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

Undirected Graphs as I-maps of Distributions

slides2 COMPSCI 2020

Page 76: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

Graphoids vs Undirected graphs

Symmetry: I(X,Z,Y) I(Y,Z,X)

Decomposition: I(X,Z,YW) I(X,Z,Y) and I(X,Z,W)

Weak union: I(X,Z,YW)I(X,ZW,Y)

Contraction: I(X,Z,Y) and I(X,ZY,W)I(X,Z,YW)

Intersection: I(X,ZY,W) and I(X,ZW,Y) I(X,Z,YW)

Symmetry: I(X,Z,Y) I(Y,Z,X)

Decomposition: I(X,Z,YW) I(X,Z,Y) and I(X,Z,Y)

Intersection: I(X,ZW,Y) and I(X,ZY,W)I(X,Z,YW)

Strong union: I(X,Z,Y) I(X,ZW, Y)

Transitivity: I(X,Z,Y) exists t s.t. I(X,Z,t) or I(t,Z,Y)

slides2 COMPSCI 2020

See Pearl’s book

Graphoids: Conditional Independence Seperation in Graphs

Page 77: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

Markov Networks An undirected graph G which is a minimal I-map of

a probability distribution Pr, namely deleting any edge destroys its i-mappness relative to (undirected) seperation, is called a Markov network of P.

slides2 COMPSCI 2020

Page 78: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

slides2 COMPSCI 2020

Page 79: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

The unusual edge (3,4)reflects the reasoning that if we fix the arrival time (5) the travel time (4) must depends on current time (3)

slides2 COMPSCI 2020

Page 80: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

How can we construct a probabilityDistribution that will have all these independencies?

slides2 COMPSCI 2020

Page 81: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

So, How do we learnMarkov networks From data?

Markov Random Field (MRF)

Page 82: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

Markov Networks

Page 83: Slides Set 2 - Donald Bren School of Information and ...dechter/courses/ics-276/... · slides2 COMPSCI 2020. slides2 COMPSCI 2020. Pearl corollary 4 slides2 COMPSCI 2020 Corollary

Sample Applications for Graphical Models

slides2 COMPSCI 2020