• Tidak ada hasil yang ditemukan

Lecture 22: 21 April, 2022

N/A
N/A
Protected

Academic year: 2024

Membagikan "Lecture 22: 21 April, 2022"

Copied!
34
0
0

Teks penuh

(1)

Lecture 22: 21 April, 2022

Madhavan Mukund

https://www.cmi.ac.in/~madhavan

Data Mining and Machine Learning January–May 2022

(2)

Probabilistic graphical models

Underlying DAG, no cyclic dependencies

Each node has a local (conditional) probability table

(3)

Conditional independence

x ?y — x and y are independent P(x^y) =P(x)·P(y)

x ?y |z

x andy are independent givenz

Is JohnCallsindependent of MaryCalls (j ?m)?

No — value ofj tells us something about value ofmand vice versa

Is JohnCallsindependent of MaryCalls given Alarm (j ?m|a)?

Yes — by semantics of network, local independence

Madhavan Mukund Lecture 22: 21 April, 2022 DMML Jan–May 2022 3 / 10

(4)

Conditional independence

x ?y — x and y are independent P(x^y) =P(x)·P(y)

x ?y |z

x andy are independent given z

Is JohnCallsindependent of MaryCalls (j ?m)?

No — value ofj tells us something about value ofmand vice versa

Is JohnCallsindependent of MaryCalls given Alarm (j ?m|a)?

Yes — by semantics of network, local independence

(5)

Conditional independence

x ?y — x and y are independent P(x^y) =P(x)·P(y)

x ?y |z

x andy are independent given z

Is JohnCallsindependent of MaryCalls (j ?m)?

No — value ofj tells us something about value ofmand vice versa

Is JohnCallsindependent of MaryCalls given Alarm (j ?m|a)?

Yes — by semantics of network, local independence

Madhavan Mukund Lecture 22: 21 April, 2022 DMML Jan–May 2022 3 / 10

(6)

Conditional independence

x ?y — x and y are independent P(x^y) =P(x)·P(y)

x ?y |z

x andy are independent given z

Is JohnCallsindependent of MaryCalls (j ?m)?

No — value ofj tells us something about value ofmand vice versa

Is JohnCallsindependent of MaryCalls given Alarm (j ?m|a)?

Yes — by semantics of network, local independence

(7)

Conditional independence

x ?y — x and y are independent P(x^y) =P(x)·P(y)

x ?y |z

x andy are independent given z

Is JohnCallsindependent of MaryCalls (j ?m)?

No — value ofj tells us something about value ofmand vice versa

Is JohnCallsindependent of MaryCalls given Alarm (j ?m|a)?

Yes — by semantics of network, local independence

Madhavan Mukund Lecture 22: 21 April, 2022 DMML Jan–May 2022 3 / 10

(8)

Conditional independence

x ?y — x and y are independent P(x^y) =P(x)·P(y)

x ?y |z

x andy are independent given z

Is JohnCallsindependent of MaryCalls (j ?m)?

No — value ofj tells us something about value ofmand vice versa

Is JohnCallsindependent of MaryCalls given Alarm (j ?m|a)?

Yes — by semantics of network, local independence

(9)

Probabilistic graphical models

Fundamental assumption

A node is conditionally independent of non-descendants, given its parents

Madhavan Mukund Lecture 22: 21 April, 2022 DMML Jan–May 2022 4 / 10

(10)

Student example

SAT ?Grade |Difficulty ?

No

Can we calculate

conditional independence from the graph?

In general, check if X ?Y |Z for setsof variables X,Y,Z

¥

(11)

Student example

SAT ?Grade |Difficulty ? No

Can we calculate

conditional independence from the graph?

In general, check if X ?Y |Z for setsof variables X,Y,Z

Madhavan Mukund Lecture 22: 21 April, 2022 DMML Jan–May 2022 5 / 10

(12)

Student example

SAT ?Grade |Difficulty ? No

Can we calculate

conditional independence from the graph?

In general, check if X ?Y |Z for setsof variables X,Y,Z

(13)

Student example

SAT ?Grade |Difficulty ? No

Can we calculate

conditional independence from the graph?

In general, check if X ?Y |Z for setsof variables X,Y,Z

Madhavan Mukund Lecture 22: 21 April, 2022 DMML Jan–May 2022 5 / 10

~

(14)

Conditional independence

How does dependence “flow” through a network?

For neighbouring nodes, dependence flows both ways

Ifx !y, knowingx tells us about y and vice versa

Examinetrails between nodes Paths in the underlying undirected graph

