






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







Write your answers on these pages and show your work. If you feel that a question is not fully specified, state any assumptions you need to make in order to solve the problem. You may use the backs of these sheets for scratch work.
Write your name on this and all other pages of this exam. Make sure your exam contains seven problems on ten pages.
Name ________________________________________________
Student ID ________________________________________________
Problem Score Max Score
Total _____ 100
PART A. Define the following two variables about people:
F = had the flu S = had a flu shot
Assume we know from medical studies that:
P(F) = 0. P(S) = 0. P(F | S) = 0.
Given you find out that someone had the flu, what’s the probability they had a flu shot? Show and explain your calculations.
PART B. Robby the robot has just reported danger. We need to estimate the probability this is a ‘‘false positive’’ (i.e., a false alarm that can be ignored). Here is what we know:
i) If its batteries are low on power, the probability that Robby will (falsely) report danger on a safe day is 0.75 and the probability it will (correctly) report danger on a dangerous day is also 0.75.
ii) If its batteries are fine, Robby’s reports are 100% accurate.
iii) We haven’t charged Robby’s batteries for awhile, so the probability they are low on power is 0.25.
iv) The probability that any arbitrary day is safe is 0.9.
Consider the following training examples, where four Boolean-valued examples ( X (^) 1 through X (^) 4 ) are used to predict a Boolean-valued output ( Y (^) 1 ):
0 1 1 0 ⇒ 1 1 0 1 0 ⇒ 0 1 0 0 1 ⇒ 1 0 1 1 1 ⇒ 0
A) Which feature would be chosen as the root node of a decision tree, if information gain was used as the scoring function? Show your calculations. (Note you need only select the root node, and need not create the complete tree.)
B) Assume you are given the following new (unlabelled) example:
1 1 1 1
Explain how a case-based reasoning system might predict the output for this new example. Show the calculations it would go through.
C) Draw a perceptron for this task, initializing all the weights and biases to -0.1.
Show how the weights and biases in this perceptron would be changed after processing the first training example above. Use a learning rate of 0.5. Be sure to show the learning rule you used; don’t just show the new weights.
D) Assume now that the weights in your perceptron are all ‘frozen’ at the value 1, and the only free (ie, adjustable) parameter is the bias (threshold) of the output unit. Draw and briefly explain the weight space for this case (ie, the x-axis is the setting of the bias).
The search algorithm A* does not terminate until a goal node is removed from the OPEN list. That goal state may have been in the OPEN list for thousands of node expansions, which seems inefficient.
Why not terminate A* as soon as a goal node is added to OPEN? Justify your answer with a simple, concrete example that shows doing so would violate an important property of A*. Be sure to explain your answer. (Don’t use more than five nodes in your answer.)
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
Assume the ‘fuzzy’ truth value of some statement A is ftv(A). In fuzzy logic, what is the fuzzy truth value of:
A ∨ ¬ A
Assume the standard truth value of some statement B is tv(B). In standard logic, what is the truth value of:
B ∨ ¬ B
Be sure to simplify your above answers as much as possible. hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
Express the following sentence in first-order predicate calculus:
For every book that Alice owns, Bob owns a book by the same author.
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
Assume that when read, the following two sentences are always pronounced identically by all speakers, producing the acoustic signal AS :
(i) Recognize speech.
(ii) Wreck a nice beach.
No other sentences produce acoustic signal AS when read.
Imagine we estimated the following probabilities about the word usage:
P(‘recognize’ is current word) = 10 −^4 P(‘wreck’ is current word) = 5 x 10 −^3
P(‘speech’ is current word | ‘recognize’ was previous word) = 10 −^4 P(‘a’ is current word | ‘wreck’ was previous word) = 0. P(‘nice’ is current word | ‘a’ was previous word) = 5 x 10 −^3 P(‘beach’ is current word | ‘nice’ was previous word) = 2 x 10 −^3
Given that we heard acoustic signal AS , which of the above two sentences was most probably the one read? Show and explain your calculations (use scientific notation for your calculations). [As shorthand, you may write P(‘A’ is current word | ‘B’ was previous word) as P(A | B) .]
(The end - have a good summer!)