Module 2 Quiz - Correct
Module 2 Quiz - Correct
d Summer CSC 7333 for Jianhua Chen / Module 2: Linear Regression and Logistic Regression / Module 2 Quiz
Question 1
Correct 5.00 points out of 5.00
The objective function for linear regression measures the mean squared errors between predicted y
value and the desired target y value, and thus should be minimized.
Select one:
A. True
B. False
Question 2
Correct 10.00 points out of 10.00
Select ALL statements below that are true for linear regression:
E. The output of a linear regression model should always be in the interval [0, 1].
Question 3
Correct 10.00 points out of 10.00
When doing gradient descent to learn the best to minimize loss in linear regression, which of the
following is the correct formula for the update of j? Here > 0 is the learning rate.
Select one:
A. ∂J
θj ← θj + η ∗
∂θj
B. ∂J
θj ← θj − η ∗
∂θj
C. ∂J
θj ← θj +
∂θj
D. θj ← (1−η)∗θj
https://lsuonline.moodle.lsu.edu/mod/quiz/review.php?attempt=422272&cmid=264526 1/4
7/13/22, 11:13 PM Module 2 Quiz: Attempt review
Question 4
Correct 5.00 points out of 5.00
In the training data for logistic regression, the desired target variable y value is continuous-valued.
Select one:
A. True
B. False
Question 5
Correct 10.00 points out of 10.00
Select ALL statements below that are true for logistic regression:
Question 6
Correct 10.00 points out of 10.00
Select ALL scenarios below such that regularization would help avoid overfitting when doing gradient
descent for linear (or logistic) regression:
Question 7
Correct 5.00 points out of 5.00
When we scale/normalize the features for regression, we would scale/normalize ALL features,
including the dummy input variable x0 = 1.
Select one:
A. True
B. False
https://lsuonline.moodle.lsu.edu/mod/quiz/review.php?attempt=422272&cmid=264526 2/4
7/13/22, 11:13 PM Module 2 Quiz: Attempt review
Question 8
Correct 5.00 points out of 5.00
When applying regularization for logistic regression, regularization is applied to ALL parameters
j , including the parameter 0
Select one:
A. True
B. False
Question 9
Correct 10.00 points out of 10.00
You are running gradient descent (with learning rate = 0.1) for linear regression with mean square
error as the loss function. You have tested the loss function implementation and are pretty sure that
the loss function is implemented correctly. You plot the loss function curve for the first 30 epochs and
found that the loss is increasing with the number of epochs.
Select one:
A. The gradient descent procedure is working fine, nothing wrong here.
B. The learning rate is too small and should be increased.
C. The learning rate is probably too high and should be reduced.
Question 10
Correct 5.00 points out of 5.00
When applying regularization for linear (or logistic) regression, the value for the parameter λ needs to
be selected. If λ value is set too big, what can happen?
Select one:
A. It can cause the resulting model h to overfit the training data
B. It would make gradient descent converge faster
C. It would cause the resulting model h to underfit – i.e., the model performs poorly on both the training and testing data
D. It would not cause any problem
https://lsuonline.moodle.lsu.edu/mod/quiz/review.php?attempt=422272&cmid=264526 3/4
7/13/22, 11:13 PM Module 2 Quiz: Attempt review
Question 11
Correct 5.00 points out of 5.00
When we have multiple input variables or using polynomial features in linear (or logistic) regression, it
is beneficial to scale/normalize the features, so that gradient descent would run well.
Select one:
A. True
B. False
Jump to...
https://lsuonline.moodle.lsu.edu/mod/quiz/review.php?attempt=422272&cmid=264526 4/4