

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!


1. (28 pts total, 7 pts each) Probability. 1a. (7 pts) Write down the definition of P(H | D) in terms of P(H), P(D), P(H D), and P(H D).
P(H | D) = P(H D) / P(D)
1b. Write down the expression that results from applying Bayes' Rule to P(H | D).
P(H | D) = P(D | H) P(H) / P(D)
1c. Write down the expression for P(H D) in terms of P(H), P(D), and P(H D).
P(H D) = P(H) + P(D) − P(H D)
1d. Write down the expression for P(H D) in terms of P(H), P(D), and P(H D).
P(H D) = P(H | D) P(D)
2. (42 pts total, 7 pts each) Unifiers and Unification. Write the most general unifier (i.e., the MGU) of the two terms given, or “None” if no unification is possible. Write your answer in the form of a substitution as given in your book, e.g., { x / John, y / Mary, z / Bill }. The first one is done for you as an example.
2a. UNIFY( Knows( John, x ), Knows( John, Jane ) ) { x / Jane }
2b. UNIFY( Knows( John, x ), Knows( y, Jane ) ) { x / Jane, y / John }
2c. UNIFY( Knows( y, x ), Knows( John, Jane ) ) { x / Jane, y / John }
2d. UNIFY( Knows( John, x ), Knows( y, Father (y) ) ) { y / John, x / Father (y) }
2e. UNIFY( Knows( John, F(x) ), Knows( y, F(F(z)) ) ) { y / John, x / F (z) }
2f. UNIFY( Knows( John, F(x) ), Knows( y, G(z) ) ) None
2g. UNIFY( Knows( John, F(x) ), Knows( y, F(G(y)) ) ) { y / John, x / G (y) }
It is OK if you substituted some constants for variables, as long as the final result of all substitutions makes the terms syntactically identical. For example, { y / John, x / Father (John) } is OK for 2.d.
You do not get partial credit for { y / John } because the unification fails and the terms cannot be made identical.
It is OK if you left this as the product of the four numbers, without multiplying them out to get the final answer. as long as they are the correct four numbers.