📗 Enter your ID (the wisc email ID without @wisc.edu) here: and token (announced at the beginning of the exam): and click (or hit the "Enter" key) 1,2,3,4,5,6,7,8,9,10x210
📗 Incorrect ID or token will receive a grade of 0 for the exam.
📗 You can also load from your saved file and click (token will not be loaded).
📗 If the questions are not generated correctly, try refresh the page using the button at the top left corner.
📗 The same ID should generate the same set of questions. Your answers are not saved when you close the browser. You could either copy and paste or load your program outputs into the text boxes for individual questions or print all your outputs to a single text file and load it using the button at the bottom of the page.
📗 LLM use: you are allowed and encouraged to use LLMs to help explain the questions, give suggestions on solving the questions, or write code to perform computations, but you should write the answers and explanations yourself, and you are not allowed to submit anything generated by LLMs that you have not verified and you do not understand (violations is considered academic misconduct).
📗 Please do not refresh the page: your answers will not be saved.
📗 Please report any bugs in Question 10.
# Warning: please enter your ID and token before you start!
📗 Explanation (required): explain the main steps in the text box below or attach PDF or photos on Canvas X2 Assignment [write "see Canvas submission." in this case])
📗 Explanation (required): explain the main steps in the text box below or attach PDF or photos on Canvas X2 Assignment [write "see Canvas submission." in this case])
📗 Explanation (required): explain the main steps in the text box below or attach PDF or photos on Canvas X2 Assignment [write "see Canvas submission." in this case])
📗 Explanation (required): explain the main steps in the text box below or attach PDF or photos on Canvas X2 Assignment [write "see Canvas submission." in this case])
📗 Explanation (required): explain the main steps in the text box below or attach PDF or photos on Canvas X2 Assignment [write "see Canvas submission." in this case])
📗 Explanation (required): explain the main steps in the text box below or attach PDF or photos on Canvas X2 Assignment [write "see Canvas submission." in this case])
📗 Explanation (required): explain the main steps in the text box below or attach PDF or photos on Canvas X2 Assignment [write "see Canvas submission." in this case])
📗 Explanation (required): explain the main steps in the text box below or attach PDF or photos on Canvas X2 Assignment [write "see Canvas submission." in this case])
📗 Explanation (required): explain the main steps in the text box below or attach PDF or photos on Canvas X2 Assignment [write "see Canvas submission." in this case])
📗 [2 points] You performed PCA (Principal Component Analysis) in \(\mathbb{R}^{3}\). If the first principal component is \(u_{1}\) = \(\approx\) and the second principal component is \(u_{2}\) = \(\approx\) . What is the new 2D coordinates (new features created by PCA) for the point \(x\) = ?
📗 In the diagram, the black axes are the original axes, the green axes are the PCA axes, the red vector is \(x\), the red point is the reconstruction \(\hat{x}\) using the PCA axes.
📗 Answer (comma separated vector): .
📗 [4 points] You are given the distance table. Consider the next iteration of hierarchical agglomerative clustering (another name for the hierarchical clustering method we covered in the lectures) using linkage. What will the new values be in the resulting distance table corresponding to the new clusters? If you merge two columns (rows), put the new distances in the column (row) with the smaller index. For example, if you merge columns 2 and 4, the new column 2 should contain the new distances and column 4 should be removed, i.e. the columns and rows should be in the order (1), (2 and 4), (3), (5).
\(d\) =
📗 Answer (matrix with multiple lines, each line is a comma separated vector): .
📗 [3 points] Perform k-means clustering on six points: \(x_{1}\) = , \(x_{2}\) = , \(x_{3}\) = , \(x_{4}\) = , \(x_{5}\) = , \(x_{6}\) = . Initially the cluster centers are at \(c_{1}\) = , \(c_{2}\) = . Run k-means for one iteration (assign the points, update center once and reassign the points once). Break ties in distances by putting the point in the cluster with the smaller index (i.e. favor cluster 1). What is the reduction in total distortion (distortion after first assign step minus the distortion after the second assign step)? Use Euclidean distance and calculate the total distortion by summing the squares of the individual distances to the center.
📗 Note: the red points are the cluster centers and the other points are the training items.
📗 Answer: .
📗 [4 points] Run search algorithm on the following graph, starting from state 0 with the goal state being . Write down the expansion path (in the order of the states expanded). The heuristic function \(h\) is shown as subscripts. Break tie by expanding the state with a smaller index.
📗 In case the diagram is not clear: the weights are (with heuristic values on the diagonal entries): .
📗 Answer (comma separated vector): .
📗 [3 points] Let \(h_{1}\) be an admissible heuristic from a state to the optimal goal, A* search with which ones of the following \(h\) will be admissible?
📗 Choices:
None of the above
📗 [3 points] Which nodes are pruned by alpha-beta pruning? The player moves first.
📗 Select the nodes:
select
📗 Note: please do not select any edges.
📗 [4 points] What is the row player's value in a Nash equilibrium of the following zero-sum normal form game? A (row) is the max player, B (col) is the min player. Use the checkboxes in the table to highlight the best responses: the first checkbox for the row player and the second checkbox for the column player.
A \ B
I
II
III
IV
I
II
III
IV
📗 Answer: .
📗 [4 points] Given the following game payoff table, suppose the row player uses a mixed strategy playing U with probability \(p\), and column player uses a pure strategy. What is the smallest and largest value of \(p\) in a mixed strategy Nash equilibrium?
Row \ Col
L
R
U
D
Note: the following is a diagram of the best responses (make sure you understand what they are and how to draw them). The red curve is the best response for the column player and the blue curve is the best response for the row player.
📗 Answer (comma separated vector): .
📗 [4 points] Consider the following Markov Decision Process. It has two states \(s\), A and B. It has two actions \(a\): move and stay. The state transition is deterministic: "move" moves to the other state, while "stay" stays at the current state. The reward \(r\) is for move (from A and B), for stay (in A and B). Suppose the discount rate is \(\beta\) = .
Find the Q function (Q*, corresponding to the optimal policy) in the format described by the following table. Enter a two by two matrix.
State \ Action
stay
move
A
?
?
B
?
?
📗 Answer (matrix with multiple lines, each line is a comma separated vector): .
📗 [1 points] Please enter any comments including possible mistakes and bugs with the questions or your answers. If you have no comments, please enter "None": do not leave it blank.
📗 Please do not modify the content in the above text field: use the "Grade" button to update.
➩ Required fields: ID and Token.
📗 You could submit multiple times (but please do not submit too often): only the latest submission will be counted.
📗 Please also save the text in the above text box to a file using the button or copy and paste it into a file yourself .
📗 You could load your answers from the text (or txt file) in the text box below using the button . The first two lines should be "##x: 2" and "##id: your id", and the format of the remaining lines should be "##1: your answer to question 1" newline "##2: your answer to question 2", etc. Please make sure that your answers are loaded correctly before submitting them.
📗 Saving and loading may take around 5 to 10 seconds. Please be patient and do not click "Load" multiple times.