Docsity

Artificial Intelligence - Homework IV Solutions | CS 440, Assignments of Computer Science

Toggle sidebar
bg1
CS440: Introduction to AI
Homework 4
Due: Thursday, November 13th, 2008
Your answers must be concise and clear. Explain sufficiently that we can
easily determine what you understand. We will give more points for a brief
interesting discussion with no answer than for a bluffing answer.
1. A long time ago, on a planet far far away, a small technologically ad-
vanced nation depends on an automatic system for their national defense
against an enemy nation. If the enemy nation launches a missile attack,
the system will detect the attack with high probability. Once the attack
is detected, the system will try to launch the missile interceptor missile
(MIM), sound the alarm, and automatically schedule to launch their own
attacking missile in return. If the MIM fails to intercept the incoming
missile, there may be casualties. If the alarm is sounded, the Minister of
Defense will likely be notified. The Minister of Defense has the power to
overrule the automatic missile response and try to cancel launch. If the
return missile is launched, there may be casualties in the enemy nation.
Note that even though not explicitly stated, any part of the whole system
may or may not work as described at any time.
The following Boolean variables are used in this problem set:
MA Whether the enemy launched a missile attack.
AD Whether the system detected a missile attack.
MIM Whether the missile interceptor missile is launched.
CWhether there are any casualties in either nation.
AWhether the alarm is sounded.
MOD Whether the Minister of Defense is notified.
RM Whether a return missile is launched.
In this problem you are allowed to draw the Bayesian networks by hand.
(You still have to type the answers for the rest of the homework.)
(a) Use the ordering RM,AD,MIM,C,MA,A,MOD to build a
Bayesian network.
1
pf3
pf4
pf5

Partial preview of the text

Download Artificial Intelligence - Homework IV Solutions | CS 440 and more Assignments Computer Science in PDF only on Docsity!

CS440: Introduction to AI

Homework 4

Due: Thursday, November 13th, 2008

Your answers must be concise and clear. Explain sufficiently that we can

easily determine what you understand. We will give more points for a brief

interesting discussion with no answer than for a bluffing answer.

  1. A long time ago, on a planet far far away, a small technologically ad- vanced nation depends on an automatic system for their national defense against an enemy nation. If the enemy nation launches a missile attack, the system will detect the attack with high probability. Once the attack is detected, the system will try to launch the missile interceptor missile (MIM), sound the alarm, and automatically schedule to launch their own attacking missile in return. If the MIM fails to intercept the incoming missile, there may be casualties. If the alarm is sounded, the Minister of Defense will likely be notified. The Minister of Defense has the power to overrule the automatic missile response and try to cancel launch. If the return missile is launched, there may be casualties in the enemy nation.

Note that even though not explicitly stated, any part of the whole system may or may not work as described at any time.

The following Boolean variables are used in this problem set:

MA Whether the enemy launched a missile attack.

AD Whether the system detected a missile attack.

MIM Whether the missile interceptor missile is launched.

C Whether there are any casualties in either nation.

A Whether the alarm is sounded.

MOD Whether the Minister of Defense is notified.

RM Whether a return missile is launched.

In this problem you are allowed to draw the Bayesian networks by hand. (You still have to type the answers for the rest of the homework.)

(a) Use the ordering RM, AD, MIM, C, MA, A, MOD to build a Bayesian network.

¬ø

RM

¬ø

AD

¬ø

MIM

¬ø

C

¬ø

MA

¬ø

A

¬ø

MOD

A

A

A

A

AK

XX

XX

XyX

XX

XX

XX

XX

XX

XX

XX

XyXX

¢Æ¢

¢Æ

(b) How many parameters are needed to represent the conditional prob-

abilities in 1a? 1 + 2 + 2 + 8 + 4 + 2 + 4 = 23.

(c) The network in 1a may not be optimal. Give a Bayesian network so that the minimal number of parameters are needed to represent the conditional probabilities.

¬ø

RM

¬ø

AD

¬ø

MIM

¬ø

C

¬ø

MA

¬ø

A

¬ø

MOD

XX

XX

XyX

¢Æ¢

A

A

A

A

AU

XX

XX

XX

XX

XX

XX

XX

XyXX

μ¥

A

P (A)

A P (B|A)

T 0.

F 0.

μ¥

B

μ¥

C

P (C)

B P (D|B)

T 0.

F 0.

μ¥

D

μ¥

E

@R

B C P (E|B, C)

T T 0.

T F 0.

F T 0.

F F 0.

compute the following probabilities and show your work. Round your

results to three digits after the decimal point if necessary.

(a)

P (d|a) =

B

P (d, B|a)

B

P (d|B, a)P (B|a)

B

P (d|B)P (B|a)

= 0. 9 × 0 .7 + 0. 4 × 0. 3

(b)

P (¬d ∧ e|¬c)

=

B

P (¬d, e, B|¬c)

B

P (¬d, e|B, ¬c)P (B|¬c)

B

P (¬d|B, ¬c)P (e|B, ¬c)

A

P (B, A|¬c)

B

P (¬d|B)P (e|B, ¬c)

A

P (B|A, ¬c)P (A|¬c)

B

P (¬d|B)P (e|B, ¬c)

A

P (B|A)P (A)

= 0. 1 × 0. 2 × (0. 7 × 0 .6 + 0. 9 × 0 .4) + 0. 6 × 0. 8 × (0. 3 × 0 .6 + 0. 1 × 0 .4)

(c)

P (e|a)

=

B,C

P (e, B, C|a)

B,C

P (e|B, C, a)P (B, C|a)

B,C

P (e|B, C)P (B|a)P (C|a)

B,C

P (e|B, C)P (B|a)P (C)

= 0. 6 × 0. 7 × 0 .1 + 0. 2 × 0. 7 × 0 .9 + 0. 4 × 0. 3 × 0 .1 + 0. 8 × 0. 3 × 0. 9

(d)

P (c|b ∧ ¬e) =

P (c, ¬e|b) P (¬e|b)

P (¬e|b, c)P (c|b) ∑ C P^ (¬e, C|b)

=

P (¬e|b, c)P (c) ∑ C P^ (¬e|b, C)P^ (C|b)

=

P (¬e|b, c)P (c) ∑ C P^ (¬e|b, C)P^ (C)

=

0. 4 × 0. 1

0. 4 × 0 .1 + 0. 8 × 0. 9

(e)

P (a ∧ c|e)

P (a, c, e) P (e)

P (e|a, c)P (a, c) ∑ B,C P^ (e, B, C)

=

∑^ B^ P^ (e, B|a, c))^ P^ (a)P^ (c) B,C P^ (e|B, C)P^ (B, C)

=

∑^ B^ P^ (e|B, a, c)P^ (B|a, c))^ P^ (a)P^ (c) B,C P^ (e|B, C)^

A P^ (A, B, C)