User Tools

Site Tools


public:t-622-arti-11-1:lab_7_materials

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
public:t-622-arti-11-1:lab_7_materials [2011/03/15 09:53] – created angelopublic:t-622-arti-11-1:lab_7_materials [2024/04/29 13:33] (current) – external edit 127.0.0.1
Line 1: Line 1:
-===== Lab 9 materials =====+===== Lab 7: Bayesian Networks =====
  
-In this session we will look at some basic Bayesian networks. We will do a few on the whiteboard and projector, using the Bayesian Network simulator available here:+In this session we will look at some basic Bayesian Networks and you will solve two problems using Bayesian Network simulator
 + 
 +==== Material ==== 
 + 
 +The following is a Java applet for Bayesian Network simulations:
  
   * http://www.cs.cmu.edu/~javabayes/   * http://www.cs.cmu.edu/~javabayes/
  
-Afterwards you will solve two problems in groups of 2-3using the applet aboveThe problems are the following:+==== Problem 1: Smelly Doors ==== 
 + 
 +You are writing a program to control a non-player character (NPC) in a game. The NPC is in a building full of doors. Behind each door, there is either a reward (e.g. health-points) or a monster which the NPC must fight with (losing health-points). Once the NPC opens a doorhe must fight the monster behind it if anyHowever, before opening a door the NPC can stick its nose in the keyhole (it cannot look through it) and smell the air inside the room. The air will smell either bad or not. In summary: 
 + 
 +  * The NPC should seek reward but avoid monsters; 
 +  * The NPC doesn't know what's behind a door in advance, but... 
 +  * it can check whether the room smells bad or not and use that information as an indicator.
  
-=== Problem 1: Smelly doors ===+  - Design a very simple Bayesian network usable by the NPC to decide when in front of a door, whether he should open it or not. Start by inventing reasonable probabilities for the relation between the contents of the room and its smell.  
 +  - Argue how, instead of using made-up probabilities, the NPC can learn as he opens doors and dynamically update the Bayesian network becoming smarter.
  
-You are writing a program to control a non-player character (NPC) in a game. The NPC is in a building full of doors. Behind each door, there is either a reward (e.g. health-points) or a monster which the NPC must fight (losing health-points). Once the NPC opens the door, he must fight the monster behind it if there is one. However, before opening the door the NPC can stick its nose in the keyhole (it cannot look through it) and smell the air from the room. The air will either smell bad or not. In summary:+==== Problem 2: The Pirate Treasure ====
  
-  * The NPC should seek reward but avoid monsters. +{{  :public:t-622-arti-09-1:treasurechest.jpg|}}
-  * The NPC doesn'know what's behind a door in advance, but.. +
-  * it can check if the room smells bad or not and use that as an indicator.+
  
-  - Design very simple Bayesian network that the NPC uses to decide when in front of a doorif he should open it or notStart by inventing reasonable probabilities for the relation between the contents of the room and its smell +You are seasoned tomb raider and have spent the last week rummaging through an old pirate cove full of treasure. So far you have opened 100 chests and of those, 50 have in fact contained treasure! Out of these 5040 were trapped and you sustained some painful damage from opening themOut of these 40 trapped chests, 28 were also lockedNow, of the 10 untrapped chests, three were lockedOne would think that only chests with treasure would be trapped, but these pirates were truly nasty, they also put traps on chests with no treasure. Of the 50 chests containing no treasure, 20 were trapped!
-  - Argue howinstead of using made-up probabilities, the NPC can learn as he opens doors and dynamically update the Bayesian network to become smarter.+
  
-=== Problem 2: Treasure hunt ===+You have now discovered a new chest that you haven't seen before. When you take a careful look, you notice that it is locked. What is the chance that this chest will contain treasure? What is the chance that it will be trapped? You are not feeling so good after all the previous traps, so will it be worth opening this chest if your life is on the line?
  
-The details of the second problem will be given after you finish the first one, as it gives out hints about the solution of problem 1 :)+Construct a Baysian Network to answer these questions and discuss what you would do.
/var/www/cadia.ru.is/wiki/data/attic/public/t-622-arti-11-1/lab_7_materials.1300182795.txt.gz · Last modified: 2024/04/29 13:32 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki