{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

6-Approximate Q-Learning and Probability_sol

# 6-Approximate Q-Learning and Probability_sol - CS 188...

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

CS 188 Spring 2011 Introduction to Artificial Intelligence Section 6 Solutions Approximate Q-Learning and Probability Q1. Mini Power Pellets Note: For this problem, any answers that require division can be left written as a fraction. PacLabs has just created a new type of mini power pellet that is small enough for Pacman to carry around with him when he’s running around mazes. Unfortunately, these mini-pellets don’t guarantee that Pacman will win all his fights with ghosts, and they look just like the regular dots Pacman carried around to snack on. Pacman just ate a snack ( P ), which was either a mini-pellet (+ p ), or a regular dot ( - p ), and is about to get into a fight ( W ), which he can win (+ w ) or lose ( - w ). Both these variables are unknown, but fortunately, Pacman is a master of probability. He knows that his bag of snacks has 5 mini-pellets and 15 regular dots. He also knows that if he ate a mini-pellet, he has a 70% chance of winning, but if he ate a regular dot, he only has a 20% chance. (a) What is P (+ w ), the marginal probability that Pacman will win? P (+ w ) = P (+ w, + p ) + P (+ w, - p ) = P (+ w | + p ) P (+ p ) + P (+ w | - p ) P ( - p ) = 7 10 × 1 4 + 2 10 × 3 4 = 13 40 = 0 . 325 (b) Pacman won! Hooray! What is the conditional probability P (+ p | + w ) that the food he ate was a mini-pellet, given that he won?

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