Inference and Representation
David Sontag
New York University
Lecture 4, Sept. 29, 2015
David Sontag (NYU) Inference and Representation Lecture 4, Sept. 29, 2015 1 / 41
Inference and Representation David Sontag New York University - - PowerPoint PPT Presentation
Inference and Representation David Sontag New York University Lecture 4, Sept. 29, 2015 David Sontag (NYU) Inference and Representation Lecture 4, Sept. 29, 2015 1 / 41 Todays lecture Markov random fields Factor graphs 1 Bayesian
David Sontag (NYU) Inference and Representation Lecture 4, Sept. 29, 2015 1 / 41
1
2
1
2
3
David Sontag (NYU) Inference and Representation Lecture 4, Sept. 29, 2015 2 / 41
x1,...,ˆ xn
David Sontag (NYU) Inference and Representation Lecture 4, Sept. 29, 2015 3 / 41
A C B D
David Sontag (NYU) Inference and Representation Lecture 4, Sept. 29, 2015 4 / 41
A C B D A C B D A C B D
Markov network Factor graphs
David Sontag (NYU) Inference and Representation Lecture 4, Sept. 29, 2015 5 / 41
Y2 Y1 Y3 Y4 Y5 Y6
fA fB fC f1 f2 f3 f4 f5 f6
X2 X1 X3 X4 X5 X6
David Sontag (NYU) Inference and Representation Lecture 4, Sept. 29, 2015 6 / 41
Y2 Y1 Y3 Y4 Y5 Y6
fA fB fC f1 f2 f3 f4 f5 f6
X2 X1 X3 X4 X5 X6
David Sontag (NYU) Inference and Representation Lecture 4, Sept. 29, 2015 7 / 41
X1 X2 X3 X4 X5 X6 Y1 Y2 Y3 Y4 Y5 Y6
David Sontag (NYU) Inference and Representation Lecture 4, Sept. 29, 2015 8 / 41
1
2
A C B D A C B D
David Sontag (NYU) Inference and Representation Lecture 4, Sept. 29, 2015 9 / 41
1
A C B D A C B D
2
David Sontag (NYU) Inference and Representation Lecture 4, Sept. 29, 2015 10 / 41
David Sontag (NYU) Inference and Representation Lecture 4, Sept. 29, 2015 11 / 41
David Sontag (NYU) Inference and Representation Lecture 4, Sept. 29, 2015 12 / 41
Q1 Qn Q4 Q3 Q2 C1 A1 X Am–2 A2 Cm Cm–1 C3 C2
David Sontag (NYU) Inference and Representation Lecture 4, Sept. 29, 2015 13 / 41
Q1 Qn Q4 Q3 Q2 C1 A1 X Am–2 A2 Cm Cm–1 C3 C2
1 2n for any satisfying assignment q
q,c,a p(Q = q, C = c, A = a | X = 1)
David Sontag (NYU) Inference and Representation Lecture 4, Sept. 29, 2015 14 / 41
Q1 Qn Q4 Q3 Q2 C1 A1 X Am–2 A2 Cm Cm–1 C3 C2
q,c,a p(Q = q, C = c, A = a, X = 1) is equal to the number
1 2n
David Sontag (NYU) Inference and Representation Lecture 4, Sept. 29, 2015 15 / 41
Q1 Qn Q4 Q3 Q2 C1 A1 X Am–2 A2 Cm Cm–1 C3 C2
. . . . . .
X1 X2 X3 X4 X5 X6 Y1 Y2 Y3 Y4 Y5 Y6
David Sontag (NYU) Inference and Representation Lecture 4, Sept. 29, 2015 16 / 41
David Sontag (NYU) Inference and Representation Lecture 4, Sept. 29, 2015 17 / 41
David Sontag (NYU) Inference and Representation Lecture 4, Sept. 29, 2015 18 / 41
David Sontag (NYU) Inference and Representation Lecture 4, Sept. 29, 2015 19 / 41
David Sontag (NYU) Inference and Representation Lecture 4, Sept. 29, 2015 20 / 41
David Sontag (NYU) Inference and Representation Lecture 4, Sept. 29, 2015 21 / 41
David Sontag (NYU) Inference and Representation Lecture 4, Sept. 29, 2015 22 / 41
a ψ1(a, B)
b ψ1(b, C)
David Sontag (NYU) Inference and Representation Lecture 4, Sept. 29, 2015 23 / 41
David Sontag (NYU) Inference and Representation Lecture 4, Sept. 29, 2015 24 / 41
David Sontag (NYU) Inference and Representation Lecture 4, Sept. 29, 2015 25 / 41
i=1 = {p(Xi | XPa(Xi))}n i=1,
David Sontag (NYU) Inference and Representation Lecture 4, Sept. 29, 2015 26 / 41
a1 a1 a1 a1 a2 a2 a2 a2 a3 a3 a3 a3 b1 b1 b2 b2 b1 b1 b2 b2 b1 b1 b2 b2 c1 c2 c1 c2 c1 c2 c1 c2 c1 c2 c1 c2
0.25 0.35 0.08 0.16 0.05 0.07 0.15 0.21 0.09 0.18
a1 a1 a2 a2 a3 a3 c1 c2 c1 c2 c1 c2
0.33 0.51 0.05 0.07 0.24 0.39 David Sontag (NYU) Inference and Representation Lecture 4, Sept. 29, 2015 27 / 41
1
2
3
David Sontag (NYU) Inference and Representation Lecture 4, Sept. 29, 2015 28 / 41
David Sontag (NYU) Inference and Representation Lecture 4, Sept. 29, 2015 29 / 41
David Sontag (NYU) Inference and Representation Lecture 4, Sept. 29, 2015 30 / 41
David Sontag (NYU) Inference and Representation Lecture 4, Sept. 29, 2015 31 / 41
David Sontag (NYU) Inference and Representation Lecture 4, Sept. 29, 2015 32 / 41
David Sontag (NYU) Inference and Representation Lecture 4, Sept. 29, 2015 33 / 41
David Sontag (NYU) Inference and Representation Lecture 4, Sept. 29, 2015 34 / 41
David Sontag (NYU) Inference and Representation Lecture 4, Sept. 29, 2015 35 / 41
David Sontag (NYU) Inference and Representation Lecture 4, Sept. 29, 2015 36 / 41
David Sontag (NYU) Inference and Representation Lecture 4, Sept. 29, 2015 37 / 41
David Sontag (NYU) Inference and Representation Lecture 4, Sept. 29, 2015 38 / 41
1
2
David Sontag (NYU) Inference and Representation Lecture 4, Sept. 29, 2015 39 / 41
G = min ≺ wG,≺
G+1),
David Sontag (NYU) Inference and Representation Lecture 4, Sept. 29, 2015 40 / 41
David Sontag (NYU) Inference and Representation Lecture 4, Sept. 29, 2015 41 / 41