Artificial Intelligence Exercises For Tutorial 3 On Probabilistic Inference and Bayesian Networks November 2018
Artificial Intelligence Exercises For Tutorial 3 On Probabilistic Inference and Bayesian Networks November 2018
November 2018.
Introduction
The following multiple choice questions are examples of typical questions one can expect
on the AI exam. The questions on the AI exam are also multiple choice, but for this
tutorial one has to explain the answers given. Moreover at the end one can find some open
questions.
After the tutorial the answers to the MC will be available on BB.
Exercises
1. Consider the following case of a car accident that involved a taxi.
All taxis in town are blue or green. It is known that under dim lighting con-
ditions discrimination between blue and green is 70% reliable; which means that
P (W = b|C = b) as well as P (W = g|C = g) are 0.70, where C is the two valued
variable with values g and b indicating the color of the taxi, C = b means ”the taxi
is blue” and W is the two valued variable indicating the declaration of the witness,
W = b means ”the witness says the taxi is blue”.
a: A witness declares that the taxi was blue. Given the declaration of our witness
what is the probability that the taxi is indeed blue?
b: Suppose two witnesses independently declare that the taxi was blue. Draw the
Bayesian Network for this case and what is the probability that the taxi was
indeed blue?
c: Now assume that a third independent witness appears on the scene and declares
that the taxi was green. What is the now probability that the taxi was indeed
blue?
2. The Prosecution argument. The counsel for the prosecution argues as follows:
Ladies and gentlemen of the jury, the probability of the observed match be-
tween the sample at the scene of the crime and that of the suspect having
1
arisen by innocent means is 1 in 10 million. This is an entirely negligible
probability, and we must therefore conclude that with a probability over-
whelmingly close to 1 that the suspect is guilty. You have no alternative
but to convict.
This argument is known as the Prosecutor’s Fallacy. Explain the error in the counsel’s
reasoning.
3. “Most car accidents are caused by people that do have a driver’s licence.” What is
suggested by this statement? What are the relevant conditional probabilities?
4. Make exercise 14.1 from the book of Russel and Norvig Artificial Intelligence (3rd
edition).
5. Make exercise 14.4 from the book of Russel and Norvig Artificial Intelligence (3rd
edition).
6. Given the Sprinkler network shown in Figure 1. What is the best approximation
of the value of P (S = T rue|W = T rue) (the probability that the Sprinkler was on
given that the grass is Wet)? Use the enumeration method. Indicate where you use
the “conditional independency” relation represented by the BN.
(a) 0.2781
(b) 0.6471
(c) 0.1945
(d) 0.4298
7. Given the Sprinkler network shown in Figure 1. What is the best approximation of
the value of P (S = T rue|W = T rue, R = T rue) (the probability that the Sprinkler
was on given that the grass is Wet and that it was Raining)?
(a) 0.2781
(b) 0.6471
(c) 0.1945
(d) 0.4298
8. In the Bayesian Network below with three boolean variables the probabilities for
P and M are: P (M = true) = 0, 1 and P (L = true) = 0.7 and the conditional
probabilities for variable V are as shown in the table.
2
Figure 1: The Sprinkler Bayesian network
L M L M P (V = true | L, M )
S true true 0,9
S
true false 0,5
w
S
S /
false true 0,3
V false false 0,05
(a) 0.72
(b) 0.54
(c) 0.46
3
C
S
S
w
S
/
S
D E
(d) 0.28
(a) 0.50
(b) 0.32
(c) 0.18
(d) 0.90
10. Consider again the Bayesian Network in Figure 2 with the probability distributions
as given in the exercise above. One of the following statements is true. Which one?
11. In the Bayesian Network below with three boolean variables the probabilities for
P and M are: P (M = true) = 0, 2 and P (L = true) = 0.7 and the conditional
probabilities for variable V are as shown in the table.
4
L M L M P (V = true | L, M )
S true true 0,9
S
true false 0,5
w
S
S /
false true 0,3
V false false 0,05
(a) 0.3
(b) 0.7
(c) 0.9
(d) 0.1
12. The Bayesian Network structure given in Figure 3 models the dependencies between
three properties related to my design. IsMale is true when the user is male, IsYoung
is true when the user is young, LikesDesign is true when the user likes my design.
Which of the following statements is true? Give a proof or counter example.