



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!




The following number (percentage) of students scored in the following ranges:
100: 6 (18%) 95-99: 11 (33%) 90-94: 5 (15%) [22 (67%) scored 90 or better] 85-89: 3 (9%) 80-84: 3 (9%) [28 (85%) scored 80 or better] 70-79: 4 (12%) <70 : 1 (3%)
The following number (percentage) of students missed points on these problems:
Problem #4: ANALYSIS OF COMMON ERRORS. Write down an FOPC sentence such that every world in which it is true contains exactly one object.
Remember that every FOPC sentence (wff = well formed formula) separates possible worlds into two sets: (1) the set of worlds in which the wff is true, and (2) the set of worlds in which the wff is false. You were asked to produce a wff that is true in exactly those possible worlds with exactly one object, and false in all possible worlds with two or more objects. (By convention, all possible worlds must contain at least one object.)
(a) One common mistake was to quantify over x and y and treat them as if they were truth values that could be connected by the Boolean connectives, e.g.,
∀x ∀y ( x ∧ y ) ˅ ( ¬x ∧ ¬y ) or ∃y ∀x x ⇒ y or ∀x ∀y ( x ∧ y ) ⇒ ( x = y ) or ∃x ∀y x ∧ [ y ⇒ ( x = y ) ]
or ∀x ∀y x ∧ y ∧ ( x = y ) or ∀x ∀y x ∧ y or ∃!x ( true ⇒ x ) or ∀x ( x ⇒ x )
This is a type error --- any variable bound to a quantifier automatically quantifies over all objects in some possible world. Thus, any variable is equivalent to a term, and may be used only as the argument to a function or predicate. An object does not have a Boolean truth value. Only predicates and complex sentences have truth values.
(b) Another common mistake was to quantify over x and y and treat one of them as if it were a possible world, then write a Contains(x,y) predicate that tries to assert that world x contains object y, e.g.,
∀x ∃y World(x) ∧ Contains(x, y) or ∃x World(x) = True ∧ x! or ∀x ∃y World(x) ∧ Object(y) ⇒ Contains(x, y) or ∀x ∃!y True(x) ⇒ Contains(x, y) or ∃x World(x) ⇒ Round(x)
This is a type error --- x and y quantify over objects in some possible world, but are not themselves possible worlds.
(c) Another common mistake was to introduce some arbitrary predicate, often P(x), and then assert uniqueness in the quantifier using P(x) as the body of the wff, e.g.,
∃!x P(x) or ∃!x American(x) ∧ President(x)
But these wffs simply asserts that there is one unique object in the world that satisfies the predicate P. In particular, it fails to assert that there are no other objects in the world (e.g., there may be many other objects in the world that fail to satisfy the predicate P). The same thing holds when P(x) = American(x) ∧ President(x).
(d) Some students apparently confused the universal and existential quantifiers, e.g.,
∃x ∃y ( x = y )
This would be the correct answer with the universal quantifier. However, as written, it asserts that there exists an object that equals itself, which is true in every world.
(e) Some students inserted explicit Object(x) predicates, e.g.,
∃x Object(x) ∧ ¬∃y Object(y) ∧ Different(x, y) or ∃x ∀y Object(x) ∧ ( y = x ˅ ¬ Object(y)
then the English sentence asserts that it must contain at least one jellybean. So, it is a mistake that the wff can be true in worlds that contain a child and no jellybeans. It may be easiest to see the mistake by converting to CNF: ∀x ∃y [¬Child(x) ˅ JB(y) ] ⇒ Likes(x, y) ∀x ∃y ¬ [¬Child(x) ˅ JB(y) ] ˅ Likes(x, y) ∀x ∃y [Child(x) ∧ ¬JB(y) ] ˅ Likes(x, y) This wff is true in a world in which everything is a child and at least one thing is not a jellybean. It is also true in any world in which everything likes at least one thing. Both these conditions admit worlds in which there is at least one child and no jellybeans.
Another popular wrong answer: C ∀x ∃y Child(x) ∧ JB(y) ∧ Likes(x, y)
This wff asserts that everything is a child (“∀x ... Child(x) ...”).
Another popular wrong answer: G ∃y ∀x JB(y) ⇒ [ Child(x) ∧ Likes(x, y) ]
This wff is true in any world that contains ANY object that is NOT a jellybean, because that one object will make the antecedent always be false (“∃y ... JB(y) ⇒ ...”), and so will make the implication always be true. Yet the English sentence makes an assertion about every child, not worlds that contain an object that is not a jellybean.
9.c. (was 8.c.) “For every jellybean, there is a child that likes that jellybean.” Correct answer was: F ∀y ∃x JB(y) ⇒ [ Child(x) ∧ Likes(x, y) ]
Popular wrong answers included:
D ∃x ∀y Child(x) ∧ [ JB(y) ⇒ Likes(x, y) ]
This wff asserts that there exists a child (“∃x ... Child(x) ...”) and that the child likes every jellybean (“...∀y ... ∧ [ JB(y) ⇒ Likes(x, y) ]”). But this is the answer to 9.d, below. Here, we assert instead something about all jellybeans (“∀y ... JB(y) ⇒ ...”).
Another popular wrong answer: G ∃y ∀x JB(y) ⇒ [ Child(x) ∧ Likes(x, y) ]
This wff is true in any world that contains ANY object that is NOT a jellybean, because that one object will make the antecedent always be false (“∃y ... JB(y) ⇒ ...”), and so will make the implication always be true. Yet the English sentence makes an assertion about jellybeans, not worlds that contain an object that is not a jellybean.
9.d. (was 8.d.) “There is a child that likes every jellybean.” Correct answer was: D ∃x ∀y Child(x) ∧ [ JB(y) ⇒ Likes(x, y) ]
Popular wrong answers included:
C ∀x ∃y Child(x) ∧ JB(y) ∧ Likes(x, y)
This wff asserts that everything is a child (“∀x ... Child(x) ...”).
Another popular wrong answer: F ∀y ∃x JB(y) ⇒ [ Child(x) ∧ Likes(x, y) ]
This wff was the correct answer to 9.c., above. It asserts something about all jellybeans (“∀y ... JB(y) ⇒ ...”). Please compare the two logical forms carefully.
6. (15 pts total, -5 for each error, but not negative) Bayesian Networks. Draw the Bayesian Network corresponding to this factored conditional probability expression. Draw left-to-right, as in Problem 5.
P(A | C) P(B | C, E) P(C | D) P(D | F) P(E | D, F) P(F)
7. (15 pts total, -5 for each error, but not negative) Bayesian Networks. Shown below is the Bayesian network corresponding to the Burglar Alarm problem, P(J | A) P(M | A) P(A | B, E) P(B) P(E).
P(B) .
B E P(A) t t. t f. f t. f f.
A P(J) t. f.
Write down an expression that will evaluate to P( j=T ∧ m=F ∧ a=F ∧ b = F ∧ e = T). Express your answer as a series of numbers (numerical probabilities) separated by multiplication symbols. You do not need to carry out the multiplication to produce a single number (probability). SHOW YOUR WORK.
P( j=T ∧ m=F ∧ a=F ∧ b = F ∧ e = T)
= P( j=T | a=F) * P( m=F | a = F) * P( a=F | b=F ∧ e=T) * P( b=F) * P(e=T)
= .05 * .99 * .71 * .999 *.
8. (15 pts total, 5 pts each) FOPC translation. Write on the left the letter for the best corresponding wff on the right. Use Child(x) for “x is a child,” JB (x) for “x is a JellyBean,” and Likes(x, y) for “x likes y.” The first one is done for you as an example. Note: There are more FOPC than English sentences. 8.a. A Every child likes every jellybean.
8.b. (5 pts) H For every child, there is a jellybean that the child likes.
8.c. (5 pts) F For every jellybean, there is a child that likes that jellybean.
8.d. (5 pts) D There is a child that likes every jellybean
P(E) .
A P(M) t. f.
A ∀x ∀y [ Child(x) ∧ JB(y) ] ⇒ Likes(x, y) B ∃x ∃y [ Child(x) ∧ JB(y) ] ⇒ Likes(x, y) C (^) ∀x ∃y Child(x) ∧ JB(y) ∧ Likes(x, y) D ∃x ∀y Child(x) ∧ [ JB(y) ⇒ Likes(x, y) ] E ∀x ∃y [ Child(x) ⇒ JB(y) ] ⇒ Likes(x, y) F ∀y ∃x JB(y) ⇒ [ Child(x) ∧ Likes(x, y) ] G ∃y ∀x JB(y) ⇒ [ Child(x) ∧ Likes(x, y) ] H (^) ∀x ∃y Child(x) ⇒ [ JB(y) ∧ Likes(x, y) ] I ∃y ∀x [ Child(x) ∧ JB(y) ] ⇒ Likes(x, y) J ∀x ∀y Child(x) ∧ JB(y) ∧ Likes(x, y)
(Alarm)
(Burglary) (Earthquake)
(John calls) (Mary calls)