






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!







Final Exam: 10:05am-12:05pm, December 19, 2011 Room 168 Noland
CLOSED BOOK (two sheets of notes and a calculator allowed)
Write your answers on these pages and show your work. If you feel that a question is not fully specified, state any assumptions that you need to make in order to solve the problem. You may use the backs of these sheets for scratch work.
Write your name on this page and initial all other pages of this exam. Make sure your exam contains eight problems on ten pages.
Name ________________________________________________________________
Student ID ________________________________________________________________
Problem Score Max Score___
1 ______ 10
2 ______ 15
3 ______ 20
4 ______ 15
5 ______ 15
6 ______ 10
7 ______ 6
8 ______ 9
Consider the training set below.
Ex # A B C D Output 1 True True False True True 2 True True True True False 3 False False True False True 4 False True False True False 5 True True False False True 6 True False True True False
Assume you wish to use the K -nearest neighbors algorithm on this dataset and set aside the last two examples as a tuning set.
Would you prefer K =1 or K =3? K = __________ Justify your answer below.
a) In the general population, 5 in a 100,000 people have the dreaded Senioritis disease. Fortunately, there is a test ( test4it) for this disease that is 99.9% accurate. That is, if one has the disease, 999 times out of 1000 test4it will turn out positive; if one does not have the disease, 1 time out of 1000 the test will turn out positive.
You take test4it and the results come back true. Use Bayesian reasoning to calculate the probability that you actually have Senioritis. That is, compute:
_Prob(haveSenioritis = true | test4it = true) = ______________________________
Be sure to show your work below. It is fine if your answer is an arithmetic expression that contains only numbers and *, /, +, and/or -. It is not necessary to plug the numbers into a calculator and produce a single number as the answer.
b) Consider the first five examples of Question 1’s training set again (copied below), but this time use Naïve Bayes and do not create a tuning set.
Ex # A B C D Output 1 True True False True True 2 True True True True False 3 False False True False True 4 False True False True False 5 True True False False True
Calculate the ratio below, showing your work below it and putting your (numeric) answer on the line to the right of the equal sign.
Prob(Output = True | A = False, B = False, C = False, D = False) ______________________________________________________ = ___________
Prob(Output = False | A = False, B = False, C = False, D = False)
explain how it is different from Naïve Bayes. You only need to create the Conditional Probability Table (CPT) for one node, but do use the data in the table in Part b.
a) Is the following wff valid , satisfiable , or unsatisfiable? Justify your answer formally.
(P Q) (P ¬ Q)
b) Put these wff’s in clausal form; show your work below and put your answers on the right.
c) We wish to use search to find an interpretation that satisfies all the clauses below. Show how this set of clauses can be simplified before starting the search. Justify your simplification(s).
(P ¬ Q ¬ R ¬W)
a) What is the most-general unifier (mgu), if any, of these two wff’s? ___________________
P(?x, ?y, ?y) P(?y, f(1,?x), ?z)
b) Given the following background knowledge:
Show: z r(z) by filling out the table below, using as many lines as needed.
Number WFF Justification
Describe each of the following AI concepts and briefly explain its most significant aspect. (Write your answers in the space below the AI concept.)
Tree Pruning description:
significance:
Multiple Restarts description:
significance:
Uniform Cost description:
significance:
Have a good vacation!