Question 1 | MCQ
THIS IS QUESTION PAPER FOR THE SUBJECT"DIPLOMA LEVEL : MACHINE LEARNING
TECHNIQUES (COMPUTER BASED EXAM)"
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
TECHNIQUES (COMPUTER BASED EXAM)"
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
Solution
Consider a dataset with two data-points for a binary classification problem with features in
.
is a data-point from the positive class while
is from the negative class. We now consider three linear classifiers: perceptron, logistic regression and SVM.


If
is the weight vector with the largest margin, which of the following is true?
If
Solution
Consider a dataset in
defined as
.
Which of the following weight vectors
can correctly separate the two classes using a linear decision boundary? (Select all that apply.)
Which of the following weight vectors
Solution
Consider a dataset consisting of
datapoints
, where each
. Let the four features be denoted by
and
.
Suppose the features satisfy the following linear relationship:

That is, one of the features is an exact linear combination of others. A linear regression model is trained to predict a target variable
using these features. Consider the following statements:
Which of the following is (are) true.
Suppose the features satisfy the following linear relationship:
That is, one of the features is an exact linear combination of others. A linear regression model is trained to predict a target variable
Which of the following is (are) true.
Solution
Consider a binary classification dataset in
that is linearly separable. Suppose there exist two distinct weight vectors
and
that both correctly classify all training points with a positive margin.
The Perceptron algorithm is applied to this dataset.
Which of the following statements are correct? (Select all that apply.)
The Perceptron algorithm is applied to this dataset.
Which of the following statements are correct? (Select all that apply.)
Solution
Inscript
Consider a hard-margin SVM trained on a linearly separable dataset. The optimal Lagrange multipliers are
.
The training dataset
is given by

Given the test point
, determine the predicted label
. Enter the answer as either
or 
The prediction for a test point
is given by

Consider a hard-margin SVM trained on a linearly separable dataset. The optimal Lagrange multipliers are
The training dataset
Given the test point
Solution
Inscript
Consider a binary classification problem using logistic regression. The model predicts the probability of class
as:

A threshold of
is used for classification. The predicted class label is given by:

The values of
for the following datapoints are:

How many datapoints will be classified as class
?
Consider a binary classification problem using logistic regression. The model predicts the probability of class
A threshold of
The values of
How many datapoints will be classified as class
Solution
Inscript
A coin is flipped 100 times, and it lands on heads 60 times. You use a Beta(10, 40) prior to estimate the true probability of heads. Given these observations, calculate the posterior mean of the probability of heads. Enter the answer correct to three decimal places.

- Pdf of Beta distribution is
where
is the Beta function.
- The mean of the Beta distribution is:
.
A coin is flipped 100 times, and it lands on heads 60 times. You use a Beta(10, 40) prior to estimate the true probability of heads. Given these observations, calculate the posterior mean of the probability of heads. Enter the answer correct to three decimal places.
- Pdf of Beta distribution is
- The mean of the Beta distribution is:
Solution
Comprehension Passage
Consider the following soft-margin Support Vector Machine (SVM) classifier. The solid line represents the decision boundary
, and the dotted lines represent the margin boundaries
and
.
Red points correspond to the negative class, and green points correspond to the positive class.

Based on the above data, answer the given subquestions.
Red points correspond to the negative class, and green points correspond to the positive class.
Based on the above data, answer the given subquestions.
Inscript
How many datapoints will incur a penalty (i.e., have non-zero slack variables
)?
How many datapoints will incur a penalty (i.e., have non-zero slack variables
Solution
Comprehension Passage
Consider the following soft-margin Support Vector Machine (SVM) classifier. The solid line represents the decision boundary
, and the dotted lines represent the margin boundaries
and
.
Red points correspond to the negative class, and green points correspond to the positive class.

Based on the above data, answer the given subquestions.
Red points correspond to the negative class, and green points correspond to the positive class.
Based on the above data, answer the given subquestions.
Inscript
How many datapoints will definitely have
in the dual formulation of SVM?
How many datapoints will definitely have
Solution
Comprehension Passage
Consider the given 2D diagram. The datapoints are slightly exaggerated for better visualization. Red points represent the negative class (
) and green points represent the positive class (
). A test point
is shown. Use the K-Nearest Neighbors (KNN) algorithm with
.

Based on the above data, answer the given subquestions.
Based on the above data, answer the given subquestions.
Using Euclidean distance, what is the predicted class of
?
Solution
Comprehension Passage
Consider the given 2D diagram. The datapoints are slightly exaggerated for better visualization. Red points represent the negative class (
) and green points represent the positive class (
). A test point
is shown. Use the K-Nearest Neighbors (KNN) algorithm with
.

Based on the above data, answer the given subquestions.
Based on the above data, answer the given subquestions.
Which of the following best explains the classification of
?
Solution
Consider the two decision trees shown in the figure.

Which of the following statements is correct?
Which of the following statements is correct?
Solution
Which of the following statements is correct?
Solution
Consider the datapoints
with label
and
with label
. A hard margin SVM is applied on this dataset. Which of the following is the decision boundary for the above dataset?
Solution
Consider a dataset
, where each
. Principal Component Analysis (PCA) is applied to this dataset and all the five principal components are retained. Which of the following statements is correct?
Solution
Inscript
Consider a regression problem in which we use a neural network with the following architecture:
- Input layer has
neurons
- Three hidden layers, each with
neurons
- Output layer with one neuron
Find the total number of parameters in the network. Ignore the biases.
Consider a regression problem in which we use a neural network with the following architecture:
- Input layer has
- Three hidden layers, each with
- Output layer with one neuron
Find the total number of parameters in the network. Ignore the biases.
Solution
Shape
Thickness [ / ]
3
All colors