Docsity

Machine Learning Final, Fall 2014, Schemes and Mind Maps of Artificial Intelligence

Toggle sidebar
bg1
UNIVERSITY of PENNSYLVANIA
CIS 520: Machine Learning
Final, Fall 2014
Exam policy: This exam allows two one-page, two-sided cheat sheets (i.e. 4 sides); No other
materials.
Time: 2 hours. Be sure to write your name and Penn student ID (the 8 bigger digits on your
ID card) on the bubble form and fill in the associated bubbles in pencil. If you are taking this as
a WPE, then enter only your WPE exam number.
If you think a question is ambiguous, mark what you think is the best answer. The questions seek
to test your general understanding; they are not intentionally “trick questions.” As always, we
will consider written regrade requests if your interpretation of a question differed from what we
intended. We will only grade the scantron forms
For the “TRUE or FALSE” questions, note that “TRUE” is (a)and “FALSE” is (b). For the
multiple choice questions, select exactly one answer.
The exam is 9 pages long and has 78 questions.
Name:
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe

Partial preview of the text

Download Machine Learning Final, Fall 2014 and more Schemes and Mind Maps Artificial Intelligence in PDF only on Docsity!

UNIVERSITY of PENNSYLVANIA

CIS 520: Machine Learning

Final, Fall 2014

Exam policy: This exam allows two one-page, two-sided cheat sheets (i.e. 4 sides); No other materials.

Time: 2 hours. Be sure to write your name and Penn student ID (the 8 bigger digits on your

ID card) on the bubble form and fill in the associated bubbles in pencil. If you are taking this as a WPE, then enter only your WPE exam number.

If you think a question is ambiguous, mark what you think is the best answer. The questions seek to test your general understanding; they are not intentionally “trick questions.” As always, we will consider written regrade requests if your interpretation of a question differed from what we intended. We will only grade the scantron forms

For the “TRUE or FALSE” questions, note that “TRUE” is (a) and “FALSE” is (b). For the multiple choice questions, select exactly one answer.

The exam is 9 pages long and has 78 questions.

Name:

  1. [0 points] This is version A of the exam. Please fill in the “bubble” for that letter.
  2. [1 points] True or False? Under the usual assumptions ridge regression is consistent.

F SOLUTION: True

  1. [1 points] True or False? Under the usual assumptions ridge regression is unbiased.

F SOLUTION: False

  1. [1 points] True or False? Stepwise regression finds the global optimum minimizing its loss function (squared error plus the usual L 0 penalty).

F SOLUTION: False

  1. [1 points] True or False? k-means clustering finds the global optimum minimizing its loss function.

F SOLUTION: False

  1. [2 points] When doing linear regression with n = 10, 000 observations and p = 1, 000 , 000 features, if one expects around 500 or 1,000 features to enter the model, the best penalty to use is

(a) AIC penalty (b) BIC penalty (c) RIC penalty (d) This problem is hopeless – you couldn’t possibly find a model that reliably beats just using a constant.

F SOLUTION: C

  1. [2 points] When doing linear regression, if we expect a very small fraction of the features to enter the model, we should use an

(a) L 0 penalty (b) L 1 penalty (c) L 2 penalty

F SOLUTION: A

  1. [1 points] True or False? In general, in machine learning, we prefer to use unbiased algorithms due to their better accuracy.

F SOLUTION: False

  1. [2 points] You estimate a ridge regression model with some data taken from your robot, and find (using cross validation) and optimal ridge penalty λ 1. You then buy a new sensor which has noise with 1/4 the variance (half the standard deviation) as before. Using the same number of observations as before you collect new data, and find a new optimal ridge penalty λ 2. Which of the following will be closest to true?

(a) λ 1 /λ 2 = 1/ (b) λ 1 /λ 2 = 1/ (c) λ 1 /λ 2 = 1 (d) λ 1 /λ 2 = 2 (e) λ 1 /λ 2 = 4

F SOLUTION: E

  1. [1 points] True or False? BIC can be viewed as an MDL method.

F SOLUTION: True

  1. [1 points] True or False? If you expect half of the features to enter a model, and have n  p, BIC is a better penalty to use than RIC.

F SOLUTION: True

  1. [1 points] True or False? The elastic net tends to select fewer features than well-optimized L 0 penalty methods.

