uiz Space

January 2024 term · Machine Learning Techniques · BSCS2007

Machine Learning Techniques Quiz 1: 25 February 2024 (January 2024 term)

The IIT Madras BS Machine Learning Techniques (MLT) Quiz 1 paper sat on 25 Feb 2024, in the January 2024 term: 13 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
13
Marks
50
Duration
120 min
MCQ
6
Numerical
5
MSQ
2

Updated

Official paper: IIT M DIPLOMA AN2 EXAM QDD2 25 Feb 2024 · No negative marking.

Question 1

+4 marksOne correct option

Suppose a dataset lies in R4\mathbb{R}^4 and undergoes Principal Component Analysis (PCA) after being centered. The resulting first and second principal components are given by:

13⋅[1−101],13⋅[101−1]\frac{1}{\sqrt{3}} \cdot \begin{bmatrix} 1 \\ -1 \\ 0 \\ 1 \end{bmatrix}, \quad \frac{1}{\sqrt{3}} \cdot \begin{bmatrix} 1 \\ 0 \\ 1 \\ -1 \end{bmatrix}

Which of the following could be the third principal component?

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

Correct answer

  • D

Question 2

+4 marksOne correct option
  1. A

    Yes

  2. B

    No

Show answer

Correct answer

  • B

    No

Question 3

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

Correct answer

  • A

Question 4

+4 marksOne correct option

Consider a dataset consisting of 1000 samples in a 20-dimensional space. You apply Kernel PCA with a polynomial kernel of degree 3 to reduce the dimensionality of the data. Which of the following statements regarding Kernel PCA is true?

  1. A

    Kernel PCA always results in a lower-dimensional representation of the data compared to standard PCA.

  2. B

    Kernel PCA can only be applied to datasets that are linearly separable.

  3. C

    Choosing a higher degree polynomial kernel in Kernel PCA can lead to increased flexibility in capturing non-linear relationships.

  4. D

    None of these.

Show answer

Correct answer

  • C

    Choosing a higher degree polynomial kernel in Kernel PCA can lead to increased flexibility in capturing non-linear relationships.

Question 5

+4 marksNumerical answer

Standard PCA has been performed on a centered dataset in R3\mathbb{R}^3. The first two principal components are given below:

w1=13⋅[111],w2=12⋅[1−10]\mathbf{w}_1 = \frac{1}{\sqrt{3}} \cdot \begin{bmatrix} 1 \\ 1 \\ 1 \end{bmatrix}, \quad \mathbf{w}_2 = \frac{1}{\sqrt{2}} \cdot \begin{bmatrix} 1 \\ -1 \\ 0 \end{bmatrix}

Consider the data point in the dataset: [21−1]T\begin{bmatrix} 2 & 1 & -1 \end{bmatrix}^T. (a,b)(a, b) is the representation of this point in the coordinate system formed by the two principal components given above. The first and second coordinates correspond to PC-1 and PC-2 respectively.

Based on the above data, answer the given subquestions.

What is the value of a? Enter your answer correctly to three decimal places.

Show answer

Correct answer: 1.15 (accepted within ±0.05)

Question 6

+4 marksNumerical answer

Standard PCA has been performed on a centered dataset in R3\mathbb{R}^3. The first two principal components are given below:

w1=13⋅[111],w2=12⋅[1−10]\mathbf{w}_1 = \frac{1}{\sqrt{3}} \cdot \begin{bmatrix} 1 \\ 1 \\ 1 \end{bmatrix}, \quad \mathbf{w}_2 = \frac{1}{\sqrt{2}} \cdot \begin{bmatrix} 1 \\ -1 \\ 0 \end{bmatrix}

Consider the data point in the dataset: [21−1]T\begin{bmatrix} 2 & 1 & -1 \end{bmatrix}^T. (a,b)(a, b) is the representation of this point in the coordinate system formed by the two principal components given above. The first and second coordinates correspond to PC-1 and PC-2 respectively.

Based on the above data, answer the given subquestions.

What is the value of b? Enter your answer correctly to two decimal places.

Show answer

Correct answer: 0.7 (accepted within ±0.05)

Question 7

+4 marksOne correct option

Consider the data points shown in the following image:

Based on the above data, answer the given subquestions.

Perform K-means clustering with K = 2 and initial cluster centers at (0, 0) and (6, 0). What are the final means of clusters after convergence?

  1. A

    (2, 0) and (8, 0)

  2. B

    (2, 0) and (8.5, 0)

  3. C

    (0, 0) and (8, 0)

  4. D

    (0, 0) and (8.5, 0)

  5. E

    None of these

Show answer

Correct answer

  • D

    (0, 0) and (8.5, 0)

Question 8

+4 marksNumerical answer

Consider the data points shown in the following image:

Based on the above data, answer the given subquestions.

After introducing a new data point (7, 0) , the cluster centers were updated. Enter the sum of the updated x-coordinates for both cluster centers accurately, rounding your answer to two decimal places.

Show answer

Correct answer: 8.2 (accepted within ±0.02)

Question 9

+2 marksOne correct option

Based on the above data, answer the given subquestions.

What is the log-likelihood of this dataset under this distribution? ln represents the natural logarithm or loge.

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

Correct answer

  • D

Question 10

+2 marksNumerical answer

Based on the above data, answer the given subquestions.

Show answer

Correct answer: 0.3 (accepted within ±0.05)

Question 11

+5 marksOne or more correct options

Consider Lloyd’s algorithm used for k-means clustering and choose the correct statements:

Select all that apply.

  1. A

    K-means algorithm may get stuck at local minima.

  2. B

    It guarantees finding the optimal clustering (global minimum) in every run.

  3. C

    In practice, k should be as large as possible.

  4. D

    If the resources are limited and the data set is huge, it will be good to prefer K- means over K-means++.

Show answer

Correct answers

  • A

    K-means algorithm may get stuck at local minima.

  • D

    If the resources are limited and the data set is huge, it will be good to prefer K- means over K-means++.

Question 12

+5 marksOne or more correct options

Select all that apply.

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

Correct answers

  • B
  • C

Question 13

+4 marksNumerical answer

Consider a dataset with 100 total data points. Each data point is classified as either type A or type B. We model this using a Bernoulli distribution, where p is the probability of a data point being type A. If the maximum likelihood estimate (MLE) of p based on the dataset is 0.4, how many data points of type B are there in this dataset?

Show answer

Correct answer: 60