SLIDE 5
Idea: ea: fi fix ev eviden ence ce an and sa sample t the r rest st
Probl blem: sample distribution not consistent!
Solution: Assign a we weig ight by according to probability of evidence given parents
Likelihood Weighting
Problem m with rejection samp mpling:
- If evidence is unlikely, rejects lots of samples
- Evidence not exploited as you sample
- Consider P(
P( Sh Shape pe | bl blue )
Shape Color Shape Color
pyramid, green pyramid, red sphere, blue cube, red sphere, green pyramid, blue pyramid, blue sphere, blue cube, blue sphere, blue
Likelihood Weighting
+c 0.5
0.5 +c +s 0.1
0.9
+s 0.5
0.5 +c +r 0.8
0.2
+r 0.2
0.8 +s +r +w 0.99
0.01
+w 0.90
0.10
+r +w 0.90
0.10
+w 0.01
0.99
Samples: +c, +s, +r, +w … Cloudy Sprinkler Rain WetGrass Cloudy Rain WetGrass
P(C, R | +s, +w)
<latexit sha1_base64="91+0FuZ923Dcgnlovm9ic1E65zk=">AHK3icfZVb9MwFMe9AWU28YeanokIaIqmQd3eBp2pjG2ViF6mpJidx21Dngu107Sx/Fl7hgU/DE4hXvgd2EiCJwxylsc75nb+P3WPbibFPmWl+X1q+cfNW4/bKnebde/cfPFxde3RKo4S46MSNcETOHUgR9kN0wnyG0XlMEAwcjM6c6YHyn80QoX4UvmeLGA0DOA79ke9CJk0Xq+v9zQOjdyA9rPadG6/nls4vVtkx09bSO1beae+BrPUv1hrA9iI3CVDIXAwpHVhmzIYcEua7GImnVAUQ3cKx2guyEMEB3yNHvRajafFvw8RJfxnKE5EzX2ALKJaBb1OAxoZq0YR1HIaNmKodSli6BsdYKy4gDN4io9L0PCWVONBcqRQ+N5BqnOXPwQkS/PhoX3DT6HUNa2tHVBmCvByxdk1DPhoxJgiFObO7bVi93RoTkiM0T/KVJzKuEi9hmTaz0E3WExlWp1ez5D/lWGmb7cr9Ij9dBYZb+XYdfyxmtEfeTNVz8Je1MAHCxiWxdVr/Yc+ypaikLt5rfpbAsMxKmZTmLBKXi4QbJm3CgIYOhxe4ZcMbCG3EYhTQhSNcNtJ8KeLAj54W1LCKEFZSEyNvVL0aIXzSAW3DZk0AgjV5UK37Axgh5l0YawX1UD5qI8/IzP0GLzEJjFhpzpTFXGjPRGBsxWDPHpAwmVaGPFSE2SXWqMriCYXkIeTUcq8pBbcRBYknvrb2kIwDqNYzihGBLCLqULn02QT7gc8oz/1Cj/LD6OkvzrYSUh9es4/FBopOvgtGRkr7zN0vIpo8TULXDasgx0chsw9Swsc7mJ0MN7C40ON23NWik6+abUMHpnfFStd7fG0LvnG51rG6n+267vbef3x4r4DF4AjaBXbAHngD+uAEuGABPoHP4Evja+Nb40fjZ4YuL+Ux6DUGr9+A/T9jb4=</latexit>
Ex Examp mple:
In Intuition: As Assign higher w w to to “good” samples (i.e. samples with high probability for evidence)
Likelihood Weighting
Input: t: evidence assignment
w = 1. 1.0
- for
- r i = 1, 2, …, n
- if Xi is
s an evi vidence va variable
- Xi = xi (from evidence)
- w
w = w * P( P(xi | Parents( s(Xi)) ))
se
Sampl ple xi fro from P( P(Xi | Parents( s(Xi)) ))
etur urn n (x (x1, x , x2, …, …, xn), w
Likelihood Weighting
stribution if z sa sampled and e fixe xed evi vidence
samples s have ve we weig ights ts
sampling dist stribution is s consi sist stent
Cloudy R C S W