F SOLUTION: False

  1. [1 points] True or False? The elastic net generally gives at least as good a model (in terms of test error) as Lasso.

F SOLUTION: True

  1. [1 points] True or False? The appropriate penalty in L 0 -penalized linear regression can be determined by theory, e.g. using an MDL approach.

F SOLUTION: True

  1. [1 points] True or False? Ridge regression is ’scale invariant’ in the sense the that test set prediction accuracy is unchanged if one rescales the features, x.

F SOLUTION: False

  1. [1 points] True or False? The the fact that a coefficient in a penalized linear regression is kept or killed (removed from the model) is generally a good indicator of the importance of the corresponding feature; features that are highly correlated with y will be kept and those with low correlation will be dropped.

F SOLUTION: False

Consider an L 0 penalized linear regression with three different penalties. The resulting models have the following properties:

bits to bits to code residual code the model model 1 400 300 model 2 300 400 model 3 320 350

  1. [1 points] True or False? Method 1 is overfitting.

F SOLUTION: False

  1. [1 points] True or False? Method 2 is overfitting.

F SOLUTION: True

  1. [1 points] True or False? The KL divergence between a “true” distribution (p(A) = 0. 5 , p(B) =
    1. 5 , p(C) = 0) and an approximating distribution (q(A) = 0. 3 , q(B) = 0. 3 q(C) = 0.4) will be infinite.

F SOLUTION: False

  1. [1 points] True or False? Decision trees select features to add based on their expected “in- formation gain”. This has effect that features which take on many possible values tend to be preferentially added, since they tend to have higher information gain.

F SOLUTION: A

  1. [1 points] True or False? If we consider a linear SVM as a kernel SVM, then the kernel function is the inner product between the x’s.

F SOLUTION: True

  1. [1 points] True or False? Radial Basis Functions (RBFs) can be used either to reduce or to increase the effective dimensionality p of a regression problem.

F SOLUTION: True

  1. [1 points] True or False? Any SVM problem can be made linearly separable with the right selection of a kernel function.

F SOLUTION: True

  1. [1 points] True or False? The number of support vectors found by an SVM depends upon the size of the penalty on the slack variables.

F SOLUTION: True

  1. [0 points] True or False? Because SVMs already seek large margin solutions, they do not, in general, require inclusion of a separate regularization penalty. This is badly phrased and was thrown out.

F SOLUTION: False

  1. [1 points] True or False? An SVM with a Gaussian kernel, exp(− ‖x C− y‖), will have a lower expected variance when C = 1 than when C = 10,

F SOLUTION: False

  1. [2 points] In the figure below which points are support vectors? A B and D are in class 1, C and E are in class 2

C

D

B

E

A

x 1

x 2

(a) A, C (b) A, C, D (c) Not enough information was provided to tell.

F SOLUTION: C

  1. [2 points] For the primal problem for non-negative weighted regression is: minw

i(yi^ −^ w T (^) x) 2 s.t. −wj ≤ 0 for j = 1...p The dual problem is to solve (a) maxλ

i(yi^ −^ w T (^) x) (^2) + ∑ j λj^ wj^ s.t.^ λj^ ≥^0 (b) maxλ

i(yi^ −^ w T (^) x) (^2) + λ ∑ j wj^ s.t.^ λ^ ≥^0 (c) maxλ

i(yi^ −^ w T (^) x) (^2) − ∑ j λj^ wj^ s.t.^ λj^ ≥^0 (d) minλ

i(yi^ −^ w T (^) x) (^2) + ∑ j λj^ wj^ s.t.^ λj^ ≥^0 (e) minλ

i(yi^ −^ w T (^) x) (^2) − ∑ j λj^ wj^ s.t.^ λj^ ≤^0

F SOLUTION: C

  1. [1 points] True or False? For the above optimization problem, the constraint corresponding to each weight is binding if and only if the weight is zero.

F SOLUTION: True

  1. [2 points] Which of the following methods cannot be kernelized?

(a) k-NN (b) linear regression (c) perceptrons (d) PCA (e) All of the above methods can be kernelized.

F SOLUTION: C

  1. [1 points] True or False? EM is a search algorithm for finding maximum likelihood (or sometimes MAP) estimates. Thus, it can, in theory, be replaced by other search algorithm that also maximizes the same likelihood function.

