23
Relationship between the directed & undirected models Probabilistic Graphical Models Probabilistic Graphical Models Siamak Ravanbakhsh Fall 2019

Relationship between the directed & undirected models ...siamak/COMP767/slides/converting_direct… · Markov network Bayes-net ⇒ Markov network ... From Bayesian to Markov networks

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Relationship between the directed & undirected models ...siamak/COMP767/slides/converting_direct… · Markov network Bayes-net ⇒ Markov network ... From Bayesian to Markov networks

Relationship between the directed & undirected models

Probabilistic Graphical ModelsProbabilistic Graphical Models

Siamak Ravanbakhsh Fall 2019

Page 2: Relationship between the directed & undirected models ...siamak/COMP767/slides/converting_direct… · Markov network Bayes-net ⇒ Markov network ... From Bayesian to Markov networks

Learning ObjectiveLearning Objective

Markov network             Bayes-net 

⇒Markov network             Bayes-net 

understand the relationship between CIsin directed and undirected models.

convert

Page 3: Relationship between the directed & undirected models ...siamak/COMP767/slides/converting_direct… · Markov network Bayes-net ⇒ Markov network ... From Bayesian to Markov networks

1. From 1. From BayesianBayesian to to MarkovMarkov networks networks

build an I-map for the following

G 1 G 2G 3

Page 4: Relationship between the directed & undirected models ...siamak/COMP767/slides/converting_direct… · Markov network Bayes-net ⇒ Markov network ... From Bayesian to Markov networks

1. From 1. From BayesianBayesian to to MarkovMarkov networks networks

build an I-map for the following

I(M[G ]) ⊆3 I(G )3

G 1

I(M[G ]) =1 I(G )1

G 2G 3

moralized

Page 5: Relationship between the directed & undirected models ...siamak/COMP767/slides/converting_direct… · Markov network Bayes-net ⇒ Markov network ... From Bayesian to Markov networks

1. From 1. From BayesianBayesian to to MarkovMarkov networks networks

build an I-map for the following

I(M[G ]) ⊆3 I(G )3

G 1

I(M[G ]) =1 I(G )1

G 2G 3

I(M[G ]) =3 I(G )3

G 4

moralized

Page 6: Relationship between the directed & undirected models ...siamak/COMP767/slides/converting_direct… · Markov network Bayes-net ⇒ Markov network ... From Bayesian to Markov networks

1. From 1. From BayesianBayesian to to MarkovMarkov networks networks

build an I-map for the following

I(M[G ]) ⊆3 I(G )3

G 1

I(M[G ]) =1 I(G )1

G 2G 3

I(M[G ]) =3 I(G )3

G 4

Moralize                :connect parents keep the skeleton

moralized

G → M(G)

Page 7: Relationship between the directed & undirected models ...siamak/COMP767/slides/converting_direct… · Markov network Bayes-net ⇒ Markov network ... From Bayesian to Markov networks

From From BayesianBayesian to to MarkovMarkov networks networks

for moral     , we get a perfect map                             

directed and undirected CI tests are equivalent

G M[G]

G I(M[G]) = I(G)

moralize & keep the skeleton

Page 8: Relationship between the directed & undirected models ...siamak/COMP767/slides/converting_direct… · Markov network Bayes-net ⇒ Markov network ... From Bayesian to Markov networks

G

From From BayesianBayesian to to MarkovMarkov networks networks

 

connect each node to its Markov blanket 

children +parents +

parents of children

in both directed and undirected modelsX ⊥i every other var. ∣ MB(X )i

alternative approach

Page 9: Relationship between the directed & undirected models ...siamak/COMP767/slides/converting_direct… · Markov network Bayes-net ⇒ Markov network ... From Bayesian to Markov networks

G M[G]

From From BayesianBayesian to to MarkovMarkov networks networks

 

connect each node to its Markov blanket 

children +parents +

parents of children

in both directed and undirected models

gives the same moralized graph

X ⊥i every other var. ∣ MB(X )i

alternative approach

Page 10: Relationship between the directed & undirected models ...siamak/COMP767/slides/converting_direct… · Markov network Bayes-net ⇒ Markov network ... From Bayesian to Markov networks

2. From 2. From MarkovMarkov to to Bayesian Bayesian networksnetworks

G 1

I(G ) =1 I(G ) =2 I(H)

H G 2

minimal examples 1.

Page 11: Relationship between the directed & undirected models ...siamak/COMP767/slides/converting_direct… · Markov network Bayes-net ⇒ Markov network ... From Bayesian to Markov networks

2. From 2. From MarkovMarkov to to Bayesian Bayesian networksnetworks

G 1

I(G ) =1 I(G ) =2 I(H)

H G 2

minimal examples 1.

minimal examples 2.

H G

I(G) = I(H)

Page 12: Relationship between the directed & undirected models ...siamak/COMP767/slides/converting_direct… · Markov network Bayes-net ⇒ Markov network ... From Bayesian to Markov networks

 From  From MarkovMarkov to to Bayesian Bayesian networksnetworks

