Docsity

Vector Machines - Artificial Intelligence - Exam, Exams of Artificial Intelligence

Partial preview of the text

Download Vector Machines - Artificial Intelligence - Exam and more Exams Artificial Intelligence in PDF only on Docsity!

Final Examination

CS 540-2: Introduction to Artificial Intelligence

December 20, 2010

LAST NAME:

FIRST NAME:

Problem Score Max Score

1 ___________ 6

2 ___________ 8

3 ___________ 6

4 ___________ 12

5 ___________ 15

6 ___________ 6

7 ___________ 9

8 ___________ 8

9 ___________ 15

10 ___________ 15

Total ___________ 100

1. [6] Entropy Running from You-Know-Who, Harry enters the CS building on the 1 st^ floor. He flips a fair coin; if it is heads, he hides in room 1325; otherwise he climbs to the 2 nd^ floor. In that case he flips the coin again; if it is heads, he hides in the CSL; otherwise he climbs to the 3 rd^ floor. In that case he flips the coin yet again; if it is heads, he hides in 3331; otherwise he hides in the Men’s room. What is the entropy of Harry’s location? 2. [8] Decision Trees There are 100 parrots. They have either a red beak or a black beak. They can either talk or not. Complete the two cells in the following table so that the mutual information (i.e., information gain ) between “Beak” and “Talk” is 0. Show your work that justifies your answer.

Number of parrots Beak Talk

10 Red Yes

Red No

Black Yes

45 Black No

5. [15] Bayesian Networks Consider the Bayesian network A BC with three Boolean random variables and their CPTs defined by: P ( A ) = 0. P ( B | A , C ) = 0. P ( B | A , Ÿ C ) = 0. P ( B | Ÿ A , C ) = 0. P ( B | Ÿ A , Ÿ C ) = 0. P ( C ) = 0.

a. Compute P (Ÿ A , B , C )

b. Compute P (Ÿ A | Ÿ C )

c. Compute P ( A | B , Ÿ C )

6. [6] Naïve Bayes Which one or more of the following are true statements about the conditional independence properties that are guaranteed true in a Bayesian network that is used to represent a Naïve Bayes classifier in which there are three evidence variables, W, X, and Y, and one classification variable, C.

a. P (C | W, X, Y) = P (C | W) * P (C | X) * P (C | Y) b. P (C | W, X, Y) = ( P (W, X, Y | C) * P (C)) / P (W, X, Y) c. P (W, X, Y | C) = P (W | C) * P (X | C) * P (Y | C) d. P (W, X, Y) = P (W) * P (X) * P (Y) e. P (C | W, X, Y) = P (C | W) * P (W | X) * P (X | Y) f. P (W, X, Y | C) = P (W | C) * P (X | W) * P (Y | X)

7. [9] Speech Recognition Traditional speech recognition can be posed as a probabilistic inference problem: given acoustic signal A , the task is to find a sentence (i.e., sequence of words) W such that W * = argmax W P ( W | A ) = argmax W P ( A | W ) P ( W ) (1)

where P ( A | W ) is the acoustic model and P ( W ) is the language model. In light of the McGurk effect, video signal V of the speaker’s face is also helpful in speech recognition. In one line, write down how you would modify equation (1) to incorporate both the acoustic and video signals for speech recognition. In another line, briefly explain the components in English.

8. [8] Neural Networks Fill in the two missing weights below so that the following 2-layer neural network computes A XOR B. Both A and B take values 0 or 1, and the units are Linear Threshold Units (LTUs).

w = ‐ 10

w = 1

w = 1

w = 1

(^1) w = ‐0.

(^1) w = ‐ 5

(^1) w = ‐0.

A

B

A XOR B

10. [15] Hidden Markov Models You sometimes get colds (C), which make you sneeze (S). You also get allergies (A), which make you sneeze. Sometimes you are well (W), which doesn’t make you sneeze (Q). You decide to model this as an HMM with hidden states C, A, W, and observable states S, Q as follows:

.

S Q

W A C

Start

1 0

0 .

.

.1 .9^ .8^.^

.

.7 (^). .6. .2.

.

a. What is the probability of the sequence W, C, C, W on days 1 to 4?

b. What is the probability that on day 1 you observe Q and on day 2 you observe S?

c. What is the probability that on day 2 you are Well?