Basic trails— (undirected) paths of length 2

Four basic trails

(15)

Conditional independence

How does dependence “flow” through a network?

For neighbouring nodes, dependence flows both ways

Ifx!y, knowingx tells us about y and vice versa

Examinetrails between nodes Paths in the underlying undirected graph

Basic trails— (undirected) paths of length 2

Four basic trails

Madhavan Mukund Lecture 22: 21 April, 2022 DMML Jan–May 2022 6 / 10

¥ FE

(16)

Conditional independence

How does dependence “flow” through a network?

For neighbouring nodes, dependence flows both ways

Ifx!y, knowingx tells us about y and vice versa

Examinetrails between nodes Paths in the underlying undirected graph

Basic trails— (undirected) paths of length 2

Four basic trails

✗t

0

↓ ↑

t

(17)

Conditional independence

How does dependence “flow” through a network?

For neighbouring nodes, dependence flows both ways

Ifx!y, knowingx tells us about y and vice versa

Examinetrails between nodes Paths in the underlying undirected graph

Basic trails— (undirected) paths of length 2

Four basic trails

Madhavan Mukund Lecture 22: 21 April, 2022 DMML Jan–May 2022 6 / 10

FETE

✓ ✓

A

(18)

Basic trails

(a), (b) and (c): Z blocks flow between X andY, by semantics of Bayesian networks

In (d), knowingZ allows influence to flow

Z: Car does not start X: Low Battery,Y: No Fuel Z: Grass is wet

X: Overnight rain,Y: Sprinkler ran Simplest form of V-structure

E

✗ ✗

J

- -

É→→→o→E

(19)

Basic trails

(a), (b) and (c): Z blocks flow between X andY, by semantics of Bayesian networks

In (d), knowingZ allows influence to flow

Z: Car does not start X: Low Battery,Y: No Fuel Z: Grass is wet

X: Overnight rain,Y: Sprinkler ran Simplest form of V-structure

Madhavan Mukund Lecture 22: 21 April, 2022 DMML Jan–May 2022 7 / 10

I

17

/

2-
(20)

Basic trails

(a), (b) and (c): Z blocks flow between X andY, by semantics of Bayesian networks

In (d), knowingZ allows influence to flow

Z: Car does not start X: Low Battery,Y: No Fuel Z: Grass is wet

X: Overnight rain,Y: Sprinkler ran Simplest form of V-structure

(21)

Basic trails

(a), (b) and (c): Z blocks flow between X andY, by semantics of Bayesian networks

In (d), knowingZ allows influence to flow

Z: Car does not start X: Low Battery,Y: No Fuel

Z: Grass is wet

X: Overnight rain,Y: Sprinkler ran Simplest form of V-structure

Madhavan Mukund Lecture 22: 21 April, 2022 DMML Jan–May 2022 7 / 10

(22)

Basic trails

(a), (b) and (c): Z blocks flow between X andY, by semantics of Bayesian networks

In (d), knowingZ allows influence to flow

Z: Car does not start X: Low Battery,Y: No Fuel Z: Grass is wet

X: Overnight rain,Y: Sprinkler ran

Simplest form of V-structure

(23)

Basic trails

(a), (b) and (c): Z blocks flow between X andY, by semantics of Bayesian networks

In (d), knowingZ allows influence to flow

Z: Car does not start X: Low Battery,Y: No Fuel Z: Grass is wet

X: Overnight rain,Y: Sprinkler ran Simplest form of V-structure

Madhavan Mukund Lecture 22: 21 April, 2022 DMML Jan–May 2022 7 / 10

(24)

D-Separation

Check if X ?Y |Z

Dependence should be blocked on every trail from X toY

Each undirected path from X toY is a sequence of basic trails For (a), (b), (c), needZ present For (d), need Z absent

In general, V-structure includes descendants of the bottom node

x andy are D-separatedgiven z if all trails are blocked

Variation of breadth first search (BFS)to check if y is reachable fromx through some trail

Extends to sets — eachx 2X is D-separated from eachy 2Y

(25)

D-Separation

Check if X ?Y |Z

Dependence should be blocked on every trail from X toY

Each undirected path from X toY is a sequence of basic trails For (a), (b), (c), needZ present For (d), need Z absent

In general, V-structure includes descendants of the bottom node

x andy are D-separatedgiven z if all trails are blocked

Variation of breadth first search (BFS)to check if y is reachable fromx through some trail

Extends to sets — eachx 2X is D-separated from eachy 2Y

