Docsity

Machine Learning Sample Midterm, based on clicker questions, Exercises of Algorithms and Programming

Toggle sidebar
bg1
UNIVERSITY of PENNSYLVANIA
CIS 520: Machine Learning
Sample Midterm, based on clicker questions
Exam policy: This exam allows one one-page, two-sided cheat sheet; No
other materials.
Time: 80 minutes. Be sure to write your name and Penn student ID
(the 8 bigger digits on your ID card) on the scantron form and fill in the
associated bubbles in pencil.
If you think a question is ambiguous, mark what you think is the best answer.
As always, we will consider written regrade requests if your interpretation of
a question differed from what we intended. We wil l 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.
these are the clicker questions from class, which are typical of the
midterm you will get
1
pf3
pf4
pf5

Partial preview of the text

Download Machine Learning Sample Midterm, based on clicker questions and more Exercises Algorithms and Programming in PDF only on Docsity!

UNIVERSITY of PENNSYLVANIA

CIS 520: Machine Learning

Sample Midterm, based on clicker questions

Exam policy: This exam allows one one-page, two-sided cheat sheet; No other materials.

Time: 80 minutes. Be sure to write your name and Penn student ID (the 8 bigger digits on your ID card) on the scantron form and fill in the associated bubbles in pencil.

If you think a question is ambiguous, mark what you think is the best answer. 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.

these are the clicker questions from class, which are typical of the midterm you will get

  1. [0 points] This is version A of the exam. Please fill in the “bubble” for that letter. ‘
  2. [2 points] If an event is certain, the entropy is

(a) 0 (b) between 0 and 1/ (c) 1/ (d) between 1/2 and 1 (e) 1

  1. [2 points] If two events are equally likely, the entropy is

(a) 0 (b) between 0 and 1/ (c) 1/ (d) between 1/2 and 1 (e) 1

  1. [2 points] Linear regression is

(a) Parametric (b) Non-parametric

  1. [2 points] K-NN is

(a) Parametric (b) Non-parametric

  1. [2 points] When, if ever does E[X + Y ] = E[X] + E[Y ]

(a) All the time? (b) Only when X and Y are independent? (c) It can fail even if X and Y are independent?

  1. [2 points] 1-nearest neighbors is a consistent estimation algorithm.

(a) True (b) False

(a) bias (b) variance (c) bias + variance

  1. [2 points] Ridge regression is an MAP estimator that minimizes

(a) bias (b) variance (c) bias + variance

  1. [2 points] Minimizing the first term in |y − w.x|^22 + λ|w|^22 , reduces

(a) bias (b) variance (c) neither

  1. [2 points] Minimizing the second term in |y − w.x|^22 + λ|w|^22 , which can be viewed as the amount that the test error is expected to be bigger than the training error reduces (a) bias (b) variance (c) neither
  2. [2 points] Which norm most heavily shrinks large weights?

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

  1. [2 points] Which norm, when used as a penalty for linear regression, most strongly encourages weights to be set to zero? (a) L 0 (b) L 1 (c) L 2
  2. [2 points] Which norm, when used as a penalty for linear regression, is scale invariant? (a) L 0

(b) L 1 (c) L 2

  1. [2 points] Which norm, when used as a penalty for linear regression, is called “LASSO” (a) L 0 (b) L 1 (c) L 2
  2. [2 points] Which norm, when used as a penalty for linear regression, does not lead to convex optimization problems? (a) L 0 (b) L 1 (c) L 2
  3. [2 points] Ridge regression (Tikhonov regularization) minimizes Err + λ|w|^22 Is Err here (a) ∑ i(yi − yˆi)^2 (b) (1/n) ∑ i(yi − yˆi)^2 (c) sqrt((1/n) ∑ i(yi − yˆi)^2 ) (d) sqrt(∑ i(yi − yˆi)^2 )
  4. [2 points] Elastic net regularization minimizes Err + λ 1 |w| 1 + λ 2 |w|^22

(a) True (b) False

  1. [2 points] Will Err+λ 1 |w| 1 +λ 2 |w|^22 sometimes zero out some features?

(a) yes (b) no

  1. [2 points] AIC, BIC and RIC Minimize Err/ 2 σ + λ|w| 0 Is this error

(a) ∑ i(yi − yˆi)^2 (b) (1/n) ∑ i(yi − yˆi)^2 (c) sqrt((1/n) ∑ i(yi − yˆi)^2 )

(e) L 0 with RIC

  1. [2 points] Which estimator is consistent?

(a) AIC (b) BIC (c) RIC (d) none of them (e) all of the above

  1. [2 points] Does LOOCV systematically test error

(a) Overestimate (b) Underestimate (c) sometimes overestimate and somtimes underestimate