








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!









You have 180 minutes. The exam is open-book, open-notes, no electronics other than calculators. 100 points total. Don’t panic!
Mark your answers ON THE EXAM ITSELF. Write your name, SID, login, and section number at the top of each page.
For true/false questions, CIRCLE True OR False.
If you are not sure of your answer you may wish to provide a brief explanation. All short answer sections can be successfully answered in a few sentences at most.
For official use only
(a) True/False: All state space search problems are also MDPs. (b) True/False: The variable elimination algorithm can require time exponential in the size of a Bayes’ net. (c) True/False: Observing an additional node in a Bayes’ net can only increase the number of variable pairs which are conditionally independent. (d) True/False: There is a distribution over three variables which can be represented by any three node Bayes’ net graph topology. (e) True/False: The largest factor created by the variable elimination algorithm is no bigger than the largest initial factor. (f) True/False: The starting position for chess has value either 1 (white wins), -1 (black wins), or 0 (draw). (g) True/False: A rational agent can strictly prefer a lottery between two outcomes over either individual outcome. (h) True/False: Q-learning is only guaranteed to converge to the optimal q-values if the underlying MDP is deterministic. (i) True/False: A rational agent will never gamble if the expected monetary value of a game is negative.
Consider the following generic search problem formulation with finitely many states:
States: there are d + 2 states: {ss, sg} ∪ {s 1 ,... , sd} Initial state: ss Successor function: Succ(s) generates at most b successors Goal test: sg is the only goal state Step cost: each step has a cost of 1
(a) (2 pts) Suppose an optimal solution has cost n. If the goal is reachable, what is the upper bound on n?
(b) (2 pts) Suppose we must solve this search problem using BFS, but with limited memory. Specifically, assume we can only store k states during search. Give a bound on n for which the search will fit in the available memory.
(c) (2 pts) Would any other search procedure allow problems with substantially deeper solutions to be solved? Either argue why not, or give a method along with an improved bound on n.
(a) (1 pt) Write out an expression for P (s 1 ,... sn, o 1 ,... on) in terms of the local transition, emission, and initial probabilities.
(b) (5 pts) Let (o 1 ,... on) be a known sequence of observations of length n. Pose the problem of finding the maximum likelihood sequence as a state space search problem in which the states are prefixes of hidden sequences. Provide the initial state, successor function, goal test, and step cost. Hint: Recall that log ab = log a + log b
States: Sequence prefixes (s 1 ,... sk)
Initial state:
Successor function:
Goal test:
Step cost:
(b) (2 pts) What is the branching factor of the search tree?
(c) (2 pts) What is the maximum depth of the search tree?
(d) (4 pts) Provide a non-trivial admissible heuristic for this search problem. Explain why your heuristic is admissible. Overly loose bounds will not receive full credit.
(e) (2 pts) Describe a qualitative scenario in which A∗^ search would be more efficient than the Viterbi algorithm from class. Make sure your answer relates specifically to the heuristic function you gave in part (d), i.e. do not simply state that A∗^ will be better if the heuristic is very good.
(a) (3 pts) Draw a (small) game tree in which the root node has a larger value if expectimax search is used than if minimax is used, or argue why it is not possible.
(b) (3 pts) Draw a (small) game tree in which the root node has a larger value if minimax search is used than if expectimax is used, or argue why it is not possible.
(c) (2 pts) Under what assumptions about player 2 should player 1 use minimax search rather than expec- timax search to select a move?
(d) (2 pts) Under what assumptions about player 2 should player 1 use expectimax search rather than minimax search?
(e) (4 pts) Imagine that player 1 wishes to act optimally (rationally), and player 1 knows that player 2 also intends to act optimally. However, player 1 also knows that player 2 (mistakenly) believes that player 1 is moving uniformly at random rather than optimally. Explain how player 1 should use this knowledge to select a move. Your answer should be a precise algorithm involving a game tree search, and should include a sketch of an appropriate game tree with player 1’s move at the root. Be clear what type of nodes are at each ply and whose turn each ply represents.
(e) (2 pts) For one of the conditional independence assertions above, briefly explain how you might test its correctness from a set of observations.
(f ) (6 pts) “No, no, no,” the chef replies, “People tip because the food is Tasty (influenced by salt and pepper), but comments are more complicated. Customers say Delicious or Bland in part based on whether they like the food, but mostly based on how Polite they are.” Draw a new Bayes’ net appropriate to this scenario, which includes variables for Tasty and Polite, but which has as few arcs as possible. You do not need to specify the CPTs.
(g) (4 pts) Given P (P epper = T rue) = P (Salt = T rue) = 0.5, the CPT below and the Bayes’ net you just constructed for part (e), can you give P (P epper = T rue, Salt = F alse|T asty = F alse)? If so, compute it. If not, explain why not.
P epper Salt P (T asty = T rue|pepper, salt) True True 0. True False 0. False True 0. False False 0.
(h) (1 pt) What is the (marginal) probability of the food being T asty?
(i) (3 pts) How might the chef alter her seasoning habits to increase P (T asty) without using any more salt or pepper overall? What would P (T asty) be after this change? Would this change alter the Bayes’ net you drew for (e)? If so, how? If not, why not?
(d) (4 pts) Given initial q-value estimates of zero, show the result of Q-learning with learning rate α = 0. 5 after two epsiodes: [s 2 , s 3 , ground] and [s 2 , s 3 , s 4 , s 5 , ground] where the agent always moves right. You need only write down the non-zero entries. For the purposes of Q-learning updates, terminal states should be treated as having a single action die which leads to future rewards of zero. Hint: q-values of terminal states which have been visited should not be zero.
sground, die s 1 , die s 2 , left s 2 , right s 3 , left s 3 , right s 4 , left s 4 , right Initial q-values 0 0 0 0 0 0 0 0 After first episode After second episode
s 5 , left s 5 , right s 6 , left s 6 , right s 7 , left s 7 , right s 8 , die Initial q-values 0 0 0 0 0 0 0 After first episode After second episode
(e) (3 pts) We can develop learning updates that involve two actions instead of one. Which of the following are true of the utility U π^ (s) of a state s under policy π, given that U π(s) = R(s) +
s′^ T^ (s, π(s), s ′)γU π(s′)?
(i) U π^ (s) = R(s) +
s′^ T^ (s, π(s), s
s′′^ T^ (s ′, π(s), s′′)γ (^2) U π (^) (s′′)
(ii) U π^ (s) = R(s) +
s′^ T^ (s, π(s), s ′) [γR(s′) + ∑ s′′^ T^ (s ′, π(s), s′′)γ (^2) U π (^) (s′′)]
(iii) U π^ (s) = R(s) +
s′^ T^ (s, π(s), s
′) [γU π(s′) + ∑ s′′^ T^ (s
′, π(s), s′′)γ (^2) U π (^) (s′′)]
(iv) U π^ (s) =
s′^ T^ (s, π(s), s
′) [γR(s′) + U π (^) (s′) + ∑ s′′^ T^ (s
′, π(s), s′′)γ (^2) U π (^) (s′′)]
(v) U π^ (s) =
s′^ T^ (s, π(s), s
′) [R(s) + 1 2 γU^
π(s′) + 1 2 (γR(s
s′′^ T^ (s
′, π(s), s′′)γ (^2) U π (^) (s′′))]
(f ) (2 pts) Write a two-step-look-ahead value iteration update that involves U (s) and U (s′′), where s′′^ is the state two time steps later. Why would this update not be used in practice?
(g) (2 pts) Write a two-step-look-ahead TD-learning update that involves U (s) and U (s′′) for the observed state-action-state-action-state sequence s, a, s′, a′, s′′.
(a) Name three specific techniques for resisting overfitting in classifers.
(b) Write a Bellman equation expressing Qπ(s, a) in terms of U π^ (s′) (and other MDP quantities).
(c) Write an equation which expresses that X and Y are conditionally independent given Z.
(d) Give an example of a search algorithm and a search problem where the algorithm is not complete (you may simply describe a qualitative property of the search problem, such as “a single goal state” rather than stating a concrete problem, or you may draw a small search space).
(e) Why might arc consistency require that you process each arc multiple times?
(f) What does the size of a hypothesis class have to do with generalization and overfitting?
(g) In reinforcement learning, why can it be useful to sometimes act in a way which is believed to be subop- timal?
(h) What is the Chinese room argument meant to argue against?
End of Exam