Madhavan Mukund Lecture 22: 21 April, 2022 DMML Jan–May 2022 8 / 10

(26)

D-Separation

Check if X ?Y |Z

Dependence should be blocked on every trail from X toY

Each undirected path fromX toY is a sequence of basic trails

For (a), (b), (c), needZ present For (d), need Z absent

In general, V-structure includes descendants of the bottom node

x andy are D-separatedgiven z if all trails are blocked

Variation of breadth first search (BFS)to check if y is reachable fromx through some trail

Extends to sets — eachx 2X is D-separated from eachy 2Y

(27)

D-Separation

Check if X ?Y |Z

Dependence should be blocked on every trail from X toY

Each undirected path fromX toY is a sequence of basic trails For (a), (b), (c), needZ present

For (d), need Z absent

In general, V-structure includes descendants of the bottom node

x andy are D-separatedgiven z if all trails are blocked

Variation of breadth first search (BFS)to check if y is reachable fromx through some trail

Extends to sets — eachx 2X is D-separated from eachy 2Y

Madhavan Mukund Lecture 22: 21 April, 2022 DMML Jan–May 2022 8 / 10

(28)

D-Separation

Check if X ?Y |Z

Dependence should be blocked on every trail from X toY

Each undirected path fromX toY is a sequence of basic trails For (a), (b), (c), needZ present For (d), need Z absent

In general, V-structure includes descendants of the bottom node

x andy are D-separatedgiven z if all trails are blocked

Variation of breadth first search (BFS)to check if y is reachable fromx through some trail

Extends to sets — eachx 2X is D-separated from eachy 2Y

(29)

D-Separation

Check if X ?Y |Z

Dependence should be blocked on every trail from X toY

Each undirected path fromX toY is a sequence of basic trails For (a), (b), (c), needZ present For (d), need Z absent

In general, V-structure includes descendants of the bottom node

x andy are D-separatedgiven z if all trails are blocked

Variation of breadth first search (BFS)to check if y is reachable fromx through some trail

Extends to sets — eachx 2X is D-separated from eachy 2Y

Madhavan Mukund Lecture 22: 21 April, 2022 DMML Jan–May 2022 8 / 10

W is known
(30)

D-Separation

Check if X ?Y |Z

Dependence should be blocked on every trail from X toY

Each undirected path fromX toY is a sequence of basic trails For (a), (b), (c), needZ present For (d), need Z absent

In general, V-structure includes descendants of the bottom node

x andy are D-separatedgiven z if all trails are blocked

Variation of breadth first search (BFS)to check if y is reachable fromx through some trail

Extends to sets — eachx 2X is D-separated from eachy 2Y

(31)

D-Separation

Check if X ?Y |Z

Dependence should be blocked on every trail from X toY

Each undirected path fromX toY is a sequence of basic trails For (a), (b), (c), needZ present For (d), need Z absent

In general, V-structure includes descendants of the bottom node

x andy are D-separatedgiven z if all trails are blocked

Variation of breadth first search (BFS)to check if y is reachable fromx through some trail

Extends to sets — eachx 2X is D-separated from eachy 2Y

Madhavan Mukund Lecture 22: 21 April, 2022 DMML Jan–May 2022 8 / 10

(32)

D-Separation

Check if X ?Y |Z

Dependence should be blocked on every trail from X toY

Each undirected path fromX toY is a sequence of basic trails For (a), (b), (c), needZ present For (d), need Z absent

In general, V-structure includes descendants of the bottom node

x andy are D-separatedgiven z if all trails are blocked

Variation of breadth first search (BFS)to check if y is reachable fromx through some trail

Extends to sets — eachx 2X is D-separated from eachy 2Y

(33)

Conditional independence, example

Is SATindependent of Difficulty given Intelligence?

Yes,Difficulty – Grade –

Intelligence – SAT trail is blocked atGrade(V-structure)

Is SATindependent of Difficulty given Grade?

No,Difficulty – Grade – Intelligence – SATtrail is open becauseGrade is known (V-structure)

Madhavan Mukund Lecture 22: 21 April, 2022 DMML Jan–May 2022 9 / 10

-

_

-

00*0

(34)

Conditional independence, example

Is SATindependent of Difficulty given Intelligence?

Yes,Difficulty – Grade –

Intelligence – SAT trail is blocked atGrade(V-structure)

Is SATindependent of Difficulty given Grade?

No,Difficulty – Grade – Intelligence – SATtrail is open becauseGrade is known (V-structure)

0*0

Referensi

Dokumen terkait