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 linear regression model applied to a dataset in which each data-point is described by two features. The first feature is always
. The
data-point's feature-label pair is represented as
. Let
be the optimal weight vector that minimizes the sum of squared errors. Consider two scenarios:
:
, for each data-point
.
:
, for each data-point
.
Which of the following is true?
Which of the following is true?
Solution
In Ridge Regression, the optimal weight vector is given by
. The regularization parameter
is determined using 5-fold cross-validation. The following table summarizes the average Training Error and Validation Error (Mean Squared Error) obtained for various values of
:

Based on the cross-validation results provided, what is the most appropriate choice for
?
Based on the cross-validation results provided, what is the most appropriate choice for
Solution
Consider a training dataset
where all input points
are distinct. Which of the following models is
to achieve a training error of zero?
Solution
Consider the following classification models and their geometric properties:

Select the correct many-to-one matching:
Select the correct many-to-one matching:
Solution
Consider a training dataset for a classification problem with four data-points. Red circles represent data-points with label
and green squares represent data-points with label
. A test-point is located at
. Dotted circles centered at
with radii
and
are drawn for your convenience.

KNN with Euclidean distance and
is the classifier. Now, a new training data-point with label
is added somewhere inside the outermost circle of radius
such that it leaves the predicted label of the test data-point unchanged. Let
be the set of all points that could be the potential location of this new training data-point. Find the area of the region corresponding to
.
: We use KNN with
for both datasets.
KNN with Euclidean distance and
Solution
A dataset is said to be
if we can find a linear classifier that achieves zero error for that dataset. Select all linearly separable datasets. The red circles represent data-points
with label
while the green squares represent data-points with label
. The sizes of the squares and circles are blown up for clarity; the data-point sits at the center of the square/circle.
: The options are independent of each other. We are not looking for a single classifier that will work for multiple options.

with label
Solution
A researcher is modeling a dataset using linear regression of the form
. They are considering two different probabilistic assumptions for the independent and identically distributed (i.i.d.) noise term
:
- Assumption A:The noise follows a Gaussian distribution,
.
- Assumption B:The noise follows a Laplace distribution,
.
The training dataset is known to contain several extreme outliers resulting from sensor malfunctions. Which of the following statements correctly describes the behavior of the Maximum Likelihood Estimation (MLE) for the parameter vector
?
- Assumption A:The noise follows a Gaussian distribution,
- Assumption B:The noise follows a Laplace distribution,
The training dataset is known to contain several extreme outliers resulting from sensor malfunctions. Which of the following statements correctly describes the behavior of the Maximum Likelihood Estimation (MLE) for the parameter vector
Solution
Comprehension Passage
Consider a node in a decision tree that has 5 data-points. The
data-point is represented by a feature-label pair
, where
{
,
}.

Consider the split
at the parent node resulting in left and right child nodes. The left child node has all data points for which
is true. Entropy is used to determine the purity of the nodes.Recall that the formula for the entropy of a node is:

where
is the fraction of positive data-points in the node. Use at least three digits after the
decimal point in all intermediate calculations.
Based on the above data, answer the given subquestions.
Consider the split
where
decimal point in all intermediate calculations.
Based on the above data, answer the given subquestions.
Inscript
Find the entropy of the parent node. Enter your answer correct to two decimal places.
Find the entropy of the parent node. Enter your answer correct to two decimal places.
Solution
Comprehension Passage
Consider a node in a decision tree that has 5 data-points. The
data-point is represented by a feature-label pair
, where
{
,
}.

Consider the split
at the parent node resulting in left and right child nodes. The left child node has all data points for which
is true. Entropy is used to determine the purity of the nodes.Recall that the formula for the entropy of a node is:

where
is the fraction of positive data-points in the node. Use at least three digits after the
decimal point in all intermediate calculations.
Based on the above data, answer the given subquestions.
Consider the split
where
decimal point in all intermediate calculations.
Based on the above data, answer the given subquestions.
Inscript
Find the entropy of the right child. Enter your answer correct to two decimal places.
Find the entropy of the right child. Enter your answer correct to two decimal places.
Solution
Comprehension Passage
Consider a node in a decision tree that has 5 data-points. The
data-point is represented by a feature-label pair
, where
{
,
}.

Consider the split
at the parent node resulting in left and right child nodes. The left child node has all data points for which
is true. Entropy is used to determine the purity of the nodes.Recall that the formula for the entropy of a node is:

where
is the fraction of positive data-points in the node. Use at least three digits after the
decimal point in all intermediate calculations.
Based on the above data, answer the given subquestions.
Consider the split
where
decimal point in all intermediate calculations.
Based on the above data, answer the given subquestions.
Inscript
Find the information gain. Enter your answer correct to two decimal places.
Find the information gain. Enter your answer correct to two decimal places.
Solution
Comprehension Passage
You are provided with a training set of 5 observations, each consisting of four binary features
and a binary target label
.

.
Based on the above data, answer the given subquestions.
.
Based on the above data, answer the given subquestions.
Inscript
Using the Naive Bayes assumption and the data provided, calculate the joint probability
for a new test instance
.
Enter your answer correct to two decimal places.
Using the Naive Bayes assumption and the data provided, calculate the joint probability
Enter your answer correct to two decimal places.
Solution
Comprehension Passage
You are provided with a training set of 5 observations, each consisting of four binary features
and a binary target label
.

.
Based on the above data, answer the given subquestions.
.
Based on the above data, answer the given subquestions.
Inscript
To address zero-probability estimates using Laplace smoothing, the dataset is augmented with
synthetic observations. Specifically, add the following two samples to the original table:
1. One sample in which all features ( (X1,X2,X3,X4) ) take the value 1 and the class label isY= 1.
2. One sample in which all features ( (X1,X2,X3,X4) ) take the value 1 and the class label isY= 0.
Based on this new augmented dataset of 7 samples, calculate the updated conditional probability
.
To address zero-probability estimates using Laplace smoothing, the dataset is augmented with
synthetic observations. Specifically, add the following two samples to the original table:
1. One sample in which all features ( (X1,X2,X3,X4) ) take the value 1 and the class label isY= 1.
2. One sample in which all features ( (X1,X2,X3,X4) ) take the value 1 and the class label isY= 0.
Based on this new augmented dataset of 7 samples, calculate the updated conditional probability
Solution
Comprehension Passage
You are provided with a training set of 5 observations, each consisting of four binary features
and a binary target label
.

.
Based on the above data, answer the given subquestions.
.
Based on the above data, answer the given subquestions.
For the Naive Bayes model described in the main data with
binary features and a binary class label, how many independent parameters are required to fully specify the model? Answer for the original dataset with 5 training examples.
Solution
Let the linear regression model's solution be written as
, where
. Let
be a valid kernel function. What will be the prediction for an unseen data point
?
Solution
Inscript
Perform a 3-NN regressor for the following dataset:

where,
is a feature vector and
is the label. What will be the predicted value for the test data point
? ___________
Enter the answer correct to one decimal place.
Perform a 3-NN regressor for the following dataset:
where,
Enter the answer correct to one decimal place.
Solution
Shape
Thickness [ / ]
3
All colors