Quiz Space

January 2024 term · Machine Learning Techniques · BSCS2007

Machine Learning Techniques Quiz 2: 24 March 2024 (January 2024 term)

The IIT Madras BS Machine Learning Techniques (MLT) Quiz 2 paper sat on 24 Mar 2024, in the January 2024 term: 15 questions for 50 marks in 120 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.

Questions
15
Marks
50
Duration
120 min
Numerical
7
MCQ
5
MSQ
3

Updated

Official paper: IIT M DIPLOMA AN EXAM QDD2 24 Mar 2024 · No negative marking.

Question 1

+3 marksNumerical answer

Based on the above data, answer the given subquestions.

Show answer

Correct answer: 0

Question 2

+2 marksNumerical answer

Based on the above data, answer the given subquestions.

Show answer

Correct answer: 1

Question 3

+3 marksOne correct option

Consider a regression problem where you are tasked with predicting the sale prices of houses based on their square footage. You decide to experiment with two different models:

The training dataset consists of information on 200 houses, and you use the models to make predictions on a test dataset of 50 houses. The Mean Squared Error (MSE) is chosen as the evaluation metric.
Based on the above data, answer the given subquestions.

Considering the specific context of predicting house prices based on square footage, which model is more likely to provide accurate predictions on the training dataset?

  1. A

    Model P

  2. B

    Model Q

  3. C

    Both models are equally likely to provide accurate predictions

  4. D

    It depends on the distribution of house prices in the dataset

Show answer

Correct answer

  • B

    Model Q

Question 4

+3 marksOne or more correct options

Consider a regression problem where you are tasked with predicting the sale prices of houses based on their square footage. You decide to experiment with two different models:

The training dataset consists of information on 200 houses, and you use the models to make predictions on a test dataset of 50 houses. The Mean Squared Error (MSE) is chosen as the evaluation metric.
Based on the above data, answer the given subquestions.

Identify the factors that could influence the model’s performance on the training dataset in this housing price prediction scenario. Select all correct statements:

Select all that apply.

  1. A

    Model P may struggle to capture non-linear relationships present in house price data.

  2. B

    Model Q might be sensitive to outliers in the square footage variable.

  3. C

    The choice between Model P and Model Q depends on the budget constraints of potential homebuyers.

  4. D

    Model Q will always perform well on the test dataset.

Show answer

Correct answers

  • A

    Model P may struggle to capture non-linear relationships present in house price data.

  • B

    Model Q might be sensitive to outliers in the square footage variable.

Question 5

+3 marksNumerical answer

Consider a naive Bayes model is trained on the following data matrix XX of shape (d,n)(d, n) and corresponding label vector yy:

X=[100001010110]y=[1011]TX = \begin{bmatrix} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 1 \\ 0 & 1 & 1 & 0 \end{bmatrix} \quad y = \begin{bmatrix} 1 & 0 & 1 & 1 \end{bmatrix}^T

Assume that p^\hat{p} and p^jyi\hat{p}_j^{y_i} are estimates for P(y=1)P(y = 1) and P(fj=1∣y=yi)P(f_j = 1 | y = y_i), respectively. Here, fi; i=1,2,3f_i;\ i = 1, 2, 3 is the ithi^{th} feature.

These parameters are estimated using MLE.

Based on the above data, answer the given subquestions.

Show answer

Correct answer: 0.325 (accepted within ±0.025)

Question 6

+3 marksNumerical answer

Consider a naive Bayes model is trained on the following data matrix XX of shape (d,n)(d, n) and corresponding label vector yy:

X=[100001010110]y=[1011]TX = \begin{bmatrix} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 1 \\ 0 & 1 & 1 & 0 \end{bmatrix} \quad y = \begin{bmatrix} 1 & 0 & 1 & 1 \end{bmatrix}^T

Assume that p^\hat{p} and p^jyi\hat{p}_j^{y_i} are estimates for P(y=1)P(y = 1) and P(fj=1∣y=yi)P(f_j = 1 | y = y_i), respectively. Here, fi; i=1,2,3f_i;\ i = 1, 2, 3 is the ithi^{th} feature.

These parameters are estimated using MLE.

Based on the above data, answer the given subquestions.

Show answer

Correct answer: 0.325 (accepted within ±0.025)

Question 7

+4 marksNumerical answer

Consider a dataset with the following data points and the target variable:

Sample Noxxyy
138
203
3512
4613

The linear regression model is given by y=w0+w1xy = w_0 + w_1 x. Assume that the Leave-One-Out Cross-Validation technique is applied.

Based on the above data, answer the given subquestions.

Show answer

Correct answer: 1.675 (accepted within ±0.025)

Question 8

+4 marksOne correct option

Consider a dataset with the following data points and the target variable:

Sample Noxxyy
138
203
3512
4613

The linear regression model is given by y=w0+w1xy = w_0 + w_1 x. Assume that the Leave-One-Out Cross-Validation technique is applied.

Based on the above data, answer the given subquestions.

What will be the predicted value for the left-out data point?

  1. A

    12

  2. B

    13

  3. C

    12.3

  4. D

    11.3

  5. E

    None of these

Show answer

Correct answer

  • D

    11.3

Question 9

+3 marksNumerical answer
Show answer

Correct answer: 1

Question 10

+3 marksNumerical answer
Show answer

Correct answer: 19.5 (accepted within ±0.5)

Question 11

+3 marksOne correct option
  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • C

Question 12

+4 marksOne correct option

Given a design matrix X∈Rd×nX \in \mathbb{R}^{d \times n} and a target vector Y∈Rn×1Y \in \mathbb{R}^{n \times 1}, where dd represents the number of features, nn represents the number of data points, and the data is defined as:

X=[1234]X = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix}

Y=[35]Y = \begin{bmatrix} 3 \\ 5 \end{bmatrix}

Calculate the coefficients β\beta for Ridge regression with λ=1\lambda = 1.

  1. A
  2. B
  3. C
  4. D
  5. E
Show answer

Correct answer

  • C

Question 13

+4 marksOne correct option
  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • B

Question 14

+4 marksOne or more correct options

Consider the following data-points in a binary classification problem. w is the weight vector corresponding to a linear classifier. The labels are +1 and −1.

Which of the following statements are true?

Select all that apply.

  1. A
  2. B
  3. C
  4. D
  5. E
Show answer

Correct answers

  • A
  • B
  • D

Question 15

+4 marksOne or more correct options

Select all true statements.

Select all that apply.

  1. A
  2. B
  3. C
  4. D
  5. E
Show answer

Correct answers

  • A
  • B
  • D