minimal examples 3.

I(G) ⊂ I(H)

A

BC

D

B ⊥ C ∣ A

Page 13: Relationship between the directed & undirected models ...siamak/COMP767/slides/converting_direct… · Markov network Bayes-net ⇒ Markov network ... From Bayesian to Markov networks

H

 From  From MarkovMarkov to to Bayesian Bayesian networksnetworks

minimal examples 3.

examples 4.I(G) ⊂ I(H)

A

BC

D

B ⊥ C ∣ A

GI(G) ⊂ I(H)

Page 14: Relationship between the directed & undirected models ...siamak/COMP767/slides/converting_direct… · Markov network Bayes-net ⇒ Markov network ... From Bayesian to Markov networks

H

 From  From MarkovMarkov to to Bayesian Bayesian networksnetworks

minimal examples 3.

examples 4.I(G) ⊂ I(H)

A

BC

D

B ⊥ C ∣ A

GI(G) ⊂ I(H)

how?

Page 15: Relationship between the directed & undirected models ...siamak/COMP767/slides/converting_direct… · Markov network Bayes-net ⇒ Markov network ... From Bayesian to Markov networks

From From MarkovMarkov to to Bayesian Bayesian networksnetworks

H

examples 4.

GI(G) ⊂ I(H)

Page 16: Relationship between the directed & undirected models ...siamak/COMP767/slides/converting_direct… · Markov network Bayes-net ⇒ Markov network ... From Bayesian to Markov networks

From From MarkovMarkov to to Bayesian Bayesian networksnetworks

H

build a minimal I-map from CIs in       :

pick an ordering - e.g., A,B,C,D,E,Fselect a minimal parent set s.t.

local CI (CI from non-descendents given parents)

H

examples 4.

GI(G) ⊂ I(H)

Page 17: Relationship between the directed & undirected models ...siamak/COMP767/slides/converting_direct… · Markov network Bayes-net ⇒ Markov network ... From Bayesian to Markov networks

From From MarkovMarkov to to Bayesian Bayesian networksnetworks

H

build a minimal I-map from CIs in       :

pick an ordering - e.g., A,B,C,D,E,Fselect a minimal parent set s.t.

local CI (CI from non-descendents given parents)

H

examples 4.

GI(G) ⊂ I(H)

have to triangulate the loops

any non-triangulated loop > 3  has immorality

Page 18: Relationship between the directed & undirected models ...siamak/COMP767/slides/converting_direct… · Markov network Bayes-net ⇒ Markov network ... From Bayesian to Markov networks

From From MarkovMarkov to to Bayesian Bayesian networksnetworks

H

build a minimal I-map from CIs in       :

pick an ordering - e.g., A,B,C,D,E,Fselect a minimal parent set s.t.

local CI (CI from non-descendents given parents)

H

examples 4.

GI(G) ⊂ I(H)

have to triangulate the loops

G chordalloops of size >3 have chords

any non-triangulated loop > 3  has immorality

Page 19: Relationship between the directed & undirected models ...siamak/COMP767/slides/converting_direct… · Markov network Bayes-net ⇒ Markov network ... From Bayesian to Markov networks

Chordal = Chordal = Markov        Markov        Bayesian Bayesian networksnetworks

 is not chordal, then                             for every

no perfect MAP in the form of Bayes-net 

I(G) = I(H)

H G

Page 20: Relationship between the directed & undirected models ...siamak/COMP767/slides/converting_direct… · Markov network Bayes-net ⇒ Markov network ... From Bayesian to Markov networks

Chordal = Chordal = Markov        Markov        Bayesian Bayesian networksnetworks

 is not chordal, then                             for every

no perfect MAP in the form of Bayes-net 

I(G) = I(H)

is chordal, then                           for some

has a Bayes-net perfect map

H G

GH I(G) = I(H)

Page 21: Relationship between the directed & undirected models ...siamak/COMP767/slides/converting_direct… · Markov network Bayes-net ⇒ Markov network ... From Bayesian to Markov networks

Chordal = Chordal = Markov        Markov        Bayesian Bayesian networksnetworks

 is not chordal, then                             for every

no perfect MAP in the form of Bayes-net 

I(G) = I(H)

is chordal, then                           for some

has a Bayes-net perfect map

H G

GH I(G) = I(H)

need clique-trees to build these

Page 22: Relationship between the directed & undirected models ...siamak/COMP767/slides/converting_direct… · Markov network Bayes-net ⇒ Markov network ... From Bayesian to Markov networks

directeddirectedparameter-estimation is easy

can represent causal relations

better for encoding expert

domain knowledge

undirectedundirectedsimpler CI semantics

less interpretable form for local factors

less restrictive in structural form (loops)

Page 23: Relationship between the directed & undirected models ...siamak/COMP767/slides/converting_direct… · Markov network Bayes-net ⇒ Markov network ... From Bayesian to Markov networks

Chordal graphs = Markov        Bayesian networksp-maps in both directions

directed to undirected: moralize

undirected to directed:triangulate

SummarySummary