F SOLUTION: True

  1. [1 points] True or False? The L 2 reconstruction error from using k-component PCA to approximate a set of observations X, can be characterizaed in in terms of the k largest eigenvalues of X′X.

F SOLUTION: False

  1. [1 points] True or False? A positive definite symmetric real square matrix has only positive eigenvalues.

F SOLUTION: True

  1. [1 points] True or False? For real world data sets, the principle components of a matrix X are preferably found using SVD of X rather than actually finding the eigenvectors of X′X.

F SOLUTION: True

  1. [1 points] True or False? The singular values of X are equal to the eigenvalues of X′X.

F SOLUTION: False

  1. [1 points] True or False? For an N xP matrix, X. (N > P ) the k “largest” right singular vectors will be the same as the loadings of X.

F SOLUTION: True

  1. [1 points] True or False? Principle component regression (PCR) in effect does regularization, and thus offers a partial, if not exact replacement for Ridge regression.

F SOLUTION: True

  1. [1 points] True or False? Principle component regression (PCR), like linear regression, is scale invariant.

F SOLUTION: False

  1. [2 points] The dominant cost of linear regression, when n >> p scales as

(a) np (b) np^2 (c) n^2 p (d) p^3

F SOLUTION: B

  1. [1 points] True or False? Deep neural networks are almost always supervised learning meth- ods.

F SOLUTION: False

  1. [1 points] True or False? Deep neural networks most often use an architecture in which all “nodes” on each layer are connected to all “nodes” on the following layer, but have no connections to other “deeper” layers.

F SOLUTION: False

  1. [1 points] True or False? Deep neural networks currently hold the records for best machine learning performance in problems ranging from speeh and vision to natural language process- ing and brain image modeling (MRI).

F SOLUTION: False

Consider the following confusion matrix

corrent answer True False predicted True 8 2 answer False 12 11

  1. [1 points] For the above “confusion matrix” the precision is

(a) 2/ (b) 8/ (c) 19/ (d) none of the above

F SOLUTION: True

  1. [1 points] True or False? (J⊥K|L)

F SOLUTION: False

  1. [1 points] True or False? (B⊥J|F, G)

F SOLUTION: True

  1. [1 points] True or False? (F ⊥I|G, L)

F SOLUTION: False

  1. [1 points] True or False? G d-separates D and J

F SOLUTION: False

  1. [2 points] What is the minimum number of parameters needed to represent the full joint distribution P (B, C, D, E, F, G, I, J, K, L) in the network, given that all variables are binary? hint: Parameters here refer to the value of each probability. For example, we need 1 parameter for P (X) and 3 parameters for P (X, Y ) if X and Y are binary.

(a) < 20 (b) 20- (c) 31- (d) more than 100

F SOLUTION: B

  1. [1 points] True or False? When building a belief net from a set of observations where A, B are Boolean variables, if P (A = T rue|B = T rue) = P (A = T rue), then we know that there should not be a link from A to B.

F SOLUTION: True

  1. [1 points] True or False? When building a belief net from a set of observations where A, B are Boolean variables, if P (A = T rue|B = T rue) = P (A = T rue), then we know that there should not be a link from B to A.

F SOLUTION: True

  1. [1 points] True or False? The emission matrix in an HMM represents the probability of the state, given an observation.

F SOLUTION: False

For the next question, consider the Bayes Net below with parameter values labeled. This is an instance of an HMM. (Similar to homework 8)

X 1

P (X 1 = a) = 0. 3

X 2

P (X 2 = a|X 1 = a) = 0. 5 P (X 2 = a|X 1 = b) = 0. 2

O 1 O 2

P (Oi = 0|Xi = a) = 0. 3 P (Oi = 0|Xi = b) = 0. 6

  1. [3 points] Suppose you have the observation sequence O 1 = 1, O 2 = 0. What is the prediction of Viterbi Decoding? (Maximize P (X 1 , X 2 | O 1 = 1, O 2 = 0))

(a) X 1 = a, X 2 = a (b) X 1 = a, X 2 = b (c) X 1 = b, X 2 = a (d) X 1 = b, X 2 = b

F SOLUTION: D