DOC PREVIEW
Berkeley COMPSCI 188 - Sampling and DBNs

This preview shows page 1 out of 3 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 3 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 3 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

CS188 Fall 2011 Section 8: Inference and Sampling1 Sampling and DBNsThe diagram to the right describes a person’s ice-cream eat-ing habits based on the weather. The nodes Wistand for theweather on a day i, which can either be rainy R or sunny S. Thenodes Iirepresent whether or not the person ate ice-cream onday i, and the node takes values T (for truly eating ice cream)or F. The conditional probability distributions relevant to thegraphical model are also given to you.Suppose we sample from the prior to produce the following samples of (W1, I1, W2, I2) from the ice-cream model:R, F, R, F R, F, R, F S, F, S, T S, T, S, T S, T, R, FR, F, R, T S, T, S, T S, T, S, T S, T, R, F R, F, S, T(a) What isbP (W2= R), the probability sampling assigns the event W2= R?(b) Cross off samples rejected by rejection sampling if we’re computing P(W2|I1= T, I2= F)Rejection sampling seems to be wasting a lot of effort, so we decide to switch to likelihood weighting. Assume wegenerate the following six samples given the evidence I1= T and I2= F:(W1, I1, W2, I2) =nhS, T, R, Fi, hR, T, R, Fi, hS, T, R, Fi, hS, T, S, Fi, hS, T, S, Fi, hR, T, S, Fio(c) What is the weight of the first sample (S, T, R, F) above?(d) Use likelihood weighting to estimatebP (W2|I1= T, I2= F)12 Basic InferenceThe next parts involve computing various quantities in the networks below. These questions are designed so thatthey can be answered with a minimum of computation. If you find yourself doing a copious amount of computationfor each part, step back and consider whether there is simpler way to deduce the answer.Consider the simple Bayes Net below.(a) P (+b)(b) P (+a| + b)Now consider a more complicated Bayes Net shown below.(c) P (+a, ¬b, +c, ¬d)2(d) P (+d| + a)(e) P (+d| + a,


View Full Document

Berkeley COMPSCI 188 - Sampling and DBNs

Documents in this Course
CSP

CSP

42 pages

Metrics

Metrics

4 pages

HMMs II

HMMs II

19 pages

NLP

NLP

23 pages

Midterm

Midterm

9 pages

Agents

Agents

8 pages

Lecture 4

Lecture 4

53 pages

CSPs

CSPs

16 pages

Midterm

Midterm

6 pages

MDPs

MDPs

20 pages

mdps

mdps

2 pages

Games II

Games II

18 pages

Load more
Download Sampling and DBNs
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Sampling and DBNs and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Sampling and DBNs 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?