DOC PREVIEW
CMU CS 10701 - Homework

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

Save
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

Unformatted text preview:

10701 15781 Machine Learning Spring 2006 Homework 4 Due Wednesday April 5 beginning of the class Please refer your questions to TAs 1 20 points Learning Theory Andreas 1 You have learned that the VC dimension is a measure of the size of continuous hypothesis spaces For discrete hypothesis spaces the bounds measure this size using log2 H In the case of a finite hypothesis space H show that V C H log2 H Hint if you are lucky what is the minimum number of hypothesis that you need to shatter k points 2 Consider the space H of arbitrary triangles in the plane i e each hypothesis c H is determined by three points x1 x2 x3 R2 which are the corners of the triangle these corners can coincide or be all on one line i e the triangles can be degenerate All points within the convex hull of x1 x2 x3 are labeled positive everything outside is labeled negative What is the VC dimension of this hypothesis class Prove your claim by showing tight upper and lower bounds on the VC dimension 3 In this question we will see why the VC dimension of a hypothesis space is a notion of worst case complexity for learning arbitrary concepts More precisely we have a learner with arbitrary learning algorithm and a space H of hypotheses h assigning labels to every instance X i e h X We will assume consistency i e the target function target concept c X is contained in the hypothesis space H The learner selects training examples xi X and the teacher provides its label c xi The learner continues asking queries until it has determined exactly which one of the hypotheses in H is the target concept c Show that in the worst case i e if an adversary chooses c H based on the learner s queries so far and tries to maximize the number of queries the learner needs to make the learner needs at least VC H queries to identify the target concept More formally define MinQueries c H to be the minimum number of queries by the learning algorithm necessary to guarantee that the target concept c H can be learned exactly We are interested in the worst case number of queries WorstQueries H where WorstQueries H max MinQueries c H c H Show that VC H WorstQueries H Hint Consider the largest subset S X of instances X which can be shattered by H and show that in the worst case the learner will be forced to query each instance x S separately 1 Figure 1 Bayes net for explaining away question 4 Now in the same setting as part 3 consider that a friend instead of an adversary chooses the target concept c H and the friend wishes to minimize the number of learning queries Is it possible in general that fewer queries than VC H suffice to exactly identify the target concept More formally define BestQueries H min MinQueries c H c H Does it still hold that BestQueries H VC H for any class of hypotheses H Justify your answer 2 10 points Explaining Away Anton The Flu Allergy Sinus Bayes network has been upgraded to handle bird flu Fig 1 Each variable can be either true T or false F Here are the conditional probability tables P F lu T 0 4 P A T 0 3 P S T F lu F A F 0 1 P S T F lu F A T 0 5 P S T F lu T A F 0 6 P S T F lu T A T 0 9 1 Calculate P F lu T S T and P F lu T S T A T show your calculations not only the answers You will see that P F lu T S T P F lu T P F lu T S T A T P F lu T S T so the extra evidence about allergy explains away flu as a possible reason of the sinus inflammation 2 Show that explaining away can also work in the opposite direction Construct a CPT for P S F lu A such that P F lu T S T A T P F lu T S T P F lu T Do not change priors P F lu and P S Show the new CPT and calculations for P F lu T S T A T and P F lu T S T 2 a b Figure 2 Bayes nets for question 3 3 15 points BN Representation Anton In this question you will see that the same distribution can be represented by Bayes networks with different structures You are given the BN from Fig 2 a Each variable can be either true T or false F Conditional probability tables CPTs are P A T P B T A T 3 10 17 P B T A F 25 8 25 16 P C T A T B F 21 17 1 1 P C T A F B T P C T A F B F 17 2 P C T A T B T 1 Show that this probability distribution can be represented using a Bayes network with only 2 edges shown in Figure 2 b What are the corresponding CPTs Show your calculations of joint distributions over A B and C for the old and new networks 2 Prove that this probability distribution cannot be represented using a Bayes net with less than 2 edges Hint Think of the independence assumptions 4 15 points Inference Jure Here is a secret plan Don t tell anyone First I will assassinate the Grand Duke Next while posing as a member of the aristocracy I will get close to the King When the moment is right he will die The military will be eating out of my hand and the clergy will not dare to move against me Then with the aid of powerful but expendable friends the conquest of the world can begin But before your friendly TA can proceed with it he must graduate To asses the situation his first step obviously was to build a graphical model as shown on figure 3 The variables being 3 The Force Knowledge Graduate Free Food Money Power World Domination Figure 3 World Domination network Graduate G Free Food FF The Force TF Knowledge K Money M Power R and World Domination WD All these variables are binary valued T F The conditional probability tables are P G T T F T F F T 0 9 P G T T F T F F F 0 5 P G T T F F F F T 0 7 P G T T F F F F F 0 3 P F F T T F T 0 8 P F F T T F F 0 6 P T F T 0 1 P K T G T 0 7 P K T G F 0 6 P R T M T 0 7 P R T M F 0 1 P M T G T 0 6 P …


View Full Document

CMU CS 10701 - Homework

Documents in this Course
lecture

lecture

12 pages

lecture

lecture

17 pages

HMMs

HMMs

40 pages

lecture

lecture

15 pages

lecture

lecture

20 pages

Notes

Notes

10 pages

Notes

Notes

15 pages

Lecture

Lecture

22 pages

Lecture

Lecture

13 pages

Lecture

Lecture

24 pages

Lecture9

Lecture9

38 pages

lecture

lecture

26 pages

lecture

lecture

13 pages

Lecture

Lecture

5 pages

lecture

lecture

18 pages

lecture

lecture

22 pages

Boosting

Boosting

11 pages

lecture

lecture

16 pages

lecture

lecture

20 pages

Lecture

Lecture

20 pages

Lecture

Lecture

39 pages

Lecture

Lecture

14 pages

Lecture

Lecture

18 pages

Lecture

Lecture

13 pages

Exam

Exam

10 pages

Lecture

Lecture

27 pages

Lecture

Lecture

15 pages

Lecture

Lecture

24 pages

Lecture

Lecture

16 pages

Lecture

Lecture

23 pages

Lecture6

Lecture6

28 pages

Notes

Notes

34 pages

lecture

lecture

15 pages

Midterm

Midterm

11 pages

lecture

lecture

11 pages

lecture

lecture

23 pages

Boosting

Boosting

35 pages

Lecture

Lecture

49 pages

Lecture

Lecture

22 pages

Lecture

Lecture

16 pages

Lecture

Lecture

18 pages

Lecture

Lecture

35 pages

lecture

lecture

22 pages

lecture

lecture

24 pages

Midterm

Midterm

17 pages

exam

exam

15 pages

Lecture12

Lecture12

32 pages

lecture

lecture

19 pages

Lecture

Lecture

32 pages

boosting

boosting

11 pages

pca-mdps

pca-mdps

56 pages

bns

bns

45 pages

mdps

mdps

42 pages

svms

svms

10 pages

Notes

Notes

12 pages

lecture

lecture

42 pages

lecture

lecture

29 pages

lecture

lecture

15 pages

Lecture

Lecture

12 pages

Lecture

Lecture

24 pages

Lecture

Lecture

22 pages

Midterm

Midterm

5 pages

mdps-rl

mdps-rl

26 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 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?