{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

# ex7 - CS221 Exercise Set 7 1 CS 221 Autumn 2007 Exercise...

This preview shows pages 1–2. Sign up to view the full content.

CS221 Exercise Set 7 1 CS 221, Autumn 2007 Exercise Set 7: Bayesian Networks 1. Bayesian Networks and Chocolate Suppose you’re watching chocolate being produced on a conveyor belt in a factory. There are two levers controlling production, one that controls whether the chocolate is plain or almond, and another that controls whether there is coconut or not. The levers stay in the position they’re in with probability .7 and switch to the other setting .3, the two levers operating independently. At the start of the day, the lever is in either setting with equal probability. From observing the conveyor belt, you can only tell what color the chocolate is, and have the following table of probabilities for the color given what’s inside. Inside P(Color=Light | Inside) P(Color=Dark | Inside) Plain 0.1 0.9 Almond 0.3 0.7 Coconut 0.8 0.2 Almond + Coconut 0.9 0.1 Let X i represent the state of the two levers at time step i , and let Y i represent the ob- servation at time step i . So, the domain of X i is { Plain, Almond, Coconut, Almond + Chocolate }

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern