week1_assignment
week1_assignment
Introduction to
Machine Learning
Assignment- Week 1
TYPE OF QUESTION: MCQ
Number of questions: 10 Total mark: 10 X 2 = 20
MCQ Question
QUESTION 1:
A. Classification
B. Regression
C. Clustering
D. None of the above
Detailed Solution : Classification and Regression are both supervised learning as they need
class labels or target values for training, but Clustering doesn't need target values.
______________________________________________________________________________
QUESTION 2:
As the amount of training data increases
A. Training error usually decreases and generalization error usually increases
B. Training error usually decreases and generalization error usually decreases
C. Training error usually increases and generalization error usually decreases
D. Training error usually increases and generalization error usually increases
Correct Answer: A. Training error usually decreases and generalization error usually
increases
Detailed Solution: When the training data increases, the decision boundary becomes very
complex to fit the data. So, the generalization capability usually reduces with the increase in
training data.
______________________________________________________________________________
QUESTION 3:
Suppose I have 10,000 emails in my mailbox out of which 300 are spams. The spam detection
system detects 150 mails as spams, out of which 50 are actually spams. What is the
precision and recall of my spam detection system ?
Detailed Solution:
𝑇𝑝 50 50
Precision = 𝑇𝑝+𝐹𝑝
= 50+100
= 150
= 33. 33%
𝑇𝑝 50
Recall = 𝑇𝑝+𝐹𝑛
= 50+250
= 16. 66%
______________________________________________________________________________
QUESTION 4:
Detailed Solution : House Price is a continuous real valued variable, so we have to use
regression methods for this task.
______________________________________________________________________________
NPTEL Online Certification Courses Indian
Institute of Technology Kharagpur
QUESTION 5:
Occam’s razor is an example of:
A. Inductive bias
B. Preference bias
______________________________________________________________________________
QUESTION 6:
A feature F1 can take certain value: A, B, C, D, E, F and represents grade of students from a
college. Which of the following statements is true in the following case?
A. Feature F1 is an example of a nominal variable.
B. Feature F1 is an example of ordinal variables.
C. It doesn’t belong to any of the above categories.
D. Both of these
Detailed Solution : Ordinal variables are the variables which have some order in their
categories. For example, grade A should be considered as higher grade than grade B.
______________________________________________________________________________
QUESTION 7:
A. Height of a person
B. Price of petroleum
C. Mother tongue of a person
D. Amount of rainfall in a day
Detailed Solution : Categorical variables represent types of data which may be divided into
groups. All other features are continuous)
______________________________________________________________________________
QUESTION 8:
Correct Answer : A. Finding the shortest path between a pair of nodes in a graph
Detailed Solution : Finding the shortest path is a graph theory based task, whereas other
options are completely suitable for machine learning.
______________________________________________________________________________
QUESTION 9:
Which of the following is correct for reinforcement learning?
Correct Answer : B. The algorithm plans one action at each time step.
Detailed Solution : In reinforcement learning, the agent tries to learn the policy function i.e. the
best action to take at a given state.
______________________________________________________________________________
QUESTION 10:
Detailed Solution : The validation dataset provides an unbiased evaluation of a model fit on the
training dataset while tuning the model's hyperparameters.
______________________________________________________________________________
*******END*******