This preview shows page 1-2 out of 7 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 7 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 7 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 7 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Artificial Intelligence: Representation and Problem Solving15-381, Fall 2009Homework 4DUE: Wednesday, October 28th, 2009, 3:00 P.M.REMINDER: Due at the beginning of the class on the day it is due.[Maximum points: 100]Handin instructions• Bring the typeset or handwritten answers to the rest of the questions to class. AnswersMUST be legible for credit. Make sure that both teammates’ names are on the handin.• Late homework is due by 3:00 P.M. on the day they are due. Please bring late homeworksto GHC 7027 (slide it under the door if Heather Carney is not there).Guidelines• You can work in a group of two people. This group does not need to be the same group asfor the other homeworks. You only need to turn in one writeup per group, but you need toinclude the andrew ID’s of the group members.• If you have any questions about this assignment, contact the instructors at [email protected] 1: Independence (15 points)Answer each part of each question with 1-2 sentences. These can be a bit tricky, so be careful! Itis a good idea to check your answers with numerical examples.1.Figure 1.1(a) Is A independent of B?(b) is A conditionally independent of B given C?2.Figure 1.2(a) Is A independent of B?(b) is A conditionally independent of B given C?3.Figure 1.3(a) Is A independent of B?(b) is A conditionally independent of B given C?24.Figure 1.4(a) Is A independent of B?(b) is A conditionally independent of B given C?5.Figure 1.5(a) Is A independent of B?(b) Is A conditionally independent of B given C?(c) Is A conditionally independent of B given D?3Problem 2: Practice with Bayes Nets (20 points)Part 1: A strange Bayes net (10 points)a. In one or two sentences, describe what is strange about this Bayes net.b. In a short paragraph, state whether or not this Bayes net is a valid representation andexplain your answer.c. Redraw this Bayes net in order to fix the issue you described in part aPart 2: Pokerface (10 points)Given the following clues, draw the simplest (fewest edges) Bayes net that relates A,B,C,D,E, andF.Let P(A) be the probability you are good at poker.Let P(B) be the probability you are dealt good cards.Let P(C) be the probability you are good at bluffing.Let P(D) be the probability you have the best hand.Let P(E) be the probability the other player folds.Let P(F) be the probability you win.A and C are independent.D and E are independent.4Problem 3: Calculations (25 points)For each of the following parts, you must show all your work for credit. Please give each answerwith 3 significant digitsGiven this Bayes net, calculate each of the following:a. P(B, D) (5 points)b. P(B, D | C) (5 points)c. P(A | C) (5 points)d. P(C, F | D) (5 points)e. P(F | ¬A, C) (5 points)5Problem 4: JavaBayes (25 points)Download JavaBayes from www.cs.cmu.edu/~javabayesRun JavaBayes by going into the Classes directory and typing java JavaBayesLoad an example by going to File→Open, and then choosing an example from the Examplesdirectory.For this problem load the car-starts problem from the Examples/CarStarts directory. Pleaseexpress answers with 4 significant digitsPart 1: Warm up (6 points)a. What is the probability EngineCranks cranks? (Hint: use the Query button)b. What is the CPT (conditional probability table) for Lights? (Hint: use the Edit Functionbutton)c. What is the probability BatteryPower is Good given that the Radio is Dead? (Hint: usethe Observe button to observe that the radio is dead, and then use the Query button)Part 2: Charge (8 points)a. What is the probability the Alternator is OK?b. What is the probability the Alternator is OK given that Charge is Low?c. What is the probability the Alternator is OK given that there is a Leak?d. What is the probability the Alternator is OK given that Charge is Low and there is a Leak?Part 3: A bit trickier (11 points)a. What is the probability that Charge is Good, given that EngineCranks is NoCrank?b. What is the probability that Lights is NoLight, given that EngineCranks is NoCrank?c. What is the probability that Charge is Good and that Lights is NoLight, given thatEngineCranks is NoCrank?6Problem 5: Decision Trees (15 points)Use the following (fictional) dataset for this problem. It is the records of 12 hypothetical patients,with attributes Sex, age Over 60, Diabetic, high Pulse rate, abnormal EKG; and classificationHasArrhythmia.Patient Sex Over60 Diabetic Pulse EKG HasArrhythmia1 M + + - - -2 M - - + + +3 M - + + - -4 M + - - + +5 M + + + - +6 M - + + - +7 F - - + - -8 F + + + + +9 F - + - + +10 F + - - - -11 F + + - - -12 F + - + + +a. Calculate the conditional entropy, H(HasArrhythmia|Sex = F emale).b. Under the attribute selection measureGain2(S,A)Cost(A), what would be the first split in the tree?Assume that Cost(Sex) = Cost(Over60) = 1, Cost(Diabetic) = 3, Cost(HighP ulse) = 2,Cost(AbnormalEKG) = 5.c. Suppose that, on a different set of patients, we knew their exact ages. Ages of positiveexamples are: {40, 60, 62, 64, 70, 74, 75, 82} and negative examples are: {33, 35, 42, 45,49, 52, 58, 59, 80}. Suppose that all other attributes in the data set are poor predictors, sowe want to split the tree at Age = k by dividing the continuously-valued data points intotwo groups, Age ≥ k and Age < k. What division might we choose, based on


View Full Document

CMU CS 15381 - Homework

Documents in this Course
Planning

Planning

19 pages

Planning

Planning

19 pages

Lecture

Lecture

42 pages

Lecture

Lecture

27 pages

Lecture

Lecture

19 pages

FOL

FOL

41 pages

lecture

lecture

34 pages

Exam

Exam

7 pages

Lecture

Lecture

22 pages

Handout

Handout

11 pages

Midterm

Midterm

14 pages

lecture

lecture

83 pages

Handouts

Handouts

38 pages

mdp

mdp

37 pages

HW2

HW2

7 pages

nn

nn

25 pages

lecture

lecture

13 pages

Handout

Handout

5 pages

Lecture

Lecture

27 pages

Lecture

Lecture

62 pages

Lecture

Lecture

5 pages

Load more
Download Homework
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Homework and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Homework 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?