MCQ Question
MCQ Question
MCQ Question
Introduction to
Machine Learning
Assignment- Week 2
TYPE OF QUESTION: MCQ
Number of questions: 8 Total mark: 8 X 2 = 16
MCQ Question
QUESTION 1:
A. True
B. False
Detailed Solution : With a small training dataset, it’s easier to find a hypothesis to fit the training
data exactly,i.e., overfit.
______________________________________________________________________________
QUESTION 2:
Which of the following criteria is typically used for optimizing in linear regression.
A. Maximize the number of points it touches.
B. Minimize the number of points it touches.
C. Minimize the squared distance from the points.
D. Minimize the maximum distance of a point from a line.
Detailed Solution : Loss function of linear regression is squared distance from the points.
______________________________________________________________________________
QUESTION 3:
A. Bias is the true error of the best classifier in the concept class
B. Bias is high if the concept class cannot model the true data distribution well
C. High bias leads to overfitting
D. For high bias both train and test error will be high
______________________________________________________________________________
QUESTION 4:
The following dataset will be used to learn a decision tree for predicting whether a person
is happy (H) or sad (S), based on the color of shoes, whether they wear a wig and the
number of ears they have.
G Y 2 S
G N 2 S
G N 2 S
B N 2 S
B N 2 H
R N 2 H
R N 2 H
R N 2 H
R Y 3 H
Which attribute should you choose as the root of the decision tree?
A. Color
B. Wig
C. Number of ears
D. Any one of the previous three attributes
Correct Answer : A. Color
Detailed Solution : We have to compute Information Gain w.r.t. each of these 4 attributes and the
attribute with highest information gain will be chosen as the root of the decision tree.
______________________________________________________________________________
QUESTION 5:
Consider applying linear regression with the hypothesis as ℎθ(𝑥) = θ0 + θ1𝑥.The training data is
given in the table.
X Y
6 7
5 4
10 9
3 4
𝑚
2
The cost function is 𝐽(θ) =
1
2𝑚 ( )
∑ (ℎθ 𝑥𝑖 − 𝑦𝑖)
𝑖=1
What is the value of 𝐽(θ)when θ = (2, 1) ?
A. 0
B. 1
C. 2
D. 2.5
Correct Answer: D. 2.5
QUESTION 6:
In a binary classification problem, out of 64 data points 29 belong to class I and 35 belong to
class II. What is the entropy of the data set?
A. 0.97
B. 0
C. 1
D. 0.99
______________________________________________________________________________
QUESTION 7:
*****END*****