CSE458 Bayesian Networks
Assignment 1, 2006
www.csse.monash.edu.au/courseware/cse458/Ass1.html
Due date: Monday 15th May, 12noon
This assignment is worth 30% of your final mark for this subject. I
expect each student to spend no more than 10 hrs completing this assignment,
though be warned that it is easy to spend more time playing around with
your networks. The work you submit should be done on your own.
Bayesian Network Software
This assignment involves using the Netica (http://www.norsys.com) Bayesian
network package to develop models for uncertain reasoning.
This package can be downloaded and installed from the Internet. Note
that we have a Monash Educational Site License for Netica. When you
first download and run a copy of Netica, you will be asked for a
license password to run it in more than Demo mode. (Demo mode does not
allow you to save files of more than 15 nodes). The password is
available from the lecturer.
Note: All questions in the assignment sections below
that require an answer, should be answered in a single separate
README file.
PART A: Fred's LISP dilemma (10 marks)
Fred is debugging a LISP program. He just typed an expression to
the LISP interpreter and now it will not respond to any further
typing. He can't see the visual prompt that usually indicates the
interpreter is waiting for further input. As far as Fred knows, there
are only two situations that could cause the LISP interpreter to
stop running: (1) there are problems with the computer hardware; (2)
there is a bug in Fred's code. Fred is also running an editor in
which he is writing and editing his LISP code; if the hardware is
functioning properly, then the text editor should still be
running. And if the editor is running, the editor's cursor should be
flashing. Additional information is that the hardware is pretty
reliable, and is OK about 99% of the time, whereas Fred's LISP code
is often buggy, say 40\% of the time}
- Construct a Belief Network to represent and
draw inferences about Fred's dilemma.
-
First decide what your domain variables are; these will be your network
nodes. Hint: 5 or 6 Boolean variables should be sufficient.
-
Then decide what the causal relationships are between the domain variables and
add directed arcs in the network from cause to effect.
-
Finally, you have to add the conditional probabilities for nodes that have
parents, and the prior probabilities for nodes without parents. Use the
information about the hardware reliability and how often Fred's code is
buggy. Other probabilities haven't been given to you explicitly; choose
values that seem reasonable and explain why in your documentation
(in READMe file).
-
Show the belief of each variable before adding any evidence, i.e., about
the LISP visual prompt not being displayed
(Save in A1). Which nodes in your network are
d-separated when there is no evidence added?
-
Add the evidence about the LISP visual prompt not being displayed. After
doing belief updating on the network, what is Fred's belief that he has
a bug in his code?
(Save in A2)
- Suppose that Fred checks the screen and the editor's cursor is still
flashing. What effect does this have on his belief that the LISP interpreter
is misbehaving because of a bug in his code?
(Save in A3)
Explain the change in terms of diagnostic and predictive reasoning.
- With these two pieces of evidence in your network, which
pairs of nodes are d-separated?
PART B: Model your own problem (10 marks)
Think of your own problem involving reasoning with evidence and uncertainty.
-
Write down an English description of the problem (in README file),
then model it using a Bayesian Network. Your network should have between
8 and 15 nodes, and it should be multiply connected (i.e. not a tree or
a polytree).
-
Show the beliefs for each node in the network before any evidence is added.
(Save in B1)
-
Which nodes are d-separated with no evidence added?
-
Which nodes in your network would be considered evidence (or observation)
nodes? Which might be considered the query nodes? (Obviously this
depends on the domain and how you might use the network).
-
For one of the possible query nodes, use Netica's sensitivity analysis
function to determine which would be the most informative observation
to make next. Cut and paste the Netica output information into
your README file, before explaining your answer.
-
Show how the beliefs change in a form of diagnostic reasoning when evidence
about at least one of the domain
variables is added (Save in B2).
Which nodes are d-separated with this evidence added?
-
Show how the beliefs change in a form of causal reasoning when
evidence about at least one of the domain variables is added (Save in
B3).
-
Show how the beliefs change through "explaining away" when evidence
particular combinations of evidence are added. (Save in B4).
-
Show how the beliefs change when you change the priors of a node
without parents (rather than adding evidence). (Save in
B5)
-
What is the complexity of the join-tree for this network?
PART C: Modelling decision making (10 marks)
For one of the problems represented in either Part A or Part B, extend
the problem to be a decision problem. This means that you must decide
on the possible actions to be presented in the decision node, and
decide what the utility node should be a function of.
-
Describe the extended problem and the new nodes, particularly
the utility values, in the README file.
-
Show the decision outcome (including the expected utilities) for at
least 2 different evidence cases. Save networks (showing
probabilities and expected utility for the decision node) in files
C1 and C2.
-
Show the decision outcome (including the expected utilities) for the
same two evidence cases with a different utility function. cases.
Save networks (showing probabilities and expected utility for the
decision node) in files C3 and C4.
Submission
Please put your network files and your README file in a directory
called CSE4548-Ass1-LoginId. The README file should
also include your name and login Id. Submission can be via CD-ROM,
floppy or email (tarred and gzipped).
Late Submission
Late submissions will be accepted but subject to a late penalty.