



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Out: Tue Jan 16 Due: Fri Jan 26
Recall the alarm belief network described in class. The directed acyclic graph (DAG) and conditional probability tables (CPTs) are shown below:
Alarm
Earthquake Burglar
John Calls Mary Calls
P(E=1) = 0.002 P(B=1) = 0.
P(A=1|E=0,B=0) = 0. P(A=1|E=0,B=1) = 0. P(A=1|E=1,B=0) = 0. P(A=1|E=1,B=1) = 0.
P(J=1|A=0) = 0. P(J=1|A=1) = 0.
P(M=1|A=0) = 0. P(M=1|A=1) = 0.
Compute numeric values for the following probabilities, exploiting relations of conditional independence as much as possible to simplify your calculations. Show your work.
(a) P (M = 0) (d) P (E = 1|A = 1, M = 0) (g) P (B = 1|J = 1, E = 1) (b) P (M = 1|E = 0, B = 1) (e) P (E = 1|A = 1, J = 0) (h) P (M = 1|A = 0, J = 1) (c) P (E = 1|A = 0) (f) P (B = 0|J = 1) (i) P (J = 1|M = 1, B = 1)
A patient is known to have contracted a rare disease which comes in two forms, represented by the values of a binary random variable X ∈ { 0 , 1 }. Symptoms of the disease are represented by the binary random variables Yk ∈ { 0 , 1 }, and knowledge of the disease is summarized by the belief network:
The conditional probability tables (CPTs) for this belief network are as follows. In the absence of evi- dence, both forms of the disease are equally likely, with prior probabilities: P (X = 0) = P (X = 1) = 12. In the first form of the disease (X = 0), all the symptoms are uniformly likely to be observed, with P (Yk = 0|X = 0) = 12. By contrast, in the second form of the disease (X = 1), the first symptom occurs with probability one, P (Y 1 = 1|X = 1) = 1,
while the kth^ symptom (with k ≥ 2 ) occurs with probability
P (Yk = 1|X = 1) =
f (k − 1) f (k)
where the function f (k) is defined by f (k) = 2k^ + (−1)k.
Suppose that on the kth^ day of the month, a test is done to determine whether the patient is exhibiting the kth^ symptom, and that each such test returns a positive result. Thus, on the kth^ day, the doctor observes the patient with symptoms {Y 1 = 1, Y 2 = 1,... , Yk = 1}. Based on the cumulative evidence, the doctor makes a new diagnosis each day by computing the likelihood ratio:
rk =
P (X = 0|Y 1 = 1, Y 2 = 1,... , Yk = 1) P (X = 1|Y 1 = 1, Y 2 = 1,... , Yk = 1)
If this ratio is greater than 1, the doctor diagnoses the patient with the first form of the disease (X = 0); oth- erwise, with the second (X = 1). Compute the ratio rk as a function of k. How does the doctor’s diagnosis depend on the day of the month? Does the diagnosis become more or less certain as more symptoms are observed? Explain.
Let Y ∈ { 0 , 1 } denote a binary random variable that depends on k other random variables Xi as:
P (Y = 1|X 1 = x 1 , X 2 = x 2 ,... , Xk = xk) = σ
( (^) k ∑
i=
wixi
) where σ(z) =
1 + e−z^
The real-valued parameters wi in this CPT are known as weights. The function σ(z), known as the sigmoid function, arises in many contexts. In neural networks, it is used to model the probability that a neuron Y fires given its input from other neurons Xi; the weights wi describe the connections between neurons. In statistics, the sigmoid function appears in models of logistic regression. Sketch the function σ(z), and verify the following properties:
(a) σ′(z) = σ(z)σ(−z). (b) σ(−z) + σ(z) = 1.
(c) L(σ(z)) = z, where L(p) = log
( p 1 −p
) .
(d) wi = L(pi), where pi = P (Y = 1|Xi = 1, Xj = 0 for all j 6 = i).
X Y
Z
Suppose that the nodes in this network represent binary random variables and that the CPT for P (Z|X, Y ) is parameterized by a noisy-OR model, as shown above. Suppose also that
0 < P (X = 1) < 1 , 0 < P (Y = 1) < 1 ,
while the parameters of the noisy-OR model satisfy:
0 < px < py < 1.
Consider the following pairs of probabilities. In each case, indicate whether the probability on the left is equal (=), greater than (>), or less than (<) the probability on the right. The first one has been filled in for you as an example.
P (X = 1) = P (X = 1)
(a) P (Z = 1|X = 0, Y = 0) P (Z = 1|X = 0, Y = 1)
(b) P (Z = 1|X = 1, Y = 0) P (Z = 1|X = 0, Y = 1)
(c) P (Z = 1|X = 1, Y = 0) P (Z = 1|X = 1, Y = 1)
(d) P (X = 1) P (X = 1|Y = 1)
(e) P (X = 1) P (X = 1|Z = 1)
(f) P (X = 1|Z = 1) P (X = 1|Y = 1, Z = 1)
(g) P (X = 1) P (Y = 1) P (Z = 1) P (X = 1, Y = 1, Z = 1)
For the belief network shown below, indicate whether the following statements of conditional independence are true (T) or false (F).
(a) P (B, C|F ) = P (B|F ) P (C|F )
(b) P (F |B, C, D, E) = P (F |B, C, D, E, H)
(c) P (B, E|A) = P (B|A) P (E|A)
(d) P (H|F, G) = P (H|G)
(e) P (A, E|H) = P (A|H) P (E|H)
(f) P (G|D) = P (G|D, H)
(g) P (B, G|A) = P (B|A) P (G|A)
(h) P (A, F, H) = P (A) P (F |A) P (H|A)
(i) P (C, D|B, E) = P (C, D)
E
A
G
C D
H
B
F