Docsity

EM Algorithm Assignment for Co-occurrence Data and Noisy-OR Model - Prof. Lawrence Saul, Assignments of Computer Science

Toggle sidebar
bg1
CSE 291d. Assignment 5
Out: Fri Feb 16
Due: Fri Feb 23
5.1 EM algorithm for co-occurrence data
The belief network on the right is often used to model different types
of data that co-occur—for example, images and text on the same web
page, or verbs and objects in the same sentence. The co-occuring data
types are modeled by the observed nodes Band C. The hidden node A
is used to represent or discover different clusters of co-occurrences—
for example, groups of verbs that take similar objects.
CB
A
(a) Compute the posterior probability P(A|B, C )in terms of the CPTs of this belief network—namely,
P(A),P(B|A), and P(C|A).
(b) Consider an incomplete data set of Tobservations {bt, ct}T
t=1 over the nodes Band Cof the network,
assumed to be sampled i.i.d from the belief network’s joint distribution. Compute the log-likelihood
of this data set, namely L=Ptlog P(B=bt, C =ct), in terms of the CPTs of the belief network.
(c) For the data set in part (b), write out the EM updates for re-estimating the CPT attached to each node
in this belief network: P(A),P(B|A), and P(C|A). Express the updates in terms of the posterior
probabilities P(a|bt, ct), used as shorthand notation for P(A=a|B=bt, C =ct). Your answer may
also use binary indicator functions, such as I(b, bt), to indicate whether the node Bis instantiated to
the value bin the tth example. Simplify the updates as much as possible.
1
pf3

Partial preview of the text

Download EM Algorithm Assignment for Co-occurrence Data and Noisy-OR Model - Prof. Lawrence Saul and more Assignments Computer Science in PDF only on Docsity!

CSE 291d. Assignment 5

Out: Fri Feb 16 Due: Fri Feb 23

5.1 EM algorithm for co-occurrence data

The belief network on the right is often used to model different types of data that co-occur—for example, images and text on the same web page, or verbs and objects in the same sentence. The co-occuring data types are modeled by the observed nodes B and C. The hidden node A is used to represent or discover different clusters of co-occurrences—

for example, groups of verbs that take similar objects. B C

A

(a) Compute the posterior probability P (A|B, C) in terms of the CPTs of this belief network—namely, P (A), P (B|A), and P (C|A).

(b) Consider an incomplete data set of T observations {bt, ct}Tt=1 over the nodes B and C of the network, assumed to be sampled i.i.d from the belief network’s joint distribution. Compute the log-likelihood of this data set, namely L = ∑ t log^ P^ (B^ =^ bt, C^ =^ ct), in terms of the CPTs of the belief network. (c) For the data set in part (b), write out the EM updates for re-estimating the CPT attached to each node in this belief network: P (A), P (B|A), and P (C|A). Express the updates in terms of the posterior probabilities P (a|bt, ct), used as shorthand notation for P (A = a|B = bt, C = ct). Your answer may also use binary indicator functions, such as I(b, bt), to indicate whether the node B is instantiated to the value b in the tth example. Simplify the updates as much as possible.

5.2 EM algorithm for noisy-OR

Consider the belief network on the right, with binary random variables X ∈ 0 , 1 n and Y ∈ { 0 , 1 } and a noisy-OR condi- tional probability table (CPT). The noisy- OR CPT is given by:

P (Y = 1|X) = 1 −

∏^ n

i=

(1 − pi)Xi^ ,

which is expressed in terms of the noisy- OR parameters pi ∈ [0, 1].

Y

X 1 X 2 X 3 Xn

In this problem, you will derive and implement an EM algorithm for estimating the noisy-OR parameters pi. It may seem that the EM algorithm is not suited to this problem, in which all the nodes are observed, and the CPT has a parameterized form. In fact, the EM algorithm can be applied, but first we must express the model in a different but equivalent form.

Consider the belief network shown to the right. In this net- work, a binary random variable Zi ∈ { 0 , 1 } intercedes be- tween each pair of nodes Xi and Y. Suppose that:

P (Zi = 1|Xi = 0) = 0 , P (Zi = 1|Xi = 1) = pi.

Also, let the node Y be determined by the logical-OR of Zi. In other words:

P (Y = 1|Z) =

{ 1 if Zi = 1 for any i, 0 if Zi = 0 for all i. Y

Z 1 Z 2 Z 3 Zn

X 1 X 2 X 3 Xn

(a) Show that this “extended” belief network defines the same conditional distribution P (Y |X) as the original one. In particular, starting from

P (Y = 1|X) =

∑

Z∈{ 0 , 1 }n

P (Y = 1, Z|X),

show that the right hand side of this equation reduces to the noisy-OR CPT with parameters pi. To perform this marginalization, you will need to exploit various conditional independence relations.

(b) Consider estimating the noisy-OR parameters pi to maximize the conditional log-likelihood of joint observations of the variables X and Y. This (normalized) conditional log-likelihood is given by:

L =

T

∑^ T

t=

log P (Y = y(t)|X =~x(t)),